dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #19971
Re: CMake warning
On 10/20/10 5:57 PM, Anders Logg wrote:
> Johannes Ring skrev 2010-10-20 13.33:
>> On Wed, Oct 20, 2010 at 1:28 PM, Anders Logg<logg@xxxxxxxxx> wrote:
>>> Johannes Ring skrev 2010-10-20 08.15:
>>>>
>>>> On Tue, Oct 19, 2010 at 5:56 PM, Anders Logg<logg@xxxxxxxxx> wrote:
>>>>>
>>>>> Johannes Ring skrev 2010-10-19 17.50:
>>>>>>
>>>>>> On Tue, Oct 19, 2010 at 5:42 PM, Anders Logg<logg@xxxxxxxxx>
>>>>>> wrote:
>>>>>>>
>>>>>>> Johannes Ring skrev 2010-10-19 17.35:
>>>>>>>>
>>>>>>>> On Tue, Oct 19, 2010 at 1:41 PM, Anders Logg<logg@xxxxxxxxx>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> On Tue, Oct 19, 2010 at 11:18:22AM +0200, Johannes Ring wrote:
>>>>>>>>>>
>>>>>>>>>> On Tue, Oct 19, 2010 at 9:21 AM, Anders Logg<logg@xxxxxxxxx>
>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>> This has most likely been discussed before but I'm bringing
>>>>>>>>>>> it up
>>>>>>>>>>> again anyway.
>>>>>>>>>>>
>>>>>>>>>>> I get the following annoying message for each and every demo
>>>>>>>>>>> when I
>>>>>>>>>>> configure DOLFIN on Lucid:
>>>>>>>>>>>
>>>>>>>>>>> CMake Warning at demo/pde/poisson/cpp/CMakeLists.txt:31
>>>>>>>>>>> (add_executable):
>>>>>>>>>>> Cannot generate a safe runtime search path for target
>>>>>>>>>>> poisson-demo
>>>>>>>>>>> because
>>>>>>>>>>> files in some directories may conflict with libraries in
>>>>>>>>>>> implicit
>>>>>>>>>>> directories:
>>>>>>>>>>>
>>>>>>>>>>> runtime library [liblapack.so.3gf] in /usr/lib may be
>>>>>>>>>>> hidden by
>>>>>>>>>>> files in:
>>>>>>>>>>> /usr/lib/atlas
>>>>>>>>>>> runtime library [libblas.so.3gf] in /usr/lib may be
>>>>>>>>>>> hidden by
>>>>>>>>>>> files in:
>>>>>>>>>>> /usr/lib/atlas
>>>>>>>>>>>
>>>>>>>>>>> Some of these libraries may not be found correctly.
>>>>>>>>>>>
>>>>>>>>>>> Any way to fix this?
>>>>>>>>>>
>>>>>>>>>> Setting -DCMAKE_SKIP_RPATH:BOOL=ON when configuring DOLFIN
>>>>>>>>>> made the
>>>>>>>>>> warnings go away for me. Does it work for you? Maybe we can
>>>>>>>>>> use that
>>>>>>>>>> as the default?
>>>>>>>>>>
>>>>>>>>>> Johannes
>>>>>>>>>
>>>>>>>>> That doesn't work for me. If I add that flag, CMake is unable
>>>>>>>>> to find
>>>>>>>>> PETSc and SLEPc.
>>>>>>>>>
>>>>>>>>> I have PETSc and SLEPc installed by Dorsal.
>>>>>>>>
>>>>>>>> Try to add
>>>>>>>>
>>>>>>>> CONFOPTS="-DCMAKE_PREFIX_PATH:PATH=${INSTALL_PATH}"
>>>>>>>>
>>>>>>>> in dolfin.package and remove dorsal_build_dir. Then re-run Dorsal.
>>>>>>>> Hopefully this will get rid of the warnings. Does it?
>>>>>>>>
>>>>>>>> Johannes
>>>>>>>
>>>>>>> I'm building DOLFIN using cmake.local in DOLFIN (not Dorsal), but
>>>>>>> will
>>>>>>> try
>>>>>>> this option later.
>>>>>>
>>>>>> You can also use it as an environment variable:
>>>>>>
>>>>>> export CMAKE_PREFIX_PATH=<dorsal/installation/path>
>>>>>>
>>>>>>> I'm currently trying to build on my macbook which is a pain. (Don't
>>>>>>> know
>>>>>>> how
>>>>>>> the mac people can stand working on it.) My current problem is I
>>>>>>> can't
>>>>>>> even
>>>>>>> build UFC correctly. If after building and installing (which
>>>>>>> seems to
>>>>>>> work
>>>>>>> fine) I type "python -c 'import ufc'", I get this error:
>>>>>>>
>>>>>>> Fatal Python error: Interpreter not initialized (version mismatch?)
>>>>>>> Abort trap
>>>>>>>
>>>>>>> Any bright ideas?
>>>>>>
>>>>>> Try with
>>>>>>
>>>>>> export VERSIONER_PYTHON_PREFER_32_BIT=yes
>>>>>>
>>>>>> Johannes
>>>>>
>>>>> No luck. Still the same problem.
>>>>
>>>> OK. Have you done any system updates or updated MacPorts recently? It
>>>> could be a conflict between system Python and MacPorts Python. Have
>>>> you tried running python_select again?
>>>>
>>>> Johannes
>>>
>>> Yes, I've done some updates. I tried python_select now and if I set
>>> it to
>>> python26, then Python still crashes when I do python -c "import ufc".
>>
>> Did you rebuild UFC?
>>
>>> If I set it to python26-apple, I can import UFC. But the DOLFIN
>>> configure
>>> still crashes during configure.
>>>
>>> Should it be python26 or python26-apple? (I assume the former.)
>>> Should I set
>>> it to python26 and then rebuild all packages with Dorsal?
>>
>> It should be python26 when using MacPorts and, yes, I would try
>> rebuilding everything with Dorsal.
>
> I rebuilt everything with Dorsal and that works fine, including DOLFIN.
>
> The problem was that I was building DOLFIN manually (using cmake.local)
> and hadn't set all the required variables. The one thing that was
> missing (which Dorsal knew to include) was
>
> export DYLD_FRAMEWORK_PATH=/opt/local/Library/Frameworks
The moral of the story being...
... use Dorsal! :)
Harish
Follow ups
References
-
CMake warning
From: Anders Logg, 2010-10-19
-
Re: CMake warning
From: Johannes Ring, 2010-10-19
-
Re: CMake warning
From: Anders Logg, 2010-10-19
-
Re: CMake warning
From: Johannes Ring, 2010-10-19
-
Re: CMake warning
From: Anders Logg, 2010-10-19
-
Re: CMake warning
From: Johannes Ring, 2010-10-19
-
Re: CMake warning
From: Anders Logg, 2010-10-19
-
Re: CMake warning
From: Johannes Ring, 2010-10-20
-
Re: CMake warning
From: Anders Logg, 2010-10-20
-
Re: CMake warning
From: Johannes Ring, 2010-10-20
-
Re: CMake warning
From: Anders Logg, 2010-10-20