This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem with compiling gcc-20010122 snapshot


Joel Brenner wrote:

> Joel Brenner wrote:
>
> > Joel Brenner wrote:
> >
> > > Joel Brenner wrote:
> > >
> > > > Richard Earnshaw wrote:
> > > >
> > > > > > HI, I've problems to compiling  gcc-20010122 snapshot. I've configured
> > > > > > with:
> > > > > >
> > > > > >     configure --target=arm-elf  --prefix=$tooldir  (to obtain a gcc
> > > > > > version how supports  ARM and THUMB instructions )
> > > > > >
> > > > > > and then compiled with
> > > > > >
> > > > > >     make -w all-gcc install-gcc   LANGUAGES="c c++"
> > > > > >
> > > > > > but there are errors ( see below). Are there someone how can help me?
> > > > >
> > > > > The compiler is unable to find the arm assembler, so it is trying to use
> > > > > the system one.
> > > > >
> > > > > Have you installed the gas/arm assembler?  Is it on your path?
> > > > >
> > > > > R.
> > > > ....
> > >
> > > In my system there are two version of arm-elf binutils tools generated by
> > > make... The first one have a prefix arm-elf and are placed in
> > > $arm-prefix/bin,  the second one don't have any prefix and are placed in
> > > $arm-prefix/arm-elf/bin.
> > >
> > > If I' specify the path for target AS  (set path = ( $arm-prefix/arm-elf/bin
> > > $path ) ) the error is:
> > >
> > >     [brenner@muggio gcc]$ /home/brenner/src/gcc-20010122/configure
> > > --target=arm-elf --prefix=/home/brenner/arm-tools --host=i686-pc-linux-gnu
> > >     *** This configuration is not supported in the following subdirectories:
> > >          target-libffi target-boehm-gc target-zlib target-libjava
> > >         (Any other directories should still work fine.)
> > >     Created "Makefile" in /tmp/build/gcc
> > >     as: unrecognized option `-Qy'
> > >     *** The command '/usr/bin/gcc -o conftest -g -O2   conftest.c' failed.
> > >     *** You must set the environment variable CC to a working compiler.
> > >
> > > If I don't specify the target AS path then:
> > > ...
> > >     if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
> > >     /tmp/build/gcc/gcc/xgcc -B/tmp/build/gcc/gcc/ -nostdinc
> > > -B/tmp/build/gcc/arm-elf/newlib/ -isystem
> > > /tmp/build/gcc/arm-elf/newlib/targ-include -isystem
> > > /home/brenner/src/gcc-20010122/newlib/libc/include
> > > -B/home/brenner/arm-tools/arm-elf/bin/ -B/home/brenner/arm-tools/arm-elf/lib/
> > > -isystem     /home/brenner/arm-tools/arm-elf/include -O2  -DCROSS_COMPILE
> > > -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes
> > > -Wmissing-prototypes -isystem ./include  -Dinhibit_libc -fno-inline -g1
> > > -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
> > > -I/home/brenner/src/gcc-20010122/gcc -I/home/brenner/src/gcc-20010122/gcc/.
> > > -I/home/brenner/src/gcc-20010122/gcc/config
> > > -I/home/brenner/src/gcc-20010122/gcc/../include -DL_udivsi3
> > > -xassembler-with-cpp -c
> > > /home/brenner/src/gcc-20010122/gcc/config/arm/lib1funcs.asm     -o
> > > libgcc/./_udivsi3.o
> > >     /tmp/cc25Q4KR.s: Assembler messages:
> > >     /tmp/cc25Q4KR.s:2: Error: Rest of line ignored. First ignored character is
> > > `@'.
> > >     /tmp/cc25Q4KR.s:3: Error: Rest of line ignored. First ignored character is
> > > `@'.
> > >     /tmp/cc25Q4KR.s:52: Error: no such 386 instruction: `work'
> > >     /tmp/cc25Q4KR.s:53: Error: no such 386 instruction: `dividend'
> > >     /tmp/cc25Q4KR.s:54: Error: no such 386 instruction: `divisor'
> > >     /tmp/cc25Q4KR.s:55: Error: no such 386 instruction: `overdone'
> > >     /tmp/cc25Q4KR.s:56: Error: no such 386 instruction: `result'
> > >     /tmp/cc25Q4KR.s:57: Error: no such 386 instruction: `curbit'
> > >     /tmp/cc25Q4KR.s:58: Error: no such 386 instruction: `ip'
> > >     /tmp/cc25Q4KR.s:59: Error: no such 386 instruction: `sp'
> > >     /tmp/cc25Q4KR.s:60: Error: no such 386 instruction: `lr'
> > >     /tmp/cc25Q4KR.s:61: Error: no such 386 instruction: `pc'
> > >     /tmp/cc25Q4KR.s:318: Error: expecting operand after ','; got nothing
> > >     /tmp/cc25Q4KR.s:319: Error: no such 386 instruction: `beq'
> > >     /tmp/cc25Q4KR.s:320: Error: expecting operand after ','; got nothing
> > >     /tmp/cc25Q4KR.s:321: Error: expecting operand after ','; got nothing
> > >     /tmp/cc25Q4KR.s:322: Error: operands given don't match any known 386
> > > instruction
> > >     /tmp/cc25Q4KR.s:323: Error: no such 386 instruction: `blo'
> > >     /tmp/cc25Q4KR.s:325: Error: Rest of line ignored. First ignored character
> > > is `@'.
> > >     /tmp/cc25Q4KR.s:325: Error: Rest of line ignored. First ignored character
> > > is `@'.
> > >     /tmp/cc25Q4KR.s:325: Error: Rest of line ignored. First ignored character
> > > is `@'.
> > >     /tmp/cc25Q4KR.s:325: Error: Rest of line ignored. First ignored character
> > > is `@'.
> > >     /tmp/cc25Q4KR.s:325: Error: expecting operand after ','; got nothing
> > >     /tmp/cc25Q4KR.s:325: Error: no such 386 instruction: `cmplo'
> > >     /tmp/cc25Q4KR.s:325: Error: no such 386 instruction: `movlo'
> > >     /tmp/cc25Q4KR.s:325: Error: no such 386 instruction: `movlo'
> > >     /tmp/cc25Q4KR.s:325: Error: no such 386 instruction: `blo'
> > >     /tmp/cc25Q4KR.s:325: Error: Rest of line ignored. First ignored character
> > > is `@'.
> > >     /tmp/cc25Q4KR.s:325: Error: Rest of line ignored. First ignored character
> > > is `@'.
> > >     /tmp/cc25Q4KR.s:325: Error: expecting operand after ','; got nothing
> > >     /tmp/cc25Q4KR.s:325: Error: no such 386 instruction: `cmplo'
> > >     /tmp/cc25Q4KR.s:325: Error: no such 386 instruction: `movlo'
> > >     /tmp/cc25Q4KR.s:325: Error: no such 386 instruction: `movlo'
> > >     /tmp/cc25Q4KR.s:325: Error: no such 386 instruction: `blo'
> > >     /tmp/cc25Q4KR.s:325: Error: Rest of line ignored. First ignored character
> > > is `@'.
> > >     /tmp/cc25Q4KR.s:325: Error: Rest of line ignored. First ignored character
> > > is `@'.
> > >     /tmp/cc25Q4KR.s:325: Error: Rest of line ignored. First ignored character
> > > is `@'.
> > >     /tmp/cc25Q4KR.s:325: Error: Rest of line ignored. First ignored character
> > > is `@'.
> > >     /tmp/cc25Q4KR.s:325: Error: Rest of line ignored. First ignored character
> > > is `@'.
> > >     /tmp/cc25Q4KR.s:325: Error: operands given don't match any known 386
> > > instruction
> > >     /tmp/cc25Q4KR.s:325: Error: no such 386 instruction: `subhs'
> > >     /tmp/cc25Q4KR.s:325: Error: no such 386 instruction: `orrhs'
> > >     /tmp/cc25Q4KR.s:325: Error: more than 1 memory reference in instruction
> > >     /tmp/cc25Q4KR.s:325: Error: no such 386 instruction: `subhs'
> > >     /tmp/cc25Q4KR.s:325: Error: no such 386 instruction: `orrhs'
> > >     /tmp/cc25Q4KR.s:325: Error: more than 1 memory reference in instruction
> > >     /tmp/cc25Q4KR.s:325: Error: no such 386 instruction: `subhs'
> > >     /tmp/cc25Q4KR.s:325: Error: no such 386 instruction: `orrhs'
> > >     /tmp/cc25Q4KR.s:325: Error: more than 1 memory reference in instruction
> > >     /tmp/cc25Q4KR.s:325: Error: no such 386 instruction: `subhs'
> > >     /tmp/cc25Q4KR.s:325: Error: no such 386 instruction: `orrhs'
> > >     /tmp/cc25Q4KR.s:325: Error: expecting operand after ','; got nothing
> > >     /tmp/cc25Q4KR.s:325: Error: no such 386 instruction: `movnes'
> > >     /tmp/cc25Q4KR.s:325: Error: no such 386 instruction: `movne'
> > >     /tmp/cc25Q4KR.s:325: Error: no such 386 instruction: `bne'
> > >     /tmp/cc25Q4KR.s:327: Error: operands given don't match any known 386
> > > instruction
> > >     /tmp/cc25Q4KR.s:328: Error: operands given don't match any known 386
> > > instruction
> > >     /tmp/cc25Q4KR.s:332: Error: invalid char '[' begining second operand '[sp'
> > >
> > >     /tmp/cc25Q4KR.s:332: Error: no such 386 instruction: `bl'
> > >     /tmp/cc25Q4KR.s:332: Error: expecting operand after ','; got nothing
> > >     /tmp/cc25Q4KR.s:332: Error: no such 386 instruction: `ldmia'
> > >     make[2]: *** [libgcc/./_udivsi3.o] Error 1
> > >     make[2]: Leaving directory `/tmp/build/gcc/gcc'
> > >     make[1]: *** [stmp-multilib] Error 2
> > >     make[1]: Leaving directory `/tmp/build/gcc/gcc'
> > >     make: *** [all-gcc] Error 2
> > >     make: Leaving directory `/tmp/build/gcc'
> > >
> > > I don't now what I have to do!
> >
> > I've changed the order of env PATH (first path for host-system as and then  path
> > for arm-elf target as). Now the configuration works but at compilation time there
> > is always the error listed above. (why make do not use the right as ?)

The problem is resolved!! I've reinstalled binutils and the compilation of
gcc-20010122 works fine now.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]