#31069 closed defect (fixed)
ice-cpp build fails with clang++
Reported by: | balazs.vagvolgyi@… | Owned by: | blair (Blair Zajac) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.1 |
Keywords: | Cc: | ||
Port: | ice-cpp |
Description
On Mac OS X 10.7 (Lion), right after a fresh MacPorts install, while compiling ice-cpp
:
Error: Target org.macports.build returned: shell command failed (see log for details)
Attachments (1)
Change History (11)
Changed 13 years ago by balazs.vagvolgyi@…
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | build fail ice-cpp removed |
---|---|
Owner: | changed from macports-tickets@… to blair@… |
The actual first error in the log is:
../../include/Ice/Handle.h:106:13: error: call to function 'upCast' that is neither visible in the template definition nor found by argument-dependent lookup
comment:2 Changed 13 years ago by blair (Blair Zajac)
Did you set up Lion to use clang? The compile worked for me using the standard g++ compiler.
comment:3 Changed 13 years ago by jmroot (Joshua Root)
Summary: | ice-cpp build fails on Lion → ice-cpp build fails with clang++ |
---|
The reporter is probably running Xcode 4.2.
comment:4 Changed 13 years ago by balazs.vagvolgyi@…
Did you set up Lion to use clang? The compile worked for me using the standard g++ compiler.
No, I'm using GCC.
The reporter is probably running Xcode 4.2.
Indeed, I'm using Xcode 4.2. I just realized it was still beta. Should I downgrade to 4.1?
comment:5 follow-up: 6 Changed 13 years ago by blair (Blair Zajac)
I don't have Xcode 4.2 so can't test it. Can you add this to the Portfile and see if the compile works.
if {${configure.compiler} == "clang"} { configure.compiler gcc-4.2 }
comment:6 Changed 13 years ago by balazs.vagvolgyi@…
I don't have Xcode 4.2 so can't test it. Can you add this to the Portfile and see if the compile works.
I'm sorry but meanwhile I downgraded to Xcode 4.1 stable and that solved the compilation issues.
comment:7 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Can someone with Xcode 4.2 final please say yes or no whether ice-cpp builds correctly with the default clang compiler?
comment:8 Changed 13 years ago by blair (Blair Zajac)
I can reproduce the issue with Xcode 4.2.1, I just did a
$ port -f uninstall ice-cpp $ port -v install ice-cpp
and got this error:
/Developer/usr/bin/clang++ -c -I.. -I../../include -DICE_API_EXPORTS -I/opt/local/include -g -O2 -DNDEBUG -Wall -D_REENTRANT Acceptor.cpp In file included from Acceptor.cpp:10: In file included from ../Ice/Acceptor.h:14: In file included from ../Ice/AcceptorF.h:15: ../../include/Ice/Handle.h:106:13: error: call to function 'upCast' that is neither visible in the template definition nor found by argument-dependent lookup upCast(this->_ptr)->__decRef(); ^
comment:9 Changed 13 years ago by blair (Blair Zajac)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in r87417 by using g++ if clang++ is the default compiler.
comment:10 Changed 13 years ago by blair (Blair Zajac)
BTW, ZeroC has stated they will not be supporting Clang until somebody pays them to:
ice-cpp build error log