Comments (6)
I suspect that's because Anaconda has compiled the ROSENBR python extension using the Intel C compiler which is not supported. Please ensure that Anaconda is set to use GCC as the C compiler (this is the default), then clear the PyCUTEst cache and re-import ROSENBR.
from pycutest.
I suspect that's because Anaconda has compiled the ROSENBR python extension using the Intel C compiler which is not supported. Please ensure that Anaconda is set to use GCC as the C compiler (this is the default), then clear the PyCUTEst cache and re-import ROSENBR.
Thanks for your reply. I forgot to mention that I was running the code on MacOS Mojave 10.14.5. I reinstalled the Anaconda , but the problem is not solved. I don't think the Intel C compiler is installed in my computer. Below is the version of GCC in my computer:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
from pycutest.
Please can you do the following
cd ~/Documents/pycutest_cache/pycutest_cache_holder/ROSENBR/
rm -rf build/
DISTUTILS_DEBUG=1 python setup.py build
and post the output? This way we can see how the ROSENBR python extension is being compiled.
from pycutest.
Please can you do the following
cd ~/Documents/pycutest_cache/pycutest_cache_holder/ROSENBR/ rm -rf build/ DISTUTILS_DEBUG=1 python setup.py buildand post the output? This way we can see how the ROSENBR python extension is being compiled.
It returns the following:
options (after parsing config files):
options (after parsing command line):
option dict for 'build' command:
{}
running build
Distribution.get_command_obj(): creating 'build' command object
running build_ext
Distribution.get_command_obj(): creating 'build_ext' command object
building '_pycutestitf' extension
creating build
creating build/temp.macosx-10.7-x86_64-3.7
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/ziyan/anaconda3/include -arch x86_64 -I/Users/ziyan/anaconda3/include -arch x86_64 -DLINUX -I/Users/ziyan/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy -I/Users/ziyan/anaconda3/include/python3.7m -c cutestitf.c -o build/temp.macosx-10.7-x86_64-3.7/cutestitf.o
creating build/lib.macosx-10.7-x86_64-3.7
gcc -bundle -undefined dynamic_lookup -L/Users/ziyan/anaconda3/lib -arch x86_64 -L/Users/ziyan/anaconda3/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.7/cutestitf.o RANGE.o EXTER.o ELFUN.o GROUP.o /Users/ziyan/Documents/Github/cutest/CUTEst/objects/mac64.osx.ifr/double/libcutest.a -L/usr/local/Cellar/gcc/9.1.0/lib/gcc/9/ -L/usr/local/gfortran/lib/ -lgfortran -o build/lib.macosx-10.7-x86_64-3.7/_pycutestitf.cpython-37m-darwin.so -Wl,-no_compact_unwind
ld: warning: directory not found for option '-L/usr/local/gfortran/lib/'
ld: warning: object file (RANGE.o) was built for newer OSX version (10.14) than being linked (10.7)
ld: warning: object file (EXTER.o) was built for newer OSX version (10.14) than being linked (10.7)
ld: warning: object file (ELFUN.o) was built for newer OSX version (10.14) than being linked (10.7)
ld: warning: object file (GROUP.o) was built for newer OSX version (10.14) than being linked (10.7)
from pycutest.
Ah it turns out that you have compiled CUTEst using the Intel Fortran compiler (as you have mac64.osx.ifr/double/libcutest.a
) and this is not supported.
Please reinstall CUTEst following the detailed instructions in the README for PyCUTEst, in particular please ensure that you select GNU gfortran as the fortran compiler.
from pycutest.
It works! Thanks!
from pycutest.
Related Issues (20)
- Using mac, install pycutest, there is a bug HOT 12
- Add access to gradient only HOT 4
- macOS CI runners have stopped working HOT 1
- How to release RAM HOT 5
- path problem in mac HOT 1
- An option or function to get all the problems compiled and saved, so that they do not need to be compiled on the fly HOT 8
- I want to specify the dimension of the unconstrained optimization problem, how do I set that? HOT 8
- PyCUTEst v1.5.0 breaks existing cached problems HOT 12
- module 'pycutest_cache_holder.X' has no attribute 'setup' HOT 1
- error when Installing on Linux HOT 10
- Better handling of incompatible Fortran compilers
- System state isn't restored after loading failure (`FileNotFoundError`) HOT 2
- How to find problems with equality constraints only? HOT 5
- Support for ARM-based Mac HOT 2
- import_problem HOT 5
- Release of memory HOT 6
- Facing error when attempting to run the given example HOT 2
- Conversion of an array with ndim > 0 to a scalar is deprecated and will error in future
- Pycutest with Knitro solver HOT 1
- Add new CUTEst routines for the John function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pycutest.