Glibc 2.3.2 Build Failure

Axel axel.azerty at netcourrier.com
Wed Apr 2 06:52:38 PST 2003


Richard wrote:
> Casey wrote:
> 
>>I'm trying to build glibc 2.3.2 in the beginning of Chapter 6. It fails
>>during the configuration script with the error:
>>
>>  checking for gcc option to accept ANSI C... none needed
>>  checking how to run the C preprocessor... /lib/cpp
>>  configure: error: C preprocessor "/lib/cpp" fails sanity check
>>  See `config.log' for more details.
> 
> 
> 	I have reported the anomaly in the thread "From glibc-2.2.5 to 2.3.2:
> the LFS way at jeopardy?" (14.03.03); check it there.
> 
> 	In summary: you need to touch two header files in order to get it
> going; however don't think your troubles are over: if my experience is
> typical, compilation will abort further down the line :(( and I couldn't
> find so far any way around it, and, nobody has yet ventured any new
> hints/ideas to tackle it.
> 
> 	Let me know your progress. I would like to confirm the obstacle of not
> being of my own making.
> 
> 	Richard
> 
> PS: Don't try to symlink /lib/cpp: it won't work...
> 
> 

Hi
I m building from a glibc 2.3.1/gcc3.2.2 host, following the book
"parse error",at file libc.so.lds:110
here s what we found at line 
110/static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgcc.a(unwind-dw2-fde-glibc.o): 
In function `size_of_encoded_value':
/mnt/distro/usr/src/gcc-build/gcc/../../gcc-3.2.2/gcc/unwind-pe.h:76: 
undefined reference to `abort'
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgcc.a(unwind-dw2-fde-glibc.o): 
In function `read_encoded_value_with_base':
/mnt/distro/usr/src/gcc-build/gcc/../../gcc-3.2.2/gcc/unwind-pe.h:243: 
undefined reference to `abort'
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgcc.a(unwind-dw2-fde-glibc.o): 
In function `__register_frame':
/mnt/distro/usr/src/gcc-build/gcc/../../gcc-3.2.2/gcc/unwind-dw2-fde.c:113: 
undefined reference to `malloc'
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgcc.a(unwind-dw2-fde-glibc.o): 
In function `__register_frame_table':
/mnt/distro/usr/src/gcc-build/gcc/../../gcc-3.2.2/gcc/unwind-dw2-fde.c:151: 
undefined reference to `malloc'
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgcc.a(unwind-dw2-fde-glibc.o): 
In function `__deregister_frame_info_bases':
/mnt/distro/usr/src/gcc-build/gcc/../../gcc-3.2.2/gcc/unwind-dw2-fde.c:210: 
undefined reference to `abort'
/mnt/distro/usr/src/gcc-build/gcc/../../gcc-3.2.2/gcc/unwind-dw2-fde.c:195: 
undefined reference to `free'
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgcc.a(unwind-dw2-fde-glibc.o): 
In function `__deregister_frame':
/mnt/distro/usr/src/gcc-build/gcc/../../gcc-3.2.2/gcc/unwind-dw2-fde.c:228: 
undefined reference to `free'
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgcc.a(unwind-dw2-fde-glibc.o): 
In function `base_from_object':
/mnt/distro/usr/src/gcc-build/gcc/../../gcc-3.2.2/gcc/unwind-dw2-fde.c:253: 
undefined reference to `abort'
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgcc.a(unwind-dw2-fde-glibc.o): 
In function `get_cie_encoding':
/mnt/distro/usr/src/gcc-build/gcc/../../gcc-3.2.2/gcc/unwind-dw2-fde.c:271: 
undefined reference to `strlen'
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgcc.a(unwind-dw2-fde-glibc.o): 
In function `base_from_cb_data':
/mnt/distro/usr/src/gcc-build/gcc/../../gcc-3.2.2/gcc/unwind-dw2-fde-glibc.c:103: 
undefined reference to `abort'
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgcc.a(unwind-dw2-fde-glibc.o): 
In function `_Unwind_IteratePhdrCallback':
/mnt/distro/usr/src/gcc-build/gcc/../../gcc-3.2.2/gcc/unwind-dw2-fde-glibc.c:231: 
undefined reference to `abort'
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgcc.a(unwind-dw2-fde-glibc.o): 
In function `_Unwind_Find_FDE':
/mnt/distro/usr/src/gcc-build/gcc/../../gcc-3.2.2/gcc/unwind-dw2-fde-glibc.c:283: 
undefined reference to `dl_iterate_phdr'
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgcc.a(unwind-dw2-fde-glibc.o): 
In function `init_object':
/mnt/distro/usr/src/gcc-build/gcc/../../gcc-3.2.2/gcc/unwind-dw2-fde.c:582: 
undefined reference to `free'
/mnt/distro/usr/src/gcc-build/gcc/../../gcc-3.2.2/gcc/unwind-dw2-fde.c:393: 
undefined reference to `malloc'
/mnt/distro/usr/src/gcc-build/gcc/../../gcc-3.2.2/gcc/unwind-dw2-fde.c:396: 
undefined reference to `malloc'
/mnt/distro/usr/src/gcc-build/gcc/../../gcc-3.2.2/gcc/unwind-dw2-fde.c:579: 
undefined reference to `abort'


malloc, abort, free refers to <stdlib.h>, and strlen to <string.h>
I had a look at this gcc files,no includes for this headers has been defined
so libgcc has been built with this errors or am i wrong ?
why this problem isn' t encounter while building the system with 2.3.1 
and at the end rebuilt 2.3.2?

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list