Anton Korobeynikov
2007-Aug-22 06:40 UTC
[LLVMdev] Problems building llvm-gcc-4.2 on ppc32, OS X 10.4.10
Hello, Michael> Hi, I'm guessing that no one has tried this exact combination yet.Some quick notes, which can be not connected to your problem. 1. You might need the following patch for FP constants to work properly: diff --git a/gcc/llvm-convert.cpp b/gcc/llvm-convert.cpp index 4c9c8d0..db8c6ba 100644 --- a/gcc/llvm-convert.cpp +++ b/gcc/llvm-convert.cpp @@ -5157,11 +5157,6 @@ Constant *TreeConstantToLLVM::ConvertREAL_CST(tree exp) { UArr[0] = RealArr[0]; // Long -> int convert UArr[1] = RealArr[1]; - // FIXME: verify on big-endian targets and cross from big- to little- endian - // targets - if (FLOAT_WORDS_BIG_ENDIAN) - std::swap(UArr[0], UArr[1]); - return ConstantFP::get(Ty, V); } This is known problem. Cross-compilation on targets with different endianness is broken. 2. for gfortran you'll need patch from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33097 (note, there are two parts - one attached and another one in the text).> make[3]: *** [libgcc_s.10.5.dylib] Error 1 > So I think, why am I building for 10.5? No wonder that doesn't link.This can be apple local changes. Better to wait for answer from apple folks. What if you supply --disable-shared? -- With best regards, Anton Korobeynikov. Faculty of Mathematics & Mechanics, Saint Petersburg State University.
Chris Lattner
2007-Aug-22 23:52 UTC
[LLVMdev] Problems building llvm-gcc-4.2 on ppc32, OS X 10.4.10
On Wed, 22 Aug 2007, Anton Korobeynikov wrote:>> make[3]: *** [libgcc_s.10.5.dylib] Error 1 >> So I think, why am I building for 10.5? No wonder that doesn't link. > This can be apple local changes. Better to wait for answer from apple > folks. What if you supply --disable-shared?I'm not sure, but try hacking out the references to 10.5 from gcc/config/t-slibgcc-darwin I don't know if there is a way to detect the availability of leopard features or not. If so, that would be better than hacking :) -Chris -- http://nondot.org/sabre/ http://llvm.org/
Seemingly Similar Threads
- [LLVMdev] troubles with llvm-gcc 4.0 and APFloat on X86_64
- [LLVMdev] troubles with llvm-gcc 4.0 and APFloat on X86_64
- [LLVMdev] troubles with llvm-gcc 4.0 and APFloat on X86_64
- [LLVMdev] Problems building llvm-gcc-4.2 on ppc32, OS X 10.4.10
- [LLVMdev] troubles with llvm-gcc 4.0 and APFloat on X86_64