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: arrgh. can't install headers in glibc-2.3.2.


>>>If I comment out the two sets of lines in the generated gcc/Makefile
>>>that define LIBGCC and INSTALL_LIBGCC (arond lines 383 and 688) then
>>>libgcc is *not* build and the bootstrap installs correctly...
>> 
>> I tried it, and it installed a bare bootstrap compiler that
>> glibc-2.3.2 was happy to configure with and started building glibc.
>> Unfortunately it croaked in sscanf.c (complaining about a va_start in
>> a function that has constant parameters), probably because the
>> configure was wrong. 
>
>Hah.  That's a known problem.  I've squirreled away the workaround at
>http://www.kegel.com/crossgcc/crosstool-0.2/glibc-2.3.2-patches/sscanf.patch

Ok, grabbed your patch and applied.  Is this patch going back into
glibc's tree?

Now my build gest ot the point in glibc where it tries to install
glibc, and in the process it attempts to create librtld.make.o, but
fails miserably since it can't find -lgcc, suprise, suprise: 

ppc-linux-gcc   -nostdlib -nostartfiles -r -o /home/peter/work/cvs-local/xgcc/obj/ppc-linux/ppc-linux-glibc/elf/librtld.map.o '-Wl,-(' /home/peter/work/cvs-local/xgcc/obj/ppc-linux/ppc-linux-glibc/elf/dl-allobjs.os /home/peter/work/cvs-local/xgcc/obj/ppc-linux/ppc-linux-glibc/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/home/peter/work/cvs-local/xgcc/obj/ppc-linux/ppc-linux-glibc/elf/librtld.mapT
/home/mylocal/xcomp/target/lib/gcc-lib/ppc-linux/3.3/../../../../ppc-linux/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
make[3]: *** [/home/peter/work/cvs-local/xgcc/obj/ppc-linux/ppc-linux-glibc/elf/librtld.map] Error 1
make[3]: Leaving directory `/home/peter/work/cvs-local/xtools/glibc-2.3.2/elf'
make[2]: *** [elf/subdir_lib] Error 2
make[2]: Leaving directory `/home/peter/work/cvs-local/xtools/glibc-2.3.2'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/peter/work/cvs-local/xgcc/obj/ppc-linux/ppc-linux-glibc'
make: *** [install-glibc] Error 2


Now to try your step of installing the glibc headers using my
bare-bones bootstrap compiler and see if that succeeds, then I can go
back, build libgcc in the bootstrap, then build up glibc proper, then
come back to gcc and build a full-up compiler...

-- 
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]