LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-29-2005, 01:32 PM   #1
emf
LQ Newbie
 
Registered: Nov 2004
Location: Costa Rica
Distribution: Debian/FC3
Posts: 14

Rep: Reputation: 0
upgrading from gcc-3.3.3 to 3.4.4 from source


I am trying install gcc-3.4.4 from source. I download and untar, copy the directory gcc-3.4.4 to the folder /usr/local/src. Then I run ./configure, which finishes without any problem. I then type make, and it shows the following error:

make[1]: bison: Command not found
make[1]: [java/parse.c] Error 127 (ignored)
gcc -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -I. -Ijava -I. -I./java -I./../include java/parse.c -o java/parse.o
gcc: java/parse.c: No such file or directory
gcc: no input files
make[1]: *** [java/parse.o] Error 1
make[1]: Leaving directory `/usr/local/src/gcc-3.4.4/gcc'
make: *** [all-gcc] Error 2

Am I missing packages or is it a different problem?

Please let me know what other information I should post to make it easier for someone to help me.

Thank you.
 
Old 05-29-2005, 05:55 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
It says on the first line of your error message
bison: Command not found
You should apt-get install bison and probably flex too. Also, do you need a java compiler? You might want to configure gcc with --enable-languages=c,c++
 
Old 05-29-2005, 07:22 PM   #3
emf
LQ Newbie
 
Registered: Nov 2004
Location: Costa Rica
Distribution: Debian/FC3
Posts: 14

Original Poster
Rep: Reputation: 0
Thank you for your reply.

popotito:/home/ernesto# apt-get install bison
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
bison: Depends: m4 but it is not going to be installed
cpp-3.3: Depends: gcc-3.3-base (< 1:3.3.4) but 1:3.3.5-8 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

popotito:/home/ernesto# apt-get install m4
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
cpp-3.3: Depends: gcc-3.3-base (< 1:3.3.4) but 1:3.3.5-8 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

popotito:/home/ernesto# apt-get install flex
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
cpp-3.3: Depends: gcc-3.3-base (< 1:3.3.4) but 1:3.3.5-8 is to be installed
flex: Depends: m4 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

popotito:/home/ernesto# gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.3/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.3 (Debian 20040401)

I think if I try "apt-get -f install" with no packages, I will uninstall many packages that I might need, like x-window-system-core and a bunch from gnome. Do I have to run this command and install those again?

Thank you
 
Old 05-30-2005, 02:11 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
don't have a solution for your apt problem, but running "./configure" on gcc will not get you very far. there are some options you need to include to have a decent compiler. the one you are running now was configured with:

Code:
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
you should probably stick with that, and make a package of your build when you are done.
 
Old 06-01-2005, 02:29 AM   #5
emf
LQ Newbie
 
Registered: Nov 2004
Location: Costa Rica
Distribution: Debian/FC3
Posts: 14

Original Poster
Rep: Reputation: 0
I ran ./configure --enable-languages=c,c++ and everything was going fine with make until the following error appeared.

checking how to run the C++ preprocessor... (cached) /home/ernesto/gcc-3.4.4/gcc/xgcc -shared-libgcc -B/home/ernesto/gcc-3.4.4/gcc/ -nostdinc++ -L/home/ernesto/gcc-3.4.4/i686-pc-linux-gnu/libstdc++-v3/src -L/home/ernesto/gcc-3.4.4/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -E
configure: error: C++ preprocessor " /home/ernesto/gcc-3.4.4/gcc/xgcc -shared-libgcc -B/home/ernesto/gcc-3.4.4/gcc/ -nostdinc++ -L/home/ernesto/gcc-3.4.4/i686-pc-linux-gnu/libstdc++-v3/src -L/home/ernesto/gcc-3.4.4/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -E" fails sanity check
See `config.log' for more details.
make: *** [configure-target-libstdc++-v3] Error 1

config.log

configure:581: checking host system type
configure:602: checking target system type
configure:620: checking build system type
configure:675: checking for a BSD compatible install
configure:2866: checking for i686-pc-linux-gnu-ar
configure:2899: checking for ar
configure:2938: checking for i686-pc-linux-gnu-as
configure:2971: checking for as
configure:3010: checking for i686-pc-linux-gnu-dlltool
configure:3043: checking for dlltool
configure:3082: checking for i686-pc-linux-gnu-ld
configure:3115: checking for ld
configure:3154: checking for i686-pc-linux-gnu-nm
configure:3187: checking for nm
configure:3226: checking for i686-pc-linux-gnu-ranlib
configure:3259: checking for ranlib
configure:3298: checking for i686-pc-linux-gnu-windres
configure:3331: checking for windres
configure:3370: checking for i686-pc-linux-gnu-objcopy
configure:3403: checking for objcopy
configure:3442: checking for i686-pc-linux-gnu-objdump
configure:3475: checking for objdump
configure:3524: checking for i686-pc-linux-gnu-ar
configure:3557: checking for ar
configure:3596: checking for i686-pc-linux-gnu-as
configure:3629: checking for as
configure:3668: checking for i686-pc-linux-gnu-dlltool
configure:3701: checking for dlltool
configure:3740: checking for i686-pc-linux-gnu-ld
configure:3773: checking for ld
configure:3812: checking for i686-pc-linux-gnu-nm
configure:3845: checking for nm
configure:3884: checking for i686-pc-linux-gnu-ranlib
configure:3917: checking for ranlib
configure:3956: checking for i686-pc-linux-gnu-windres
configure:3989: checking for windres
configure:4056: checking whether to enable maintainer-specific portions of Makefiles


Before posting for help and trying to install gcc under the /usr/local/src directory, I had tried to do it on my home directory. I ran ./configure, make and make install, but things were not working. I ran make clean, erased the gcc-3.4.4 directory that was in my home directory, then copied the .tar.gz to /usr/local/src and tried to do it again. This is when I started posting for help.

I know I should have posted the whole story from the beginning, but just didn't think that it was necessary, since I thought make clean would do the trick. How do I get completely rid of the first install?
 
Old 06-01-2005, 05:55 AM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Quote:
Originally posted by __J
don't have a solution for your apt problem, but running "./configure" on gcc will not get you very far. there are some options you need to include to have a decent compiler. the one you are running now was configured with:

Code:
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
you should probably stick with that, and make a package of your build when you are done.
you either needed to make a package of the build or keep the source directory, deleting the source directory was not a good idea ( you can cd back into it and "make uninstall", note that not all packages will do this). also note the above configure command, ./configure --enable-languages=c,c++ is not enough, and the compiler produced will not be what you want ( you don't have to do the whole configure command above, for example if you just want the c & c++ front-ends, but you might want to at least throw in --enable-threads=posix, --enable-shared, and --enable-__cxa_atexit).
 
  


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
Upgrading gcc-3.4.3 from gcc-3.3.5 on Debian v3.1 MKSrivastava Debian 2 11-21-2005 10:09 PM
Upgrading GCC from 2.96 jared78 Linux - Software 6 05-11-2005 06:00 PM
Upgrading gcc The_Messiah Slackware 10 04-05-2005 01:26 AM
upgrading gcc abs Slackware 3 08-25-2004 08:57 PM
upgrading gcc ecastro Linux From Scratch 1 02-09-2004 10:29 AM

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

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