Opened 2 months ago
Last modified 2 weeks ago
#70733 new defect
gdb upgrade fails to build after selfupdate
Reported by: | TheLastLovemark | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.10.1 |
Keywords: | Cc: | Randrianasulu (Andrew Randrianasulu) | |
Port: | gdb |
Description
port upgrade gdb
fails to build on macOS 10.13.6 after performing port -fv selfupdate
The active installed version is gdb @13.2_0+multiarch+python311
The log file is attached.
Attachments (2)
Change History (13)
Changed 2 months ago by TheLastLovemark
Attachment: | gdb_upgrade-main.log added |
---|
comment:1 Changed 2 months ago by jmroot (Joshua Root)
comment:2 follow-up: 3 Changed 2 months ago by TheLastLovemark
Not 100% sure how that happened, but I have a hunch.
Do you know what specifically uses that version of clang
?
I do remember installing an additional CLT SDK, per the solution to an old ticket from years ago. Could that be the culprit behind the mystery clang version??
Please see #59938
I looked in /Library/Developer/CommandLineTools/SDKs
there are 3 SDKs in there:
- MacOSX.sdk
- MacOSX10.13.sdk 1
- MacOSX10.14.sdk <--- symlinked to 1.
comment:3 Changed 2 months ago by jmroot (Joshua Root)
Replying to TheLastLovemark:
Do you know what specifically uses that version of
clang
?
Probably everything that doesn't set use_xcode yes
, since it says it's installed in /Library/Developer/CommandLineTools/usr/bin
and that will be what gets run by /usr/bin/clang
when DEVELOPER_DIR='/Library/Developer/CommandLineTools'
. You might try reinstalling the CLTs?
comment:4 Changed 2 months ago by TheLastLovemark
pkgutil --pkg-info=com.apple.pkg.{CLTools_Executables,CLTools_Base,DeveloperToolsCLI,DeveloperToolsCLILeo} 2>/dev/null | sed -n 's/^version: //p'
reveals
10.1.0.0.1.1539992718
before the reinstall.
I have reinstalled the CLTs as instructed.
10.1.0.0.1.1539992718
after the reinstall.
Should I retry to install gdb now?
Changed 2 months ago by TheLastLovemark
Attachment: | gdb_upgrade-after_CLT_reinstall-main.log added |
---|
comment:5 Changed 2 months ago by TheLastLovemark
Failed again.
Log file is attached as gdb_upgrade-after_CLT_reinstall-main.log
.
comment:6 Changed 2 months ago by jmroot (Joshua Root)
It seems that that is just the clang version that the CLTs for Xcode 10.1 install, which doesn't match the version in Xcode itself for some reason.
comment:9 Changed 2 weeks ago by Randrianasulu (Andrew Randrianasulu)
Also fails in 10.12.6
configure: error: *** A compiler with support for C++17 language features is required.
comment:10 Changed 2 weeks ago by ryandesign (Ryan Carsten Schmidt)
Cc: | Randrianasulu added |
---|
There's no sign of that message in the original log. Different problems need to be filed in different tickets.
comment:11 Changed 2 weeks ago by Randrianasulu (Andrew Randrianasulu)
Ah, I just thought that both errors can be avoided by compiling gdb with one of new enough clangs installed by macports ....
Xcode 9.4.1 installs clang-902.0.39.2 and Xcode 10.0 has clang-1000.11.45.2. You seem to have something in between with clang-1000.10.44.4, despite the detected versions being
Xcode 10.1, CLT 10.1.0.0.1.1539992718
as per the log.