[LLVMdev] Porting to System z

Neale Ferguson neale at sinenomine.net
Tue Apr 7 08:32:51 PDT 2009


Hi,
 I am beginning the porting process for Linux on System z (aka IBM
Mainframe). I thought I¹d build LLVM first with the c and cpp backends so
that tools like TableGen would be created that I¹d then use to process the
.td files that I¹ll be creating. So I used svn to grab the code from the
repository and ran configure and make. However, the build breaks at this
point:

llvm[1]: Building Intrinsics.gen.tmp from Intrinsics.td
tblgen: IntrinsicEmitter.cpp:163: void EmitTypeForValueType(std::ostream&,
llvm::MVT::SimpleValueType): Assertion `false && "Unsupported ValueType!"'
failed.
0   tblgen    0x00000000801be2bc
1   tblgen    0x00000000801bea14
2   tblgen    0x000003ffffad4b84
3   libc.so.6 0x0000020000286ef0 gsignal + 76
4   libc.so.6 0x0000020000288330 abort + 256
5   libc.so.6 0x000002000027ed08 __assert_fail + 228
6   tblgen    0x0000000080111f86
7   tblgen    0x0000000080112afe
8   tblgen    0x000000008011281c
9   tblgen    0x0000000080113354
10  tblgen    0x0000000080113744
11  tblgen    0x000000008019273e main + 2650
12  libc.so.6 0x0000020000270598 __libc_start_main + 256
13  tblgen    0x0000000080009ec2 std::__throw_logic_error(char const*) + 158
Stack dump:
0.    Program arguments: /home/neale/LLVM/llvm/Debug/bin/tblgen -I
/home/neale/LLVM/llvm/lib/VMCore -I /home/neale/LLVM/llvm/include -I
/home/neale/LLVM/llvm/include -I /home/neale/LLVM/llvm/lib/Target
/home/neale/LLVM/llvm/include/llvm/Intrinsics.td -o
/home/neale/LLVM/llvm/lib/VMCore/Debug/Intrinsics.gen.tmp -gen-intrinsic
make[1]: *** [/home/neale/LLVM/llvm/lib/VMCore/Debug/Intrinsics.gen.tmp]
Aborted

Is this a known problem? Would it be better to build the tools etc. using a
"stable" tarball and just use the svn sources so I can generate the patches
for adding System z?

Neale 






More information about the llvm-dev mailing list