Opened 7 months ago
Closed 7 months ago
#69721 closed defect (fixed)
Development macports-base is broken after upgrade of clang-16 - ports don't build anymore
Reported by: | snowflake (Dave Evans) | Owned by: | jmroot (Joshua Root) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.9.99 |
Keywords: | Cc: | ||
Port: | clang-16 |
Description
I'm using the latest development version of base. After clang-16
was upgraded, I cannot build ports anymore. For example tree-sitter-java.
breaks in the build phase. Also many Python ports break.
I've tested this on macOS 10.11.6 and 14.4.1
I reverted base to v2.9.3 and tree-sitter-java now builds.
My current development checkout of macports-base is 50251d01cf130912ab8d9cf7461d0aa728b6aa7c/macports-base
Here's the log for tree-sitter-java:
---> Building tree-sitter-java DEBUG: Executing org.macports.build (tree-sitter-java) DEBUG: system -W /opt/local/var/macports/build/_Users_davidevans_macports_sources_github.com_macports_macports-ports_devel_tree-sitter-java/tree-sitter-java/work/tree-sitter-java-0.21.0/src: /usr/bin/clang -I/opt/local/include -Os -arch x86_64 -fPIC -c -I. parser.c chdir: /opt/local/var/macports/build/_Users_davidevans_macports_sources_github.com_macports_macports-ports_devel_tree-sitter-java/tree-sitter-java/work/tree-sitter-java-0.21.0/src: No such file or directory Command failed: /usr/bin/clang -I/opt/local/include -Os -arch x86_64 -fPIC -c -I. parser.c Exit code: 1 Error: Failed to build tree-sitter-java: command execution failed DEBUG: Error code: NONE DEBUG: Backtrace: command execution failed DEBUG: while executing DEBUG: "$procedure $targetname" Error: See /opt/local/var/macports/logs/_Users_davidevans_macports_sources_github.com_macports_macports-ports_devel_tree-sitter-java/tree-sitter-java/main.log for details.
Change History (5)
comment:1 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 7 months ago by snowflake (Dave Evans)
clang-16 appears to be a red herring. I at first thought the build may have corrupted my disk.
I've just bisected the error and it seems that base commit 7931cadd is the first commit that shows the error. I cleaned tree-sitter-java each time. Tested on Sonoma
comment:3 Changed 7 months ago by snowflake (Dave Evans)
Picking a python port at random, py311-wrapt
does not build. There are many more that don't build.
comment:4 Changed 7 months ago by jmroot (Joshua Root)
Version: | 2.8.99 → 2.9.99 |
---|
comment:5 Changed 7 months ago by jmroot (Joshua Root)
Owner: | set to jmroot |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Replying to snowflake:
That doesn't sound like a clang problem; it sounds like that directory doesn't exist. Does it?
I would try cleaning the affected port (
sudo port clean tree-sitter-java
) and trying again.