On Thu, Jun 12, 2014 at 12:51 PM, Lukas Wensby <[email protected]> wrote:
> Hi again,
>
> Thanks for your help! By "rebuild UFC", do you mean I should just run
>
> python setup.py install
>
> in the FFC source directory?

Yes, but you might need to remove the "build" directory first.

> I have done this, but I have my doubts that
> this is what you really mean. I'm not sure on how else to do a rebuild. In
> other packages I could do ./configure, cmake, make and make install. But
> there are no cmake or make-files in FFC. I tried running
>
> debuild -us -uc
>
> which I've found is the way to rebuild packages from source in Debian, but
> it just complains that it "cannot find readable debian/changelog anywhere!"

That command will only work for Debian packages, not when building
from upstream source tarballs.

> When using Dorsal, I tried the sid.platform-file but got an error when it
> was configuring trilinos. Since no CMakeError.log file was produced, and I
> don't know how much of the terminal output I should include, here is the
> last 60 lines of output:
>
> failed to compile a simple test project using both languages.  The output
>   was:
>
>     Change Dir:
> /home/wensby/Work/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir/CMakeFiles/FortranCInterface/VerifyCXX
>
>     Run Build Command:/usr/bin/make
>     /usr/bin/cmake -H/usr/share/cmake-2.8/Modules/FortranCInterface/Verify
> -B/home/wensby/Work/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir/CMakeFiles/FortranCInterface/VerifyCXX
> --check-build-system CMakeFiles/Makefile.cmake 0
>     /usr/bin/cmake -E cmake_progress_start
> /home/wensby/Work/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir/CMakeFiles/FortranCInterface/VerifyCXX/CMakeFiles
> /home/wensby/Work/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir/CMakeFiles/FortranCInterface/VerifyCXX/CMakeFiles/progress.marks
>     /usr/bin/make -f CMakeFiles/Makefile2 all
>     make[1]: Entering directory
> '/home/wensby/Work/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir/CMakeFiles/FortranCInterface/VerifyCXX'
>     /usr/bin/make -f CMakeFiles/VerifyFortran.dir/build.make
> CMakeFiles/VerifyFortran.dir/depend
>     make[2]: Entering directory
> '/home/wensby/Work/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir/CMakeFiles/FortranCInterface/VerifyCXX'
>     cd
> /home/wensby/Work/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir/CMakeFiles/FortranCInterface/VerifyCXX
> && /usr/bin/cmake -E cmake_depends "Unix Makefiles"
> /usr/share/cmake-2.8/Modules/FortranCInterface/Verify
> /usr/share/cmake-2.8/Modules/FortranCInterface/Verify
> /home/wensby/Work/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir/CMakeFiles/FortranCInterface/VerifyCXX
> /home/wensby/Work/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir/CMakeFiles/FortranCInterface/VerifyCXX
> /home/wensby/Work/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir/CMakeFiles/FortranCInterface/VerifyCXX/CMakeFiles/VerifyFortran.dir/DependInfo.cmake
>     make[2]: Leaving directory
> '/home/wensby/Work/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir/CMakeFiles/FortranCInterface/VerifyCXX'
>     /usr/bin/make -f CMakeFiles/VerifyFortran.dir/build.make
> CMakeFiles/VerifyFortran.dir/requires
>     make[2]: Entering directory
> '/home/wensby/Work/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir/CMakeFiles/FortranCInterface/VerifyCXX'
>     make[2]: Nothing to be done for 'CMakeFiles/VerifyFortran.dir/requires'.
>     make[2]: Leaving directory
> '/home/wensby/Work/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir/CMakeFiles/FortranCInterface/VerifyCXX'
>     /usr/bin/make -f CMakeFiles/VerifyFortran.dir/build.make
> CMakeFiles/VerifyFortran.dir/build
>     make[2]: Entering directory
> '/home/wensby/Work/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir/CMakeFiles/FortranCInterface/VerifyCXX'
>     Linking Fortran static library libVerifyFortran.a
>     /usr/bin/cmake -P CMakeFiles/VerifyFortran.dir/cmake_clean_target.cmake
>     /usr/bin/cmake -E cmake_link_script
> CMakeFiles/VerifyFortran.dir/link.txt --verbose=1
>     "" cr libVerifyFortran.a  CMakeFiles/VerifyFortran.dir/VerifyFortran.f.o
>     Error running link command: No such file or directory
>     CMakeFiles/VerifyFortran.dir/build.make:83: recipe for target
> 'libVerifyFortran.a' failed
>     make[2]: *** [libVerifyFortran.a] Error 2
>     make[2]: Leaving directory
> '/home/wensby/Work/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir/CMakeFiles/FortranCInterface/VerifyCXX'
>     CMakeFiles/Makefile2:66: recipe for target
> 'CMakeFiles/VerifyFortran.dir/all' failed
>     make[1]: *** [CMakeFiles/VerifyFortran.dir/all] Error 2
>     make[1]: Leaving directory
> '/home/wensby/Work/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir/CMakeFiles/FortranCInterface/VerifyCXX'
>     Makefile:78: recipe for target 'all' failed
>
>     make: *** [all] Error 2
>
> Call Stack (most recent call first):
>   cmake/tribits/package_arch/TribitsFortranMangling.cmake:50
> (FortranCInterface_VERIFY)
>   cmake/tribits/package_arch/TribitsGlobalMacros.cmake:1260 (INCLUDE)
>   cmake/tribits/package_arch/TribitsProjectImpl.cmake:226
> (TRIBITS_SETUP_ENV)
>   cmake/tribits/package_arch/TribitsProject.cmake:75 (TRIBITS_PROJECT_IMPL)
>   CMakeLists.txt:88 (TRIBITS_PROJECT)
>
>
> -- Configuring incomplete, errors occurred!
> See also
> "/home/wensby/Work/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir/CMakeFiles/CMakeOutput.log".
> See also
> "/home/wensby/Work/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir/CMakeFiles/CMakeError.log".
> You have changed variables that require your cache to be deleted.
> Configure will be re-run and you may have to reset some variables.
> The following variables have changed:
> CMAKE_C_COMPILER= mpicc
> CMAKE_CXX_COMPILER= mpicxx
> CMAKE_Fortran_COMPILER= mpif90
>
> -- Generating done
> CMake Warning:
>   Manually-specified variables were not used by the project:
>
>     Trilinos_INSTALL_INCLUDE_DIR
>     UMFPACK_INCLUDE_DIRS
>
>
> -- Build files have been written to:
> /home/wensby/Work/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir
> Failure with exit status: 1
> Exit message: There was a problem configuring trilinos-11.4.1-Source.
>
> Will I have to delete my cache, and reset some variables like it says above?

Yes, I would try to remove the CMake cache for Trilinos. In your case,
that would be

  rm -rf /home/wensby/Work/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir

Johannes
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to