Ticket #31069 (closed defect: fixed)
ice-cpp build fails with clang++
| Reported by: | balazs.vagvolgyi@… | Owned by: | blair@… |
|---|---|---|---|
| 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
Change History
comment:1 Changed 21 months ago by ryandesign@…
- 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 21 months ago by blair@…
Did you set up Lion to use clang? The compile worked for me using the standard g++ compiler.
comment:3 Changed 21 months ago by jmr@…
- Summary changed from ice-cpp build fails on Lion to ice-cpp build fails with clang++
The reporter is probably running Xcode 4.2.
comment:4 Changed 21 months 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 21 months ago by blair@…
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 in reply to: ↑ 5 Changed 21 months 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 18 months ago by ryandesign@…
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 18 months ago by blair@…
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 18 months ago by blair@…
- Status changed from new to closed
- Resolution set to fixed
Fixed in r87417 by using g++ if clang++ is the default compiler.
comment:10 Changed 18 months ago by blair@…
BTW, ZeroC has stated they will not be supporting Clang until somebody pays them to:


ice-cpp build error log