Change:
Steps to reproduce the behavior: graalvm-ce [8/8] Creating image... [**] (0.0s @ 0.31GB)
2.5s (6.6% of total time) in 245 GCs CPU load: 7.20
Produced artifacts: /private/tmp/nix-build-graalvm-ce- (buildinfo) Failed generating 'helloworld' after 36.1s. The build process encountered an unexpected error: There was an error linking the native image: Linker command exited with 1 Linker command executed: /nix/store/yjzqlbr324ijwya7wgja90f6apjcfq77-clang-wrapper-16.0.6/bin/cc -Wl,-U,darwincheckfdsetoverflow -Wl,-nocompactunwind -Wl,-exportedsymbolslist -Wl,/private/tmp/nix-build-graalvm-ce- SVM- -Wl,-x -arch x8664 -o /private/tmp/nix-build-graalvm-ce- helloworld.o /nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/svm/cl ibraries/darwin-amd64/liblibchelper.a /nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libnet.a /nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/svm/clibrarie s/darwin-amd64/libdarwin.a /nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libnio.a /nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libj ava.a /nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libzip.a /nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/svm/clibraries/darwin-amd64/libjvm.a -v -L/pr ivate/tmp/nix-build-graalvm-ce- -L/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64 -L/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce -22.0.0/lib/svm/clibraries/darwin-amd64 -ldl -lpthread -Wl,-framework,Foundation -lz Linker command output: clang version 16.0.6 Target: x8664-apple-darwin Thread model: posix InstalledDir: /nix/store/qii4shz46sj38q2wdawiagshj4n1f0lr-clang-16.0.6/bin "/nix/store/yjzqlbr324ijwya7wgja90f6apjcfq77-clang-wrapper-16.0.6/bin/ld" -demangle -ltolibrary /nix/store/qii4shz46sj38q2wdawiagshj4n1f0lr-clang- -dynamic -arch x8664 -platformversion macos 10.12.0 10.12.0 -o /private/tmp/nix-build-graalvm-ce- -L/private/tmp/nix-build-graalvm-ce- -L/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce -22.0.0/lib/static/darwin-amd64 -L/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/svm/clibraries/darwin-amd64 -L/nix/store/h1fj93a17dlpjm4dm9bxg46kjxhwmbgn-libcxx-16.0.6/lib -L/nix/store/7naprg1 cjba3xq7a7kdfs3m45nwhxrrs-compiler-rt-libc-16.0.6/lib -L/nix/store/mshw25dqlc3csddksf9q23d6j018gwys-zlib-1.3.1/lib -L/nix/store/gyk6bgdhz4z9xj285y0sa5sv2s96649k-objc4-709.1/lib -L/nix/store/h1fj93a17dlpjm4dm9bxg4 6kjxhwmbgn-libcxx-16.0.6/lib -L/nix/store/7naprg1cjba3xq7a7kdfs3m45nwhxrrs-compiler-rt-libc-16.0.6/lib -L/nix/store/mshw25dqlc3csddksf9q23d6j018gwys-zlib-1.3.1/lib -L/nix/store/gyk6bgdhz4z9xj285y0sa5sv2s96649k-ob jc4-709.1/lib -L/nix/store/8vzfq1fzj4qim2imivxfyhnlbzx9j4zq-Libsystem-1238.60.2/lib -L/nix/store/cy8py0rq64fikvhaj1959svksl33dw9v-clang-16.0.6-lib/lib -L/nix/store/h1fj93a17dlpjm4dm9bxg46kjxhwmbgn-libcxx-16.0.6/l ib -U darwincheckfdsetoverflow -nocompactunwind -exportedsymbolslist /private/tmp/nix-build-graalvm-ce- -x helloworld.o /nix/store/ilvxwjpcjmh8 3kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/svm/clibraries/darwin-amd64/liblibchelper.a /nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libnet.a /nix/store/ilvxwjpcjmh83kkif1x c3ya1a0qjkx46-graalvm-ce-22.0.0/lib/svm/clibraries/darwin-amd64/libdarwin.a /nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libnio.a /nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx 46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libjava.a /nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libzip.a /nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/ lib/svm/clibraries/darwin-amd64/libjvm.a -ldl -lpthread -framework Foundation -lz /nix/store/jvy4anwliaqn66yf8phdc2ai13977mwa-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/CoreFoundat -arch x8664 -lSystem /nix/store/yjzqlbr324ijwya7wgja90f6apjcfq77-clang-wrapper-16.0.6/resource- -F/nix/store/jvy4anwliaqn66yf8phdc2ai13977mwa-apple-framework-CoreFoundati on/Library/Frameworks -F/nix/store/f1aa4ab5ywndh9x0lx1afhjd8x5smfls-apple-framework-Foundation/Library/Frameworks -F/nix/store/zvhh5snnl073w6d58rh617kp41m3wp9v-apple-framework-ApplicationServices/Library/Framewor ks -F/nix/store/2xsjlmhv7im39vzifa15z3skmw2d3f81-apple-framework-CoreGraphics/Library/Frameworks -F/nix/store/38kx73nm83m5xd5llqvwgmnf0i2z60zr-apple-framework-Accelerate/Library/Frameworks -F/nix/store/mji904fmdj vzf09j0xdiw4ps80y60ndf-apple-framework-CoreWLAN/Library/Frameworks -F/nix/store/9ysb6j9i85v7vdls2jcvg7fly3r39vz4-apple-framework-SecurityFoundation/Library/Frameworks -F/nix/store/q9yrxxnkn9ry0nvf48p5fih6wg34wcs3 -apple-framework-IOBluetooth/Library/Frameworks -F/nix/store/qfz0c82zhf12x43jxcwhvfrg6f5d4sg1-apple-framework-CoreBluetooth/Library/Frameworks -F/nix/store/x54lc2llkvp2ak7s3kh0dq3yvlnid8as-apple-framework-IOKit/L ibrary/Frameworks -F/nix/store/gs1c9qkz6b8al4aif7z8wgbl7hxvq1z0-apple-framework-IOSurface/Library/Frameworks -F/nix/store/5ih2g3461xn7n4dwjzfj4z9kp1va13gi-apple-framework-SystemConfiguration/Library/Frameworks -F /nix/store/9l7ckyy8lrlgbcf7rf93iiikgxv6g3n9-apple-framework-Security/Library/Frameworks -F/nix/store/qhsgpzs9xsjrrmr2c2gbpgxl9lihkbnw-apple-framework-CoreServices/Library/Frameworks -F/nix/store/j9m3c20vw2sc3z706 r34s94whxirwr76-apple-framework-CFNetwork/Library/Frameworks -F/nix/store/hc95skcs2rqf6jyw01j075pljg4i060j-apple-framework-CoreAudio/Library/Frameworks -F/nix/store/l66hcpw1cpwrbks2gln8fijq7glmb15z-apple-framewor k-CoreData/Library/Frameworks -F/nix/store/jvy4anwliaqn66yf8phdc2ai13977mwa-apple-framework-CoreFoundation/Library/Frameworks -F/nix/store/ii38vbr1rkkmyi0bpfma28n6kawm509z-apple-framework-DiskArbitration/Library/ Frameworks -F/nix/store/p05ad4h6lpkm3g7gqfg11zjkr2b13grm-apple-framework-NetFS/Library/Frameworks -F/nix/store/zfmqzjnykhdxg5s2ryalixc2avj3l6k7-apple-framework-OpenDirectory/Library/Frameworks -F/nix/store/3cikf6 yzkrfj1aar45s9q7mna9008y3i-apple-framework-ServiceManagement/Library/Frameworks -F/nix/store/jplkm2kw2ny8wayp7n7jd3hc3dqyi9xz-apple-framework-CoreText/Library/Frameworks -F/nix/store/b69ikp6xf9ljng8lvylia91rfpcwb 22d-apple-framework-ImageIO/Library/Frameworks -F/nix/store/qhhfwlbwaz5ac0xqsvvg0fn61h6rkwql-apple-framework-CoreFoundation/Library/Frameworks -F/nix/store/f1aa4ab5ywndh9x0lx1afhjd8x5smfls-apple-framework-Foundat ion/Library/Frameworks -F/nix/store/zvhh5snnl073w6d58rh617kp41m3wp9v-apple-framework-ApplicationServices/Library/Frameworks -F/nix/store/2xsjlmhv7im39vzifa15z3skmw2d3f81-apple-framework-CoreGraphics/Library/Frame works -F/nix/store/38kx73nm83m5xd5llqvwgmnf0i2z60zr-apple-framework-Accelerate/Library/Frameworks -F/nix/store/mji904fmdjvzf09j0xdiw4ps80y60ndf-apple-framework-CoreWLAN/Library/Frameworks -F/nix/store/9ysb6j9i85v 7vdls2jcvg7fly3r39vz4-apple-framework-SecurityFoundation/Library/Frameworks -F/nix/store/q9yrxxnkn9ry0nvf48p5fih6wg34wcs3-apple-framework-IOBluetooth/Library/Frameworks -F/nix/store/qfz0c82zhf12x43jxcwhvfrg6f5d4s g1-apple-framework-CoreBluetooth/Library/Frameworks -F/nix/store/x54lc2llkvp2ak7s3kh0dq3yvlnid8as-apple-framework-IOKit/Library/Frameworks -F/nix/store/gs1c9qkz6b8al4aif7z8wgbl7hxvq1z0-apple-framework-IOSurface/L ibrary/Frameworks -F/nix/store/5ih2g3461xn7n4dwjzfj4z9kp1va13gi-apple-framework-SystemConfiguration/Library/Frameworks -F/nix/store/9l7ckyy8lrlgbcf7rf93iiikgxv6g3n9-apple-framework-Security/Library/Frameworks -F/ nix/store/qhsgpzs9xsjrrmr2c2gbpgxl9lihkbnw-apple-framework-CoreServices/Library/Frameworks -F/nix/store/j9m3c20vw2sc3z706r34s94whxirwr76-apple-framework-CFNetwork/Library/Frameworks -F/nix/store/hc95skcs2rqf6jyw0 1j075pljg4i060j-apple-framework-CoreAudio/Library/Frameworks -F/nix/store/l66hcpw1cpwrbks2gln8fijq7glmb15z-apple-framework-CoreData/Library/Frameworks -F/nix/store/jvy4anwliaqn66yf8phdc2ai13977mwa-apple-framework -CoreFoundation/Library/Frameworks -F/nix/store/ii38vbr1rkkmyi0bpfma28n6kawm509z-apple-framework-DiskArbitration/Library/Frameworks -F/nix/store/p05ad4h6lpkm3g7gqfg11zjkr2b13grm-apple-framework-NetFS/Library/Fram eworks -F/nix/store/zfmqzjnykhdxg5s2ryalixc2avj3l6k7-apple-framework-OpenDirectory/Library/Frameworks -F/nix/store/3cikf6yzkrfj1aar45s9q7mna9008y3i-apple-framework-ServiceManagement/Library/Frameworks -F/nix/stor e/jplkm2kw2ny8wayp7n7jd3hc3dqyi9xz-apple-framework-CoreText/Library/Frameworks -F/nix/store/b69ikp6xf9ljng8lvylia91rfpcwb22d-apple-framework-ImageIO/Library/Frameworks -F/nix/store/qhhfwlbwaz5ac0xqsvvg0fn61h6rkwq l-apple-framework-CoreFoundation/Library/Frameworks ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libjava.a(jniutil.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libjava.a(checkversion.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libnet.a(netutil.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libnio.a(nioutil.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libzip.a(ziputil.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/svm/clibraries/darwin-amd64/libjvm.a(JvmFuncs.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libjava.a(FileDescriptormd.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libjava.a(FileInputStream.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libjava.a(FileOutputStream.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libjava.a(UnixFileSystemmd.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libjava.a(Shutdown.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libnet.a(Inet4AddressImpl.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libnet.a(Inet4Address.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libnet.a(Inet6AddressImpl.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libnet.a(Inet6Address.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libnet.a(InetAddress.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libnet.a(NetworkInterface.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libjava.a(TimeZone.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libzip.a(CRC32.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libzip.a(Inflater.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libnio.a(IOUtil.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libnio.a(NativeThread.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libnio.a(UnixFileDispatcherImpl.o)) was built for newer macOS version (11.0) than being linked (10.1 2) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libnio.a(UnixNativeDispatcher.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/svm/clibraries/darwin-amd64/liblibchelper.a(timeZone.o)) was built for newer macOS version (11.0) than being linked (10. 12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/svm/clibraries/darwin-amd64/liblibchelper.a(cpuid.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/svm/clibraries/darwin-amd64/liblibchelper.a(varargshelper.o)) was built for newer macOS version (11.0) than being linke d (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/svm/clibraries/darwin-amd64/libdarwin.a(foundation.o)) was built for newer macOS version (11.0) than being linked (10.12 ) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libnet.a(netutilmd.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libjava.a(canonicalizemd.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/svm/clibraries/darwin-amd64/libjvm.a(JvmFuncsFallbacks.o)) was built for newer macOS version (11.0) than being linked (1 12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libjava.a(ioutilmd.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libjava.a(TimeZonemd.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libjava.a(jniutilmd.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libjava.a(ioutil.o)) was built for newer macOS version (11.0) than being linked (10.12) ld: warning: object file (/nix/store/ilvxwjpcjmh83kkif1xc3ya1a0qjkx46-graalvm-ce-22.0.0/lib/static/darwin-amd64/libjava.a(pathutil.o)) was built for newer macOS version (11.0) than being linked (10.12) Undefined symbols for architecture x8664: "_chkstkdarwin", referenced from: InflateFully in libzip.a(ziputil.o) checkCPUFeatures in liblibchelper.a(cpuid.o) readBytes in libjava.a(ioutil.o) writeBytes in libjava.a(ioutil.o) collapse in libjava.a(pathutil.o) ld: symbol(s) not found for architecture x8664 clang-16: error: linker command failed with exit code 1 (use -v to see invocation) at () at () at () at () at () at () at () at () at () error: builder for '/nix/store/rj40lzpjd63sc2ammxxvylqs6lfrcc5r-graalvm-ce-' failed with exit code 1 console $ nix-shell -p nix-info --run "nix-info -m" system: host os: multi-user?: sandbox: version: channels(djm): nixpkgs: Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
I want some help here because I have no system anymore to test.
So it seems the issue is that is now compiled with SDK 11.0 in . I opened a PR changing it in , however it still doesn't work with the following errors: I think there is a missing define somewhere, but I am not sure what it is missing.
Fixed it by using the , now the PR is open for review.

Discussion:
++ lib.optional stdenv.isLinux autoPatchelfHook; propagatedBuildInputs = [ setJavaClassPath zlib ] <del> ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Foundation; </del> <ins> ++ lib.optional stdenv.isDarwin darwin.apple_sdk_11_0.frameworks.Foundation; </ins> buildInputs = lib.optionals stdenv.isLinux [ alsa-lib # libasound.so wanted by lib/libjsound.so

echo "Testing GraalVM" $out/bin/java -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+UseJVMCICompiler HelloWorld | fgrep 'Hello World' <del> # Workaround GraalVM issue where the builder does not have access to the # environment variables since 21.0.0 # Only needed for native-image tests # https://github.com/oracle/graal/pull/6095 # https://github.com/oracle/graal/pull/6095 # https://github.com/oracle/graal/issues/7502 export NATIVE_IMAGE_DEPRECATED_BUILDER_SANITATION="true"; </del> <ins> extraNativeImageArgs="$(export -p | sed -n 's/^declare -x ([^=]+)=.*$/ -E1/p' | tr -d n)" </ins> echo "Ahead-Of-Time compilation" <del> $out/bin/native-image -H:+UnlockExperimentalVMOptions -H:-CheckToolchain -H:+ReportExceptionStackTraces HelloWorld </del> <ins> $out/bin/native-image -H:+UnlockExperimentalVMOptions -H:-CheckToolchain -H:+ReportExceptionStackTraces -march=compatibility $extraNativeImageArgs HelloWorld </ins> ./helloworld | fgrep 'Hello World' ${# --static is only available in Linux lib.optionalString (stdenv.isLinux && !useMusl) '' echo "Ahead-Of-Time compilation with -H:+StaticExecutableWithDynamicLibC" <del> $out/bin/native-image -H:+UnlockExperimentalVMOptions -H:+StaticExecutableWithDynamicLibC HelloWorld </del> <ins> $out/bin/native-image -H:+UnlockExperimentalVMOptions -H:+StaticExecutableWithDynamicLibC -march=compatibility $extraNativeImageArgs HelloWorld </ins> ./helloworld | fgrep 'Hello World' echo "Ahead-Of-Time compilation with --static" <del> $out/bin/native-image --static HelloWorld </del> <ins> $out/bin/native-image $extraNativeImageArgs -march=compatibility --static HelloWorld </ins> ./helloworld | fgrep 'Hello World' ''} ${# --static is only available in Linux lib.optionalString (stdenv.isLinux && useMusl) '' echo "Ahead-Of-Time compilation with --static and --libc=musl" <del> $out/bin/native-image --static HelloWorld --libc=musl </del> <ins> $out/bin/native-image $extraNativeImageArgs -march=compatibility --libc=musl --static HelloWorld </ins> ./helloworld | fgrep 'Hello World' ''}

{ lib <del> , stdenv , callPackage , fetchurl </del> <ins> , pkgs </ins> }: <ins> lib.makeScope pkgs.newScope (self: </ins> { <del> buildGraalvm = callPackage ./buildGraalvm.nix; </del> <ins> stdenv = if pkgs.stdenv.isDarwin then pkgs.darwin.apple_sdk_11_0.stdenv else pkgs.stdenv; </ins> <del> buildGraalvmProduct = callPackage ./buildGraalvmProduct.nix; </del> <ins> buildGraalvm = self.callPackage ./buildGraalvm.nix; </ins> <del> graalvm-ce = callPackage ./graalvm-ce { }; </del> <ins> buildGraalvmProduct = self.callPackage ./buildGraalvmProduct.nix; </ins> <del> graalvm-ce-musl = callPackage ./graalvm-ce { useMusl = true; }; </del> <ins> graalvm-ce = self.callPackage ./graalvm-ce { }; </ins> <del> graaljs = callPackage ./graaljs { }; </del> <ins> graalvm-ce-musl = self.callPackage ./graalvm-ce { useMusl = true; }; </ins> <del> graalnodejs = callPackage ./graalnodejs { }; </del> <ins> graaljs = self.callPackage ./graaljs { }; </ins> <del> graalpy = callPackage ./graalpy { }; </del> <ins> graalnodejs = self.callPackage ./graalnodejs { }; </ins> <del> truffleruby = callPackage ./truffleruby { }; } </del> <ins> graalpy = self.callPackage ./graalpy { }; truffleruby = self.callPackage ./truffleruby { }; }) </ins>