[MacPorts] #49764: babl @0.1.14 falls back to clang-3.4 which is not functional on PPC platforms
MacPorts
noreply at macports.org
Sun Oct 23 05:09:24 CEST 2016
#49764: babl @0.1.14 falls back to clang-3.4 which is not functional on PPC
platforms
--------------------------+----------------------
Reporter: braumann@… | Owner: dbevans
Type: enhancement | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: powerpc
Port: clang34 |
--------------------------+----------------------
Comment (by ken-cunningham-webuse):
well, it took a little messing around and trying various things, but this
compile line finally worked:
{{{
$ cat test_throw.cxx
#include <cstdio>
#include <cstdlib>
int main(int argc, char **argv) {
try {
const char *message = "This is a test";
throw message;
return 0;
} catch(const char* result) {
printf("caught: %s\n", result);
return 1;
}
}
}}}
{{{
clang++ -arch ppc -I/usr/include/c++/4.0.0/powerpc-apple-darwin9 -fPIE
-pie -stdlib=libstdc++ -m32 test_throw.cxx -o test_throw.ppc
}}}
which gave us
{{{
$ ./test_throw.ppc
caught: This is a test
}}}
and -to me- that looks like it's working. Here's the full build
{{{
$ clang++ -v -arch ppc -I/usr/include/c++/4.0.0/powerpc-apple-darwin9
-fPIE -pie -stdlib=libstdc++ -m32 test_throw.cxx -o test_throw.ppc
clang version 3.4.2 (tags/RELEASE_34/dot2-final)
Target: powerpc-apple-darwin9.8.0
Thread model: posix
Selected GCC installation:
"/opt/local/libexec/llvm-3.4/bin/clang" -cc1 -triple powerpc-apple-
darwin9.8.0 -S -disable-free -disable-llvm-verifier -main-file-name
test_throw.cxx -mrelocation-model pic -pic-level 2 -pie-level 2 -mdisable-
fp-elim -fmath-errno -target-linker-version 127.2 -v -resource-dir
/opt/local/libexec/llvm-3.4/bin/../lib/clang/3.4.2 -I
/usr/include/c++/4.0.0/powerpc-apple-darwin9 -stdlib=libstdc++
-fdeprecated-macro -fno-dwarf2-cfi-asm -fno-dwarf-directory-asm -fno-
autolink -fdebug-compilation-dir /users/shared/libunwind_test -ferror-
limit 19 -fmessage-length 230 -mstackrealign -fobjc-runtime=gcc -fcxx-
exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-slp -o /var/tmp/test_throw-5b39d8.s -x c++ test_throw.cxx
clang -cc1 version 3.4.2 based upon LLVM 3.4.2 default target powerpc-
apple-darwin9.8.0
ignoring nonexistent directory "/usr/include/c++/4.2.1"
ignoring nonexistent directory "/usr/include/c++/4.2.1/powerpc-apple-
darwin10/"
ignoring nonexistent directory "/usr/include/c++/4.2.1/backward"
ignoring nonexistent directory "/usr/include/c++/4.0.0/powerpc-apple-
darwin10/"
ignoring nonexistent directory "/usr/local/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/include/c++/4.0.0/powerpc-apple-darwin9
/usr/include/c++/4.0.0
/usr/include/c++/4.0.0/backward
/opt/local/libexec/llvm-3.4/bin/../lib/clang/3.4.2/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
"/opt/local/bin/g++" -v -I /usr/include/c++/4.0.0/powerpc-apple-darwin9
-fPIE -pie -stdlib=libstdc++ -c -arch ppc -m32 -o /var/tmp/test_throw-
4a3122.o -x assembler /var/tmp/test_throw-5b39d8.s
Using built-in specs.
Target: powerpc-apple-darwin9
Configured with: /var/tmp/gcc_42/gcc_42-5577~1/src/configure --disable-
checking --prefix=/usr --mandir=/usr/share/man --enable-
languages=c,objc,c++,obj-c++ --program-transform-
name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-
darwin9 --with-gxx-include-dir=/usr/include/c++/4.0.0 --program-prefix=
--host=powerpc-apple-darwin9 --target=powerpc-apple-darwin9
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5577)
/usr/libexec/gcc/powerpc-apple-darwin9/4.2.1/as -arch ppc -o /var/tmp
/test_throw-4a3122.o /var/tmp/test_throw-5b39d8.s
"/opt/local/bin/g++" -v -I /usr/include/c++/4.0.0/powerpc-apple-darwin9
-fPIE -pie -stdlib=libstdc++ -arch ppc -m32 -o test_throw.ppc /var/tmp
/test_throw-4a3122.o
Using built-in specs.
Target: powerpc-apple-darwin9
Configured with: /var/tmp/gcc_42/gcc_42-5577~1/src/configure --disable-
checking --prefix=/usr --mandir=/usr/share/man --enable-
languages=c,objc,c++,obj-c++ --program-transform-
name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-
darwin9 --with-gxx-include-dir=/usr/include/c++/4.0.0 --program-prefix=
--host=powerpc-apple-darwin9 --target=powerpc-apple-darwin9
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5577)
/usr/libexec/gcc/powerpc-apple-darwin9/4.2.1/collect2 -dynamic -arch ppc
-macosx_version_min 10.5.8 -weak_reference_mismatches non-weak -o
test_throw.ppc -lcrt1.10.5.o -L/usr/lib/powerpc-apple-darwin9/4.2.1
-L/usr/lib/gcc/powerpc-apple-darwin9/4.2.1 -L/usr/lib/gcc/powerpc-apple-
darwin9/4.2.1 -L/usr/lib/gcc/powerpc-apple-darwin9/4.2.1/../../../powerpc-
apple-darwin9/4.2.1 -L/usr/lib/gcc/powerpc-apple-darwin9/4.2.1/../../..
/var/tmp/test_throw-4a3122.o -lstdc++ -lgcc_s.10.5 -lgcc -lSystemStubs
-lSystem
}}}
--
Ticket URL: <https://trac.macports.org/ticket/49764#comment:26>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list