You are not logged in.

#1 2009-06-27 17:52:24

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

[Solved] Compiling Xorg using GCC 4.5

Hello
I/m using GCC 4.5 snapshot from AUR and I want to compile Xorg but have error when I compile him )Xorg):
checking for gcc... no
i search in configure file for GCC line but no effect.
I removed old gcc from my sytem.
I only have libs (gcc-libs)
What should i do to compile xorg on gcc 4.5.

Last edited by SpeedVin (2009-06-28 18:06:13)


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#2 2009-06-27 18:00:15

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: [Solved] Compiling Xorg using GCC 4.5

Note that gcc-snapshot from the AUR is not meant to replace the current gcc, but install alongside it.

To fix your issue you probably want to adjust the PKGBUILD to do something like:

CC=gcc-4.5 ./configure ...

Note every single packages is likely to break in the same way...

Offline

#3 2009-06-27 18:03:14

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [Solved] Compiling Xorg using GCC 4.5

Allan wrote:

Note that gcc-snapshot from the AUR is not meant to replace the current gcc, but install alongside it.

To fix your issue you probably want to adjust the PKGBUILD to do something like:

CC=gcc-4.5 ./configure ...

Note every single packages is likely to break in the same way...

Ok that's work now i have error:
configure: error: gcc-4.5 -E defines unix with or without -undef.  I don't know what to do
Now i should install gcc?


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#4 2009-06-28 18:05:55

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [Solved] Compiling Xorg using GCC 4.5

Ok i solved my problem smile
Just like Allan said gcc-snapshot is not to repalce gcc becouse he don't have all needed libs.


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

Board footer

Powered by FluxBB