RFC: Shark LLVM 3.0svn support

Matthias Klose doko at ubuntu.com
Tue Jan 3 04:28:20 PST 2012


On 08/31/2011 09:56 AM, Xerxes Rånby wrote:
> Hi all Zero/Shark hackers!
> 
> The attached patches updates Shark to handle the latest LLVM API changes in the
> LLVM 3.0svn codebase.

I had to apply the attached patch to fix a build error with -Werror (enabled by
default). LLVM_CFLAGS now sets __STDC_FORMAT_MACROS.

Then the build continues until

cd linux_amd64_shark/product && ./test_gamma
java full version "1.6.0_24-b24"
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b24~pre3-0ubuntu1)
OpenJDK 64-Bit Shark VM (build 20.0-b12, mixed mode)

 1. A1 B5 C8 D6 E3 F7 G2 H4
 [...]
40. A4 B7 C1 D8 E5 F2 G6 H3
41. A4 B7 C3 D8 E2 F5 G1 LLVM ERROR: Program used external function
'llvm.atomic.cmp.swap.i64.p0i64' which could not be resolved!
Using java runtime at:
/home/packages/openjdk/b24/openjdk-6-6b24~pre3/build/zerovm/bootstrap/jdk1.6.0/jre
make[7]: *** [productshark] Error 1
make[7]: Leaving directory
`/home/packages/openjdk/b24/openjdk-6-6b24~pre3/build/zerovm/openjdk.build/hotspot/outputdir'
make[6]: *** [generic_buildshark] Error 2

<xranby> doko: http://llvm.org/viewvc/llvm-project?view=rev&revision=141333  the
support got removed in october
<xranby> doko: ...and  argh.. chris lattner then flushed the auto upgrade logic
in late november... 4 days before the release :P
http://llvm.org/viewvc/llvm-project?view=rev&revision=145176
<xranby> ok good news are that there exist some new llvm ir instructions that we
can use instead of these removed intrinsics
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-3.0-buildfix.patch
Type: text/x-diff
Size: 223 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/zero-dev/attachments/20120103/a739de82/llvm-3.0-buildfix.patch 


More information about the zero-dev mailing list