Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Can't build evbarm
>> My setup is cross-building NetBSD on macOS.
>>
>> Adam
>
> I’ve have issues building on macOS (since Big Sur) where the target is amd64, arm64 or i386. The tools for CTF do not work properly. Lukem put some fixes in place but I’m not sure if they were fully resolved. You might get away with building with 1 thread IIRC.
> Can you paste the errors you are getting please?
>
>
> Kind regards
> Chris
The build fails rather quickly.
===> build.sh command: ./build.sh -N2 -U -j12 -X/dist/xsrc -aaarch64 -mevbarm -T/dist/tools.aarch64 -O/tmp/pkgsrc/obj.aarch64 -D/tmp/pkgsrc/destdir.aarch64 -R/dist/releases -V MAKECONF=/dist/mk.conf -V HOST_CC=/usr/bin/clang -V HOST_CXX=/usr/bin/clang++ -V HOST_CFLAGS=-O2 -mcpu=native -fno-stack-protector -V HOST_CXXFLAGS=-O2 -mcpu=native -fno-stack-protector release
===> build.sh started: Thu Jan 25 20:02:12 CET 2024
===> NetBSD version: 10.99.10
===> MACHINE: evbarm
===> MACHINE_ARCH: aarch64
===> Build platform: Darwin 23.3.0 arm64
===> HOST_SH: /bin/sh
===> getenv MAKECONF: /dist/mk.conf
===> MAKECONF file: /dist/mk.conf
# objdir /tmp/pkgsrc/obj.aarch64/tools
===> TOOLDIR path: /dist/tools.aarch64
===> DESTDIR path: /tmp/pkgsrc/destdir.aarch64
===> RELEASEDIR path: /dist/releases
===> Updated makewrapper: /dist/tools.aarch64/bin/nbmake-evbarm
[...]
/usr/bin/clang -O2 -mcpu=native -fno-stack-protector -no-cpp-precomp -I. -I./include -I/dist/src/tools/compat -I/dist/src/tools/compat/sys -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -no-cpp-precomp -I. -I./include -I/dist/src/tools/compat -I/dist/src/tools/compat/sys -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D__DBINTERFACE_PRIVATE -c -o pwcache.lo.o /dist/src/tools/compat/../../lib/libc/gen/pwcache.c
--- md2.lo ---
/dist/src/tools/compat/../../lib/libc/hash/md2/md2.c:130:4: error: call to undeclared function 'MD2Transform'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
MD2Transform(context); /* resets i */
^
/dist/src/tools/compat/../../lib/libc/hash/md2/md2.c:163:1: error: conflicting types for 'MD2Transform'
MD2Transform(MD2_CTX *context)
^
/dist/src/tools/compat/../../lib/libc/hash/md2/md2.c:130:4: note: previous implicit declaration is here
MD2Transform(context); /* resets i */
^
2 errors generated.
*** Failed target: md2.lo
*** Failed commands:
${_MKTARGET_COMPILE}
=> @echo '# ' "compile " compat/md2.lo
${HOST_COMPILE.c} -o ${.TARGET}.o ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC}
=> /usr/bin/clang -O2 -mcpu=native -fno-stack-protector -no-cpp-precomp -I. -I./include -I/dist/src/tools/compat -I/dist/src/tools/compat/sys -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -no-cpp-precomp -I. -I./include -I/dist/src/tools/compat -I/dist/src/tools/compat/sys -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D__DBINTERFACE_PRIVATE -c -o md2.lo.o /dist/src/tools/compat/../../lib/libc/hash/md2/md2.c
${MV} ${.TARGET}.o ${.TARGET}
=> mv -f md2.lo.o md2.lo
*** [md2.lo] Error code 1
nbmake[7]: stopped in /dist/src/tools/compat
Home |
Main Index |
Thread Index |
Old Index