zsh-workers
 help / color / mirror / code / Atom feed
* Re: Using zsh in gcc compilation
@ 2002-09-19 15:12 David Gómez
  2002-09-19 15:54 ` Bart Schaefer
  0 siblings, 1 reply; 16+ messages in thread
From: David Gómez @ 2002-09-19 15:12 UTC (permalink / raw)
  To: zsh-workers

On Thu, Sep 19, 2002 at 02:19:32PM +0100, Peter Stephenson wrote:
> It may be in the generation of multilib.h, in that case, because
> genmultilib in the gcc source directory looks pretty hair-raising.  I
> ran it as...

Yes, you're right. And i think i now why. The output of genmultilib is different
when executed by zsh or bash. It seems genmultilib use the $options variable to
store the first positional parameter to genmultilib, and i'm sure you've guessed
it, $options is already defined by zsh. I'm going to test multilib now with a
different name instead of options, but i'm pretty sure this it's what is causing
the problem.

-- 
David Gómez

"The question of whether computers can think is just like the question of
 whether submarines can swim." -- Edsger W. Dijkstra


^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: Using zsh in gcc compilation
@ 2002-09-19 11:16 David Gómez
  0 siblings, 0 replies; 16+ messages in thread
From: David Gómez @ 2002-09-19 11:16 UTC (permalink / raw)
  To: zsh-workers

On Thu, Sep 19, 2002 at 11:07:45AM +0100, Peter Stephenson wrote:
> > This error seems to happens because an additional '-on' is added to the xgcc
> > line and the output doesn't go to standard output, so we have an empty
> > libgcc.map, but i have no idea which zsh feature could be causing this.
> 
> That's plausible, but I think you'll have to go back and look at what is
> producing that particular part of the xgcc command line, which probably
> means trying to track down the corresponding part of the Makefile.  At
> the point you quote, it's already embedded in the command line from
> somewhere earlier.

I've already checked that, and if i didn't miss something, this part of the
Makefile is generated from the script mklibgcc, which calls xgcc with the 
contents of a $flags variable. This variable is the result of applying a sed
expression to the values contained in MULTILIB. Beyond MULTILIB i wasn't 
able to continue tracking down the problem :(, gcc makefiles/configure system
are a 'bit' cryptic for me. By the way, i also tried configuring gcc with
the --disable-multilib option, but the error still appeared.


-- 
David Gómez

"The question of whether computers can think is just like the question of
 whether submarines can swim." -- Edsger W. Dijkstra


^ permalink raw reply	[flat|nested] 16+ messages in thread
* Using zsh in gcc compilation
@ 2002-09-19  9:52 David Gómez
  2002-09-19 10:07 ` Peter Stephenson
  0 siblings, 1 reply; 16+ messages in thread
From: David Gómez @ 2002-09-19  9:52 UTC (permalink / raw)
  To: zsh-workers

Hi all,

I cannot get to compile successfully gcc 3.2 using zsh as my main shell. I'm
sure the problem is caused by zsh becaused i tried to compile with bash and the
problem goes away.

I hope maybe some of you could give some hints about what is causing this
problem. This is the situation:

/bin/sh is pointing to the zsh binary

zsh options that are activated:

nohistbeep
histexpiredupsfirst
nomultios
rmstarsilent
shinstdin
shwordsplit

These are the last lines of the compilation, when a parse error is given when
the libgcc_s_on is going to be linked:

{ nm -pg  libgcc/on/_muldi3.o libgcc/on/_negdi2.o libgcc/on/_lshrdi3.o libgcc/on
/_ashldi3.o libgcc/on/_ashrdi3.o libgcc/on/_ffsdi2.o libgcc/on/_clz.o libgcc/on/
_cmpdi2.o libgcc/on/_ucmpdi2.o libgcc/on/_floatdidf.o libgcc/on/_floatdisf.o lib
gcc/on/_fixunsdfsi.o libgcc/on/_fixunssfsi.o libgcc/on/_fixunsdfdi.o libgcc/on/_
fixdfdi.o libgcc/on/_fixunssfdi.o libgcc/on/_fixsfdi.o libgcc/on/_fixxfdi.o libg
cc/on/_fixunsxfdi.o libgcc/on/_floatdixf.o libgcc/on/_fixunsxfsi.o libgcc/on/_fi
xtfdi.o libgcc/on/_fixunstfdi.o libgcc/on/_floatditf.o libgcc/on/_clear_cache.o 
libgcc/on/_trampoline.o libgcc/on/__main.o libgcc/on/_exit.o libgcc/on/_absvsi2.
o libgcc/on/_absvdi2.o libgcc/on/_addvsi3.o libgcc/on/_addvdi3.o libgcc/on/_subv
si3.o libgcc/on/_subvdi3.o libgcc/on/_mulvsi3.o libgcc/on/_mulvdi3.o libgcc/on/_
negvsi2.o libgcc/on/_negvdi2.o libgcc/on/_ctors.o libgcc/on/_divdi3.o libgcc/on/
_moddi3.o libgcc/on/_udivdi3.o libgcc/on/_umoddi3.o libgcc/on/_udiv_w_sdiv.o lib
gcc/on/_udivmoddi4.o  libgcc/on/unwind-dw2.o libgcc/on/unwind-dw2-fde-glibc.o li
bgcc/on/unwind-sjlj.o; echo %%; \
  cat ../../gcc-3.2/gcc/libgcc-std.ver ../../g
cc-3.2/gcc/config/libgcc-glibc.ver | sed -e "/^[ 	]*#/d" -e 's/^%\(if\|else\|eli
f\|endif\|define\)/#\1/' \
  | ./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isyste
m /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -O2
  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_
NEEDED  -I. -I. -I../../gcc-3.2/gcc -I../../gcc-3.2/gcc/. -I../../gcc-3.2/gcc/co
nfig -I../../gcc-3.2/gcc/../include  -on -E -xassembler-with-cpp -; \
} | gawk -
f ../../gcc-3.2/gcc/mkmap-symver.awk  > libgcc/on/tmp-libgcc.map
mv libgcc/on/tm
p-libgcc.map libgcc/on/libgcc.map
./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isy
stem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include 
-O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototyp
es -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_N
OT_NEEDED  -shared -nodefaultlibs -Wl,--soname=libgcc_s_on.so.1 -Wl,--version-sc
ript=libgcc/on/libgcc.map -o libgcc_s_on.so.1  -on  libgcc/on/_muldi3.o libgcc/o
n/_negdi2.o libgcc/on/_lshrdi3.o libgcc/on/_ashldi3.o libgcc/on/_ashrdi3.o libgc
c/on/_ffsdi2.o libgcc/on/_clz.o libgcc/on/_cmpdi2.o libgcc/on/_ucmpdi2.o libgcc/
on/_floatdidf.o libgcc/on/_floatdisf.o libgcc/on/_fixunsdfsi.o libgcc/on/_fixuns
sfsi.o libgcc/on/_fixunsdfdi.o libgcc/on/_fixdfdi.o libgcc/on/_fixunssfdi.o libg
cc/on/_fixsfdi.o libgcc/on/_fixxfdi.o libgcc/on/_fixunsxfdi.o libgcc/on/_floatdi
xf.o libgcc/on/_fixunsxfsi.o libgcc/on/_fixtfdi.o libgcc/on/_fixunstfdi.o libgcc
/on/_floatditf.o libgcc/on/_clear_cache.o libgcc/on/_trampoline.o libgcc/on/__ma
in.o libgcc/on/_exit.o libgcc/on/_absvsi2.o libgcc/on/_absvdi2.o libgcc/on/_addv
si3.o libgcc/on/_addvdi3.o libgcc/on/_subvsi3.o libgcc/on/_subvdi3.o libgcc/on/_
mulvsi3.o libgcc/on/_mulvdi3.o libgcc/on/_negvsi2.o libgcc/on/_negvdi2.o libgcc/
on/_ctors.o libgcc/on/_divdi3.o libgcc/on/_moddi3.o libgcc/on/_udivdi3.o libgcc/
on/_umoddi3.o libgcc/on/_udiv_w_sdiv.o libgcc/on/_udivmoddi4.o  libgcc/on/unwind
-dw2.o libgcc/on/unwind-dw2-fde-glibc.o libgcc/on/unwind-sjlj.o -lc && rm -f lib
gcc_s_on.so && ln -s libgcc_s_on.so.1 libgcc_s_on.so
/usr/bin/ld:libgcc/on/libgc c.map:1: parse error in VERSION script
collect2: ld returned 1 exit status
make[3]: *** [on/libgcc_s_on.so] Error 1
make[3]: Leaving directory `/home/huma/src/gccobj/gcc'
make[2]: *** [libgcc.a] Error 2
make[2]: Leaving directory `/home/huma/src/gccobj/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory


This error seems to happens because an additional '-on' is added to the xgcc
line and the output doesn't go to standard output, so we have an empty
libgcc.map, but i have no idea which zsh feature could be causing this.

Thanks,

-- 
David Gómez

"The question of whether computers can think is just like the question of
 whether submarines can swim." -- Edsger W. Dijkstra


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2002-09-19 16:09 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20020919150720.GA14948@fargo>
2002-09-19 15:18 ` Using zsh in gcc compilation Peter Stephenson
2002-09-19 15:37   ` David Gómez
2002-09-19 16:03     ` Bart Schaefer
2002-09-19 16:08       ` David Gómez
2002-09-19 16:15   ` DervishD
2002-09-19 15:12 David Gómez
2002-09-19 15:54 ` Bart Schaefer
2002-09-19 16:04   ` David Gómez
  -- strict thread matches above, loose matches on Subject: below --
2002-09-19 11:16 David Gómez
2002-09-19  9:52 David Gómez
2002-09-19 10:07 ` Peter Stephenson
2002-09-19 11:19   ` Peter Stephenson
2002-09-19 11:30     ` David Gómez
2002-09-19 12:15       ` Peter Stephenson
2002-09-19 12:43         ` David Gómez
2002-09-19 13:19           ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).