LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-21-2010, 08:21 AM   #1
grizzlysmit
LQ Newbie
 
Registered: Sep 2010
Posts: 8

Rep: Reputation: 2
Question ok I'm trying to compile gcc from the svn trunk and I get this error


Quote:
/usr/lib/gcc/i486-linux-gnu/4.4.3/include/stddef.h:149: error: multiple types in one declaration
/usr/lib/gcc/i486-linux-gnu/4.4.3/include/stddef.h:149: error: declaration does not declare anything
make[3]: *** [charset.o] Error 1
make[3]: Leaving directory `/home/grizzlysmit/SVN/gcc/host-i686-pc-linux-gnu/libcpp'
make[2]: *** [all-stage1-libcpp] Error 2
make[2]: Leaving directory `/home/grizzlysmit/SVN/gcc'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/grizzlysmit/SVN/gcc'
make: *** [all] Error 2


I'm using ubuntu Lucid 10.04

anyone know what's going on and how to fix??
 
Old 09-21-2010, 06:54 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Gcc requires a build directory outside the source directory.
Compiling the source directly will not work. If you did that :
Your source cannot be reused, please start from scratch with ...
svn checkout svn://gcc.gnu.org/svn/gcc/trunk gcc-svn(-rev.164497).
cd gcc-svn/ && mkdir -v ../gcc-build && cd ../gcc-build
Code:
../gcc-svn/configure --prefix=/usr/local/gcc-svn --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --disable-multilib --with-system-zlib
make && sudo make install

The command /usr/local/gcc-svn/bin/gcc -v
replies : gcc version 4.6.0 20100921 (experimental) (GCC)


P.S.: Gcc from svn is the upcomming gcc-4.6, AFAIK.
Is being written just now. Updates about three times an hour.
(There were about 20 new revision numbers the eight hours, I updated.)
Version "164497" is the first one I have seen today/yesterday, that works.
( '164497' : Tested on Ubuntu 10.04 Lucid, 64 Bits.)
......
PPS. : Welcome to LQ. .. .. ..

Last edited by knudfl; 09-21-2010 at 06:58 PM.
 
Old 09-24-2010, 08:34 AM   #3
grizzlysmit
LQ Newbie
 
Registered: Sep 2010
Posts: 8

Original Poster
Rep: Reputation: 2
Thumbs up

Quote:
Originally Posted by knudfl View Post
Gcc requires a build directory outside the source directory.
Compiling the source directly will not work. If you did that :
Your source cannot be reused, please start from scratch with ...
svn checkout svn://gcc.gnu.org/svn/gcc/trunk gcc-svn(-rev.164497).
cd gcc-svn/ && mkdir -v ../gcc-build && cd ../gcc-build
Code:
../gcc-svn/configure --prefix=/usr/local/gcc-svn --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --disable-multilib --with-system-zlib
make && sudo make install

The command /usr/local/gcc-svn/bin/gcc -v
replies : gcc version 4.6.0 20100921 (experimental) (GCC)


P.S.: Gcc from svn is the upcomming gcc-4.6, AFAIK.
Is being written just now. Updates about three times an hour.
(There were about 20 new revision numbers the eight hours, I updated.)
Version "164497" is the first one I have seen today/yesterday, that works.
( '164497' : Tested on Ubuntu 10.04 Lucid, 64 Bits.)
......
PPS. : Welcome to LQ. .. .. ..
Thankyou that worked

PPS thx for your kind welcome
 
  


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
Locking a sub directory in Trunk of SVN Guptarulz Linux - Desktop 1 11-25-2009 11:16 AM
Compile error, 'H5G_obj_t' does not name a type, is gcc 4.3 incompatible with gcc 3 ? samrat_rao Linux - Software 5 03-03-2009 02:28 PM
FLTK 2.0 SVN r6191 Compile Error nickbird Programming 2 09-07-2008 04:25 AM
Make error while compiling gcc-4.2.3 (LFS-SVN) corbis_demon Linux From Scratch 14 07-25-2008 10:58 AM
Error trying to compile drm-trunk chozas Linux - Laptop and Netbook 0 08-30-2004 04:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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