Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Compiling on Ubuntu 16.04 #377

Open
floli opened this issue Feb 22, 2017 · 1 comment
Open

Compiling on Ubuntu 16.04 #377

floli opened this issue Feb 22, 2017 · 1 comment

Comments

@floli
Copy link

floli commented Feb 22, 2017

Hey,

I try to compile FOAM-FSI on our Ubuntu 16.04 system. foam-extend compiled just nicely.

./Allwmake.firstInstall workes for some time but finally fails while compiling boost:

/data/scratch/lindnefn/software/boost/include/boost/log/sinks/text_file_backend.hpp:540:10: error:                 template<class ArgsT> void boost::log::v2_mt_posix::sinks::text_file_backend::construct(const ArgsT&)
     void construct(ArgsT const& args)
          ^

    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -m64 -fno-strict-aliasing -ftemplate-depth-1024 -fvisibility=hidden -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_DYN_LINK=1 -DBOOST_CHRONO_DYN_LINK=1 -DBOOST_DATE_TIME_DYN_LINK=1 -DBOOST_FILESYSTEM_DYN_LINK=1 -DBOOST_HAS_ICU=1 -DBOOST_LOG_BUILDING_THE_LIB=1 -DBOOST_LOG_DLL -DBOOST_LOG_USE_AVX2 -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_USE_SSSE3 -DBOOST_LOG_WITHOUT_EVENT_LOG -DBOOST_SPIRIT_USE_PHOENIX_V3=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_THREAD_DONT_USE_CHRONO=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_DLL=1 -DDATE_TIME_INLINE -DNDEBUG -D_GNU_SOURCE=1 -D_XOPEN_SOURCE=600 -D__STDC_CONSTANT_MACROS  -I"." -c -o "bin.v2/libs/log/build/gcc-5.4.0/release/log-api-unix/threading-multi/text_file_backend.o" "libs/log/src/text_file_backend.cpp"

...failed gcc.compile.c++ bin.v2/libs/log/build/gcc-5.4.0/release/log-api-unix/threading-multi/text_file_backend.o...
gcc.compile.c++ bin.v2/libs/regex/build/gcc-5.4.0/release/link-static/threading-multi/instances.o
gcc.compile.c++ bin.v2/libs/regex/build/gcc-5.4.0/release/threading-multi/winstances.o

I tried various alternatives, like compiling boost myself (which worked) and changing environment variables to point to that boost, or symlinking, but nothing worked out. Similiar trouble I had with deal II, deal-fsi etc.

I've attached the complete transcript.
foam-fsi-compile.txt

@davidsblom
Copy link
Owner

Hi Florian! Nice that you tried out OpenFOAM again 👍 I don't see the problem right away, so I'll take a look this weekend if you haven't figured it out yet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants