Opened 10 years ago
Closed 10 years ago
#44983 closed defect (fixed)
streamlog @1.0: cc1plus: error: unrecognized command line option "-std=c++0x"
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | gtolemans@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.1 |
Keywords: | haspatch | Cc: | |
Port: | streamlog |
Description
streamlog @1.0 fails to build on the snowleopard buildslave:
/usr/bin/g++-4.2 -Dstreamlog_EXPORTS -pipe -Os -arch x86_64 -DNDEBUG -arch x86_64 -mmacosx-version-min=10.6 -fPIC -I/opt/local/var/macports/build/_opt_mports_dports_devel_streamlog/streamlog/work/v1.0 -I/usr/local/include -I/opt/local/include -std=c++0x -o CMakeFiles/streamlog.dir/streamlog.cpp.o -c /opt/local/var/macports/build/_opt_mports_dports_devel_streamlog/streamlog/work/v1.0/streamlog.cpp cc1plus: error: unrecognized command line option "-std=c++0x"
I would guess that version of gcc is too old to understand c++0x. Assuming c++0x is required, we could try blacklisting older compilers to fix this, so that MacPorts would use clang instead.
Attachments (1)
Change History (5)
comment:1 Changed 10 years ago by larryv (Lawrence Velázquez)
comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Then I'm surprised it built on Lion and Mountain Lion.
Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Attachment: | streamlog.diff added |
---|
comment:3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | haspatch added |
---|
It builds fine for me on Snow Leopard using the attached patch, which blacklists Xcode's compilers and thus falls back on macports-clang-3.4.
comment:4 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
r125583 (maintainer timeout)
Note: See
TracTickets for help on using
tickets.
“C++0x” is the same as C++11, with all the Snow Leopard caveats that that implies.