Hi Jonas, I think I took care of this in 10.4-EOL but the change may not have made it to 10.5-EOL (but it should have). I see in the current state that 10.4-EOL's llvm33.patch has the corrected context-related patch. I don't have powerpc-darwin9 to test on, but someone else had tested it for me before. I'm going to blindly sync 10.5-EOL to 10.4-EOL's copy right... now. Please sync 10.5-EOL and try again, and let me know how that works.
Fang > On 10/9/13 5:59 AM, Jonas Maebe wrote: >> Hi, >> >> I've posted the full output from the build process at >> http://pastebin.com/G3wzmRXw >> >> There appear to be two problems >> a) the wrong version of the mcontext struct is included or accessed by >> Address Sanitizer (line 1052 of the pastebin for the initial >> bootstrap, lines 2922 and 3174 once clang is used after stage 1). This >> is the definition in /usr/include/ppc/_structs.h >> >> # if __DARWIN_UNIX03 >> # define _STRUCT_MCONTEXT struct __darwin_mcontext >> _STRUCT_MCONTEXT >> { >> _ STRUCT_PPC_EXCEPTION_STATE __es; >> _ STRUCT_PPC_THREAD_STATE __ss; >> _ STRUCT_PPC_FLOAT_STATE __fs; >> _ STRUCT_PPC_VECTOR_STATE __vs; >> }; >> # else /* !__DARWIN_UNIX03 */ >> # define _STRUCT_MCONTEXT struct mcontext >> _STRUCT_MCONTEXT >> { >> _ STRUCT_PPC_EXCEPTION_STATE es; >> _ STRUCT_PPC_THREAD_STATE ss; >> _ STRUCT_PPC_FLOAT_STATE fs; >> _ STRUCT_PPC_VECTOR_STATE vs; >> }; >> #endif /* __DARWIN_UNIX03 */ >> >> Address Sanitizer uses "ss", but complains it can't find it, so I >> guess that __DARWIN_UNIX03 gets defined somewhere. >> >> b) once clang has been bootstrapped (which works without a successful >> build of ASAN), the above errors remain and some extra ones appear >> about unsupported block syntax (although clang apparently advertises >> that it does support blocks, since it got past the ifdef), see lines >> 2926/3178 of the pastebin. >> >> I'm currently trying to build llvm 3.2 to see whether that works better. >> >> Thanks, >> >> >> Jonas >> >> PS: I'm actually only interested in llvm, not in clang, but there does >> not appear to be an option to skip clang. > > The project doesn't support 10.5 any more, so this is between you and David. > > -- David Fang http://www.csl.cornell.edu/~fang/ ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users