On 2012-12-09 04:54, Ryan Schmidt wrote: >> Modified Paths: >> -------------- >> trunk/dports/_resources/port1.0/group/crossgcc-1.0.tcl > >> # http://trac.macports.org/ticket/29104 >> - if {${configure.compiler} == "llvm-gcc-4.2"} { >> - configure.compiler clang >> + # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48301 >> + if {[vercmp ${xcodeversion} 4.3] < 0} { >> + compiler.blacklist llvm-gcc-4.2 >> } > > I was going to ask if you could use the compiler_blacklist_versions portgroup > to check the build number of llvm-gcc-4.2 instead of the Xcode version, since > it is possible for users to mismatch those. But according to the information > in > > https://trac.macports.org/wiki/XcodeVersionInfo > > and > > http://en.wikipedia.org/wiki/Xcode#Toolchain_Versions > > the llvm-gcc-4.2 build number has been 5658 ever since Xcode 3.2.3, so that > doesn't help us. Meanwhile the llvm build number has allegedly increased. Is > that the build number we should be checking for llvm-gcc-4.2 in the > portgroup? If so how do I obtain that number? Our wiki page says I should be > able to get it from `llvm-gcc --version`, but I don't:
I just added the information I got from the upstream bug report. The problem is that bugs in the compiler might occur both in the frontend or in the backend. With the increasing compiler build number we can assume the bug to be fixed in the corresponding backend. However, for llvm-gcc the build number is not increasing, thus, we would have to rely on the LLVM version it has been linked to. So, if I take the information from Wikipedia, this check should actually blacklist LLVM < 2336.9.00. > $ llvm-gcc --version | head -1 > llvm-gcc (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build) On which system is this? On my Mountain Lion with Xcode 4.5.2, I get details on the LLVM build version: $ llvm-gcc --version |head -1 i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) Rainer _______________________________________________ macports-dev mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macports-dev
