You are not logged in.

#1 2006-01-21 04:47:17

andrej.podzimek
Member
From: Zürich, Switzerland
Registered: 2005-04-10
Posts: 115

GCC

Hello everybody! I badly need a piece of advice on ABS. I decided to compile the current version of gcc using the ABS (just for fun smile). Unfortunately, it failed for some reason.

If I understand it well, an older version of GCC is compiled first, so that the newer one can be compiled. All went well until the second ./configure procedure started. It ended up saying that gcc (the one created in /var/abs/base/gcc/...) could not make executables. This was true. When I tried to launch it by hand (with a dummy source file), it claimed it could not find the cc1 executable. Nnothing amazing, for the cc1 was in the same directory, so there was no chance to find it somewhere in $PATH. I created a symlink to cc1 in /bin. (Such an approach is certainly incorrect and might lead to unpredictable behaviour... I know.) However, the makepkg failed again with the same error message.

I guess the problem is a little bit more complex. Some other executables are certainly needed. Unfortunately, the ./configure script did not show any details. I did not use any special compiler flags, the only change to the default settings was -pentium-m instead of -i686. What could have happened? Either I did something wrong or something is missing on my machine.

Please give me a hint if you know how to sort this out.

Offline

#2 2006-01-30 10:36:21

andrej.podzimek
Member
From: Zürich, Switzerland
Registered: 2005-04-10
Posts: 115

Re: GCC

Please... Come on, the package in the repository must have been created somehow. wink How do you guys build the GCC?

Offline

#3 2006-01-30 11:00:20

Beavis
Member
From: UK
Registered: 2005-01-01
Posts: 71

Re: GCC

I have found that compiling GCC with any parameter other than -i686 will result in failure, i've tried compiling for pentium 3, pentium 4 and Athlon-xp and every time it has failed, it only seems to compile successfully with the -i686 parameter sad

the default PKGBUILD should work fine so long as you don't change any compiler flags, and do make sure your /etc/makepkg.conf is configured as default. Specifically the two lines that read "export CFLAGS="-march="i686 -O2 -pipe" and "export CXXFLAGS="-march="i686 -O2 -pipe" these options must be set to compile GCC or it just doesn't work.

Offline

#4 2006-01-30 11:38:03

andrej.podzimek
Member
From: Zürich, Switzerland
Registered: 2005-04-10
Posts: 115

Re: GCC

You're right, it does work with the default parameters. This implies that there's no reason to compile the GCC on my own. What I obtain is a packge identical to the one in the repository. I thought the optimization for my CPU could reduce compile time significantly, by 1% or so.  wink Thanks for your advice anyway.

Offline

#5 2006-01-30 11:38:15

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: GCC

Beavis wrote:

I have found that compiling GCC with any parameter other than -i686 will result in failure, ...

Are you sure :?:

AndyRTR, who's porting Arch64 lol

Offline

#6 2006-01-30 11:44:28

andrej.podzimek
Member
From: Zürich, Switzerland
Registered: 2005-04-10
Posts: 115

Re: GCC

I bet you had to make more changes than I did. How did you compile it?

Offline

#7 2006-01-30 12:00:49

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: GCC

No major changes needed. First we had to crosscompile the gcc itself. Now we can go for updates like this:

http://www.arch64.org/svn/trunk/current … kup&rev=66

Offline

#8 2006-01-30 14:04:35

Beavis
Member
From: UK
Registered: 2005-01-01
Posts: 71

Re: GCC

@ andrej

This implies that there's no reason to compile the GCC on my own. What I obtain is a packge identical to the one in the repository

I know, thats why I don't bother compiling gcc anymore I just grab it from the repository. It would be great to get gcc compiled and optimised for my athlon-xp though because it's currently the only package that hasn't been recompiled on my system.

Offline

Board footer

Powered by FluxBB