LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-12-2006, 09:50 PM   #1
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Compiling gcc-4.1.0 on a system with glibc-2.4 installed


So, I managed to get glibc-2.4 installed and everything works fine except for a compile error I've been getting when I build gcc-4.1.0.

Here is the error:

Code:
ranlib ./libgcov.a
./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -L/home/tom/build/gccobj/gcc/../ld -O2  -O2 -g -O2   -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc-4.1.0/gcc -I../../gcc-4.1.0/gcc/. -I../../gcc-4.1.0/gcc/../include -I../../gcc-4.1.0/gcc/../libcpp/include  -fexceptions -fvisibility=hidden -DHIDE_EXPORTS -c ../../gcc-4.1.0/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -L/home/tom/build/gccobj/gcc/../ld -O2  -O2 -g -O2   -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc-4.1.0/gcc -I../../gcc-4.1.0/gcc/. -I../../gcc-4.1.0/gcc/../include -I../../gcc-4.1.0/gcc/../libcpp/include  -fexceptions -fvisibility=hidden -DHIDE_EXPORTS -c ../../gcc-4.1.0/gcc/unwind-dw2-fde-glibc.c -o libgcc/./unwind-dw2-fde-glibc.o
In file included from ../../gcc-4.1.0/gcc/unwind-dw2-fde-glibc.c:62:
../../gcc-4.1.0/gcc/unwind-dw2-fde.c:53: warning: missing braces around initializer
../../gcc-4.1.0/gcc/unwind-dw2-fde.c:53: warning: (near initialization for 'object_mutex.__data')
../../gcc-4.1.0/gcc/unwind-dw2-fde.c:53: error: '__LOCK_INITIALIZER' undeclared here (not in a function)
../../gcc-4.1.0/gcc/unwind-dw2-fde.c:53: warning: missing initializer
../../gcc-4.1.0/gcc/unwind-dw2-fde.c:53: warning: (near initialization for 'object_mutex.__data.__nusers')
make[3]: *** [libgcc/./unwind-dw2-fde-glibc.o] Error 1
make[3]: Leaving directory `/home/tom/build/gccobj/gcc'
make[2]: *** [libgcc.a] Error 2
make[2]: Leaving directory `/home/tom/build/gccobj/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/home/tom/build/gccobj/gcc'
make: *** [bootstrap-lean] Error 2
Has any else attempted building gcc-4.1.0 on a system with glibc-2.4 already installed? If so, have you had any success?

Peace...
 
Old 04-12-2006, 10:14 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
you did
--enable-threads=posix ?
 
Old 04-12-2006, 10:33 PM   #3
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by foo_bar_foo
you did
--enable-threads=posix ?
Yep, at first. Then I re-ran configure without --enable-threads.

Peace...
 
Old 04-13-2006, 12:56 AM   #4
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Original Poster
Rep: Reputation: 30
Well, it looks like an issue with the current gcc-4.1.0 release. I'm building a gcc-4.1 snapshot dated 04072006 and I'm in the stage2 part of the build and all is well.

I'll update this thread as I discover more.

Peace...
 
Old 04-13-2006, 01:58 PM   #5
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Original Poster
Rep: Reputation: 30
Well, I got gcc-20060407 built against glibc-2.4. It reports itself as gcc 4.1.1, so I'm thinking the next maintenance release of gcc-4.1 will work fine.

I couldn't get the java frontend (GCJ) built, but the C and C++ frontends built fine.

Peace...
 
Old 12-22-2006, 07:27 PM   #6
vas77
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Rep: Reputation: 0
gcc 4.1.0 with glibc2.4

Can you post how you resolved this problem?

I've tried the newer gcc 4.1.1 with glibc2.5 and it has the same problem.

Thanks.

In file included from ../../gcc-4.1.0/gcc/unwind-dw2-fde-glibc.c:435:
../../gcc-4.1.0/gcc/unwind-dw2-fde.c:53: warning: missing braces around initializer
../../gcc-4.1.0/gcc/unwind-dw2-fde.c:53: warning: (near initialization for 'object_mutex.__data'
../../gcc-4.1.0/gcc/unwind-dw2-fde.c:53: error: '__LOCK_INITIALIZER' undeclared here (not in a f
../../gcc-4.1.0/gcc/unwind-dw2-fde.c:53: warning: missing initializer
../../gcc-4.1.0/gcc/unwind-dw2-fde.c:53: warning: (near initialization for 'object_mutex.__data. ')
make[2]: *** [libgcc/./unwind-dw2-fde-glibc.o] Error 1
 
Old 12-26-2006, 03:33 AM   #7
us_ed
Member
 
Registered: Nov 2006
Posts: 54

Rep: Reputation: 15
Hi all
I am install FC4,but not install gcc.
When i am look system,i found gcc-4.0.0
I will install gcc-4.1.1.
How i had reinstall gcc-4.1.1
 
  


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
Compiling gcc without any gcc installed my_kappa Linux - Software 5 01-30-2006 12:15 AM
Compiling glibc-2.3.5 on RedHat8 with gcc 3.3.4 Minlexx Linux - Newbie 4 09-27-2005 03:22 PM
Compiling glibc-2.3.5 or glibc 2.3.5-r1 on Gentoo fails ghrellin Linux - Software 2 07-19-2005 01:01 AM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 11:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:11 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