I spoke too soon, looks like it was actually passing -fno-pie that caused the problem, though I don't really understand it. Easy enough to just omit it.
On Fri, 10 Nov 2023 at 19:15, Ralph Versteegen <teeem...@gmail.com> wrote: > The actual part of the build log which shows the root cause of the error > is right at the top: > > scons: Reading SConscript files ... > Using target: darwin arch: x86 fbc: fbc (1.06.0 (04-29-2016)) fbcc: > /opt/local/bin/gcc-mp-4.7 (gcc 4.7.4) cc: clang (LLVM 8.0.0) cctarget: > x86_64-apple-darwin15.6.0 > WARNING: due to bug in old fbc, dropping arg -Wc -Wno-missing-braces > WARNING: due to bug in old fbc, dropping arg -Wc -msse2 > WARNING: due to bug in old fbc, dropping arg -Wc -fno-pie > > So it seems it was the missing -msse2 arg that was the problem, > the -fno-pie was not passed before this commit anyway, but it made the > commandline too long. > > On Tue, 7 Nov 2023 at 11:16, James Paige via Ohrrpgce < > ohrrpgce@lists.motherhamster.org> wrote: > >> Yep, this commit seems to have broken the 32 bit Mac build, but the 64 >> bit Mac build is fine. >> >> clang -o relump build/relump.o build/os_sockets.o build/networkutil.o >> build/os_unix.o build/os_unix2.o build/util.o build/base64.o >> build/unicode.o build/array.o build/miscc.o build/fb/error.o >> build/lib/sha1.o build/lib/lodepng.o build/lib/lodepng_gzip.o >> build/filelayer.o build/globals.o build/lumpfile.o build/vector.o >> build/common_base.o build/util-datafiles.o -O2 -F >> /Users/james/Library/Frameworks -mmacosx-version-min=10.6 >> -Wl,-rpath,@executable_path/../Frameworks -Wl,-no_pie -m32 -Wl,-dead_strip >> -Wl,-L/Users/james/misc/fbc-1.06/bin/../lib/freebasic/darwin-x86 >> /Users/james/misc/fbc-1.06/bin/../lib/freebasic/darwin-x86/fbrt0.o -lfbmt >> -Wl,-S -lstdc++ -lpthread -lncurses >> clang: warning: libstdc++ is deprecated; move to libc++ with a minimum >> deployment target of OS X 10.9 >> ld: illegal text-relocation to '___stack_chk_guard' in >> /usr/lib/libpthread.dylib from '_fatal_signal_handler' in build/os_unix.o >> for architecture i386 >> ld: illegal text-relocation to '___stack_chk_guard' in >> /usr/lib/libpthread.dylib from '_fatal_signal_handler' in build/os_unix.o >> for architecture i386 >> clang: error: linker command failed with exit code 1 (use -v to see >> invocation) >> clang: error: linker command failed with exit code 1 (use -v to see >> invocation) >> scons: *** [relump] Error 1 >> scons: *** [unlump] Error 1 >> scons: building terminated because of errors. >> >> >> On Fri, Oct 27, 2023 at 10:06 PM subversion--- via Ohrrpgce < >> ohrrpgce@lists.motherhamster.org> wrote: >> >>> teeemcee >>> 2023-10-27 19:06:05 -0700 (Fri, 27 Oct 2023) >>> 130 >>> scons: fix compiling for Linux x86_64 with clang by cleaning up -no-pie >>> logic >>> >>> Hopefully this doesn't break Mac or FreeBSD builds. >>> --- >>> U wip/SConscript >>> >>> _______________________________________________ >>> Ohrrpgce mailing list >>> ohrrpgce@lists.motherhamster.org >>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org >>> >> _______________________________________________ >> Ohrrpgce mailing list >> ohrrpgce@lists.motherhamster.org >> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org >> >
_______________________________________________ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org