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

WIP: C static gtk3 apps #67

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

WIP: C static gtk3 apps #67

wants to merge 9 commits into from

Conversation

nh2
Copy link
Owner

@nh2 nh2 commented Nov 11, 2019

This was made possible by making systemd dependencies optional
in recent nixpkgs `master`, initiated by
#50 (comment)
with some follow-ups by me at NixCon.
With the recent update to nixpkgs master and my PRs to make systemd
optional, we have a lot less failing packages.
@nh2 nh2 added enhancement New feature or request help wanted Extra attention is needed labels Nov 11, 2019
@nh2
Copy link
Owner Author

nh2 commented Nov 11, 2019

I PR'd support for emitting .a files for GTK (gtk4 master; in my files here I have local substitutes for gtk3 as well):


Current problem:

[4/4] Linking target demo-gtk.
FAILED: demo-gtk 
/nix/store/k1bj2ldn9572pdf3szq60k7iln45rjwz-gcc-wrapper-8.3.0/bin/cc  -o demo-gtk 'demo-gtk@exe/gtkmain.c.o' -Wl,--no-undefined -Wl,--as-needed -static -Wl,--start-group /nix/store/710la6cxmc67c4ji3pxxa89c4yd8xfap-gtk+3-3.24.11/lib/libgtk-3.a /nix/store/710la6cxmc67c4ji3pxxa89c4yd8xfap-gtk+3-3.24.11/lib/libgdk-3.a -ldl -lm /nix/store/4wbrfswpvn8l1qy7nm1i46l7bhp1wvqw-cairo-1.16.0/lib/libcairo-gobject.a /nix/store/4wbrfswpvn8l1qy7nm1i46l7bhp1wvqw-cairo-1.16.0/lib/libcairo.a /nix/store/nln77018d0dkwpvb8ixznxzsb4qniq5n-pixman-0.38.4/lib/libpixman-1.a /nix/store/99xhxilhwfylmxm2gm1b8ipv1gspqv2i-fontconfig-2.12.6-lib/lib/libfontconfig.a /nix/store/3vgm6h5r4p5csii33cfilkhrc20jvl6v-expat-2.2.8/lib/libexpat.a /nix/store/ggafj30pr2sv0hj7jgfywvqv1yz88mws-freetype-2.10.1/lib/libfreetype.a /nix/store/q33gb957w94mqdqkq4pwil8hix34krwv-libpng-apng-1.6.37/lib/libpng16.a -lpthread -pthread /nix/store/c3smpxcx820axy48qadhp0y55bpqz76w-libselinux-2.9/lib/libselinux.a /nix/store/8r9l7cnqvgiv2f0a3z0mawv3xs2fdzwz-libsepol-2.9/lib/libsepol.a /nix/store/f8kj800is9kv2392wjg66gb3rxvdm17a-libffi-3.2.1/lib/../lib64/libffi.a -L/nix/store/710la6cxmc67c4ji3pxxa89c4yd8xfap-gtk+3-3.24.11/lib -L/nix/store/2yq14g22hmbvyp4h8g21d4s8zxxzbj7a-at-spi2-atk-2.34.0/lib -L/nix/store/zkq01m67g0gs09grjnsqxqkx80f12bfi-atk-2.34.1/lib -L/nix/store/912biwj3zmx24xxnj135aisfrmc0cijc-glib-2.62.0/lib -L/nix/store/2fd7k3j5vmmkzw14ywwjykw8sa4h0vdd-zlib-1.2.11/lib -L/nix/store/f8kj800is9kv2392wjg66gb3rxvdm17a-libffi-3.2.1/lib/../lib64 -L/nix/store/4wbrfswpvn8l1qy7nm1i46l7bhp1wvqw-cairo-1.16.0/lib -L/nix/store/99xhxilhwfylmxm2gm1b8ipv1gspqv2i-fontconfig-2.12.6-lib/lib -L/nix/store/3vgm6h5r4p5csii33cfilkhrc20jvl6v-expat-2.2.8/lib -L/nix/store/ggafj30pr2sv0hj7jgfywvqv1yz88mws-freetype-2.10.1/lib -L/nix/store/mdxphvay0gaxrrm7hpanfc76j198bbvj-bzip2-1.0.6.0.1/lib -L/nix/store/q33gb957w94mqdqkq4pwil8hix34krwv-libpng-apng-1.6.37/lib -L/nix/store/nln77018d0dkwpvb8ixznxzsb4qniq5n-pixman-0.38.4/lib -L/nix/store/29wdm3cdx8y91xkjs0jk746p52hgqq7k-libXext-1.3.4/lib -L/nix/store/vk7p183psn6mw0m8d1q0sm8lgana035w-libXau-1.0.9/lib -L/nix/store/fmawyb2j9fk86grcax5yabssxiq26lz7-libXrender-0.9.10/lib -L/nix/store/s5v6jw41dypl5jmca02a232dqwx02sjg-libX11-1.6.8/lib -L/nix/store/7nwh0pfs5s5kv2alj4dk2xzmb7r1s1z3-libxcb-1.13.1/lib -L/nix/store/4s90m1hva8i86g3rg076l9a06sylra2p-libglvnd-1.0.0/lib -L/nix/store/xyc2x1i6m36pix8ffcyrigrpkdnk0fpp-fribidi-1.0.5/lib -L/nix/store/z23j6jyqwhkvapvw2b2qpnq99q24jm7b-gdk-pixbuf-2.38.2/lib -L/nix/store/qby280lgm5bdfzvabqs11yf57jviv4nv-libXcomposite-0.4.5/lib -L/nix/store/aky4wqlig9a5mpgi5d39rx3znbjh49yg-libXfixes-5.0.3/lib -L/nix/store/v25p9rmbpcllvd9gc5l95ciwn6zbhqkd-libXcursor-1.2.0/lib -L/nix/store/ir7iiwwf1pf1q0339gw3hcx6130iv0rj-libXi-1.7.10/lib -L/nix/store/8djh3n3alkr4pzzpirawm8fibai6n8s5-libXrandr-1.5.2/lib -L/nix/store/g1iyd2njx9gymd5cx2fiykgclal157di-pango-1.43.0/lib -L/nix/store/2m71gq5r0cb0bf74xg0jnh42dsfwcgxg-libXft-2.3.3/lib -L/nix/store/1hn4lviwql04wdpx0mdy7ij6b4j7fsvh-libXdamage-1.1.5/lib -L/nix/store/5mblik93p4ai77m39h957xhh8zhpdh79-wayland-1.17.0/lib -L/nix/store/5vfms64fw2254l9w6bnk7x2kcsxv5i7l-libXinerama-1.1.4/lib -L/nix/store/llmkfjmcxn5aalyhhyz397d0wwj8nd5y-pcre-8.43/lib -L/nix/store/6bnhzmmvvi9xzyigdp4z6mzhavbylx8y-harfbuzz-2.6.1/lib -L/nix/store/3zxgcqb66r4p4da7hmw7a8vvs5caqfla-graphite2-1.3.6/lib -L/nix/store/g05spksm9gzzx1ij7asfg6sh0122pj57-libXdmcp-1.1.3/lib -L/nix/store/f2dqvvy37bg247gpclgs0hwrff54xq2v-util-linux-2.33.2/lib -L/nix/store/c3smpxcx820axy48qadhp0y55bpqz76w-libselinux-2.9/lib -L/nix/store/8r9l7cnqvgiv2f0a3z0mawv3xs2fdzwz-libsepol-2.9/lib -L/nix/store/f7sj5lbr0isrs8xf661nzq00s2548jzs-libxkbcommon-0.8.4/lib -L/nix/store/0f6iv4pyi9jrd0jcncm3wm6dyz74nd31-epoxy-1.5.3/lib -L/nix/store/zsgyhxswll3kcrfsy4wlb88j9643cchb-at-spi2-core-2.34.0/lib -L/nix/store/xnxg159hh79g43zhywd334gqbhs7130w-dbus-1.12.16-lib/lib -L/nix/store/3j5zz826k4317ws0wv9s3l2l8qr4afbi-libXtst-1.2.3/lib -latk-bridge-2.0 -latspi -lXtst -ldbus-1 -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes -lXinerama -lxkbcommon -lwayland-cursor -lwayland-egl -lwayland-client -lepoxy -lpangocairo-1.0 -lpangoft2-1.0 -lpango-1.0 -lfribidi -lharfbuzz -lgraphite2 -lXft -latk-1.0 -lz -lGL -lbz2 -lEGL -lxcb-shm -lxcb-render -lXrender -lXext -lX11 -lxcb -lXau -lXdmcp -lgdk_pixbuf-2.0 -lgio-2.0 -lgmodule-2.0 -lmount -lblkid -luuid -lgobject-2.0 -lglib-2.0 -lpcre -Wl,--end-group
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -latk-bridge-2.0
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -latspi
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXtst
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -ldbus-1
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXi
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXrandr
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXcursor
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXcomposite
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXdamage
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXfixes
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXinerama
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lxkbcommon
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lwayland-cursor
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lwayland-egl
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lwayland-client
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lepoxy
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lpangocairo-1.0
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lpangoft2-1.0
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lpango-1.0
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lfribidi
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lharfbuzz
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lgraphite2
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXft
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -latk-1.0
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lz
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lGL
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lbz2
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lEGL
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lxcb-shm
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lxcb-render
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXrender
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXext
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lX11
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lxcb
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXau
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXdmcp
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lgdk_pixbuf-2.0
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lgio-2.0
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lgmodule-2.0
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lmount
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lblkid
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -luuid
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lgobject-2.0
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lglib-2.0
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lpcre

So it seems we just need overrides to keep .a files for all of those libraries.

Help wanted :)

@nh2
Copy link
Owner Author

nh2 commented Nov 25, 2019

On commit: acb424d I get:

% nix-build --no-link survey/default.nix -A pkgsWithStaticHaskellBinaries.meson-tutorial-gtk
these derivations will be built:
  /nix/store/9hlxbmnj4sjfx3ccz73gvdh24v24hy0g-meson-tutorial-gtk-0.0.1.drv
building '/nix/store/9hlxbmnj4sjfx3ccz73gvdh24v24hy0g-meson-tutorial-gtk-0.0.1.drv'...
unpacking sources
unpacking source archive /nix/store/nff18143m3rd1qg33kad9k4kaxqwvdpw-meson-tutorial-gtk
source root is meson-tutorial-gtk
patching sources
updateAutotoolsGnuConfigScriptsPhase
configuring

-L/nix/store/6kncswgj5zbkqq4xbaqlld5m3bjlj1q4-gtk+3-3.24.11/lib -L/nix/store/ilb9lpq2h1b9dpxajgn408vaf63n45xq-at-spi2-atk-2.34.0/lib -L/nix/store/y7aaqlvnyjfb75fbcw2ipch8vlmsh2vg-atk-2.34.1/lib -L/nix/store/nj0bi21ym1jsg3x9k4mafcnmkw02s41n-glib-2.62.0/lib -L/nix/store/2fd7k3j5vmmkzw14ywwjykw8sa4h0vdd-zlib-1.2.11/lib -L/nix/store/f8kj800is9kv2392wjg66gb3rxvdm17a-libffi-3.2.1/lib/../lib64 -L/nix/store/7labq55scsbp9q2i5g0f2whxqi35jk3a-cairo-1.16.0/lib -L/nix/store/xfh0syhi32mmdx7y35lnhgsylnqjr94r-fontconfig-2.12.6-lib/lib -L/nix/store/3vgm6h5r4p5csii33cfilkhrc20jvl6v-expat-2.2.8/lib -L/nix/store/ggafj30pr2sv0hj7jgfywvqv1yz88mws-freetype-2.10.1/lib -L/nix/store/mdxphvay0gaxrrm7hpanfc76j198bbvj-bzip2-1.0.6.0.1/lib -L/nix/store/q33gb957w94mqdqkq4pwil8hix34krwv-libpng-apng-1.6.37/lib -L/nix/store/3vgm6h5r4p5csii33cfilkhrc20jvl6v-expat-2.2.8/lib -L/nix/store/nln77018d0dkwpvb8ixznxzsb4qniq5n-pixman-0.38.4/lib -L/nix/store/29wdm3cdx8y91xkjs0jk746p52hgqq7k-libXext-1.3.4/lib -L/nix/store/vk7p183psn6mw0m8d1q0sm8lgana035w-libXau-1.0.9/lib -L/nix/store/fmawyb2j9fk86grcax5yabssxiq26lz7-libXrender-0.9.10/lib -L/nix/store/s5v6jw41dypl5jmca02a232dqwx02sjg-libX11-1.6.8/lib -L/nix/store/7nwh0pfs5s5kv2alj4dk2xzmb7r1s1z3-libxcb-1.13.1/lib -L/nix/store/4s90m1hva8i86g3rg076l9a06sylra2p-libglvnd-1.0.0/lib -L/nix/store/xyc2x1i6m36pix8ffcyrigrpkdnk0fpp-fribidi-1.0.5/lib -L/nix/store/a1mb6ri44xljsilfmkwflrl15gfc1pwk-gdk-pixbuf-2.38.2/lib -L/nix/store/qby280lgm5bdfzvabqs11yf57jviv4nv-libXcomposite-0.4.5/lib -L/nix/store/aky4wqlig9a5mpgi5d39rx3znbjh49yg-libXfixes-5.0.3/lib -L/nix/store/v25p9rmbpcllvd9gc5l95ciwn6zbhqkd-libXcursor-1.2.0/lib -L/nix/store/ir7iiwwf1pf1q0339gw3hcx6130iv0rj-libXi-1.7.10/lib -L/nix/store/8djh3n3alkr4pzzpirawm8fibai6n8s5-libXrandr-1.5.2/lib -L/nix/store/wk3zkrlfly8pl5lwxq1yxalpl2h1p47j-pango-1.43.0/lib -L/nix/store/46h485czm5w5242f0h4ngn9pwq8zk8cv-libXft-2.3.3/lib -L/nix/store/1hn4lviwql04wdpx0mdy7ij6b4j7fsvh-libXdamage-1.1.5/lib -L/nix/store/5mblik93p4ai77m39h957xhh8zhpdh79-wayland-1.17.0/lib -L/nix/store/5vfms64fw2254l9w6bnk7x2kcsxv5i7l-libXinerama-1.1.4/lib -L/nix/store/xb7crdb32306icqvvyjdn7rvkh44c70z-pcre-8.43/lib -L/nix/store/06ph9c6s965kqd9mxxrcn31811xlz5f1-harfbuzz-2.6.1/lib -L/nix/store/cg42k0np4nrnjlc3vzxf4k0431jj48d2-graphite2-1.3.6/lib -L/nix/store/g05spksm9gzzx1ij7asfg6sh0122pj57-libXdmcp-1.1.3/lib -L/nix/store/8lxanw2mybw9p0kngn2djln4zh8pn8s1-util-linux-2.33.2/lib -L/nix/store/c3smpxcx820axy48qadhp0y55bpqz76w-libselinux-2.9/lib -L/nix/store/8r9l7cnqvgiv2f0a3z0mawv3xs2fdzwz-libsepol-2.9/lib -L/nix/store/bbjvkm0wj0z7bck5v78k5xqjb1ab8q0a-libxkbcommon-0.8.4/lib -L/nix/store/ycfmy1jzh7j5ygzb20afh4q3dbzvrc3d-epoxy-1.5.3/lib -L/nix/store/4qfzlan62lbjpl38iskb9cs9a9ndlnx7-at-spi2-core-2.34.0/lib -L/nix/store/cnh8vcg0n380iw0p2xs1ha8dj2ih94fb-dbus-1.12.16-lib/lib -L/nix/store/3j5zz826k4317ws0wv9s3l2l8qr4afbi-libXtst-1.2.3/lib -lgtk-3 -latk-bridge-2.0 -latspi -lXtst -ldbus-1 -lgdk-3 -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes -lXinerama -lxkbcommon -lwayland-cursor -lwayland-egl -lwayland-client -lepoxy -ldl -lpangocairo-1.0 -lm -lpangoft2-1.0 -lm -lpango-1.0 -lm -lfribidi -lharfbuzz -lm -lgraphite2 -lXft -latk-1.0 -lcairo-gobject -lcairo -lz -lGL -lpixman-1 -lfontconfig -lexpat -lfreetype -lexpat -lfreetype -lbz2 -lEGL -lGL -lpng16 -lz -lxcb-shm -lxcb-render -lXrender -lXext -lX11 -lpthread -lxcb -lXau -lXdmcp -lgdk_pixbuf-2.0 -lm -lgio-2.0 -pthread -lgmodule-2.0 -lz -lmount -lblkid -luuid -lselinux -lsepol -lgobject-2.0 -pthread -lffi -lglib-2.0 -pthread -lpcre

meson flags: --buildtype=plain         --libdir=/nix/store/bydh233rc79ky5b4jhk6svxclhzk6xbh-meson-tutorial-gtk-0.0.1/lib --libexecdir=/nix/store/bydh233rc79ky5b4jhk6svxclhzk6xbh-meson-tutorial-gtk-0.0.1/libexec         --bindir=/nix/store/bydh233rc79ky5b4jhk6svxclhzk6xbh-meson-tutorial-gtk-0.0.1/bin --sbindir=/nix/store/bydh233rc79ky5b4jhk6svxclhzk6xbh-meson-tutorial-gtk-0.0.1/sbin         --includedir=/nix/store/bydh233rc79ky5b4jhk6svxclhzk6xbh-meson-tutorial-gtk-0.0.1/include         --mandir=/nix/store/bydh233rc79ky5b4jhk6svxclhzk6xbh-meson-tutorial-gtk-0.0.1/share/man --infodir=/nix/store/bydh233rc79ky5b4jhk6svxclhzk6xbh-meson-tutorial-gtk-0.0.1/share/info         --localedir=/nix/store/bydh233rc79ky5b4jhk6svxclhzk6xbh-meson-tutorial-gtk-0.0.1/share/locale         -Dauto_features=enabled         -Dwrap_mode=nodownload         --prefix=/nix/store/bydh233rc79ky5b4jhk6svxclhzk6xbh-meson-tutorial-gtk-0.0.1  
The Meson build system
Version: 0.51.2
Source dir: /tmp/nix-build-meson-tutorial-gtk-0.0.1.drv-0/meson-tutorial-gtk
Build dir: /tmp/nix-build-meson-tutorial-gtk-0.0.1.drv-0/meson-tutorial-gtk/build
Build type: native build
DEPRECATION: Duplicated values in array option is deprecated. This will become a hard error in the future.
DEPRECATION: Duplicated values in array option is deprecated. This will become a hard error in the future.
DEPRECATION: Duplicated values in array option is deprecated. This will become a hard error in the future.
Project name: tutorial
Project version: undefined
C compiler for the host machine: /nix/store/k1bj2ldn9572pdf3szq60k7iln45rjwz-gcc-wrapper-8.3.0/bin/cc (gcc 8.3.0 "gcc (GCC) 8.3.0")
DEPRECATION: Duplicated values in array option is deprecated. This will become a hard error in the future.
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /nix/store/83yrlnhvzrwd0ph36g9r972sg8hvlj43-pkg-config-0.29.2/bin/pkg-config (0.29.2)
WARNING: Static library 'atk-bridge-2.0' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'atspi' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'Xtst' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'Xi' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'Xrandr' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'Xcursor' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'Xcomposite' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'Xdamage' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'Xfixes' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'Xinerama' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'xkbcommon' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'wayland-cursor' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'wayland-egl' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'wayland-client' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'epoxy' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'pangocairo-1.0' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'pangoft2-1.0' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'pango-1.0' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'fribidi' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'harfbuzz' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'graphite2' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'Xft' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'atk-1.0' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'z' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'GL' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'bz2' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'EGL' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'xcb-shm' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'xcb-render' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'Xrender' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'Xext' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'X11' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'xcb' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'Xau' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'Xdmcp' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'gdk_pixbuf-2.0' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'gio-2.0' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'gmodule-2.0' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'gobject-2.0' not found for dependency 'gtk+-3.0', may not be statically linked
WARNING: Static library 'glib-2.0' not found for dependency 'gtk+-3.0', may not be statically linked
Run-time dependency gtk+-3.0 found: YES 3.24.10
Build targets in project: 2
Found ninja-1.9.0 at /nix/store/hj6isyjy53sh9liaynz8s3zkgl4r8s4r-ninja-1.9.0/bin/ninja
meson: enabled parallel building
building
build flags: -j4 -l4
[1/4] Compiling C object 'demo@exe/main.c.o'.
[2/4] Linking target demo.
[3/4] Compiling C object 'demo-gtk@exe/gtkmain.c.o'.
[4/4] Linking target demo-gtk.
FAILED: demo-gtk 
/nix/store/k1bj2ldn9572pdf3szq60k7iln45rjwz-gcc-wrapper-8.3.0/bin/cc  -o demo-gtk 'demo-gtk@exe/gtkmain.c.o' -Wl,--no-undefined -Wl,--as-needed -static -Wl,--start-group /nix/store/6kncswgj5zbkqq4xbaqlld5m3bjlj1q4-gtk+3-3.24.11/lib/libgtk-3.a /nix/store/cnh8vcg0n380iw0p2xs1ha8dj2ih94fb-dbus-1.12.16-lib/lib/libdbus-1.a /nix/store/6kncswgj5zbkqq4xbaqlld5m3bjlj1q4-gtk+3-3.24.11/lib/libgdk-3.a -ldl -lm /nix/store/7labq55scsbp9q2i5g0f2whxqi35jk3a-cairo-1.16.0/lib/libcairo-gobject.a /nix/store/7labq55scsbp9q2i5g0f2whxqi35jk3a-cairo-1.16.0/lib/libcairo.a /nix/store/nln77018d0dkwpvb8ixznxzsb4qniq5n-pixman-0.38.4/lib/libpixman-1.a /nix/store/xfh0syhi32mmdx7y35lnhgsylnqjr94r-fontconfig-2.12.6-lib/lib/libfontconfig.a /nix/store/3vgm6h5r4p5csii33cfilkhrc20jvl6v-expat-2.2.8/lib/libexpat.a /nix/store/ggafj30pr2sv0hj7jgfywvqv1yz88mws-freetype-2.10.1/lib/libfreetype.a /nix/store/q33gb957w94mqdqkq4pwil8hix34krwv-libpng-apng-1.6.37/lib/libpng16.a -lpthread -pthread /nix/store/8lxanw2mybw9p0kngn2djln4zh8pn8s1-util-linux-2.33.2/lib/libmount.a /nix/store/8lxanw2mybw9p0kngn2djln4zh8pn8s1-util-linux-2.33.2/lib/libblkid.a /nix/store/8lxanw2mybw9p0kngn2djln4zh8pn8s1-util-linux-2.33.2/lib/libuuid.a /nix/store/c3smpxcx820axy48qadhp0y55bpqz76w-libselinux-2.9/lib/libselinux.a /nix/store/8r9l7cnqvgiv2f0a3z0mawv3xs2fdzwz-libsepol-2.9/lib/libsepol.a /nix/store/f8kj800is9kv2392wjg66gb3rxvdm17a-libffi-3.2.1/lib/../lib64/libffi.a /nix/store/xb7crdb32306icqvvyjdn7rvkh44c70z-pcre-8.43/lib/libpcre.a -L/nix/store/6kncswgj5zbkqq4xbaqlld5m3bjlj1q4-gtk+3-3.24.11/lib -L/nix/store/ilb9lpq2h1b9dpxajgn408vaf63n45xq-at-spi2-atk-2.34.0/lib -L/nix/store/y7aaqlvnyjfb75fbcw2ipch8vlmsh2vg-atk-2.34.1/lib -L/nix/store/nj0bi21ym1jsg3x9k4mafcnmkw02s41n-glib-2.62.0/lib -L/nix/store/2fd7k3j5vmmkzw14ywwjykw8sa4h0vdd-zlib-1.2.11/lib -L/nix/store/f8kj800is9kv2392wjg66gb3rxvdm17a-libffi-3.2.1/lib/../lib64 -L/nix/store/7labq55scsbp9q2i5g0f2whxqi35jk3a-cairo-1.16.0/lib -L/nix/store/xfh0syhi32mmdx7y35lnhgsylnqjr94r-fontconfig-2.12.6-lib/lib -L/nix/store/3vgm6h5r4p5csii33cfilkhrc20jvl6v-expat-2.2.8/lib -L/nix/store/ggafj30pr2sv0hj7jgfywvqv1yz88mws-freetype-2.10.1/lib -L/nix/store/mdxphvay0gaxrrm7hpanfc76j198bbvj-bzip2-1.0.6.0.1/lib -L/nix/store/q33gb957w94mqdqkq4pwil8hix34krwv-libpng-apng-1.6.37/lib -L/nix/store/nln77018d0dkwpvb8ixznxzsb4qniq5n-pixman-0.38.4/lib -L/nix/store/29wdm3cdx8y91xkjs0jk746p52hgqq7k-libXext-1.3.4/lib -L/nix/store/vk7p183psn6mw0m8d1q0sm8lgana035w-libXau-1.0.9/lib -L/nix/store/fmawyb2j9fk86grcax5yabssxiq26lz7-libXrender-0.9.10/lib -L/nix/store/s5v6jw41dypl5jmca02a232dqwx02sjg-libX11-1.6.8/lib -L/nix/store/7nwh0pfs5s5kv2alj4dk2xzmb7r1s1z3-libxcb-1.13.1/lib -L/nix/store/4s90m1hva8i86g3rg076l9a06sylra2p-libglvnd-1.0.0/lib -L/nix/store/xyc2x1i6m36pix8ffcyrigrpkdnk0fpp-fribidi-1.0.5/lib -L/nix/store/a1mb6ri44xljsilfmkwflrl15gfc1pwk-gdk-pixbuf-2.38.2/lib -L/nix/store/qby280lgm5bdfzvabqs11yf57jviv4nv-libXcomposite-0.4.5/lib -L/nix/store/aky4wqlig9a5mpgi5d39rx3znbjh49yg-libXfixes-5.0.3/lib -L/nix/store/v25p9rmbpcllvd9gc5l95ciwn6zbhqkd-libXcursor-1.2.0/lib -L/nix/store/ir7iiwwf1pf1q0339gw3hcx6130iv0rj-libXi-1.7.10/lib -L/nix/store/8djh3n3alkr4pzzpirawm8fibai6n8s5-libXrandr-1.5.2/lib -L/nix/store/wk3zkrlfly8pl5lwxq1yxalpl2h1p47j-pango-1.43.0/lib -L/nix/store/46h485czm5w5242f0h4ngn9pwq8zk8cv-libXft-2.3.3/lib -L/nix/store/1hn4lviwql04wdpx0mdy7ij6b4j7fsvh-libXdamage-1.1.5/lib -L/nix/store/5mblik93p4ai77m39h957xhh8zhpdh79-wayland-1.17.0/lib -L/nix/store/5vfms64fw2254l9w6bnk7x2kcsxv5i7l-libXinerama-1.1.4/lib -L/nix/store/xb7crdb32306icqvvyjdn7rvkh44c70z-pcre-8.43/lib -L/nix/store/06ph9c6s965kqd9mxxrcn31811xlz5f1-harfbuzz-2.6.1/lib -L/nix/store/cg42k0np4nrnjlc3vzxf4k0431jj48d2-graphite2-1.3.6/lib -L/nix/store/g05spksm9gzzx1ij7asfg6sh0122pj57-libXdmcp-1.1.3/lib -L/nix/store/8lxanw2mybw9p0kngn2djln4zh8pn8s1-util-linux-2.33.2/lib -L/nix/store/c3smpxcx820axy48qadhp0y55bpqz76w-libselinux-2.9/lib -L/nix/store/8r9l7cnqvgiv2f0a3z0mawv3xs2fdzwz-libsepol-2.9/lib -L/nix/store/bbjvkm0wj0z7bck5v78k5xqjb1ab8q0a-libxkbcommon-0.8.4/lib -L/nix/store/ycfmy1jzh7j5ygzb20afh4q3dbzvrc3d-epoxy-1.5.3/lib -L/nix/store/4qfzlan62lbjpl38iskb9cs9a9ndlnx7-at-spi2-core-2.34.0/lib -L/nix/store/cnh8vcg0n380iw0p2xs1ha8dj2ih94fb-dbus-1.12.16-lib/lib -L/nix/store/3j5zz826k4317ws0wv9s3l2l8qr4afbi-libXtst-1.2.3/lib -latk-bridge-2.0 -latspi -lXtst -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes -lXinerama -lxkbcommon -lwayland-cursor -lwayland-egl -lwayland-client -lepoxy -lpangocairo-1.0 -lpangoft2-1.0 -lpango-1.0 -lfribidi -lharfbuzz -lgraphite2 -lXft -latk-1.0 -lz -lGL -lbz2 -lEGL -lxcb-shm -lxcb-render -lXrender -lXext -lX11 -lxcb -lXau -lXdmcp -lgdk_pixbuf-2.0 -lgio-2.0 -lgmodule-2.0 -lgobject-2.0 -lglib-2.0 -Wl,--end-group
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -latk-bridge-2.0
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -latspi
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXtst
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXi
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXrandr
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXcursor
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXcomposite
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXdamage
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXfixes
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXinerama
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lxkbcommon
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lwayland-cursor
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lwayland-egl
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lwayland-client
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lepoxy
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lpangocairo-1.0
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lpangoft2-1.0
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lpango-1.0
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lfribidi
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lharfbuzz
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lgraphite2
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXft
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -latk-1.0
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lGL
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lbz2
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lEGL
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lxcb-shm
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lxcb-render
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXrender
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXext
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lX11
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lxcb
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXau
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lXdmcp
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lgdk_pixbuf-2.0
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lgio-2.0
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lgmodule-2.0
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lgobject-2.0
/nix/store/f1v9hcm7pxdrgmmarf5ldss9xc480l0n-binutils-2.31.1/bin/ld: cannot find -lglib-2.0
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
builder for '/nix/store/9hlxbmnj4sjfx3ccz73gvdh24v24hy0g-meson-tutorial-gtk-0.0.1.drv' failed with exit code 1
error: build of '/nix/store/9hlxbmnj4sjfx3ccz73gvdh24v24hy0g-meson-tutorial-gtk-0.0.1.drv' failed

Usage:

    nix-build --no-link survey/default.nix -A pkgsWithStaticHaskellBinaries.meson-tutorial-gtk
We need GL support because of gdk -> epoxy -> GL.
See #50 (comment)

It currently fails with:

    (demo-glade:8872): GModule-CRITICAL **: 22:19:02.953: g_module_symbol: assertion 'module != NULL' failed

    (demo-glade:8872): GModule-CRITICAL **: 22:19:02.986: g_module_close: assertion 'module != NULL' failed
    Dynamic loading not supported
    Failed to load module: /nix/store/88gpkpcfjbgihn3fl8b8vk5ggfs8wn73-dconf-0.36.0-lib/lib/gio/modules/libdconfsettings.so
    Dynamic loading not supported
    Failed to load module: /nix/store/d6l7xwbdm23xgds5vafzibw57790zw71-glib-networking-2.64.3/lib/gio/modules/libgiolibproxy.so
    Dynamic loading not supported
    Failed to load module: /nix/store/d6l7xwbdm23xgds5vafzibw57790zw71-glib-networking-2.64.3/lib/gio/modules/libgiognutls.so
    Dynamic loading not supported
    Failed to load module: /nix/store/d6l7xwbdm23xgds5vafzibw57790zw71-glib-networking-2.64.3/lib/gio/modules/libgiognomeproxy.so
    Dynamic loading not supported
    Failed to load module: /nix/store/bkjpypri81svkgq5rdfd4mdn33ic1pja-gvfs-1.44.1/lib/gio/modules/libgioremote-volume-monitor.so
    Dynamic loading not supported
    Failed to load module: /nix/store/bkjpypri81svkgq5rdfd4mdn33ic1pja-gvfs-1.44.1/lib/gio/modules/libgvfsdbus.so

    (demo-glade:8872): GModule-CRITICAL **: 22:19:03.183: g_module_symbol: assertion 'module != NULL' failed

    (demo-glade:8872): Gtk-ERROR **: 22:19:03.186: gtk_builder_connect_signals() requires working GModule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant