[MacPorts] #60739: SFML 2.4.2 fails to build because it picks the wrong compiler

MacPorts noreply at macports.org
Tue Jun 30 00:38:09 UTC 2020


#60739: SFML 2.4.2 fails to build because it picks the wrong compiler
------------------------------+----------------------------
  Reporter:  programmingkidx  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:  MacPorts 2.6.3
 Component:  ports            |    Version:
Resolution:                   |   Keywords:  SFML
      Port:  SFML             |
------------------------------+----------------------------

Old description:

> I tried building SFML on Mac OS 10.4 (intel) and it failed to build.
>
> Here is the error:
>
> :info:configure Error when bootstrapping CMake:
> :info:configure Cannot find a C++ compiler that supports both C++11 and
> the specified C++ flags.
> :info:configure Please specify one using environment variable CXX.
> :info:configure The C++ flags are "-pipe -Os -fpermissive -stdlib
> =macports-libstdc++ -D_GLIBCXX_USE_CXX11_ABI=0 -arch i386".
> :info:configure They can be changed using the environment variable
> CXXFLAGS.
> :info:configure See cmake_bootstrap.log for compilers attempted.
>
> I'm thinking a good fix to this issue is to scan the /opt/local/bin/
> folder for compilers that should work. I do have gcc-7 install. For some
> reason it picked /opt/local/bin/clang++-mp-3.4 instead.

New description:

 I tried building SFML on Mac OS 10.4 (intel) and it failed to build.

 Here is the error:
 {{{
 :info:configure Error when bootstrapping CMake:
 :info:configure Cannot find a C++ compiler that supports both C++11 and
 the specified C++ flags.
 :info:configure Please specify one using environment variable CXX.
 :info:configure The C++ flags are "-pipe -Os -fpermissive -stdlib
 =macports-libstdc++ -D_GLIBCXX_USE_CXX11_ABI=0 -arch i386".
 :info:configure They can be changed using the environment variable
 CXXFLAGS.
 :info:configure See cmake_bootstrap.log for compilers attempted.
 }}}

 I'm thinking a good fix to this issue is to scan the /opt/local/bin/
 folder for compilers that should work. I do have gcc-7 install. For some
 reason it picked /opt/local/bin/clang++-mp-3.4 instead.

--

Comment (by programmingkidx):

 I found this in the cmake_bootstrap.log file:

 clang: error: invalid library name in argument '-stdlib=macports-
 libstdc++'
 Test failed to compile

 The only compiler that is tested is clang++-3.4.

-- 
Ticket URL: <https://trac.macports.org/ticket/60739#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list