[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:41 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 kencu):

 On another note, I have set up a binaries server with many many GB of
 prebuilt binaries for MacOSX 10.4 Intel, 10.4 PPC, and 10.5 PPC. If you
 email me at kencu at macports.org, I will send you the information regarding
 how to access it.

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


More information about the macports-tickets mailing list