On Wed, Oct 27, 2021 at 09:22:41PM -0400, Kurt Mosiejczuk wrote: > On Thu, Oct 28, 2021 at 11:30:34AM +1100, Jonathan Gray wrote: > > On Tue, Oct 26, 2021 at 06:20:47PM -0400, Kurt Mosiejczuk wrote: > > > On Tue, Oct 26, 2021 at 10:04:42PM +0200, Christian Weisgerber wrote: > > > > lang/python/3.8 fails to build with llvm13. The reason appears to be > > > > some silly confusion between "openbsd7" and "openbsd7.0" in the build > > > > system: > > > > > The trigger appears to be the new support for "cc --print-multiarch": > > > > > llvm 12 says on stderr: > > > > cc: error: unsupported option '--print-multiarch' > > > > cc: error: no input files > > > > > llvm 13 says on stdout: > > > > amd64-unknown-openbsd7.0 > > > > > I haven't managed to trace this any further. > > > > This patch to configure.ac should neutralize the MULTIARCH stuff which > > > isn't applicable to OpenBSD anyway. It builds properly on my laptop which > > > is > > > still using LLVM 11.1. I'll try building LLVM 13 tonight and see if it > > > works with that, but someone else is welcome to try this patch before I > > > get to it. > > > also needed for lang/python/3.9 > > Did the readline module compile ok for you? I did this same diff, but the > readline module built but then I got an error because it wouldn't import > properly. > > --Kurt
the packages built but the log indeed suggests some readline problems cc -pthread -shared -fPIC -L/usr/local/lib/ -L/usr/ports/pobj/Python-3.9.7/Python-3.9.7 -L/usr/local/lib/ -L/usr/ports/pobj/Python-3.9.7/Python-3.9.7 -L/usr/local/lib/ -O2 -pipe -g build/temp.openbsd-7.0-amd64-3.9/usr/ports/pobj/Python-3.9.7/Python-3.9.7/Modules/_ctypes/_ctypes.o build/temp.openbsd-7.0-amd64-3.9/usr/ports/pobj/Python-3.9.7/Python-3.9.7/Modules/_ctypes/callbacks.o build/temp.openbsd-7.0-amd64-3.9/usr/ports/pobj/Python-3.9.7/Python-3.9.7/Modules/_ctypes/callproc.o build/temp.openbsd-7.0-amd64-3.9/usr/ports/pobj/Python-3.9.7/Python-3.9.7/Modules/_ctypes/cfield.o build/temp.openbsd-7.0-amd64-3.9/usr/ports/pobj/Python-3.9.7/Python-3.9.7/Modules/_ctypes/stgdict.o -L. -L/usr/ports/pobj/Python-3.9.7/Python-3.9.7 -L/usr/local/lib/ -L/usr/local/lib -lffi -o build/lib.openbsd-7.0-amd64-3.9/_ctypes.cpython-39.so *** WARNING: renaming "readline" since importing it failed: dynamic module does not define module export function (PyInit_readline)