[MacPorts] #67014: gcl @2.6.12: cannot trap sbrk
MacPorts
noreply at macports.org
Tue Feb 28 02:01:06 UTC 2023
#67014: gcl @2.6.12: cannot trap sbrk
-------------------------+--------------------
Reporter: avstoddard | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: arm64
Port: gcl |
-------------------------+--------------------
Comment (by ryandesign):
Ok thanks. I was just curious whether `sbrk` existed at all on Apple
Silicon Macs. I noticed that on my Intel Mac the log said `sbrk` was
deprecated, and we've seen some other long-deprecated things finally
removed on Apple Silicon. But that doesn't appear to be the case here.
Rather, the test is just failing because it is trying to use `sbrk`
without including the header where it's declared:
{{{
configure:6830: checking that sbrk is (now) non-random
configure:6849: /usr/bin/clang -o conftest -pipe -Os -std=gnu89 -fno-pie
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64
-I/opt/local/include
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk
-L/opt/local/lib -Wl,-headerpad_max_install_names -fno-pie
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk
-arch arm64 conftest.c >&5
conftest.c:44:19: error: implicit declaration of function 'sbrk' [-Werror
,-Wimplicit-function-declaration]
fprintf(f,"%u",sbrk(0));
^
1 error generated.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/67014#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list