Hi, Wolfgang Lux wrote: >> I think this is quite a mess. > Well, cmake is a mess (unless you'r used to it, of course); my first > complaint is the lack of an equivalent for ./config.status -V, which would > just show the configuration parameters that were provided to cmake in this > particular build directory.
some further information about this. On FreeBSD 11.3 the "only" fix I need is to add this in libobjc2: cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo CMAKE_EXE_LINKER_FLAGS -lm Is enough. On FreeBSD 12 instead, the "-lm" hack is no longer needed (provided, as Wolfgang says, that I start with a cleanbuild directory, regerration doesn't wor, this was my culprit). So a clean start of everything now allows to compile everything (no gold linker needed) but things do not work then, I get a crash Starting program: /Local/Tools/Ink BFD: /System/Library/Bundles/libgnustep-back-028.bundle/libgnustep-back-028: version count (1588) does not match symbol count (2586) Program received signal SIGBUS, Bus error. 0x000000080021846a in ?? () from /libexec/ld-elf.so.1 (gdb) bt #0 0x000000080021846a in ?? () from /libexec/ld-elf.so.1 #1 0x0000000000000000 in ?? () (gdb) quit To solve this, I need to use ld.gold. ./configure --with-layout=gnustep --prefix=/ --with-library-combo=ng-gnu-gnu LD=/usr/local/bin/ld.gold LDFLAGS=-fuse-ld=/usr/local/bin/ld.gold And then rebuild everything. Interesting that this is needed ONLY on FreeBSD 12, not on FreeBSD 11 which works fine with the system linker|! Curious, or not? Riccardo