LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   [Ubuntu] Older gcc Version (https://www.linuxquestions.org/questions/linux-server-73/%5Bubuntu%5D-older-gcc-version-4175422262/)

Siebenkeim 08-15-2012 03:46 PM

[Ubuntu] Older gcc Version
 
Hello,
i wanted the gcc 4.2.0 version so i downloaded them and extract with tar -vjxd gcc-4.2.0.tar.bz2 i get 2 folder gcc-build und gcc-4.2.0 i follow this instruction

http://claywood.lowtech.org/lifesaver.htm

and this instruction: http://www.linuxquestions.org/questi...ersion-190686/

By the second i get this error:
Code:

../.././gcc/crtstuff.c:348: error: expected â{â at end of input
make[3]: *** [crtbegin.o] Fehler 1
make[3]: Verlasse Verzeichnis '/var/www/vhosts/gcc_download/gcc-4.2.0/host-i686-pc-linux-gnu/gcc'
make[2]: *** [all-stage1-gcc] Fehler 2
make[2]: Verlasse Verzeichnis '/var/www/vhosts/gcc_download/gcc-4.2.0'
make[1]: *** [stage1-bubble] Fehler 2
make[1]: Verlasse Verzeichnis '/var/www/vhosts/gcc_download/gcc-4.2.0'
make: *** [all] Fehler 2

and by the first i get this error:
Code:

/bin/sh ../../gcc-4.2.0/gcc/../move-if-change tmp-macro_list macro_list
echo timestamp > s-macro_list
make[3]: *** Keine Regel vorhanden, um das Target »../../build-i686-pc-linux-gnu/fixincludes/fixincl«,
  benötigt von »stmp-fixinc«, zu erstellen.  Schluss.
make[3]: Verlasse Verzeichnis '/var/www/vhosts/gcc_download/gcc-build/gcc'
make[2]: *** [all-stage1-gcc] Fehler 2
make[2]: Verlasse Verzeichnis '/var/www/vhosts/gcc_download/gcc-build'
make[1]: *** [stage1-bubble] Fehler 2
make[1]: Verlasse Verzeichnis '/var/www/vhosts/gcc_download/gcc-build'
make: *** [bootstrap] Fehler 2

I hope you can help me and sorry for my bad english

knudfl 08-16-2012 12:05 PM

Welcome to LQ.

Which Ubuntu version ?
AFAIK, old gcc is more than difficult to build on the 3 latest versions.

And : The two links you show are dated year 2004 :
Not valid for gcc-4.2.0.

.

Siebenkeim 08-16-2012 12:16 PM

Thank you for your answer i thinked that the tutorials for every gcc version and the ubuntu version that i have is

Ubuntu 12.04 LTS

knudfl 08-16-2012 12:26 PM

A 32bits OS ?

The command : 'uname -m' will show.

( I have some .deb packages, gcc / g++ version 4.1.2, 32bits (i386)
made on Ubuntu 11.04, modified to 12.04, may be you can use those ? )

Siebenkeim 08-16-2012 12:31 PM

i686 im a newbie in Linux i only want gcc version 4.2.0 :D

EDIT: I want 4.2.0 becaue the Unity Masterserver (Unity is a game engine), and i read that i can compiled them only with 4.2.0 because of RakNet 3.0

knudfl 08-16-2012 12:41 PM

How about gcc version 4.2.4 ?

That's a bug fix version of 4.2.0

Siebenkeim 08-16-2012 12:42 PM

Ok i can test it how i get this? And install

./configure
make
make install

???

knudfl 08-16-2012 01:00 PM

Please provide a direct download link to "Unity Masterserver".
And the name of the file you have downloaded.


There can be used no ./configure in gcc.
GCC requires a build folder outside the source folder gcc-4.2.x/.
Code:

../gcc-4.2.4/configure --prefix=/usr --program-suffix=-4.2 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++
But it won't work on Ubuntu 12.04, AFAIK.

.

Siebenkeim 08-16-2012 01:03 PM

Here you can download the Masterserver: http://www.unity3d.com/master-server/index.html

Quote:

But it won't work on Ubuntu 12.04, AFAIK.
What would be work?

knudfl 08-16-2012 01:27 PM

OK, MasterServer-2.0.1f1 :

sudo apt-get install g++-4.4

Please edit the MasterServer-2.0.1f1/Makefile, line 4 to :
CC=g++-4.4

... and run 'make' :
The executable file 'MasterServer' gets created within a few seconds.

.

Siebenkeim 08-16-2012 01:53 PM

Ok Thank you i get a Masterserver file :D Yet i have one question, i think this question is stupid but iam a newbie, how i can start/open the file?

Ok i open this with ./MasterServer

Thank you for your time :D


All times are GMT -5. The time now is 12:54 PM.