Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xorg-server-1.0.2-r3 emerge failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
antineutrino
n00b
n00b


Joined: 12 Oct 2004
Posts: 37

PostPosted: Mon Apr 10, 2006 9:27 am    Post subject: xorg-server-1.0.2-r3 emerge failed Reply with quote

Hi,
I'm trying to install XGL along the lines described here:
http://gentoo-wiki.com/HOWTO_Modular_Xorg
http://gentoo-wiki.com/HOWTO_XGL

I am running a hardened system (see gentoo.org/proj/en/hardened/ ) and compile failed - telling me I needed vanilla gcc specs and not hardened.
I changed to vanilla specs with gcc-config but I still can't emerge xorg-server. now I get:

Code:
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I../include -I../include -I../include -DHAVE_DIX_CONFIG_H -DXFree86Server -DXFree86LOADER -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I../include "" -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb -I../lbx -O2 -pipe -march=athlon-xp -fomit-frame-pointer -mmmx -m3dnow -msse -MT setfocus.lo -MD -MP -MF .deps/setfocus.Tpo -c setfocus.c  -fPIC -DPIC -o .libs/setfocus.o
i686-pc-linux-gnu-gcc: cannot specify -o with -c or -S and multiple compilations
make[1]: *** [setfocus.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/xorg-server-1.0.2-r3/work/xorg-server-1.0.2/Xi'
make: *** [all-recursive] Error 1


I'm at a loss as to what this means. Can anyone give me a few pointers?

Thanks
AntiNeutrino
Back to top
View user's profile Send private message
bhun
n00b
n00b


Joined: 01 Dec 2002
Posts: 70

PostPosted: Mon Apr 10, 2006 9:44 am    Post subject: Re: xorg-server-1.0.2-r3 emerge failed Reply with quote

Quote:

Code:
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I../include -I../include -I../include -DHAVE_DIX_CONFIG_H -DXFree86Server -DXFree86LOADER -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I../include "" -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb -I../lbx -O2 -pipe -march=athlon-xp -fomit-frame-pointer -mmmx -m3dnow -msse -MT setfocus.lo -MD -MP -MF .deps/setfocus.Tpo -c setfocus.c  -fPIC -DPIC -o .libs/setfocus.o

I'm at a loss as to what this means. Can anyone give me a few pointers?


You have to upgrade to the new gentoo profile. ;) Just kidding. Gcc is trying to compile more than one source file at once whilst generating dependency tracking information. My guess is that if you try to manually compile the file by changing to the working directory where make died, the file will compile correctly if you omit the "" which is interpreted as a separate file to compile.

Code:

cd /var/tmp/portage/xorg-server-1.0.2-r3/work/xorg-server-1.0.2/Xi
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I../include -I../include -I../include -DHAVE_DIX_CONFIG_H -DXFree86Server -DXFree86LOADER -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb -I../lbx -O2 -pipe -march=athlon-xp -fomit-frame-pointer -mmmx -m3dnow -msse -MT setfocus.lo -MD -MP -MF .deps/setfocus.Tpo -c setfocus.c  -fPIC -DPIC -o .libs/setfocus.o


The strange thing is that I get a totally different error message if I add an extra file, or the file "" as a file to compile :

Code:

$ echo "int main() {}" >> ./test.c
$ echo "int main2() {}" >> ./test2.c
$  x86_64-fruit-linux-gnu-gcc -I. -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -MT 2.lo -M -MD -MP -MF dep  -fPIC -DPIC -c -o test.o ./test.c
$  x86_64-fruit-linux-gnu-gcc -I. -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -MT 2.lo -M -MD -MP -MF dep  -fPIC -DPIC -c -o test.o ./test.c  ./test2.c
cc1: error: too many filenames given.  Type cc1 --help for usage
$ x86_64-fruit-linux-gnu-gcc -I. -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -MT 2.lo -M -MD -MP -MF dep  -fPIC -DPIC -c -o test.o ./test.c  ""
x86_64-fruit-linux-gnu-gcc: : No such file or directory


I'm still on 3.4, so maybe they just changed the error message. Just compiling a single file works as expected (the first gcc command), the second one breaks because there's more than one source file specified. In the worst case your compiler is broken, but that's such an old bug for the gcc 3.2, which doesn't seem likely.
Back to top
View user's profile Send private message
antineutrino
n00b
n00b


Joined: 12 Oct 2004
Posts: 37

PostPosted: Wed Apr 12, 2006 12:24 pm    Post subject: thank you Reply with quote

Thank you.
The compile worked now and I'm using the new Modular X.

however Xgl still won't run on hardened - keeps getting killed by PAX even though I set all PAX flags to off :(


I'll keep you all updated if I manage to get it to work.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum