[MacPorts] #69812: /usr/bin/clang++ cannot compile anything when trying to compile as x86_64 on a current arm system against the MacOSX10.13.sdk
MacPorts
noreply at macports.org
Mon Jun 10 04:32:42 UTC 2024
#69812: /usr/bin/clang++ cannot compile anything when trying to compile as x86_64
on a current arm system against the MacOSX10.13.sdk
---------------------+--------------------
Reporter: lukaso | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: |
---------------------+--------------------
Comment (by kencu):
good new for you: macports-clang works, and the deployment target is set
to 10.13 as desired (I checked the verbose build).
This is on an arm64 Mac, either with a rosetta shell or not.
{{{
% cat hello.cpp
// Your First C++ Program
#include <iostream>
int main() {
std::cout << "Hello World!";
return 0;
}
% /opt/local/bin/clang++-mp-17 -pipe -Os -target x86_64-apple-darwin17
-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk
hello.cpp
% file a.out
a.out: Mach-O 64-bit executable x86_64
% ./a.out
Hello World!
}}}
--
Ticket URL: <https://trac.macports.org/ticket/69812#comment:28>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list