LinuxQuestions.org
Review your favorite Linux distribution.
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 03-24-2004, 04:06 PM   #1
davemar
Member
 
Registered: Mar 2004
Location: UK
Posts: 62

Rep: Reputation: 15
Unhappy Can't even configure glib-2.3.2 now!


After having some problems trying to make install glibc at the chapter 6 stage, I decided to start again from fresh at the beginning of the chapter.

When I do the configure ( ../glibc-2.3.2/configure ..... etc) it bombs out with this error:-

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

Why's this happening?

I'm rather cheesed off that I've got less far than I did before!
 
Old 03-24-2004, 04:19 PM   #2
landoB
LQ Newbie
 
Registered: Mar 2004
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
i'd write a small prog to see if mabey the glib src is experiencing overflow issuses with your sys. probly just a small mod to the code is needed. just a guess though
 
Old 03-25-2004, 08:21 AM   #3
davemar
Member
 
Registered: Mar 2004
Location: UK
Posts: 62

Original Poster
Rep: Reputation: 15
Looking through the config.log file, it appears that configure writes a little C program that checks the size of a double, and this is where it finds it can't compute the double size. I assume it is using the gcc-3.3.1 I compiled from the chapter 5 to do this? Maybe something in there could be the cause of the problem?
 
Old 03-28-2004, 03:57 PM   #4
davemar
Member
 
Registered: Mar 2004
Location: UK
Posts: 62

Original Poster
Rep: Reputation: 15
I copied the little C program that configure uses to test double to a file called tmp.c and compiled it using: "gcc -o tmp tmp.c", but get an error on compile:-

collect2: cannot find `ld'

which suggests to me, something to do with libraries hasn't been installed or set correctly previously.
Any ideas anyone?
 
Old 04-19-2004, 09:45 AM   #5
angel-bd
LQ Newbie
 
Registered: Apr 2004
Posts: 3

Rep: Reputation: 0
Question

-----------------------------------
root@mail:/tmp/glibc-2.3.2# ./configure
configure: error: you must configure in a separate build directory
root@mail:/tmp/glibc-2.3.2# cd ..
root@mail:/tmp# mkdir glibc-build
root@mail:/tmp# cd glibc-build/
root@mail:/tmp/glibc-build# ../glibc-2.3.2/configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking sysdep dirs... sysdeps/i386/elf 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/local/bin/install -c
checking whether ln -s works... yes
checking for pwd... /usr/local/bin/pwd
checking for gcc... gcc
[...]
checking for long double... yes
checking size of long double... configure: error: cannot compute sizeof (long double), 77
See `config.log' for more details.
root@mail:/tmp/glibc-build#
-----------------------------------

what to do??
 
Old 04-19-2004, 09:48 AM   #6
angel-bd
LQ Newbie
 
Registered: Apr 2004
Posts: 3

Rep: Reputation: 0
-----------------------------------
root@mail:/tmp# cd gcc-build/
root@mail:/tmp/gcc-build# ../gcc-3.3.3/configure
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /tmp/gcc-build using "mt-frag"
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: section .debug_pubnames [0000000000000000 -> 000000000000001a] overlaps section .debug_aranges [0000000000000000 -> 000000000000001f]
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: section .debug_info [0000000000000000 -> 000000000000005d] overlaps section .debug_aranges [0000000000000000 -> 000000000000001f]
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: section .debug_abbrev [0000000000000000 -> 0000000000000033] overlaps section .debug_aranges [0000000000000000 -> 000000000000001f]
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: section .debug_line [0000000000000000 -> 0000000000000039] overlaps section .debug_aranges [0000000000000000 -> 000000000000001f]
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: section .debug_frame [0000000000000000 -> 0000000000000033] overlaps section .debug_aranges [0000000000000000 -> 000000000000001f]
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: conftest: Not enough room for program headers (allocated 7, need 8)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
root@mail:/tmp/gcc-build#
-----------------------------------

What to do?
 
Old 04-20-2004, 05:25 AM   #7
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
Quote:
Originally posted by davemar
I copied the little C program that configure uses to test double to a file called tmp.c and compiled it using: "gcc -o tmp tmp.c", but get an error on compile:-

collect2: cannot find `ld'

which suggests to me, something to do with libraries hasn't been installed or set correctly previously.
Any ideas anyone?
Check if "/static/bin/ld" exists, and if so, check if it's staticly linked... (command: "file /static/bin/ld"). if not, rebuild it staticly (as done in chapter 5)

hope this helps,
greetz,
.-=~ iluvatar ~=-.
 
Old 04-20-2004, 05:32 AM   #8
angel-bd
LQ Newbie
 
Registered: Apr 2004
Posts: 3

Rep: Reputation: 0
root@mail:~# /static/bin/ld
-bash: /static/bin/ld: No such file or directory
root@mail:~# whereis ld
ld: /usr/bin/ld /usr/local/bin/ld /usr/man/man1/ld.1.gz /usr/share/man/man1/ld.1.gz
root@mail:~# /usr/bin/ld -V
GNU ld version 2.11.90.0.19 (with BFD 2.11.90.0.19)
Supported emulations:
elf_i386
i386linux
root@mail:~# /usr/local/bin/ld -V
GNU ld version 2.9 (with BFD 2.9)
Supported emulations:
elf_i386
i386linux
root@mail:~#

Now what?
 
  


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
GLIB problem with ./configure komadich Linux - Newbie 1 12-02-2004 03:41 AM
glib error on ./configure speel Mandriva 2 08-28-2004 04:28 PM
glib-2.3.3 not recognized by ./configure tektone Linux - Software 1 03-01-2004 05:16 PM
I did the ./configure on glib-2.2.0 but when I try to 'make' I get this... ooagentbender Linux - Newbie 6 12-30-2003 12:51 PM
glib-2.2.3. configure error eye Linux - Software 1 09-03-2003 09:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:39 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration