LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   error compiling Glibc-2.3.6 (https://www.linuxquestions.org/questions/linux-from-scratch-13/error-compiling-glibc-2-3-6-a-490291/)

meital 10-07-2006 06:11 AM

error compiling Glibc-2.3.6
 
Code:

In file included from version.c:33:
/home/lfs/glibc-build/csu/version-info.h:2: error: missing terminating " character
/home/lfs/glibc-build/csu/version-info.h:3: error: missing terminating " character
/home/lfs/glibc-build/csu/version-info.h:4: error: expected ',' or ';' before string constant
make[2]: *** [/home/lfs/glibc-build/csu/version.o] Error 1
make[2]: Leaving directory `/home/lfs/glibc-2.3.6/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/home/lfs/glibc-2.3.6'
make: *** [all] Error 2

Code:

cat /home/lfs/glibc-build/csu/version-info.h
"Compiled on a Linux 2.6.17-10 system on 2006-10-07.\n"
"Available extensions:
"
"      GNU libio by Per Bothner\n"
"      crypt add-on version 2.1 by Michael Glad and others\n"
"      GNU Libidn by Simon Josefsson\n"
"      Native POSIX Threads Library by Ulrich Drepper et al\n"
"      BIND-8.2.3-T5B\n"
"      NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk\n"

what should i do with it?

Vitalie Ciubotaru 10-08-2006 05:41 PM

I've got no knowlegde of programming, but I can read some English.
Didn't it say
Code:

missing terminating " character
in strings 2 and 3? Why not just add this character and see what happens?
I might be wrong though.

meital 10-09-2006 09:01 AM

Quote:

Originally Posted by Vitalie Ciubotaru
I've got no knowlegde of programming, but I can read some English.
Didn't it say
Code:

missing terminating " character
in strings 2 and 3? Why not just add this character and see what happens?
I might be wrong though.

I did add it. It didn't help, and when I compiled it, it deleted what I added.

desimo 01-10-2007 07:06 PM

I am getting precisely the same error, did you ever find out the problem?

EDIT: Just to update - I'm now realizing that maybe I need the CLFS project because my processor is a 64-bit architecture. May update again for posterity's sake...

BittaBrotha 01-12-2007 08:17 AM

Can't you use the x86 version for a 64bit system or is it better to go with the x86_64?

Just curious, since I'm thinking of trying LFS.

Thnx.

desimo 01-12-2007 11:45 PM

Well, when I tried the CLFS book I had more problems even than the orig. LFS book. I think the x86 version should work on all i386 compatible processors, including my AMD64, so I started from scratch-- literally-- with the first LFS book...

I've only managed to reproduce the error under quite different circumstances... Before I ask a more formal question I'm going to try a couple more things to see if I can isolate the problem? The experiment has already taught me enough that I'd like to see it pay off!

redeye1 02-02-2007 09:39 PM

I am using LFS Live CD-x86-6.2-3 as a host system.
I have some problem in Glibc-2.3.6, when I compiled, it is going allright but when i run the command make check then it give me an 2error.
[code:]
gcc -B/tools/bin/ tst-atomic.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -mpreferred-stack-boundary=4 -I../include -I. -I/mnt/lfs/sources/glibc-build/csu -I.. -I../libio -I../nptl -I/mnt/lfs/sources/glibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.3/include -isystem /tools/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DNOT_IN_libc=1 -DHAVE_INITFINI -o /mnt/lfs/sources/glibc-build/csu/tst-atomic.o -MD -MP -MF /mnt/lfs/sources/glibc-build/csu/tst-atomic.o.dt -MT /mnt/lfs/sources/glibc-build/csu/tst-atomic.o
gcc -B/tools/bin/ -nostdlib -nostartfiles -r -o /mnt/lfs/sources/glibc-build/libc_pic.os \
-Wl,-d -Wl,--whole-archive /mnt/lfs/sources/glibc-build/libc_pic.a
/tools/bin/ld: final link failed: No space left on device
collect2: ld returned 1 exit status
make[2]: *** [/mnt/lfs/sources/glibc-build/libc_pic.os] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-build/glibc-2.3.6/csu'
make[1]: *** [csu/tests] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-build/glibc-2.3.6'
make: *** [check] Error 2
lfs:/mnt/lfs/sources/glibc-build$


Tell me what can i do next. Can i go to further step or stop it..
Thanx.

Dark_Helmet 02-25-2007 03:15 PM

For those with the version.c problem:
Here's a link to an email exchange about the version.c problem. It looks as though glibc depends on some bash features. It's worth taking a look at if the people having the problem weren't using bash when the error happened.

redeye1:
Quote:

Code:

/tools/bin/ld: final link failed: No space left on device
collect2: ld returned 1 exit status


That error indicates that you've run out of disk space on the hard drive you're working on. So you have two choices:
1. Assume that because the compile was ok that you don't need the tests. I would not suggest that since the LFS authors strongly encourage you to test glibc each time you build it (because it forms the foundation of your system)
2. Figure out how to get more disk space... remove source trees, strip debugging symbols from installed binaries, get a larger hard drive... something.

shevegen 03-01-2007 09:50 AM

"Why not just add this character and see what happens?"

I believe these kind of errors happen when some other files
are buggy or missing, but it is assumed by configure that they
are there.


All times are GMT -5. The time now is 02:12 AM.