Comments (1)
Does not happen in Mac.
Same code with old setup.py is OK => Problem of new setup.py...
Check compilation/link flags. This is OK:
chac:~/tmp/shadow3 % make lib
./shadow_version.sh gfortran
gfortran -cpp -fPIC -ffree-line-length-none -static -O2 -fomit-frame-pointer -D_COMPILE4NIX -c shadow_version.f90
gfortran -cpp -fPIC -ffree-line-length-none -static -O2 -fomit-frame-pointer -D_COMPILE4NIX -c shadow_globaldefinitions.f90
gfortran -cpp -fPIC -ffree-line-length-none -static -O2 -fomit-frame-pointer -D_COMPILE4NIX -c stringio.f90
gfortran -cpp -fPIC -ffree-line-length-none -static -O2 -fomit-frame-pointer -D_COMPILE4NIX -c gfile.f90
gfortran -cpp -fPIC -ffree-line-length-none -static -O2 -fomit-frame-pointer -D_COMPILE4NIX -c shadow_beamio.f90
gfortran -cpp -fPIC -ffree-line-length-none -static -O2 -fomit-frame-pointer -D_COMPILE4NIX -c shadow_math.f90
gfortran -cpp -fPIC -ffree-line-length-none -static -O2 -fomit-frame-pointer -D_COMPILE4NIX -c shadow_variables.f90
gfortran -cpp -fPIC -ffree-line-length-none -static -O2 -fomit-frame-pointer -D_COMPILE4NIX -c shadow_roughness.f90
gfortran -cpp -fPIC -ffree-line-length-none -static -O2 -fomit-frame-pointer -D_COMPILE4NIX -c shadow_kernel.f90
gfortran -cpp -fPIC -ffree-line-length-none -static -O2 -fomit-frame-pointer -D_COMPILE4NIX -c shadow_synchrotron.f90
gfortran -cpp -fPIC -ffree-line-length-none -static -O2 -fomit-frame-pointer -D_COMPILE4NIX -c shadow_pre_sync.f90
gfortran -cpp -fPIC -ffree-line-length-none -static -O2 -fomit-frame-pointer -D_COMPILE4NIX -c shadow_pre_sync_urgent.f90
gfortran -cpp -fPIC -ffree-line-length-none -static -O2 -fomit-frame-pointer -D_COMPILE4NIX -c shadow_preprocessors.f90
gfortran -cpp -fPIC -ffree-line-length-none -static -O2 -fomit-frame-pointer -D_COMPILE4NIX -c shadow_postprocessors.f90
gfortran -cpp -fPIC -ffree-line-length-none -static -O2 -fomit-frame-pointer -D_COMPILE4NIX -c shadow_bind_f.f90
gfortran -cpp -fPIC -ffree-line-length-none -static -O2 -fomit-frame-pointer -D_COMPILE4NIX -c shadow_crl.f90
gcc -fPIC -c -o shadow_bind_c.o shadow_bind_c.c
gfortran -shared -lm -fPIC -o libshadow3.so shadow_version.o shadow_globaldefinitions.o stringio.o gfile.o shadow_beamio.o shadow_math.o shadow_variables.o shadow_roughness.o shadow_kernel.o shadow_synchrotron.o shadow_pre_sync.o shadow_pre_sync_urgent.o shadow_preprocessors.o shadow_postprocessors.o shadow_bind_f.o shadow_crl.o
gcc -shared -lm -fPIC -o libshadow3c.so shadow_bind_c.o -L. -lshadow3 #shadow_version.o shadow_globaldefinitions.o stringio.o gfile.o shadow_beamio.o shadow_math.o shadow_variables.o shadow_roughness.o shadow_kernel.o shadow_synchrotron.o shadow_pre_sync.o shadow_pre_sync_urgent.o shadow_preprocessors.o shadow_postprocessors.o shadow_bind_f.o shadow_crl.o
chac:~/tmp/shadow3 %
and now python:
chac:~/tmp/shadow3 % python setup.py build
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.4
creating build/lib.linux-x86_64-3.4/Shadow
copying ./trace3_py.py -> build/lib.linux-x86_64-3.4/Shadow
copying ./ShadowSrw.py -> build/lib.linux-x86_64-3.4/Shadow
copying ./__init__.py -> build/lib.linux-x86_64-3.4/Shadow
copying ./ShadowPreprocessorsXraylib.py -> build/lib.linux-x86_64-3.4/Shadow
copying ./example_tolerances.py -> build/lib.linux-x86_64-3.4/Shadow
copying ./ShadowTools.py -> build/lib.linux-x86_64-3.4/Shadow
copying ./ShadowToolsPrivate.py -> build/lib.linux-x86_64-3.4/Shadow
copying ./ShadowLibExtensions.py -> build/lib.linux-x86_64-3.4/Shadow
copying ./srwlib_fake.py -> build/lib.linux-x86_64-3.4/Shadow
copying ./SRW2SHADOW_Example01.py -> build/lib.linux-x86_64-3.4/Shadow
running build_ext
building 'Shadow.ShadowLib' extension
creating build/temp.linux-x86_64-3.4
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I. -I/usr/local/lib/python3.4/dist-packages/numpy/core/include -I/usr/include/python3.4m -I/users/srio/tmp/test1env/include/python3.4m -c shadow_bind_python.c -o build/temp.linux-x86_64-3.4/shadow_bind_python.o -msse -msse2
In file included from /usr/local/lib/python3.4/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1804:0,
from /usr/local/lib/python3.4/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,
from /usr/local/lib/python3.4/dist-packages/numpy/core/include/numpy/arrayobject.h:4,
from shadow_bind_python.h:25,
from shadow_bind_python.c:1:
/usr/local/lib/python3.4/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/shadow_bind_python.o -L. -lshadow3 -lshadow3c -o build/lib.linux-x86_64-3.4/Shadow/ShadowLib.cpython-34m.so -msse -msse2
chac:~/tmp/shadow3 %
from shadow3.
Related Issues (20)
- Info not working HOT 2
- cannot update the adds-ons on Jan.26, 2020 HOT 5
- Laue Symmetrical (or asymmetrical for alpha=90deg) is buggy HOT 1
- Wiggler source size calculation HOT 3
- Error while running test program HOT 4
- Flat vs. uniform geometrical source HOT 2
- Unexpected behavior of CRL + crystal HOT 2
- compound lens problem for zero lenses
- fatal error LNK1136: invalid or corrupt file HOT 8
- Installation from source not working HOT 30
- License for this repo HOT 2
- SI100 produces unrealistic intensity HOT 1
- simulation of paraboloid mirror HOT 1
- BRAGG standalone use HOT 1
- Parabolic mirror with small distances HOT 2
- choosing the torus pole location HOT 3
- reflectivity with graphite 002 HOT 10
- improve plot range (get_good_range) HOT 1
- Storing the output data HOT 4
- Support NumPy 1.24+
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 shadow3.