LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Can't even configure glib-2.3.2 now! (https://www.linuxquestions.org/questions/linux-from-scratch-13/cant-even-configure-glib-2-3-2-now-161939/)

davemar 03-24-2004 04:06 PM

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!

landoB 03-24-2004 04:19 PM

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:rolleyes:

davemar 03-25-2004 08:21 AM

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?

davemar 03-28-2004 03:57 PM

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?

angel-bd 04-19-2004 09:45 AM

-----------------------------------
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?? :Pengy:

angel-bd 04-19-2004 09:48 AM

-----------------------------------
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?

iluvatar 04-20-2004 05:25 AM

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 ~=-.

angel-bd 04-20-2004 05:32 AM

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?


All times are GMT -5. The time now is 01:24 PM.