NetBSD-Bugs archive

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

toolchain/56120: build.sh (-m alpha) release fails on current on Darwin in libc compilation



>Number:         56120
>Category:       toolchain
>Synopsis:       build.sh (-m alpha) release fails on current on Darwin in libc compilation
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 21 11:30:01 +0000 2021
>Originator:     Chris Pinnock
>Release:        NetBSD-current sources as of approx 24 hours
>Organization:
>Environment:
Darwin MacMini-7390 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
chris@MacMini-7390% gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin20.3.0

>Description:

Build.sh cross-compiling on Darwin seems to be broken using a checkout from yesterday. The target machine was alpha but it could be more widespread. Due to a redefinition on wint_t

#   compile  compat/regcomp.lo
cc -O   -no-cpp-precomp -I. -I./include -I/Volumes/TimeMachine/Chris/NetBSD/src/tools/compat -I/Volumes/TimeMachine/Chris/NetBSD/src/tools/compat/sys  -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D__DBINTERFACE_PRIVATE -c -o regcomp.lo.o    /Volumes/TimeMachine/Chris/NetBSD/src/tools/compat/../../lib/libc/regex/regcomp.c
In file included from /Volumes/TimeMachine/Chris/NetBSD/src/tools/compat/../../lib/libc/regex/regcomp.c:80:
/Volumes/TimeMachine/Chris/NetBSD/src/tools/compat/../../lib/libc/regex/utils.h:46:15: error: 
      typedef redefinition with different types ('short' vs '__darwin_wint_t'
      (aka 'int'))
typedef short wint_t;
              ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_wint_t.h:32:25: note: 
      previous definition is here
typedef __darwin_wint_t wint_t;
                        ^
1 error generated.



>How-To-Repeat:
Get current sources on a Big Sur Intel machine.
./build.sh -U -m alpha release

>Fix:



Home | Main Index | Thread Index | Old Index