Open nh2 opened 4 years ago
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 :)
On commit: https://github.com/nh2/static-haskell-nix/commit/acb424d3e81064b3532c24fc4999f82f468999cb I get:
CC @cdepillabout @flokli