[MacPorts] #69744: tree-sitter-cpp Fails to Build on Mtn Lion - Undefined Symbol "_static_assert"
MacPorts
noreply at macports.org
Mon Apr 15 17:06:14 UTC 2024
#69744: tree-sitter-cpp Fails to Build on Mtn Lion - Undefined Symbol
"_static_assert"
---------------------+-----------------------------
Reporter: RobK88 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Keywords: mtnlion | Port: tree-sitter-cpp
---------------------+-----------------------------
tree-sitter-cpp fails to build on Mtn Lion - Undefined Symbol
"_static_assert".
{{{
bash-3.2$ sudo port clean tree-sitter-cpp
Password:
---> Cleaning tree-sitter-cpp
bash-3.2$ sudo port -v upgrade tree-sitter-cpp
---> Computing dependencies for tree-sitter-cpp.
---> Fetching archive for tree-sitter-cpp
---> tree-sitter-cpp-0.21.0_0.darwin_12.x86_64.tbz2 doesn't seem to exist
in /opt/local/var/macports/incoming/verified
---> Attempting to fetch tree-sitter-cpp-0.21.0_0.darwin_12.x86_64.tbz2
from http://packages.macports.org/tree-sitter-cpp
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0
---> Attempting to fetch tree-sitter-cpp-0.21.0_0.darwin_12.x86_64.tbz2
from http://ywg.ca.packages.macports.org/mirror/macports/packages/tree-
sitter-cpp
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0
---> Attempting to fetch tree-sitter-cpp-0.21.0_0.darwin_12.x86_64.tbz2
from http://mirror.fcix.net/macports/packages/tree-sitter-cpp
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0
---> Fetching distfiles for tree-sitter-cpp
---> Verifying checksums for tree-sitter-cpp
---> Checksumming tree-sitter-cpp-0.21.0.tar.gz
---> Extracting tree-sitter-cpp
---> Extracting tree-sitter-cpp-0.21.0.tar.gz
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_devel_tree-sitter-cpp/tree-sitter-
cpp/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/tree-
sitter-cpp/tree-sitter-cpp-0.21.0.tar.gz' | /usr/bin/gnutar --no-same-
owner -xf -
---> Configuring tree-sitter-cpp
---> Building tree-sitter-cpp
scanner.c:126:5: warning: implicit declaration of function 'static_assert'
is invalid in C99 [-Wimplicit-function-declaration]
static_assert(MAX_DELIMITER_LENGTH * sizeof(wchar_t) <
TREE_SITTER_SERIALIZATION_BUFFER_SIZE,
^
1 warning generated.
Undefined symbols for architecture x86_64:
"_static_assert", referenced from:
_tree_sitter_cpp_external_scanner_serialize in scanner.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
Command failed: /usr/bin/clang -isystem/opt/local/include/LegacySupport
-I/opt/local/include -Os -arch x86_64 -fPIC -shared *.o -o libtree-sitter-
cpp.dylib
Exit code: 1
Error: Failed to build tree-sitter-cpp: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_devel_tree-sitter-cpp/tree-sitter-
cpp/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe
there is a bug.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/69744>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list