Provision icon indicating copy to clipboard operation
Provision copied to clipboard

Build failed

Open LongMeters opened this issue 1 year ago • 7 comments

macOS 14.1.2 M2Max chip Macbook Pro

anisette-v3-server git:(main) ✗ DC=ldc2 dub build -c "static" --build-mode allAtOnce -b release --compiler=ldc2 Pre-gen Running commands for openssl Starting Performing "release" build using ldc2 for x86_64. Building dxml 0.4.3: building configuration [library] Building plist ~master: building configuration [library] Building slf4d 2.1.1: building configuration [library] Building provision ~master: building configuration [plist-d] ../../.dub/packages/provision/fa028b6f4e6e2704bf43f92031fe5c3223045f64/provision/lib/provision/androidlibrary.d(32,13): Error: template instance ElfW!"Sym" template ElfW is not defined, did you mean ELFW(string func)? ../../.dub/packages/provision/fa028b6f4e6e2704bf43f92031fe5c3223045f64/provision/lib/provision/androidlibrary.d(38,13): Error: template instance ElfW!"Shdr" template ElfW is not defined, did you mean ELFW(string func)? ../../.dub/packages/provision/fa028b6f4e6e2704bf43f92031fe5c3223045f64/provision/lib/provision/androidlibrary.d(212,34): Error: template instance ElfW!"Sym" template ElfW is not defined, did you mean ELFW(string func)? ../../.dub/packages/provision/fa028b6f4e6e2704bf43f92031fe5c3223045f64/provision/lib/provision/androidlibrary.d(216,35): Error: template instance ElfW!"Shdr" template ElfW is not defined, did you mean ELFW(string func)? ../../.dub/packages/provision/fa028b6f4e6e2704bf43f92031fe5c3223045f64/provision/lib/provision/androidlibrary.d(271,5): Error: template instance ElfW!"Sym" template ElfW is not defined, did you mean ELFW(string func)? ../../.dub/packages/provision/fa028b6f4e6e2704bf43f92031fe5c3223045f64/provision/lib/provision/androidlibrary.d(304,5): Error: template instance ElfW!"Sym" template ElfW is not defined, did you mean ELFW(string func)? ../../.dub/packages/provision/fa028b6f4e6e2704bf43f92031fe5c3223045f64/provision/lib/provision/androidlibrary.d(352,5): Error: template instance ElfW!"Sym" template ElfW is not defined, did you mean ELFW(string func)? ../../.dub/packages/provision/fa028b6f4e6e2704bf43f92031fe5c3223045f64/provision/lib/provision/androidlibrary.d(385,26): Error: template instance ElfW!"Phdr" template ElfW is not defined, did you mean ELFW(string func)? ../../.dub/packages/provision/fa028b6f4e6e2704bf43f92031fe5c3223045f64/provision/lib/provision/androidlibrary.d(407,41): Error: undefined identifier R_X86_64_64 ../../.dub/packages/provision/fa028b6f4e6e2704bf43f92031fe5c3223045f64/provision/lib/provision/androidlibrary.d(419,25): Error: undefined identifier R_386_JMP_SLOT, did you mean alias R_386_JUMP_SLOT? Error ldc2 failed with exit code 1.

LongMeters avatar Mar 05 '24 07:03 LongMeters

i am using VSCode with Rossta.

LongMeters avatar Mar 05 '24 07:03 LongMeters

anisette-v3-server makes use of a specific version of Provision which is not compatible with macOS. If you want to build it anyway, replace in dub.json fa028b6f4e6e2704bf43f92031fe5c3223045f64 with 05277953592347c9c0de8d491db50eee29443902 and delete dub.selections.json in the folder, but keep in mind it will leak more memory (as the anisette-v3 specific version of provision contained some hacks to avoid part of it).

Dadoum avatar Mar 05 '24 08:03 Dadoum

thank you , i will try it and reply you .

LongMeters avatar Mar 05 '24 08:03 LongMeters

I got another error :

anisette-v3-server git:(main) ✗ DC=ldc2 dub build -c "static" --build-mode allAtOnce -b release --compiler=ldc2 Pre-gen Running commands for openssl Starting Performing "release" build using ldc2 for x86_64. Up-to-date dxml 0.4.4: target for configuration [library] is up to date. Up-to-date plist ~master: target for configuration [library] is up to date. Up-to-date automem 0.6.9: target for configuration [library] is up to date. Up-to-date cachetools 0.4.1: target for configuration [library] is up to date. Up-to-date requests 2.1.3: target for configuration [std] is up to date. Up-to-date slf4d 2.1.1: target for configuration [library] is up to date. Up-to-date provision ~master: target for configuration [plist-d] is up to date. Up-to-date diet-ng 1.8.1: target for configuration [library] is up to date. Up-to-date mir-linux-kernel 1.0.1: target for configuration [library] is up to date. Up-to-date taggedalgebraic 0.11.22: target for configuration [library] is up to date. Up-to-date eventcore 0.9.28: target for configuration [cfrunloop] is up to date. Up-to-date stdx-allocator 2.77.5: target for configuration [library] is up to date. Up-to-date vibe-container 1.3.0: target for configuration [library] is up to date. Up-to-date vibe-core 2.8.2: target for configuration [cfrunloop] is up to date. Up-to-date vibe-d:crypto 0.9.8: target for configuration [library] is up to date. Up-to-date vibe-d:utils 0.9.8: target for configuration [library] is up to date. Up-to-date vibe-d:data 0.9.8: target for configuration [library] is up to date. Up-to-date vibe-d:stream 0.9.8: target for configuration [library] is up to date. Up-to-date vibe-d:textfilter 0.9.8: target for configuration [library] is up to date. Up-to-date vibe-d:inet 0.9.8: target for configuration [library] is up to date. Up-to-date vibe-d:tls 0.9.8: target for configuration [openssl] is up to date. Up-to-date vibe-d:http 0.9.8: target for configuration [library] is up to date. Up-to-date vibe-d:web 0.9.8: target for configuration [library] is up to date. Building anisette-v3-server ~main: building configuration [static] ld: Undefined symbols: _ERR_new, referenced from: __D4vibe6stream7openssl11setSSLErrorFNbNeAyaQdiQgZv in libvibe-d_tls.a3 _ERR_set_debug, referenced from: __D4vibe6stream7openssl11setSSLErrorFNbNeAyaQdiQgZv in libvibe-d_tls.a3 _ERR_set_error, referenced from: __D4vibe6stream7openssl11setSSLErrorFNbNeAyaQdiQgZv in libvibe-d_tls.a3 _SSL_get1_peer_certificate, referenced from: __D4vibe6stream7openssl13OpenSSLStream6__ctorMFNfSQBv8internal14interfaceproxy__T14InterfaceProxyTCQDs4coreQDv6StreamZQBlCQEpQEnQEj14OpenSSLContextEQFpQFn3tls14TLSStreamStateAyaSQGtQDb3net14NetworkAddressAQBfZCQHzQHxQHtQHo in libvibe-d_tls.a3 clang: error: linker command failed with exit code 1 (use -v to see invocation) Error: /usr/bin/cc failed with status: 1 Error ldc2 failed with exit code 1.

LongMeters avatar Mar 05 '24 09:03 LongMeters

Oh, can you install OpenSSL development libraries? (maybe via brew)

Dadoum avatar Mar 05 '24 19:03 Dadoum

Oh, can you install OpenSSL development libraries? (maybe via brew)

yes!,i will do it.

LongMeters avatar Mar 06 '24 02:03 LongMeters

OpenSSL

i reinstall openssl via brew , but does not work.

LongMeters avatar Mar 06 '24 13:03 LongMeters