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

Wayfire failed to build from source in AUR #2558

Open
leandrocunha526 opened this issue Jan 6, 2025 · 2 comments
Open

Wayfire failed to build from source in AUR #2558

leandrocunha526 opened this issue Jan 6, 2025 · 2 comments
Labels

Comments

@leandrocunha526
Copy link

In the AUR it is not possible to rebuild and I am still checking the possible causes for this since I am just getting to know this software. See the log below.

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=wayfire

FAILED: test/geometry/geometry_test 
c++  -o test/geometry/geometry_test test/geometry/geometry_test.p/geometry_test.cpp.o -Wl,--as-needed -Wl,--no-undefined -pie -Wl,--whole-archive -Wl,--start-group src/liblibwayfire.a -Wl,--no-whole-archive -rdynamic -Wl,-E -lstdc++fs -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/home/arch/git/archlinux/aur/wayfire/src=/usr/src/debug/wayfire -flto=auto '-Wl,-rpath,$ORIGIN/../../subprojects/wf-utils:/usr/lib/wlroots0.17' -Wl,-rpath-link,/home/arch/git/archlinux/aur/wayfire/src/build/subprojects/wf-utils -Wl,-rpath-link,/usr/lib/wlroots0.17 proto/libwl_protos.a subprojects/wf-utils/libwf-utils.so.0.4.0 subprojects/wf-touch/libwftouch.a /usr/lib/libwayland-server.so /usr/lib/wlroots0.17/libwlroots.so /usr/lib/libxkbcommon.so /usr/lib/libinput.so /usr/lib/libpixman-1.so /usr/lib/libdrm.so /usr/lib/libEGL.so /usr/lib/libGLESv2.so /usr/lib/libglm.a -ldl /usr/lib/libwf-config.so /usr/lib/libxcb.so /usr/lib/libjpeg.so /usr/lib/libpng16.so /usr/lib/libwayland-client.so -Wl,--end-group
{standard input}: Assembler messages:
{standard input}:239949: Error: invalid operands (*UND* and .text sections) for `-'
make: *** [/tmp/ccBCARGH.mk:50: /tmp/ccCglFsp.ltrans16.ltrans.o] Error 1
make: ** Esperando que outros processos terminem.
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/bin/ld: erro: lto-wrapper failed
collect2: error: ld returned 1 exit status
[476/476] Linking target test/misc/tracking_allocator
ninja: build stopped: subcommand failed.

The same problem occurs when trying wayfire-git as well which is having issues with the build.

https://aur.archlinux.org/cgit/aur.git/tree/?h=wayfire-git

@leandrocunha526 leandrocunha526 changed the title Wayfire failt to build from source in AUR Wayfire fail to build from source in AUR Jan 6, 2025
@leandrocunha526 leandrocunha526 changed the title Wayfire fail to build from source in AUR Wayfire failed to build from source in AUR Jan 6, 2025
@soreau
Copy link
Member

soreau commented Jan 6, 2025

This seems like a system or compiler problem. Does it happen to work with -Dtests=disabled?

@leandrocunha526
Copy link
Author

This seems like a system or compiler problem. Does it happen to work with -Dtests=disabled?

This solves it, but it would be interesting to fix the code to compile on the latest versions of the compiler in question.
It serves as a momentary solution.

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

No branches or pull requests

2 participants