Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure - gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files #1230

Closed
ghost opened this issue May 30, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented May 30, 2017

Full build log can be found here:
sway-0.13.0.txt

Basically the issue is:

[ 14%] Building C object protocols/CMakeFiles/sway-protocols.dir/wayland-desktop-shell-client-protocol.c.o
cd /tmp/guix-build-sway-0.13.0.drv-0/build/protocols && /gnu/store/4iw4r2majarqlm19adaikqw126jxqf2p-gcc-5.4.0/bin/gcc  -DSWAY_VERSION="\" (2017-05-30, branch \\\"\\\")\"" -DWITH_GDK_PIXBUF -I/tmp/guix-build-sway-0.13.0.drv-0/sway-0.13.0/include -I/gnu/store/syzisi3ib6q406nrxpb4723fhm2cmyml-wayland-1.13.0/include -I/gnu/store/iq2if5a7vlz4cmkdzsd4kgwm0qjp59yw-libxkbcommon-0.7.1/include  -g -Wall -Wextra -Wno-unused-parameter - -O3 -DNDEBUG -fPIC   -std=c99 -o CMakeFiles/sway-protocols.dir/wayland-desktop-shell-client-protocol.c.o   -c /tmp/guix-build-sway-0.13.0.drv-0/build/protocols/wayland-desktop-shell-client-protocol.c
cd /tmp/guix-build-sway-0.13.0.drv-0/build/protocols && /gnu/store/4iw4r2majarqlm19adaikqw126jxqf2p-gcc-5.4.0/bin/gcc  -DSWAY_VERSION="\" (2017-05-30, branch \\\"\\\")\"" -DWITH_GDK_PIXBUF -I/tmp/guix-build-sway-0.13.0.drv-0/sway-0.13.0/include -I/gnu/store/syzisi3ib6q406nrxpb4723fhm2cmyml-wayland-1.13.0/include -I/gnu/store/iq2if5a7vlz4cmkdzsd4kgwm0qjp59yw-libxkbcommon-0.7.1/include  -g -Wall -Wextra -Wno-unused-parameter - -O3 -DNDEBUG -fPIC   -std=c99 -o CMakeFiles/sway-protocols.dir/wayland-xdg-shell-client-protocol.c.o   -c /tmp/guix-build-sway-0.13.0.drv-0/build/protocols/wayland-xdg-shell-client-protocol.c
gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.
make[2]: *** [protocols/CMakeFiles/sway-protocols.dir/build.make:114: protocols/CMakeFiles/sway-protocols.dir/wayland-xdg-shell-client-protocol.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.
make[2]: *** [protocols/CMakeFiles/sway-protocols.dir/build.make:138: protocols/CMakeFiles/sway-protocols.dir/wayland-desktop-shell-client-protocol.c.o] Error 1
make[2]: Leaving directory '/tmp/guix-build-sway-0.13.0.drv-0/build'
make[1]: *** [CMakeFiles/Makefile2:133: protocols/CMakeFiles/sway-protocols.dir/all] Error 2
make[2]: Leaving directory '/tmp/guix-build-sway-0.13.0.drv-0/build'
[ 14%] Built target man-sway-security.7
make[2]: Leaving directory '/tmp/guix-build-sway-0.13.0.drv-0/build'
[ 14%] Built target man-swaygrab.1
make[1]: Leaving directory '/tmp/guix-build-sway-0.13.0.drv-0/build'
make: *** [Makefile:131: all] Error 2
phase `build' failed after 3.3 seconds
builder for `/gnu/store/3grlc3xivv2dwa31yd8xc7wdiak5b0pr-sway-0.13.0.drv' failed with exit code 1
@ build-failed /gnu/store/3grlc3xivv2dwa31yd8xc7wdiak5b0pr-sway-0.13.0.drv - 1 builder for `/gnu/store/3grlc3xivv2dwa31yd8xc7wdiak5b0pr-sway-0.13.0.drv' failed with exit code 1
guix build: error: build failed: build of `/gnu/store/3grlc3xivv2dwa31yd8xc7wdiak5b0pr-sway-0.13.0.drv' failed

I have not published the updated package definitions of it, my server where I could point you to a static git view has issues at the moment.
In short, I use wlc 0.0.7 which in turn uses chck from commit 55d41fbf2c9f58500a0dca8402a3151c6e50742a ... I haven't updated those two as I thought it would just work. This is from sway 0.11 I was originally working with, which had the same error in the build.

@ddevault
Copy link
Member

This is pretty strange. I'm not sure what the issue is. That GCC command looks fine.

@ghost
Copy link
Author

ghost commented Jun 3, 2017

I have updated wlc to 0.0.9 and chck to HEAD from now (5 minutes ago) and it still fails with the same error message.

I will send this for review to our mailinglist and see if someone else can figure it out.

@sleep-walker
Copy link
Contributor

Hi, ng0. I'm looking forward to have sway also on Guix :)

Interesting issue, but all leads to problem with GCC. Can you try different GCC version?
gcc-toolchain 6.3.0 doesn't seem to have this issue and neither openSUSE's 7.2...

@ddevault
Copy link
Member

I think this is a downstream issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants