dorsal team mailing list archive
-
dorsal team
-
Mailing list archive
-
Message #00439
Re: [Branch ~dorsal-core/dorsal/main] Rev 508: Used generic cmake build to simplify armadillo package and updated to 1.0.0
On 12/22/10 12:32 PM, Harish Narayanan wrote:
> On 12/22/10 12:11 PM, Johannes Ring wrote:
>> Armadillo does not like to be built out-of-source so this will
>> probably not work. We could add a variable BUILD_IN_SOURCE=1 in
>> armadillo.package and then use this variable in dorsal.sh to determine
>> whether to create and build in dorsal_build_dir or not.
>
> OK. But I tried it now, and I see libarmadillo being built and DOLFIN
> compiling too. Does that mean everything is OK? Isn't a functioning
> armadillo a requirement for DOLFIN?
I guess I spoke too soon. I think DOLFIN was using an older library I
had failed to remove from an earlier build. Once I cleaned out my build
folder and re-ran Dorsal, I see the following CMake error when building
DOLFIN. Do you think this is related to my new (improper) way of
building Armadillo?
Performing C++ SOURCE FILE Test ARMADILLO_TEST_RUNS failed with the
following output:
Change Dir:
/Users/harish/Work/FEniCS/dev/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
/opt/local/bin/cmake -E cmake_progress_report
/Users/harish/Work/FEniCS/dev/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/CMakeFiles
1
Building CXX object CMakeFiles/cmTryCompileExec.dir/src.cxx.o
/opt/local/bin/c++ -DARMADILLO_TEST_RUNS
-I/Users/harish/Work/FEniCS/dev/include -I/opt/local/include -o
CMakeFiles/cmTryCompileExec.dir/src.cxx.o -c
/Users/harish/Work/FEniCS/dev/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec
/opt/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/opt/local/bin/c++ -DARMADILLO_TEST_RUNS -Wl,-search_paths_first
-headerpad_max_install_names CMakeFiles/cmTryCompileExec.dir/src.cxx.o
-o cmTryCompileExec -framework vecLib
/Users/harish/Work/FEniCS/dev/lib/libarmadillo.dylib
Return value: FAILED_TO_RUN
Source file was:
#include <armadillo>
int main()
{
arma::mat A = arma::randu(4, 4);
arma::vec b = arma::randu(4);
arma::vec x = arma::solve(A, b);
return 0;
}
Performing C++ SOURCE FILE Test ARMADILLO_LAPACK_TEST_RUNS failed with
the following output:
Change Dir:
/Users/harish/Work/FEniCS/dev/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
/opt/local/bin/cmake -E cmake_progress_report
/Users/harish/Work/FEniCS/dev/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/CMakeFiles
1
Building CXX object CMakeFiles/cmTryCompileExec.dir/src.cxx.o
/opt/local/bin/c++ -DARMADILLO_LAPACK_TEST_RUNS
-I/Users/harish/Work/FEniCS/dev/include -I/opt/local/include -o
CMakeFiles/cmTryCompileExec.dir/src.cxx.o -c
/Users/harish/Work/FEniCS/dev/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec
/opt/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/opt/local/bin/c++ -DARMADILLO_LAPACK_TEST_RUNS
-Wl,-search_paths_first -headerpad_max_install_names
CMakeFiles/cmTryCompileExec.dir/src.cxx.o -o cmTryCompileExec
/Users/harish/Work/FEniCS/dev/lib/libarmadillo.dylib
/usr/lib/liblapack.dylib
Return value: FAILED_TO_RUN
Source file was:
#include <armadillo>
int main()
{
arma::mat A = arma::randu(4, 4);
arma::vec b = arma::randu(4);
arma::vec x = arma::solve(A, b);
return 0;
}
Follow ups
References