This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Re: failure building gcc-3.3 (broken libiberty/vsprintf.c or build?)


>>  Ok, you have added all kind of 'nice-looking' options into your
>>configure-command, but the important '--with-newlib' is missing...
>>If it is missing, the already installed '$prefix/$target/lib' stuff
>>will be checked for the existing C functions. This option simply tells
>>that newlib will be used as the chosen C library.
>>
>>  So my thought is that all your problems come from leaving the
>>'--with-newlib' away.  Sometimes the so-called 'fixed' newlib headers,
>>found before the original newlib headers when compiling 'libiberty',
>>can cause problems too. So you should check your $build/gcc/include
>>too for the 'fixes' done if using newlib.
>
>Wow, learn something new every day.  After chanig my config to be:
>
>/home/peter/work/cvs-local/xgcc/gcc-3.3/configure \
>--with-gcc-version-trigger=/home/peter/work/cvs-local/xgcc/gcc-3.3/gcc/version.c \
>--host=i686-pc-linux-gnu --target=m68k-elf --prefix=/tmp/m68k-elf \
>--with-newlib --enable-languages=c,c++ \
>--with-local-prefix=/tmp/m68k-elf/m68k-elf --norecursion
>
>it builds for me.
>
>What's weird is that gcc-3.2.3 built fine with that configure.  Now
>I'm going back and seeing if this configure works for gcc-3.2.3.
>
>Thanx for the pointers...

Now I'm scratching my head.  After blowing away the installed
components and the objects for the bootstrap, newlib, gcc, installed
binutils, rebuild and installed the bootstrap and newlib, gcc-3.3
configured with:

/home/peter/work/cvs-local/xgcc/gcc-3.3/configure \
--with-gcc-version-trigger=/home/peter/work/cvs-local/xgcc/gcc-3.3/gcc/version.c \
--host=i686-pc-linux-gnu --target=m68k-elf --prefix=/tmp/m68k-elf \
--with-newlib --enable-languages=c,c++ \
--with-local-prefix=/tmp/m68k-elf/m68k-elf --norecursion

Blows up with:

make[2]: Entering directory `/home/peter/work/cvs-local/xgcc/obj/m68k-elf/m68k-elf-gcc/m68k-elf/libiberty'
if [ x"" != x ]; then \
  /home/peter/work/cvs-local/xgcc/obj/m68k-elf/m68k-elf-gcc/gcc/xgcc -B/home/peter/work/cvs-local/xgcc/obj/m68k-elf/m68k-elf-gcc/gcc/ -B/tmp/m68k-elf/m68k-elf/bin/ -B/tmp/m68k-elf/m68k-elf/lib/ -isystem /tmp/m68k-elf/m68k-elf/include -c -DHAVE_CONFIG_H -O2 -g -O2 -I. -I/home/peter/work/cvs-local/xgcc/gcc-3.3/libiberty/../include  -W -Wall -Wtraditional -pedantic  /home/peter/work/cvs-local/xgcc/gcc-3.3/libiberty/hashtab.c -o pic/hashtab.o; \
else true; fi
/home/peter/work/cvs-local/xgcc/obj/m68k-elf/m68k-elf-gcc/gcc/xgcc -B/home/peter/work/cvs-local/xgcc/obj/m68k-elf/m68k-elf-gcc/gcc/ -B/tmp/m68k-elf/m68k-elf/bin/ -B/tmp/m68k-elf/m68k-elf/lib/ -isystem /tmp/m68k-elf/m68k-elf/include -c -DHAVE_CONFIG_H -O2 -g -O2 -I. -I/home/peter/work/cvs-local/xgcc/gcc-3.3/libiberty/../include  -W -Wall -Wtraditional -pedantic /home/peter/work/cvs-local/xgcc/gcc-3.3/libiberty/hashtab.c -o hashtab.o
/home/peter/work/cvs-local/xgcc/gcc-3.3/libiberty/hashtab.c: In function `higher_prime_number':
/home/peter/work/cvs-local/xgcc/gcc-3.3/libiberty/hashtab.c:133: warning: implicit declaration of function `abort'
/home/peter/work/cvs-local/xgcc/gcc-3.3/libiberty/hashtab.c: In function `htab_create':
/home/peter/work/cvs-local/xgcc/gcc-3.3/libiberty/hashtab.c:204: error: `free' undeclared (first use in this function)
/home/peter/work/cvs-local/xgcc/gcc-3.3/libiberty/hashtab.c:204: error: (Each undeclared identifier is reported only once
/home/peter/work/cvs-local/xgcc/gcc-3.3/libiberty/hashtab.c:204: error: for each function it appears in.)
/home/peter/work/cvs-local/xgcc/gcc-3.3/libiberty/hashtab.c: In function `htab_try_create':
/home/peter/work/cvs-local/xgcc/gcc-3.3/libiberty/hashtab.c:214: error: `calloc' undeclared (first use in this function)
/home/peter/work/cvs-local/xgcc/gcc-3.3/libiberty/hashtab.c:214: error: `free' undeclared (first use in this function)
make[2]: *** [hashtab.o] Error 1
make[2]: Leaving directory `/home/peter/work/cvs-local/xgcc/obj/m68k-elf/m68k-elf-gcc/m68k-elf/libiberty'
make[1]: *** [install-target-libiberty] Error 2
make[1]: Leaving directory `/home/peter/work/cvs-local/xgcc/obj/m68k-elf/m68k-elf-gcc'
make: *** [install-gcc] Error 2

I don't have a clue why its failing, especially when it built
before(ok, on top of a previously failed misconfigured build).  Any
suggestions on what to look for?

-- 
Peter Barada
peter@baradas.org

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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