vmkit: Getting Started

Hi,

I recently tried to follow the instructions on
    http://vmkit.llvm.org/get_started.html

but all I get is

-- snip --

In file included from /home/birdspider/vmkit-test/llvm/include/llvm/Support/SwapByteOrder.h:20:
/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits:1404:27: error: use of undeclared identifier '__int128'; did you mean '__int128_t'?
     struct numeric_limits<__int128>
                           ^
/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits:1478:36: error: expected '>'
     struct numeric_limits<unsigned __int128>
                                    ^
/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits:1478:5: error: cannot combine with previous '(error)' declaration specifier
     struct numeric_limits<unsigned __int128>
     ^
/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits:1478:44: error: expected unqualified-id
     struct numeric_limits<unsigned __int128>
                                            ^
6 errors generated.
make[1]: *** [/home/birdspider/vmkit-test/llvm/lib/Support/Release+Asserts/APFloat.o] Fehler 1
make[1]: Leaving directory `/home/birdspider/vmkit-test/llvm/lib/Support'
make: *** [all] Fehler 1
[birdspider@hellsguardlinux llvm]$

there is the whole output of
./configure; make
attached

Any ideas? I just wanted to try it out, right now I have no clue what goes wrong.

llvm-compile.fail (28.4 KB)

Hi Patrick,

Hi,

I recently tried to follow the instructions on
http://vmkit.llvm.org/get_started.html

but all I get is

– snip –

In file included from /home/birdspider/vmkit-test/llvm/include/llvm/Support/SwapByteOrder.h:20:
/usr/bin/…/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/…/…/…/…/include/c++/4.7.0/limits:1404:27: error: use of undeclared identifier ‘__int128’; did you mean ‘__int128_t’?
struct numeric_limits<__int128>
^
/usr/bin/…/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/…/…/…/…/include/c++/4.7.0/limits:1478:36: error: expected ‘>’
struct numeric_limits
^
/usr/bin/…/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/…/…/…/…/include/c++/4.7.0/limits:1478:5: error: cannot combine with previous ‘(error)’ declaration specifier
struct numeric_limits
^
/usr/bin/…/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/…/…/…/…/include/c++/4.7.0/limits:1478:44: error: expected unqualified-id
struct numeric_limits

The problem seems to be that llvm does not compile with gcc 4.7. Could you try an earlier version of gcc?

Nicolas