- Index
- » Users
- » murrayE
- » Profile
Posts
Posts
The current MacPorts port of octave (@4.4.0_2+accelerate+app+docs+gfortran+graphicsmagick+qt5+sound) epends on sundials2.
openmodelica-dvel depends on sundials. And sundials cannot be installed because it conflicts with sundials2.
Any way to resolve this?
I have solved the problem by uninstalling other MacPorts that used the atlas libraries, including octave, qrupdate, and arpack; then installing those dependencies with the +accelerate variant; and finally installing openmodelica-devel+gfortran5+libraries+omnotebook+qt+sundials.
I hope that, contrary to what is still posted on the Gnu Octave, the Apple libraries are now sufficiently error-free that the atlas libraries are not actually needed (We'll see!)
Thanks to all who replied about this issue.
I have now installed the MacPorts lapack:
lapack @3.8.0_0+gfortran
But still also installed are:
octave @4.2.2_1+app+atlas+docs+fltk+gfortran+graphicsmagick+qt5+sound
SuiteSparse @4.2.1_4+atlas [NB: octave depends on SuiteSparse]
So I'm still getting configure errors (from main.log):
Code:
:info:configure checking LAPACK/BLAS flags... configure: error: dgesv (LAPACK) linking failed using -llapack -lblas
:info:configure configure: error: ./configure failed for OMCompiler
:info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.13.0~dev-895-g0365526" && ./configure --prefix=/opt/local --disable-python-interface --disable-modelica3d --with-lapack="-llapack -lblas" --without-omc --without-omlibrary OMPCC="/opt/local/bin/gcc-mp-5 -fopenmp -mno-avx" GNUCXX=/opt/local/bin/g++-mp-5 --with-omniORB=/opt/local
Files in the public gist https://gist.github.com/murrayE/5f641fa7cbf8868a10bc096a9d4edbbaTitle
are:
Code:
/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.13.0~dev-895-g0365526/config.log
The complete OMCompiler config.log, openmodelica-dev config.log, and opnemodelica-dev main.log are in the respective public .gist's:
https://gist.github.com/murrayE/6b23731 … e37913f783
https://gist.github.com/murrayE/020c376 … a2003425f5
https://gist.github.com/murrayE/a13e300 … a8dea6ae16
murrayE wrote:
sjoelund.se wrote:
The OMCompiler config.log probably contains the linker error for lapack/blasWhat would the actual name of that log be?
Here's are two sections of the OMCompiler config.log, the first at the beginning showing the command involved, the second around the error:
Code:
It was created by OMCompiler configure dev, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --disable-option-checking --prefix=/opt/local --disable-python-interface --disable-modelica3d --with-lapack=-llapack -lblas --without-omc --without-omlibrary OMPCC=/opt/local/bin/gcc-mp-5 -fopenmp -mno-avx GNUCXX=/opt/local/bin/g++-mp-5 --with-omniORB=/opt/local CC=/usr/bin/clang CFLAGS=-pipe -Os -arch x86_64 LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 CPPFLAGS=-I/opt/local/include --with-ombuilddir=/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.13.0~dev-884-g9a6d20f/build --cache-file=/dev/null --srcdir=.
Code:
configure:4289: checking looking for --no-undefined
configure:4302: /usr/bin/clang -o conftest -pipe -Os -arch x86_64 -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -Wl,--no-undefined conftest.c >&5
ld: unknown option: --no-undefined
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:4302: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "OMCompiler"
| #define PACKAGE_TARNAME "openmodelica"
| #define PACKAGE_VERSION "dev"
| #define PACKAGE_STRING "OMCompiler dev"
| #define PACKAGE_BUGREPORT "https://trac.openmodelica.org/OpenModelica"
| #define PACKAGE_URL "https://openmodelica.org"
| /* end confdefs.h. */
| void abc() {}
| int
| main ()
| {
| abc();
| ;
| return 0;
| }
configure:4306: result: no
configure:4335: /usr/bin/clang -o conftest -fno-stack-protector -Werror -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 conftest.c >&5
configure:4335: $? = 0
configure:4357: /usr/bin/clang -o conftest -Wno-parentheses-equality -Werror -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 conftest.c >&5
configure:4357: $? = 0
configure:4357: /usr/bin/clang -o conftest -Wno-unused-variable -Werror -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 conftest.c >&5
configure:4357: $? = 0
configure:4379: /usr/bin/clang -o conftest -Werror=implicit-function-declaration -Werror -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 conftest.c >&5
configure:4379: $? = 0
configure:4379: /usr/bin/clang -o conftest -Werror=incompatible-pointer-types -Werror -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 conftest.c >&5
configure:4379: $? = 0
configure:4483: /usr/bin/clang++ -o conftest -pipe -Os -stdlib=libc++ -arch x86_64 -stdlib=libstdc++ -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 conftest.cpp >&5
clang: warning: libstdc++ is deprecated; move to libc++ [-Wdeprecated]
configure:4483: $? = 0
configure:4554: checking whether /usr/bin/clang++ supports C++11 features by default
configure:4611: /usr/bin/clang++ -c -pipe -Os -stdlib=libc++ -arch x86_64 -stdlib=libstdc++ -I/opt/local/include conftest.cpp >&5
conftest.cpp:13:21: error: expected parameter declarator
static_assert(sizeof(int) <= sizeof(T), "not big enough");
^
conftest.cpp:13:21: error: expected ')'
conftest.cpp:13:20: note: to match this '('
static_assert(sizeof(int) <= sizeof(T), "not big enough");
^
conftest.cpp:13:7: error: C++ requires a type specifier for all declarations
static_assert(sizeof(int) <= sizeof(T), "not big enough");
^
conftest.cpp:20:22: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
virtual void f() override {}
^
conftest.cpp:23:29: error: a space is required between consecutive right angle brackets (use '> >')
typedef check<check<bool>> right_angle_brackets;
^~
> >
conftest.cpp:26:5: error: unknown type name 'decltype'
decltype(a) b;
^
conftest.cpp:26:16: error: expected ';' after top level declarator
decltype(a) b;
^
;
conftest.cpp:30:15: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
check_type&& cr = static_cast<check_type&&>(c);
^
conftest.cpp:30:45: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
check_type&& cr = static_cast<check_type&&>(c);
^
conftest.cpp:32:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto d = a;
^
conftest.cpp:33:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto l = [](){};
^
conftest.cpp:33:14: error: expected expression
auto l = [](){};
^
conftest.cpp:43:24: warning: alias declarations are a C++11 extension [-Wc++11-extensions]
using member = typename T::member_type;
^
6 warnings and 7 errors generated.
configure:4611: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "OMCompiler"
| #define PACKAGE_TARNAME "openmodelica"
| #define PACKAGE_VERSION "dev"
| #define PACKAGE_STRING "OMCompiler dev"
| #define PACKAGE_BUGREPORT "https://trac.openmodelica.org/OpenModelica"
| #define PACKAGE_URL "https://openmodelica.org"
| /* end confdefs.h. */
sjoelund.se wrote:
The OMCompiler config.log probably contains the linker error for lapack/blas
What would the actual name of that log be?
Following the instructions at https://www.openmodelica.org/download/download-mac, I'm trying to install OpenModelica via MacPorts under macOS High Sierra (10.13.4).
After successfully adding the build.openmodelica.org/macports location to the macports sources.conf file, the "port selfupdate" successfully completed. Given that gcc44 is obsolete for current macOS, and following advice from MacPorts experts, I then simply ran:
Code:
sudo port install openmodelica-devel +libraries
This command failed.
From /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.13.0~dev-866-gb1271a6/config.log :
Code:
config.status:752: creating Makefile
configure:4318: === configuring in OMCompiler (/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.13.0~dev-866-gb1271a6/OMCompiler)
configure:4381: running /bin/sh ./configure --disable-option-checking '--prefix=/opt/local' '--disable-python-interface' '--disable-modelica3d' '--with-lapack=-llapack -lblas' '--without-omc' '--without-omlibrary' 'OMPCC=/opt/local/bin/gcc-mp-5 -fopenmp -mno-avx' 'GNUCXX=/opt/local/bin/g++-mp-5' '--with-omniORB=/opt/local' 'CC=/usr/bin/clang' 'CFLAGS=-pipe -Os -arch x86_64' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64' 'CPPFLAGS=-I/opt/local/include' '--with-ombuilddir=/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.13.0~dev-866-gb1271a6/build' --cache-file=/dev/null --srcdir=.
configure:4386: error: ./configure failed for OMCompiler
And from /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/main.log :
Code:
:info:configure checking LAPACK/BLAS flags... configure: error: dgesv (LAPACK) linking failed using -llapack -lblas
:info:configure configure: error: ./configure failed for OMCompiler
:info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.13.0~dev-866-gb1271a6" && ./configure --prefix=/opt/local --disable-python-interface --disable-modelica3d --with-lapack="-llapack -lblas" --without-omc --without-omlibrary OMPCC="/opt/local/bin/gcc-mp-5 -fopenmp -mno-avx" GNUCXX=/opt/local/bin/g++-mp-5 --with-omniORB=/opt/local
:info:configure Exit code: 1
:error:configure Failed to configure openmodelica-devel, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.13.0~dev-866-gb1271a6/config.log
:error:configure Failed to configure openmodelica-devel: configure failure: command execution failed
What's wrong?
- Index
- » Users
- » murrayE
- » Profile