| Summary: | devel/dub linker error while building dub quarterly. | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Alain De Vos <devosalain> |
| Component: | Individual Port(s) | Assignee: | Jose Alonso Cardenas Marquez <acm> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | Flags: | bugzilla:
maintainer-feedback?
(acm) |
| Priority: | --- | ||
| Version: | Latest | ||
| Hardware: | amd64 | ||
| OS: | Any | ||
|
Description
Alain De Vos
2022-03-18 10:52:56 UTC
Currently: [00:00:01] Host OSVERSION: 1301000 [00:00:01] Jail OSVERSION: 1301000 Yet, same weird problem Could it be there is left over 32-bit code in dub. Or because ldc is still dependent of the old "devel/llvm70" With gcc linker i don't get undefined symbol error but i do get this error with clang/llvm. Or in my KERNELCONFIG FILE I have, nooption COMPAT_FREEBSD4 # Compatible with FreeBSD4 nooption COMPAT_FREEBSD5 # Compatible with FreeBSD5 nooption COMPAT_FREEBSD6 # Compatible with FreeBSD6 nooption COMPAT_FREEBSD7 # Compatible with FreeBSD7 nooption COMPAT_FREEBSD9 # Compatible with FreeBSD9 nooption COMPAT_FREEBSD10 # Compatible with FreeBSD10 nooption COMPAT_FREEBSD32 # Compatible with i386 binaries Could this be the reason. In Gentoo-Linux I do not experience this problem so it is weird. Hi Alain, I have abandoned this port a bit because lts bootstrap is not working with latest version of clang. We need compile a gdc compiler like bootstrap and with it compiles newest version of ldc. Nowadays gcc include a (gdc) gcc-based d compiler but it must be added to ports tree. If you need use ldc on FreeBSD you could try binary package from ldc project. It only supports amd64 https://github.com/ldc-developers/ldc/releases I'll keep open this PR and I'll update when I have news aout ldc on ports tree Downloading ldc2 tarball from git is not working. I receive the following error ``` HOST:x: /home/x/Dirs/Src/languages/dlangtut/a42_treeview >dub Performing "debug" build using ldc2 for x86_64. gtk-d:gtkd 3.9.0: target for configuration "library" is up to date. gtk-d:gstreamer 3.9.0: target for configuration "library" is up to date. gtk-d:peas 3.9.0: target for configuration "library" is up to date. gtk-d:sv 3.9.0: target for configuration "library" is up to date. gtk-d:vte 3.9.0: target for configuration "library" is up to date. gtkd_treeview ~master: building configuration "application"... Linking... /usr/local/bin/ld: /usr/local/bin/../lib/libdruntime-ldc.a(runtime.o): in function `_D4core7runtime19defaultTraceHandlerFPvZC6object9Throwable9TraceInfo': runtime.d:(.text._D4core7runtime19defaultTraceHandlerFPvZC6object9Throwable9TraceInfo+0x57): undefined reference to `backtrace' /usr/local/bin/ld: /usr/local/bin/../lib/libdruntime-ldc.a(runtime.o): in function `_D4core7runtime18runModuleUnitTestsUZ19unittestSegvHandlerUNbiPSQCk3sys5posix6signal9siginfo_tPvZv': runtime.d:(.text._D4core7runtime18runModuleUnitTestsUZ19unittestSegvHandlerUNbiPSQCk3sys5posix6signal9siginfo_tPvZv+0x23): undefined reference to `backtrace' /usr/local/bin/ld: runtime.d:(.text._D4core7runtime18runModuleUnitTestsUZ19unittestSegvHandlerUNbiPSQCk3sys5posix6signal9siginfo_tPvZv+0x33): undefined reference to `backtrace_symbols_fd' /usr/local/bin/ld: /usr/local/bin/../lib/libdruntime-ldc.a(runtime.o): in function `_D4core7runtime16DefaultTraceInfo6__ctorMFZCQBqQBoQBj': runtime.d:(.text._D4core7runtime16DefaultTraceInfo6__ctorMFZCQBqQBoQBj+0x13): undefined reference to `backtrace' /usr/local/bin/ld: /usr/local/bin/../lib/libdruntime-ldc.a(runtime.o): in function `_D4core7runtime16DefaultTraceInfo7opApplyMxFMDFKmKxAaZiZi': runtime.d:(.text._D4core7runtime16DefaultTraceInfo7opApplyMxFMDFKmKxAaZiZi+0x20): undefined reference to `backtrace_symbols' /usr/local/bin/ld: /usr/local/bin/../lib/libdruntime-ldc.a(runtime.o): in function `_DThn16_4core7runtime16DefaultTraceInfo7opApplyMxFMDFKmKxAaZiZi': runtime.d:(.text._DThn16_4core7runtime16DefaultTraceInfo7opApplyMxFMDFKmKxAaZiZi+0x24): undefined reference to `backtrace_symbols' collect2: error: ld returned 1 exit status Error: /usr/local/bin/gcc12 failed with status: 1 ldc2 failed with exit code 1. ``` Update a had performed a misconfiguration. (my bad) The github tarball seems to work fine as alternative. I have updated devel/dub to 1.29. Maybe it is fixed in current version. Feel free open this PR if you found same issues with devel/dub |