LLVMC tests failing when building with clang

Hi,

After building llvm with clang the llvmc tests are failing with:

llvmc: Node llc is not in graph

Anyone else see this ? (TOT llvm & clang)

-Argiris

Hi Argyrios,

This has been happening for a long time, no one has debugged it yet.

I personally always configure llvm with --without-llvmgcc and
--without-llvmgxx, which disables these tests.

- Daniel

I believe the reason is that llvmc is not built at all with the cmake system. Here is the relevant bug report.

http://llvm.org/bugs/show_bug.cgi?id=5648

Tobias

No, I build with the autoconf system and the LLVMC tests fail for me, too.

Chip

Hi,

Argyrios Kyrtzidis <kyrtzidis <at> apple.com> writes:

Hi,

After building llvm with clang the llvmc tests are failing with:

llvmc: Node llc is not in graph

Thanks for the bug report, I'll look into this.

Hi,

Argyrios Kyrtzidis <kyrtzidis <at> apple.com> writes:

Hi,

After building llvm with clang the llvmc tests are failing with:

llvmc: Node llc is not in graph

Anyone else see this ? (TOT llvm & clang)

It looks like this is due to a bug in clang:

// file1.cpp

namespace {

class Plugin {
};
}

// file2.cpp

namespace {

class Plugin {
};
}

Clang can't distinguish between file1::Plugin and
file2::Plugin. Is this a known issue? I've added a workaround for
now: change the names of file1::Plugin and file2::Plugin to
Pluginfile1 and Pluginfile2, respectively.

Aha! Good catch. It turns out that Clang gives non-internal linkage to member
functions of member class templates instantiated at members of anonymous
namespaces. Fixed in r111012.

John.

Hi,