2011/8/24 Guilherme Kunigami wrote:
>
> On Wed, Aug 24, 2011 at 12:04 PM, Daniel Roßberg wrote:
>>
>> I managed to build BRL-CAD together with the OSL shader on Debian
>> testing. However, I get an error message:
>>
>> ...
>> Incorrect number of arguments passed to called function!
>> %54 = call i8* @llvm.frameaddress.p0i8.p0i8.i32(i8* %51, i8* %53,
>> i32 12, i32 4, i1 false) ; <i8*> [#uses=0]
>> Broken module found, compilation aborted!
>
> Hmm, I've never seen such error. Which version of LLVM are you using? Are
> you using the OSL version from osl trunk?
>
>>
>> The command executed was "./rt -o output.png cornell-kunigami.g all.g".
>> What's wrong with it?
>>
>> Daniel
>
>
>
> --
> Guilherme Kunigami
It looks like I mixed two LLVM versions: 2.8 (standard in Debian
testing) and 2.7 (recommended by clang). After some experiments I
found that
- LLVM 2.7 won't compile with the OSL from the BRL-CAD repository
(at least one method is missing)
- LLVM 2.8 compiles but will give you a crash in rt
- LLVM 2.9 works :)
Well done!
Daniel
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel