Opened 6 months ago

Closed 6 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 in reply to:  description Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to snowflake:

Here's the log for tree-sitter-java:

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

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.

comment:2 Changed 6 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 6 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 6 months ago by jmroot (Joshua Root)

Version: 2.8.992.9.99

comment:5 Changed 6 months ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 8301cdf4ec1e9b1ba127d68e719997532c921782/macports-base (master):

Manage option_defaults for constant defaults

Not doing this meant re-registering the default for an option didn't
work as expected. Merged defaultc into default since most of what the
latter does can't be avoided. Still avoiding the read trace for
constant values.

Closes: #69721

Note: See TracTickets for help on using tickets.