Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
compiling NetBSD-current with clang on MacOS fails
I am trying to build NetBSD-current on a Mac using clang (build.sh -c clang), but it fails when trying to build the compiler.
A subset of the output is below, which includes (i) the first bit of build.sh output, which shows the whole command, (ii) the command to build dependencies for one of the llvm files, which finds <ratio> in the Xcode files, and (iii) the first command that fails, which attempts to compile the same file but does not find <ratio>. Note that the same command with -c gcc works fine.
It seems that nbhost-mkdep and c++ have different views of where to look for files.
Can anyone else reproduce this?
How can this be fixed?
Thanks for your help.
Cheers,
Brook
===> build.sh command: build.sh -U -u -c clang -m evbarm -a earmv7hf -O /Users/brook/NetBSD/NetBSD/src-current/../evbarm-earmv7hf-current-clang/obj -D /Users/brook/NetBSD/NetBSD/src-current/../evbarm-earmv7hf-current-clang/destdir -R /Users/brook/NetBSD/NetBSD/src-current/../evbarm-earmv7hf-current-clang/release -T /Users/brook/NetBSD/NetBSD/src-current/../evbarm-earmv7hf-current-clang/tools -V INSTALLBOOT_UBOOT_PATHS=/Users/brook/Pkgsrc/pkg-2023Q2/share/u-boot -V INSTALLBOOT_BOARDS=ti,am335x-bone-black release
===> build.sh started: Wed Nov 27 10:00:16 MST 2024
===> NetBSD version: 10.99.12
===> MACHINE: evbarm
===> MACHINE_ARCH: earmv7hf
===> Build platform: Darwin 22.6.0 x86_64
===> HOST_SH: /bin/sh
===> No $TOOLDIR/bin/nbmake, needs building.
< deleted >
#### this command finds a dependency for <ratio> in the Xcode files
####
# create libLLVMSupport/AArch64TargetParser.d
/Users/brook/NetBSD/NetBSD/src-current/../evbarm-earmv7hf-current-clang/tools/bin/nbhost-mkdep -f AArch64TargetParser.d.tmp -- -I. -I/Users/brook/NetBSD/NetBSD/src-current/tools/llvm-lib/libLLVMSupport/../../llvm/../../external/apache2/llvm/lib/../dist/clang/include -I/Users/brook/NetBSD/NetBSD/src-current/tools/llvm-lib/libLLVMSupport/../../llvm/../../external/apache2/llvm/lib/../dist/llvm/include -I/Users/brook/NetBSD/NetBSD/src-current/../evbarm-earmv7hf-current-clang/obj/tools/llvm-include -I/Users/brook/NetBSD/NetBSD/src-current/../evbarm-earmv7hf-current-clang/obj/tools/llvm/config/include -I/Users/brook/NetBSD/NetBSD/src-current/../evbarm-earmv7hf-current-clang/obj/tools/llvm/config/tools/clang/include /Users/brook/NetBSD/NetBSD/src-current/tools/llvm-lib/libLLVMSupport/../../llvm/../../external/apache2/llvm/lib/../dist/llvm/lib/Support/AArch64TargetParser.cpp && mv -f AArch64TargetParser.d.tmp AArch64TargetParser.d
< deleted >
#### this command fails to find <ratio>
####
# compile libLLVMSupport/AArch64TargetParser.lo
c++ -O -O2 -fno-rtti -fno-exceptions -fno-strict-aliasing -fmodules -fcxx-modules -Werror=incomplete-umbrella -fmodules-validate-system-headers -Xclang -fmodules-local-submodule-visibility -fmodules-cache-path=/Users/brook/NetBSD/NetBSD/src-current/../evbarm-earmv7hf-current-clang/obj/tools/llvm/module.cache -std=c++14 -I. -I/Users/brook/NetBSD/NetBSD/src-current/tools/llvm-lib/libLLVMSupport/../../llvm/../../external/apache2/llvm/lib/../dist/clang/include -I/Users/brook/NetBSD/NetBSD/src-current/tools/llvm-lib/libLLVMSupport/../../llvm/../../external/apache2/llvm/lib/../dist/llvm/include -I/Users/brook/NetBSD/NetBSD/src-current/../evbarm-earmv7hf-current-clang/obj/tools/llvm-include -I/Users/brook/NetBSD/NetBSD/src-current/../evbarm-earmv7hf-current-clang/obj/tools/llvm/config/include -I/Users/brook/NetBSD/NetBSD/src-current/../evbarm-earmv7hf-current-clang/obj/tools/llvm/config/tools/clang/include -c -o AArch64TargetParser.lo.o /Users/brook/NetBSD/NetBSD/src-current/tools/llvm-lib/libLLVMSupport/../../llvm/../../external/apache2/llvm/lib/../dist/llvm/lib/Support/AArch64TargetParser.cpp
While building module 'LLVM_Utils' imported from /Users/brook/NetBSD/NetBSD/src-current/tools/llvm-lib/libLLVMSupport/../../llvm/../../external/apache2/llvm/lib/../dist/llvm/lib/Support/AArch64TargetParser.cpp:14:
In file included from <module-includes>:126:
/Users/brook/NetBSD/NetBSD/src-current/tools/llvm-lib/libLLVMSupport/../../llvm/../../external/apache2/llvm/lib/../dist/llvm/include/llvm/Support/Chrono.h:79:30: error: missing '#include <ratio>'; 'ratio' must be declared before it is used
template <> struct unit<std::ratio<3600>> { static const char value[]; };
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/ratio:250:28: note: declaration here is not visible
class _LIBCPP_TEMPLATE_VIS ratio
^
/Users/brook/NetBSD/NetBSD/src-current/tools/llvm-lib/libLLVMSupport/../../llvm/../../external/apache2/llvm/lib/../dist/llvm/lib/Support/AArch64TargetParser.cpp:14:10: fatal error: could not build module 'LLVM_Utils'
#include "llvm/Support/AArch64TargetParser.h"
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
Home |
Main Index |
Thread Index |
Old Index