This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GCC 4.2.2


I have been attempting to build an ARM tool chain using the docs from
the ecos site located at
http://www.ecos.sourceware.org/ecos/tools/linux-arm-elf.html

I am having issue with getting GCC 4.2.2 compiled using the following
configure and compile command sets.


Scenario #1)

Configure GCC, ensuring that the GNU Binary Utilities are at the head
of the PATH:

    PATH=/tools/H-i686-pc-linux-gnu/bin:$PATH ; export PATH    (for
sh, ksh and bash users)
    set path = ( /tools/H-i686-pc-linux-gnu/bin $path )        (for
csh and tcsh users)
    mkdir -p /tmp/build/gcc
    cd /tmp/build/gcc
    /src/gcc/gcc-2.95.2/configure --target=arm-elf \
      --prefix=/tools \
      --exec-prefix=/tools/H-i686-pc-linux-gnu \
      --with-gnu-as --with-gnu-ld --with-newlib \
      -v 2>&1 | tee configure.out


Build and install GCC:

    make -w all-gcc install-gcc LANGUAGES="c c++" 2>&1 | tee make.out

FAILS with the following:
make[3]: Entering directory `/tmp/build/gcc/gcc'
/tmp/build/gcc/./gcc/xgcc -B/tmp/build/gcc/./gcc/
-B/tools/H-i686-pc-linux-gnu//arm-elf/bin/
-B/tools/H-i686-pc-linux-gnu//arm-elf/lib/ -isystem
/tools/H-i686-pc-linux-gnu//arm-elf/include -isystem
/tools/H-i686-pc-linux-gnu//arm-elf/sys-include -O2 -O2 -g -O2
-DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include  -I. -I. -I/src/gcc/gcc-4.2.2/gcc
-I/src/gcc/gcc-4.2.2/gcc/. -I/src/gcc/gcc-4.2.2/gcc/../include
-I/src/gcc/gcc-4.2.2/gcc/../libcpp/include
-I/src/gcc/gcc-4.2.2/gcc/../libdecnumber -I../libdecnumber  -g0
-finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-in-bss -fno-toplevel-reorder -Dinhibit_libc  \
          -c /src/gcc/gcc-4.2.2/gcc/crtstuff.c -DCRT_BEGIN \
          -o crtbegin.o
/tmp/build/gcc/./gcc/as: line 2: exec: -o: invalid option
exec: usage: exec [-cl] [-a name] file [redirection ...]
make[3]: *** [crtbegin.o] Error 1
make[3]: Leaving directory `/tmp/build/gcc/gcc'
make[2]: *** [extra] Error 2
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'



It appears that the wrong "as" gets called, the contents of the file
/tmp/build/gcc/./gcc/as as called above are

#!/bin/sh
exec  "$@"

Is this a bug ?


Scenario #2)
If I eliminate the "--target=arm-elf" it compiles just fine.

regards

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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