[144088] trunk/dports/lang/ruby23/Portfile
kimuraw at macports.org
kimuraw at macports.org
Fri Jan 1 00:06:23 PST 2016
Revision: 144088
https://trac.macports.org/changeset/144088
Author: kimuraw at macports.org
Date: 2016-01-01 00:06:23 -0800 (Fri, 01 Jan 2016)
Log Message:
-----------
lang/ruby23: fix build failure with OS X 10.10 and Xcode-6.4
Xcode-6.4 fails to compile regexec.c with an optimization flag
"-Os" (MacPorts' default value). Xcode-7.0 or later works fine.
buildbot log:
https://build.macports.org/builders/buildports-yosemite-x86_64/builds/6960
{{{
:
compiling regexec.c
Stack dump:
0. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -cc1 -triple x86_64-apple-macosx10.10.0 -emit-obj -disable-free -disable-llvm-verifier -main-file-name regexec.c -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 242.2 -dwarf-column-info -coverage-file /opt/local/var/macports/build/_opt_mports_dports_lang_ruby23/ruby23/work/ruby-2.3.0/regexec.o -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.1.0 -D _FORTIFY_SOURCE=2 -D RUBY_EXPORT -D _XOPEN_SOURCE -D _DARWIN_C_SOURCE -D _DARWIN_UNLIMITED_SELECT -D _REENTRANT -I /opt/local/include -I /opt/local/include -I . -I .ext/include/x86_64-darwin14 -I ./include -I . -I/opt/local/include -Os -fdebug-compilation-dir /opt/local/var/macports/build/_opt_mports_dports_lang_ruby23/ruby23/work/ruby-2.3.0 -ferror-limit 19 -fmessage-length 0
-fvisibility hidden -fwrapv -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.10.0 -fencode-extended-block-signature -fmax-type-align=16 -fno-common -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o regexec.o -x c regexec.c
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module 'regexec.c'.
4. Running pass 'Loop Pass Manager' on function '@match_at'
5. Running pass 'Loop Invariant Code Motion' on basic block '%4037'
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
}}}
Modified Paths:
--------------
trunk/dports/lang/ruby23/Portfile
Modified: trunk/dports/lang/ruby23/Portfile
===================================================================
--- trunk/dports/lang/ruby23/Portfile 2015-12-31 23:50:07 UTC (rev 144087)
+++ trunk/dports/lang/ruby23/Portfile 2016-01-01 08:06:23 UTC (rev 144088)
@@ -60,6 +60,14 @@
configure.args-append "--with-arch=${build_arch}"
}
+# Avoid compile error for regexec.c with Xcode-6.4
+# https://build.macports.org/builders/buildports-yosemite-x86_64/builds/6960
+if {[info exists xcodeversion] && [vercmp $xcodeversion 6.4] == 0} {
+ if {${configure.cc} eq "/usr/bin/clang" && ${configure.optflags} eq "-Os"} {
+ configure.optflags -O3
+ }
+}
+
post-destroot {
foreach type {site vendor} {
set libdir ${destroot}${prefix}/lib/ruby2.3/${type}_ruby/2.3.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160101/708c822a/attachment.html>
More information about the macports-changes
mailing list