checking size of long double... configure: error: cannot compute sizeof (long double), 77

Stephane Charette stephanecharette at telus.net
Sat Nov 1 00:09:12 PST 2003


Greg Schafer suggested:
>Dunno for sure, but this is possibly caused by the binutils-pass1
>not being linked statically. Please check this by running:
>
>file /tools/bin/ld
>
>If it says dynamic, redo the binutilspass1 build properly then try
>glibc again.

No, it is static.  Here is the output:

-> /tools/bin/ld: ELF 32-bit LSB executable, Intel 80386, version 1
-> (SYSV), for GNU/Linux 2.2.5, statically linked, not stripped

Any other ideas on the cause of this problem:


On Thu, 30 Oct 2003 01:05:46 -0800, Stephane Charette wrote:

>>Back on August 18 2003, Ashley Rolleston reported the following:
>>
>>- chapter 6, LFS 4.1:
>>
>>	checking for long double... yes
>>	checking size of long double... configure: error: cannot compute sizeof (long double), 77
>>	See `config.log' for more details.
>>
>>Now I'm following the steps for LFS 5.0-pre3 (host is RH 9) and I've encountered the exact same error in chapter 5 while trying to install glibc.  This is what I get:
>>
>>	../glibc-2.3.2/configure --prefix=/tools --disable-profile --enable-add-ons --with-headers=/tools/include --with-binutils=/tools/bin --without-gd
>>	[...cut...]
>>	checking for stdint.h... yes
>>	checking for unistd.h... yes
>>	checking for long double... yes
>>	checking size of long double... configure: error: cannot compute sizeof (long double), 77
>>	See `config.log' for more details.
>>
>>When I look in config.log, I see:
>>
>>	configure:6001: checking size of long double
>>	configure:6276: gcc -B/tools/bin/ -o conftest -g -O2   conftest.c  >&5
>>	/tools/bin/ld: warning: ld-linux.so.2, needed by /lib/libc.so.6, not found (try using -rpath or -rpath-link)
>>	/lib/libc.so.6: undefined reference to `_dl_lookup_versioned_symbol_skip at GLIBC_PRIVATE'
>>	/lib/libc.so.6: undefined reference to `_rtld_global at GLIBC_PRIVATE'
>>	/lib/libc.so.6: undefined reference to `_dl_lookup_versioned_symbol at GLIBC_PRIVATE'
>>	[...cut...]
>>	/lib/libc.so.6: undefined reference to `_dl_lookup_symbol at GLIBC_PRIVATE'
>>	/lib/libc.so.6: undefined reference to `_dl_map_object at GLIBC_PRIVATE'
>>	collect2: ld returned 1 exit status
>>	configure:6279: $? = 1
>>	configure: program exited with status 1
>>
>>
>>Does anyone have the answer to this issue?  I assume I've not correctly completed a step, but I cannot find where.
>>
>>Should I even be linking against /lib/* at this stage in the process?
>>
>>Thanks for any help,
>>
>>Stéphane Charette
>>






More information about the lfs-support mailing list