LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-19-2006, 03:35 PM   #1
Helskov
Member
 
Registered: Jan 2005
Location: Denmark
Distribution: PclinuxOS 2007
Posts: 47

Rep: Reputation: 15
Problems with glibc-2.3.4


Hello

I have problems compiling glibc-2.3.4
I have no problems when i do the "configure"
But when i try make i get the following.
I have no idea whats wrong. :-(
Im using ver 6.1.1 of lfs.
And compiling with gcc 4.0 but 3.4 is also installed. Tried to uninstall 4.0 but then i cant install gcc without installing gcc 4.0
My host system is ubuntu 5.10

soren@ubuntu:/mnt/lfs/glibc-build$ sudo make
Password:
make -r PARALLELMFLAGS="" CVSOPTS="" -C /mnt/lfs/sources/glibc-2.3.4 objdir=`pwd` all
make[1]: Entering directory `/mnt/lfs/sources/glibc-2.3.4'
make -C csu subdir_lib
make[2]: Entering directory `/mnt/lfs/sources/glibc-2.3.4/csu'
make[2]: Warning: File `/mnt/lfs/glibc-build/csu/version.os.d' has modification time 43 s in the future
make[2]: Nothing to be done for `subdir_lib'.
make[2]: warning: Clock skew detected. Your build may be incomplete.
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.4/csu'
make -C iconv subdir_lib
make[2]: Entering directory `/mnt/lfs/sources/glibc-2.3.4/iconv'
make[2]: Warning: File `/mnt/lfs/glibc-build/iconv/gconv.o.d' has modification time 44 s in the future
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.4/iconv'
make[2]: Entering directory `/mnt/lfs/sources/glibc-2.3.4/iconv'
gcc -B/tools/bin/ gconv.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -mpreferred-stack-boundary=2 -I../include -I. -I/mnt/lfs/glibc-build/iconv -I.. -I../libio -I../nptl -I/mnt/lfs/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 /usr/lib/gcc/i486-linux-gnu/4.0.2/include -isystem /tools/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /mnt/lfs/glibc-build/iconv/gconv.o -MD -MP -MF /mnt/lfs/glibc-build/iconv/gconv.o.dt -MT /mnt/lfs/glibc-build/iconv/gconv.o
In file included from ../include/pthread.h:1,
from ../nptl/sysdeps/pthread/bits/libc-lock.h:23,
from ./gconv_int.h:25,
from gconv.c:23:
../nptl/sysdeps/pthread/pthread.h:664: error: array type has incomplete element type
make[2]: *** [/mnt/lfs/glibc-build/iconv/gconv.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.4/iconv'
make[1]: *** [iconv/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.4'
make: *** [all] Error 2
soren@ubuntu:/mnt/lfs/glibc-build$


Hope someone can help me out.

Last edited by Helskov; 04-19-2006 at 03:37 PM.
 
Old 04-20-2006, 09:44 AM   #2
opioid
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Ubuntu
Posts: 124

Rep: Reputation: 15
Please post the output of
gcc -v
 
Old 04-20-2006, 11:20 AM   #3
Helskov
Member
 
Registered: Jan 2005
Location: Denmark
Distribution: PclinuxOS 2007
Posts: 47

Original Poster
Rep: Reputation: 15
soren@ubuntu:~$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-shared --with-system-zlib --libexecdir=/usr/lib --enable-nls --without-included-gettext --enable-threads=posix --program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
soren@ubuntu:~$
 
Old 04-20-2006, 11:27 AM   #4
opioid
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Ubuntu
Posts: 124

Rep: Reputation: 15
http://ubuntuforums.org/showthread.p...mplete+element

My guess is you need to find the gcc 3.* version and use that to compile

e.g.,

$ locate -r bin/gcc-3*

$ export CC=gcc-3.x

where x is the version found in the locate command...

To test that you have correctly set the CC environment variable, do
$ env |grep CC


The thing you are missing here is that gcc 4.0 is fairly unstable at the moment. HTH

/O

Last edited by opioid; 04-20-2006 at 11:30 AM.
 
Old 04-20-2006, 12:55 PM   #5
Helskov
Member
 
Registered: Jan 2005
Location: Denmark
Distribution: PclinuxOS 2007
Posts: 47

Original Poster
Rep: Reputation: 15
Hmm it doesnt work.
I get the same error.

The output from grep is:

soren@ubuntu:/$ env |grep CC
CC=gcc-3.4

Last edited by Helskov; 04-20-2006 at 12:56 PM.
 
Old 04-20-2006, 01:32 PM   #6
opioid
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Ubuntu
Posts: 124

Rep: Reputation: 15
Can you post the Makefile in this directory:
/mnt/lfs/sources/glibc-2.3.4/iconv
 
Old 04-20-2006, 01:43 PM   #7
Helskov
Member
 
Registered: Jan 2005
Location: Denmark
Distribution: PclinuxOS 2007
Posts: 47

Original Poster
Rep: Reputation: 15
# Makefile for iconv.
#
subdir := iconv

include ../Makeconfig

headers = iconv.h gconv.h
routines = iconv_open iconv iconv_close \
gconv_open gconv gconv_close gconv_db gconv_conf \
gconv_builtin gconv_simple gconv_trans gconv_cache
ifeq ($(elf),yes)
routines += gconv_dl
else
CFLAGS-gconv_db.c = -DSTATIC_GCONV
CFLAGS-gconv_cache.c = -DSTATIC_GCONV
CFLAGS-gconv_simple.c = -DSTATIC_GCONV
endif

vpath %.c ../locale/programs ../intl

iconv_prog-modules = iconv_charmap charmap charmap-dir linereader \
dummy-repertoire simple-hash xstrdup xmalloc
iconvconfig-modules = strtab xmalloc hash-string
extra-objs = $(iconv_prog-modules:=.o) $(iconvconfig-modules:=.o)
CFLAGS-iconv_prog.c = -I../locale/programs
CFLAGS-iconv_charmap.c = -I../locale/programs
CFLAGS-dummy-repertoire.c = -I../locale/programs
CFLAGS-charmap.c = -DCHARMAP_PATH='"$(i18ndir)/charmaps"' \
-DDEFAULT_CHARMAP=null_pointer -DNEED_NULL_POINTER
CFLAGS-linereader.c = -DNO_TRANSLITERATION
CFLAGS-simple-hash.c = -I../locale

tests = tst-iconv1 tst-iconv2 tst-iconv3 tst-iconv5

distribute = gconv_builtin.h gconv_int.h loop.c skeleton.c iconv_prog.h \
iconv_charmap.c dummy-repertoire.c gconv_charset.h strtab.c \
iconvconfig.h

others = iconv_prog iconvconfig
install-others = $(inst_bindir)/iconv
install-sbin = iconvconfig

CFLAGS-gconv_cache.c += -DGCONV_DIR='"$(gconvdir)"'
CFLAGS-gconv_conf.c = -DGCONV_PATH='"$(gconvdir)"'
CFLAGS-iconvconfig.c = -DGCONV_PATH='"$(gconvdir)"' -DGCONV_DIR='"$(gconvdir)"'

CPPFLAGS-iconv_prog = -DNOT_IN_libc
CPPFLAGS-iconv_charmap = -DNOT_IN_libc
CPPFLAGS-iconvconfig = -DNOT_IN_libc
CPPFLAGS-linereader = -DNOT_IN_libc
CPPFLAGS-strtab = -DNOT_IN_libc
CPPFLAGS-charmap = -DNOT_IN_libc
CPPFLAGS-charmap-dir = -DNOT_IN_libc

include ../Rules

$(inst_bindir)/iconv: $(objpfx)iconv_prog $(+force)
$(do-install-program)

$(objpfx)iconv_prog: $(iconv_prog-modules:%=$(objpfx)%.o)
$(objpfx)iconvconfig: $(iconvconfig-modules:%=$(objpfx)%.o)

ifneq ($(cross-compiling),yes)
xtests: test-iconvconfig
endif

.PHONY: test-iconvconfig
test-iconvconfig: /dev/null $(objpfx)iconvconfig
tmp=$(objpfx)gconv-modules.cache.$$$$; \
rm -f $$tmp; \
$(make-test-out) --output=$$tmp --nostdlib $(inst_gconvdir) && \
cmp $$tmp $(inst_gconvdir)/gconv-modules.cache && \
rm -f $$tmp
 
Old 04-20-2006, 02:58 PM   #8
Helskov
Member
 
Registered: Jan 2005
Location: Denmark
Distribution: PclinuxOS 2007
Posts: 47

Original Poster
Rep: Reputation: 15
Got it to work.

gcc-4.0 was the problem.

I deleted gcc in /usr/bin
and created a new symlink to gcc-3.4 and it now works beautifully

Thx for your kindly help!
 
Old 04-20-2006, 06:28 PM   #9
opioid
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Ubuntu
Posts: 124

Rep: Reputation: 15
No problem.

Although maybe you should do an apt-get remove gcc-4? Simply deleting offending binaries is not a good habit to get into.

/O
 
Old 07-12-2006, 10:19 AM   #10
Petaris
LQ Newbie
 
Registered: Jul 2006
Location: NW Wisconsin
Distribution: Gentoo, Debian, Ubuntu, Zenwalk
Posts: 2

Rep: Reputation: 0
Just FYI, he deleted the gcc symlink not the gcc-4.0 binary (that would still exist in /usr/bin), all he did was point the symlink /usr/bin/gcc to /usr/bin/gcc-3.4 instead.
 
Old 07-12-2006, 10:29 AM   #11
opioid
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Ubuntu
Posts: 124

Rep: Reputation: 15
That's true, but all things being equal, if he's not using gcc-4.0, he should get rid of it.

Last edited by opioid; 07-12-2006 at 10:31 AM.
 
  


Reply



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 problems sir_tank Fedora 2 10-21-2005 10:36 PM
glibc problems Icarus315 Linux - Games 1 03-11-2005 02:36 PM
Using LD_ASSUME_KERNEL - problems with glibc MG-Cloud Linux - Software 0 05-17-2004 10:41 PM
glibc install problems vamsee Linux - Software 0 09-06-2003 12:59 AM
Problems building glibc-2.3.2 CodeRed Linux - Software 0 07-10-2003 08:45 AM

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

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

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