[MacPorts] #66380: R @4.2.2_1: error when installing package "later: ld: library not found for -latomic
MacPorts
noreply at macports.org
Sat Dec 3 11:54:44 UTC 2022
#66380: R @4.2.2_1: error when installing package "later: ld: library not found for
-latomic
---------------------------+--------------------
Reporter: MarcKaufmann | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: R |
---------------------------+--------------------
Comment (by kencu):
Ryan is right, -latomic should not be needed. He found the script bit that
tests for it, I modified it very slightly, and every time I run this
script on Intel Ventura, it says "-latomic linker flag not needed."
Can I ask what you see?
{{{
#!/bin/sh
echo "Running configure script"
# Find compiler
CC=clang++-mp-14
# Detect whether -latomic is needed during linking. This is needed on some
# platforms, notably ARM (Raspberry Pi).
echo "#include <stdint.h>
uint64_t v;
int main() {
return (int)__atomic_load_n(&v, __ATOMIC_ACQUIRE);
}" | ${CC} -x c -
if [ $? -eq 0 ]; then
echo "-latomic linker flag not needed."
else
echo "-latomic linker flag needed."
EXTRA_PKG_LIBS=-latomic
fi
# Success
exit 0
}}}
--
Ticket URL: <https://trac.macports.org/ticket/66380#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list