LinuxQuestions.org
Help answer threads with 0 replies.
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 02-13-2007, 07:53 PM   #1
RChickenMan
LQ Newbie
 
Registered: Feb 2007
Location: Blacksburg, VA
Distribution: Ubuntu 6.10, currently working on building Linux From Scratch
Posts: 1

Rep: Reputation: 0
Cannot compile glibc-2.3.6


Hi,

Quick introduction- I've been running Linux as my main OS for several months by now and decided I wanted to get to know the operating system better. I use Ubuntu and loved tinkering around to get things to work the way I want them to, but then I reached point where everything worked and I said, "Great... Now what?" So, I decided to start working on a LFS system. Anyways, here is my issue.

When trying to compile glibc-2.3.6 (see chapter 5.6, LFS book version 6.2), gcc throws errors. I assume I am missing some kind of library, but couldn't find anything specifically mentioned in the prerequisites as described by the book. Here is the output from gcc:

Code:
lfs@lappiex86:/mnt/lfs/sources/glibc-build$ make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.6 objdir=`pwd` all
make[1]: Entering directory `/mnt/lfs/sources/glibc-2.3.6'
make  -C csu subdir_lib
make[2]: Entering directory `/mnt/lfs/sources/glibc-2.3.6/csu'
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.6/csu'
make[2]: Entering directory `/mnt/lfs/sources/glibc-2.3.6/csu'
gcc -B/tools/bin/ version.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       -DHAVE_INITFINI -o /mnt/lfs/sources/glibc-build/csu/version.o -MD -MP -MF /mnt/lfs/sources/glibc-build/csu/version.o.dt -MT /mnt/lfs/sources/glibc-build/csu/version.o
In file included from version.c:33:
/mnt/lfs/sources/glibc-build/csu/version-info.h:2: error: missing terminating " character
/mnt/lfs/sources/glibc-build/csu/version-info.h:3: error: missing terminating " character
version.c:40: error: syntax error before string constant
make[2]: *** [/mnt/lfs/sources/glibc-build/csu/version.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.6/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.6'
make: *** [all] Error 2
lfs@lappiex86:/mnt/lfs/sources/glibc-build$ make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.6 objdir=`pwd` all
make[1]: Entering directory `/mnt/lfs/sources/glibc-2.3.6'
make  -C csu subdir_lib
make[2]: Entering directory `/mnt/lfs/sources/glibc-2.3.6/csu'
gcc -B/tools/bin/ version.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       -DHAVE_INITFINI -o /mnt/lfs/sources/glibc-build/csu/version.o -MD -MP -MF /mnt/lfs/sources/glibc-build/csu/version.o.dt -MT /mnt/lfs/sources/glibc-build/csu/version.o
In file included from version.c:33:
/mnt/lfs/sources/glibc-build/csu/version-info.h:2: error: missing terminating " character
/mnt/lfs/sources/glibc-build/csu/version-info.h:3: error: missing terminating " character
version.c:40: error: syntax error before string constant
make[2]: *** [/mnt/lfs/sources/glibc-build/csu/version.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.6/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.6'
make: *** [all] Error 2
Thank you for any help you may be able to provide.
 
Old 02-25-2007, 03:08 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
That's a syntax error in version.c.

Are you using a shell other than bash? I found a similar problem in the LFS mail archives. Here's a link
 
  


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
cannot compile glibc levicc00123 Slackware 15 04-20-2005 08:28 PM
glibc compile error Kroenecker Linux From Scratch 11 07-20-2004 01:48 AM
Does anyone know how to re-compile glibc ? oskernel Programming 1 10-18-2003 03:29 AM
Problems with Glibc Compile Shak Linux From Scratch 2 07-03-2003 04:05 PM
GLIBC-2.3 compile or RPM albracco Linux - General 1 01-25-2003 09:56 PM


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

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