Opened 4 years ago

Last modified 4 years ago

#60739 closed defect

SFML 2.4.2 fails to build because it picks the wrong compiler — at Version 2

Reported by: programmingkidx Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: SFML

Description (last modified by programmingkidx)

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.

Change History (2)

comment:1 Changed 4 years ago by kencu (Ken)

I have fixed this error (I believe) with this commit [3ea1fb4eeb5b91940361d70634e003ec2fc572c5/macports-base].

I would be eternally grateful if you would install (from source) the current tip of the git repo on MacPorts base and run with that (or, at least implement the commit yourself in your current installation) and report back quickly if you see any errors.

A new base is coming soon, and I want to get this right before it comes out.

comment:2 Changed 4 years ago by programmingkidx

Description: modified (diff)

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.

Last edited 4 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)
Note: See TracTickets for help on using tickets.