OpenShadingLanguage icon indicating copy to clipboard operation
OpenShadingLanguage copied to clipboard

1.4.0 on Ubuntu 12.04 fails to compile

Open mcmihai opened this issue 12 years ago • 5 comments

The error I get is: build/src/liboslexec/llvm_ops.s:334:37: error: invalid use of function-only attribute define void @osl_assert_nonnull(i8* readnone %x, i8* %msg) #3 {

mcmihai avatar Jan 21 '14 18:01 mcmihai

What version of LLVM are you using?

lgritz avatar Jan 21 '14 18:01 lgritz

3.3

mcmihai avatar Jan 21 '14 18:01 mcmihai

Can you do a 'make nuke' then a 'make VERBOSE=1 > build.log' and paste here (or send me) the resulting log? I'd like to see the whole sequence of events that leads to this error.

lgritz avatar Jan 21 '14 18:01 lgritz

The problem was that I had clang 3.4 in my path. I totally forgot about that...

mcmihai avatar Jan 21 '14 20:01 mcmihai

Ah, so a mismatch between the version that was generating the llvm_ops.s bitcode, versus the one that was consuming it at runtime? Yeah, I can see that being a problem.

lgritz avatar Jan 21 '14 20:01 lgritz