Opened 3 years ago

Closed 3 years ago

#63433 closed defect (invalid)

gd2: clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11.0'

Reported by: mengqiz Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hello,

I tried to install gnuplot and related packages using macports 2.7.1 on my Macbook (Big Sur 11.5.2 with MacOSX11.1.sdk. Note that I just download the MacOSX11.1.sdk from internet and moved it to /Library/Developer/CommandLineTools/SDKs. I didn't do anything linking(? or do I have to?)). The following is the output. I have also attached the two log files mentioned below. Please have a look. May I ask how can I solve it? Thank you.

sudo port install gnuplot imagemagick libav-tools smpeg-plaympeg
--->  Computing dependencies for gnuplot
The following dependencies will be installed: 
 Xft2
 fribidi
 gd2
 graphite2
 harfbuzz
 libcaca
 libcerf
 lua
 pango
 pkgconfig
 wxWidgets-3.0
 wxWidgets-common
 wxWidgets_select
Continue? [Y/n]: 
--->  Fetching archive for gd2
--->  Attempting to fetch gd2-2.3.2_0+x11.darwin_20.x86_64.tbz2 from https://packages.macports.org/gd2
--->  Attempting to fetch gd2-2.3.2_0+x11.darwin_20.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/gd2
--->  Attempting to fetch gd2-2.3.2_0+x11.darwin_20.x86_64.tbz2 from https://pek.cn.packages.macports.org/macports/packages/gd2
--->  Configuring gd2
Error: Failed to configure gd2: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gd2/gd2/work/libgd-2.3.2/config.log
Error: Failed to configure gd2: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gd2/gd2/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port gnuplot failed

Attachments (2)

config.log (12.9 KB) - added by mengqiz 3 years ago.
main.log (19.5 KB) - added by mengqiz 3 years ago.

Download all attachments as: .zip

Change History (5)

Changed 3 years ago by mengqiz

Attachment: config.log added

Changed 3 years ago by mengqiz

Attachment: main.log added

comment:1 Changed 3 years ago by mengqiz

Description: modified (diff)

comment:2 Changed 3 years ago by jmroot (Joshua Root)

Your command line tools are too old to use on macOS 11; you'll need to update them. See ProblemHotlist#reinstall-clt for instructions.

comment:3 in reply to:  description Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Resolution: invalid
Status: newclosed
Summary: Probably SDK error when installing a packagegd2: clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11.0'

Replying to mengqiz:

Note that I just download the MacOSX11.1.sdk from internet and moved it to /Library/Developer/CommandLineTools/SDKs.

That's not supported or recommended. Please remove it again.

There's no reason why you should want to use the old macOS 11.1 SDK when a newer version is available. Use the latest version of the macOS 11 SDK that comes with the latest version of the CLT that are compatible with macOS 11.

Note: See TracTickets for help on using tickets.