[Developers] compiling ADMB with clang

dave fournier davef at otter-rsch.com
Mon Mar 19 14:49:30 PDT 2012


On 12-03-19 01:30 PM, dave fournier wrote:
> On 12-03-19 12:12 PM, Teresa A'mar wrote:

I had that confused. It seems that for compiled programs (not JIT ) one 
should use
the linux archiver ar. the clang++ shell then used the linux ld.

All now works. Question is are there better debugging tools than for gcc?

        Dave








>
> Hi Teresa,
>
> I am working on some version of Ubuntu.
>
> Issues so far are:
>
> 1.) version of clang supplied with Ubuntu does not work.
>
> 2.) download latest version ofclang via svn and run configure on it
>
> 3.) configure sees the broken version of clang and want to use it to 
> build the new clang.
> so get rid of clang.  Clang now builds.
>
> 4.)  clang does not like  class scope inside class definition as in
>
>      class xxx
>      {
>           xxx:xxx(void);    //  should be just  xxx(void);
>      };
>
> so fix a bunch of those
>
>   5.) Problem in  cifstream need to cast int to ios::mode or some such 
> thing.
>
> 6.)  problem with hard wired  ar in make files.  so create symbolic 
> link from
>
>    llvm-ar  to my ~/bin/ar
>
> 7.) some kind of problem with the  ar line anyway so
>       change to relevant directory and do
>
>             ar rs libxxx.a *.obj
>
>     by hand to buid all the ADMB libs one by one
>
> That is as far as I got so far.
>
>         Dave
>
>
>
>
>
>
>
>
>
>> Hi Dave,
>>
>> I tried compiling ADMB with clang 2.9 on Linux 32-bit.  There were 
>> some issues with 2.9, so I used 3.0 instead.  I have a separate ADMB 
>> configure file as well as a src/clang.mak file.
>>
>> Which OS are you using?  You can download the clang/llvm binaries 
>> here http://llvm.org/releases/download.html, although I don't see any 
>> MinGW binaries for 3.0.
>>
>> -Teresa
>>
>>>
>>> I tried to compile ADMB with clang.  After a few files the make crashed
>>> with the message
>>>
>>>        fatal error: 'fstream' file not found
>>>
>>>
>>> There appear to be header file problems.  Has anyone successfully used
>>> clang to compile ADMB?
>>>
>>> clang -v outputs
>>>
>>> clang version 2.8 (branches/release_28)
>>> Target: x86_64-pc-linux-gnu
>>> Thread model: posix
>>>
>>>
>>>
>>>              Dave
>>>
>>>
>>
>
> _______________________________________________
> Developers mailing list
> Developers at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/developers
>



More information about the Developers mailing list