Configure: error: cannot compute sizeof (long double) in glibc pass 2
When i try to configure glibc2.3.2 in pass 2 same error is comming ......after this
"../glibc-2.3.2/configure --prefix=/usr \ --disable-profile --enable-add-ons \ --libexecdir=/usr/bin --with-headers=/usr/include" ---------------------------------------------------------------------------------------------------- Error : "checking size of long double... configure: error: cannot compute sizeof (long double), 77 See `config.log' for more details." Can anyone help me Thanks Irfan |
hi there
too have been getting the same errors with my LFS 5.1. i have been compiling it in on my FC2 with 2.6.7 kernel below is the compile error [root@gaurav gcc-build]# ../glibc-2.3.3-lfs-5.1/configure --prefix=/tools --disable-profile --enable-add-ons=linuxthreads --with-binutils=/tools/bin --with-headers=/tools/include --without-gd --without-cvs checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking sysdep dirs... sysdeps/i386/elf linuxthreads/sysdeps/unix/sysv/linux/i386 linuxthreads/sysdeps/unix/sysv/linux linuxthreads/sysdeps/pthread sysdeps/pthread linuxthreads/sysdeps/unix/sysv linuxthreads/sysdeps/unix linuxthreads/sysdeps/i386/i686 linuxthreads/sysdeps/i386 sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 sysdeps/unix/sysv sysdeps/unix/i386 sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu sysdeps/i386/i686 sysdeps/i386/i486 sysdeps/i386/fpu sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking for gcc... gcc checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking whether /tools/bin/as is GNU as... yes checking whether /tools/bin/ld is GNU ld... yes checking for /tools/bin/as... /tools/bin/as checking version of /tools/bin/as... 2.14, ok checking for /tools/bin/ld... /tools/bin/ld checking version of /tools/bin/ld... 2.14, ok checking for pwd... /bin/pwd checking for gcc... gcc -B/tools/bin/ checking version of gcc -B/tools/bin/... 3.3.3, ok checking for gnumake... no checking for gmake... gmake checking version of gmake... 3.80, ok checking for gnumsgfmt... no checking for gmsgfmt... no checking for msgfmt... msgfmt checking version of msgfmt... 0.14.1, ok checking for makeinfo... makeinfo checking version of makeinfo... 4.6, ok checking for sed... sed checking version of sed... 4.0.8, ok checking for autoconf... autoconf checking whether autoconf works... yes checking whether ranlib is necessary... yes checking LD_LIBRARY_PATH variable... ok checking whether GCC supports -static-libgcc... -static-libgcc checking for bash... /bin/sh checking for gawk... gawk checking for perl... /usr/bin/perl checking for install-info... /sbin/install-info checking for bison... /usr/bin/bison checking for signed size_t type... no checking for libc-friendly stddef.h... yes checking whether we need to use -P to assemble .S files... no checking whether .text pseudo-op must be used... yes checking for assembler global-symbol directive... .globl checking for .set assembler directive... yes checking for assembler .type directive prefix... @ checking for .symver assembler directive... yes checking for ld --version-script... yes checking for .previous assembler directive... yes checking for .protected and .hidden assembler directive... yes checking whether __attribute__((visibility())) is supported... yes checking for broken __attribute__((visibility()))... no checking for broken __attribute__((alias()))... no checking whether to put _rtld_local into .sdata section... no checking for .preinit_array/.init_array/.fini_array support... yes checking for libunwind-support in compiler... no checking for -z nodelete option... yes checking for -z nodlopen option... yes checking for -z initfirst option... yes checking for -z relro option... no checking for -Bgroup option... yes checking whether --noexecstack is desirable for .S files... no checking for -z combreloc... yes checking for -z execstack... yes checking for -fpie... no checking for -fno-unit-at-a-time... no checking whether cc puts quotes around section names... no checking for assembler .weak directive... yes checking whether CFI directives are supported... no checking if -g produces usable source locations for assembler-with-cpp... yes checking for ld --no-whole-archive... yes checking for gcc -fexceptions... yes checking for DWARF2 unwind info support... no_registry_needed checking for __builtin_expect... yes checking for __builtin_memset... no checking for redirection of built-in functions... yes checking for local label subtraction... yes checking for __thread... yes checking for tls_model attribute... yes checking for libgd... no checking for egrep... grep -E checking for ANSI C header files... no checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes 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. =============================================== my config.log is a very big file i am posting the last lines of it i do not know whether i can post such a big file here from config.log #define PACKAGE_NAME "GNU C Library" #define PACKAGE_STRING "GNU C Library (see version.h)" #define PACKAGE_TARNAME "c-library" #define PACKAGE_VERSION "(see version.h)" #define USE_REGPARMS 1 #endif #ifdef __cplusplus #include <stdlib.h> configure: exit 1 pl. help me out here regards gaurav |
I think that this may be because you're trying to compile older versions of the toolchain (glibc, gcc) than the versions you have installed on your host (Fedora core 2) system. Have you tried building LFS 6? http://lfs.securewebservices.co.uk/lfs/view/testing/
|
I am using Red Hat 8 and LFS version 5 and this starnge error is comming again again .....why this is comming .....is there any solution ? i am playing with this error last three days but .......there is no success.
Could you please help me how can i get rid of this error ...? Thanks Irfanali |
so should i go to gcc ver 2.95
i think that might help i am presently doing this on GC2 which has a newer GCC regards gaurav |
hi therre i tried gcc 2.95 compiler
again got stuck here few of the output lines are ---------------------------------------------------------------------------------------------------------- checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking for pwd... /bin/pwd checking for gcc... gcc checking version of gcc... 2.95.3, bad checking for gnumake... no checking for gmake... gmake checking version of gmake... 3.80, ok configure: error: *** These critical programs are missing or too old: gcc *** Check the INSTALL file for required versions. ============================================================================ regards gaurav |
I am also getting same error .......................
if you see config.log,there is a some code of C i think which is creating problem i would like to invite C programmer or anybody who can sort out this problem |#include <stdio.h> | #include <stdlib.h> | int | main () | { | | FILE *f = fopen ("conftest.val", "w"); | if (! f) | exit (1); | if (((long) (sizeof (long double))) < 0) | { | long i = longval (); | if (i != ((long) (sizeof (long double)))) | exit (1); | fprintf (f, "%ld\n", i); | } | else | { | unsigned long i = ulongval (); | if (i != ((long) (sizeof (long double)))) | exit (1); | fprintf (f, "%lu\n", i); | } | exit (ferror (f) || fclose (f) != 0); | | | ; | return 0; | } configure:6294: error: cannot compute sizeof (long double), 77 See `config.log' for more details. |
possible fix
I ran into the same problem. After a little digging, I found out that the problem was that libc.so.6 was missing from the /tools/lib directory...not sure why. A simple ln -s /lib/libc.so.6 /tools/lib/ fixed the problem for me. Not sure if linking to the host library is the best solution for this but it seems to be working so far.
-JT |
hi there
thanx for the info i will try as u have adviced and post u back regards |
If you've not installed glibc correctly it would be better to just start again. Don't waste any more time. Learn from the mistake and do it properly next time. Follow the book.
|
Quote:
hi there i did not go for installtion og glibc it was installed by the distribution itself well i am going with a fresh install with the advice i have got here regards |
Maybe a hardware problem? That error message looks like the type of error messages you would get when a processor is overclocked too much and/or overheating.
|
Quote:
but can this happen everytime and that too at the same statement????? regards gaurav |
Quote:
|
hi there
i do not hink the people at LFS have made such a compilation that the system stresses with P3 866MHz and 256 MB RAM, i think this is fine for running LFS regards |
All times are GMT -5. The time now is 04:13 AM. |