On Fri, 19 Jul 2013 14:23:26 -0700 Chuck Zhao <[email protected]> wrote:
> Kalle, > > Thank you for the hints. > > I noticed that when building the lib/kernel package, both > clang-3.3/3.2 complained heavily on "-target armv7", saying > "unrecognized flag, use -mfloat=soft" instead. > > I hacked the Makefile a little bit, and use "-target > armv7l-unknown-linux-gnueabi" instead. > The original warning all go away. > > However, the produced tests still fail. > E.g. > czhao@panda0:~/ResearchTools/Compiler/POCL/pocl-0.8/robj32-rc7/examples/example1/.libs$ > > ./lt-example1 > ERROR > (0.000000, 0.000000, 0.000000, 0.000000) . (0.000000, 0.000000, > 0.000000, 0.000000) = -0.000007 > FAIL > czhao@panda0:~/ResearchTools/Compiler/POCL/pocl-0.8/robj32-rc7/examples/example1/.libs$ > > > > > I am debugging now. > > Any hints/suggestions are highly appreciated. Do save the intermediate files the kernel compiler creates (i.e. set evnironment variable POCL_LEAVE_TEMP_DIRS, see doc/envs.txt), and have a look at the target triple in the generated .bc files. Is it still the original "armv7l-..."? At least with clang 3.2 I observed it was not, causing errors as above. HTH :) kalle ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ pocl-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pocl-devel
