NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-amd64/57982: Build Error or netbsd-10 branch on Mac OS X



>Number:         57982
>Category:       port-amd64
>Synopsis:       Build Error or netbsd-10 branch on Mac OS X
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 02 11:35:00 +0000 2024
>Originator:     Hubert Feyrer
>Release:        netbsd-10 branch
>Organization:
private
>Environment:
the-future-is-now% uname -a
Darwin the-future-is-now.fritz.box 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:28:58 PST 2023; root:xnu-10002.81.5~7/RELEASE_X86_64 x86_64
the-future-is-now% gcc -v
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: x86_64-apple-darwin23.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>Description:
===> build.sh command:    ./build.sh -U -j2 -r -X ../xsrc-current -x -m amd64 -T tooldir.Darwin -O /Volumes/netbsd-src-objdestdir/netbsd-10/obj.amd64-Darwin-XXX -D /Volumes/netbsd-src-objdestdir/netbsd-10/destdir.amd64 -R release.amd64 release iso-image install-image
===> build.sh started:    Sat Mar  2 11:50:19 CET 2024
===> NetBSD version:      10.0_RC5
===> MACHINE:             amd64
===> MACHINE_ARCH:        x86_64
===> Build platform:      Darwin 23.3.0 x86_64
===> HOST_SH:             /bin/sh
===> Bootstrapping nbmake

...

While building module 'LLVM_Utils' imported from /Users/feyrer/work/NetBSD/cvs/src-10/tools/llvm-lib/libLLVMSupport/../../llvm/../../external/apache2/llvm/lib/../dist/llvm/lib/Support/AArch64TargetParser.cpp:14:
In file included from <module-includes>:126:
/Users/feyrer/work/NetBSD/cvs/src-10/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/feyrer/work/NetBSD/cvs/src-10/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.

...

nbmake[4]: stopped in /Users/feyrer/work/NetBSD/cvs/src-10/tools
nbmake[3]: stopped in /Users/feyrer/work/NetBSD/cvs/src-10
nbmake[2]: stopped in /Users/feyrer/work/NetBSD/cvs/src-10

nbmake[1]: stopped in /Users/feyrer/work/NetBSD/cvs/src-10

nbmake: stopped in /Users/feyrer/work/NetBSD/cvs/src-10

ERROR: Failed to make release

*** BUILD ABORTED ***
>How-To-Repeat:
Use Mac OS and Xcode, checkout netbsd-10 branch as of 2024-03-02, then:

./build.sh -U -j2 -r -X ../xsrc-current -x -m amd64 -T tooldir.Darwin -O /Volumes/netbsd-src-objdestdir/netbsd-10/obj.amd64-Darwin-XXX -D /Volumes/netbsd-src-objdestdir/netbsd-10/destdir.amd64 -R release.amd64 release iso-image install-image
>Fix:
No idea.



Home | Main Index | Thread Index | Old Index