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: zenity (cross-compilation to aarch64-linux) #238440

Closed
avnik opened this issue Jun 18, 2023 · 9 comments · Fixed by #242720
Closed

Build failure: zenity (cross-compilation to aarch64-linux) #238440

avnik opened this issue Jun 18, 2023 · 9 comments · Fixed by #242720
Labels
0.kind: build failure A package fails to build 6.topic: cross-compilation Building packages on a different platform than they will be used on

Comments

@avnik
Copy link
Contributor

avnik commented Jun 18, 2023

Build log

[27/160] Compiling C object src/zenity.p/meson-generated_.._zenity-tree-column-view-enums.c.o
FAILED: src/zenity.p/meson-generated_.._zenity-tree-column-view-enums.c.o 
aarch64-unknown-linux-gnu-gcc -Isrc/zenity.p -Isrc -I../src -I. -I.. -I/nix/store/73b47hm94jn64ijyck2j5rjwh8bpd956-glib-aarch64-unknown-linux-gnu-2.76.2-dev/include -I/nix/store/73b47hm94jn64>
aarch64-unknown-linux-gnu-gcc: error: unrecognized command-line option '-mfpmath=sse'
aarch64-unknown-linux-gnu-gcc: error: unrecognized command-line option '-msse'
aarch64-unknown-linux-gnu-gcc: error: unrecognized command-line option '-msse2'
[28/160] Compiling C object src/zenity.p/meson-generated_.._zenity-resources.c.o
FAILED: src/zenity.p/meson-generated_.._zenity-resources.c.o 
aarch64-unknown-linux-gnu-gcc -Isrc/zenity.p -Isrc -I../src -I. -I.. -I/nix/store/73b47hm94jn64ijyck2j5rjwh8bpd956-glib-aarch64-unknown-linux-gnu-2.76.2-dev/include -I/nix/store/73b47hm94jn64>
aarch64-unknown-linux-gnu-gcc: error: unrecognized command-line option '-mfpmath=sse'
aarch64-unknown-linux-gnu-gcc: error: unrecognized command-line option '-msse'
aarch64-unknown-linux-gnu-gcc: error: unrecognized command-line option '-msse2'
[29/160] Compiling C object src/zenity.p/about.c.o
FAILED: src/zenity.p/about.c.o 
aarch64-unknown-linux-gnu-gcc -Isrc/zenity.p -Isrc -I../src -I. -I.. -I/nix/store/73b47hm94jn64ijyck2j5rjwh8bpd956-glib-aarch64-unknown-linux-gnu-2.76.2-dev/include -I/nix/store/73b47hm94jn64>
aarch64-unknown-linux-gnu-gcc: error: unrecognized command-line option '-mfpmath=sse'
aarch64-unknown-linux-gnu-gcc: error: unrecognized command-line option '-msse'
aarch64-unknown-linux-gnu-gcc: error: unrecognized command-line option '-msse2'

Metadata

Appear on nixpkgs nixos-23.05 branch (a7adead revision)

@avnik avnik added the 0.kind: build failure A package fails to build label Jun 18, 2023
@Artturin Artturin added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label Jun 18, 2023
@kirillrdy
Copy link
Member

greetings @avnik

I know this is not cross compiling

git checkout a7adeadc7d4033048592fac7c87ca888d2a99d31
HEAD is now at a7adeadc7d4 Merge pull request #234467 from NixOS/backport-234399-to-release-23.05

[kirillvr@osaka:~/nixpkgs]$ nix-build -A gnome.zenity --argstr system aarch64-linux
/nix/store/k8gayy3j185nxj497ry4hi6lv8cmpa4s-zenity-3.92.0

can you provide step to reproduce

@avnik
Copy link
Contributor Author

avnik commented Jun 24, 2023

@kirillrdy I created a almost minimal flake to do x86_64 to aarch64 cross. https://github.com/avnik/nixpkgs-cross-build-repro.

@avnik
Copy link
Contributor Author

avnik commented Jun 28, 2023

@kirillrdy even much simpler way to reproduce nix-build -A pkgsCross.aarch64-multiplatform.gnome.zenity (but it build alot in process before fail)

@avnik
Copy link
Contributor Author

avnik commented Jun 29, 2023

Well, my research show that it pull graphene into the build from wrong (builder) architecture

[avn@bulldozer:pts/2]~/work/unikie/nixpkgs (git)-[ghaf-23.05]-% file -s  /nix/store/pjrr6cbpf3pjd1jnmn797x8n7c2l94aa-graphene-1.10.8/lib/libgraphene-1.0.so.0.1000.8 
/nix/store/pjrr6cbpf3pjd1jnmn797x8n7c2l94aa-graphene-1.10.8/lib/libgraphene-1.0.so.0.1000.8: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped

But have no idea how it happens

@kirillrdy
Copy link
Member

kirillrdy commented Jul 2, 2023

@avnik sorry for lack of communication

I can indeed reproduce the issue. Good/bad news is that it affects other packages as well. I also dont know whats causing apart from the fact that something is pulling in x86 dependency. I am currently bisecting a range of commits that also has 2 other falures, so I am not sure what the result will be. I'll post here as soon as I find out

@avnik
Copy link
Contributor Author

avnik commented Jul 3, 2023

@kirillrdy I'd pretty sure, that problematic dependencies -- is a gtk4 propagatedBuildInputs. (I tried to build package which depends on gtk4 only, and it have same issue, so we can exclude libadwaita). So probably is a generic gtk4 problem, and we need mention anyone from gnome' team

@avnik
Copy link
Contributor Author

avnik commented Jul 10, 2023

@NixOS/gnome It looks like generic gtk4 problem

@Artturin
Copy link
Member

Artturin commented Jul 10, 2023

It's a issue with wrapGAppsHook4,, fixing

@Artturin
Copy link
Member

#242720

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build 6.topic: cross-compilation Building packages on a different platform than they will be used on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants