LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 08-16-2004, 05:01 AM   #1
irfanali
LQ Newbie
 
Registered: Jul 2004
Location: Italy
Distribution: Red Hat 8
Posts: 11

Rep: Reputation: 0
Thumbs down 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
 
Old 08-17-2004, 04:55 AM   #2
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
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
 
Old 08-17-2004, 06:11 AM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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/
 
Old 08-17-2004, 06:44 AM   #4
irfanali
LQ Newbie
 
Registered: Jul 2004
Location: Italy
Distribution: Red Hat 8
Posts: 11

Original Poster
Rep: Reputation: 0
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
 
Old 08-17-2004, 07:39 AM   #5
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
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
 
Old 08-17-2004, 12:41 PM   #6
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
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
 
Old 08-19-2004, 12:50 AM   #7
irfanali
LQ Newbie
 
Registered: Jul 2004
Location: Italy
Distribution: Red Hat 8
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
Old 08-21-2004, 03:17 AM   #8
Monkey223
LQ Newbie
 
Registered: Aug 2004
Location: North Carolina
Distribution: Suse 9.1
Posts: 1

Rep: Reputation: 1
Lightbulb 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
 
1 members found this post helpful.
Old 08-21-2004, 04:15 AM   #9
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there

thanx for the info
i will try as u have adviced and post u back

regards
 
Old 08-21-2004, 04:33 AM   #10
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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.
 
Old 08-21-2004, 09:10 AM   #11
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
Quote:
Originally posted by Andrew Benton
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.

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
 
Old 08-25-2004, 11:36 PM   #12
RJARRRPCGP
Member
 
Registered: Feb 2004
Location: USA (Springfield, Windsor County, Vermont)
Posts: 57

Rep: Reputation: 15
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.
 
Old 08-25-2004, 11:49 PM   #13
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
Quote:
Originally posted by RJARRRPCGP
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.
hi
but can this happen everytime
and that too at the same statement?????

regards

gaurav
 
Old 08-26-2004, 01:50 AM   #14
RJARRRPCGP
Member
 
Registered: Feb 2004
Location: USA (Springfield, Windsor County, Vermont)
Posts: 57

Rep: Reputation: 15
Quote:
Originally posted by masand
hi
but can this happen everytime
and that too at the same statement?????

regards

gaurav
Usually not in the exact spot and not repeatedly mentioning the exact address, but usually the same type of error when the system is stressed.
 
Old 08-26-2004, 05:01 AM   #15
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
glibc in capter 6 -- error: cannot compute suffix of object files Yoyo302 Linux From Scratch 23 05-21-2010 08:28 AM
Help! 2.4.29 + nptl = glibc error: cannot compute (long double), 77 Yerp Linux From Scratch 3 03-25-2005 06:28 PM
./configure fails trying to install SynCE/libraki - cannot compute sizeof (void *) dizzutch Linux - Software 0 12-27-2004 02:18 PM
error when installing gift: error: cannot compute sizeof (short), 77 v1pEr Linux - Software 5 11-04-2004 02:43 AM
glibc error on 2nd pass buffed317 Linux From Scratch 3 09-05-2004 07:33 AM


All times are GMT -5. The time now is 10:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration