Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.13.5] static build fails #214

Open
tuxmaster opened this issue Feb 14, 2018 · 0 comments
Open

[1.13.5] static build fails #214

tuxmaster opened this issue Feb 14, 2018 · 0 comments

Comments

@tuxmaster
Copy link

It looks like not all parts respect the shared off switch.
CMAKE:

/usr/bin/cmake3 -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DPREFER_EXTERNAL_ZSTD=ON -DPREFER_EXTERNAL_ZLIB=ON -DPREFER_EXTERNAL_SNAPPY=ON -DPREFER_EXTERNAL_LZ4=ON -DBUILD_SHARED=OFF .

Build:

[ 32%] Building C object blosc/CMakeFiles/blosc_static.dir/bitshuffle-avx2.c.o
cd /builddir/build/BUILD/PyTables-3.4.2/c-blosc-1.13.5/blosc && /usr/lib64/ccache/cc -DUSING_CMAKE -I/builddir/build/BUILD/PyTables-3.4.2/c-blosc-1.13.5/blosc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=gnu99 -DNDEBUG -fvisibility=hidden -mavx2 -o CMakeFiles/blosc_static.dir/bitshuffle-avx2.c.o -c /builddir/build/BUILD/PyTables-3.4.2/c-blosc-1.13.5/blosc/bitshuffle-avx2.c
[ 36%] Building C object blosc/CMakeFiles/blosc_static.dir/shuffle.c.o
[ 36%] Building C object blosc/CMakeFiles/blosc_shared_testing.dir/bitshuffle-generic.c.o
cd /builddir/build/BUILD/PyTables-3.4.2/c-blosc-1.13.5/blosc && /usr/lib64/ccache/cc -DUSING_CMAKE -DSHUFFLE_AVX2_ENABLED -DSHUFFLE_SSE2_ENABLED -I/builddir/build/BUILD/PyTables-3.4.2/c-blosc-1.13.5/blosc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=gnu99 -DNDEBUG -fvisibility=hidden -o CMakeFiles/blosc_static.dir/shuffle.c.o -c /builddir/build/BUILD/PyTables-3.4.2/c-blosc-1.13.5/blosc/shuffle.c
cd /builddir/build/BUILD/PyTables-3.4.2/c-blosc-1.13.5/blosc && /usr/lib64/ccache/cc -DBLOSC_SHARED_LIBRARY -DBLOSC_TESTING -DUSING_CMAKE -Dblosc_shared_testing_EXPORTS -I/builddir/build/BUILD/PyTables-3.4.2/c-blosc-1.13.5/blosc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=gnu99 -DNDEBUG -fPIC -fvisibility=hidden -o CMakeFiles/blosc_shared_testing.dir/bitshuffle-generic.c.o -c /builddir/build/BUILD/PyTables-3.4.2/c-blosc-1.13.5/blosc/bitshuffle-generic.c
[ 39%] Building C object blosc/CMakeFiles/blosc_shared_testing.dir/shuffle-sse2.c.o
cd /builddir/build/BUILD/PyTables-3.4.2/c-blosc-1.13.5/blosc && /usr/lib64/ccache/cc -DBLOSC_SHARED_LIBRARY -DBLOSC_TESTING -DUSING_CMAKE -Dblosc_shared_testing_EXPORTS -I/builddir/build/BUILD/PyTables-3.4.2/c-blosc-1.13.5/blosc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=gnu99 -DNDEBUG -fPIC -fvisibility=hidden -msse2 -o CMakeFiles/blosc_shared_testing.dir/shuffle-sse2.c.o -c /builddir/build/BUILD/PyTables-3.4.2/c-blosc-1.13.5/blosc/shuffle-sse2.c
/usr/bin/ld: cannot find -lblosc_shared
collect2: error: ld returned 1 exit status
make[2]: *** [bench/bench] Error 1
make[2]: Leaving directory `/builddir/build/BUILD/PyTables-3.4.2/c-blosc-1.13.5'
make[1]: *** [bench/CMakeFiles/bench.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs..

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

No branches or pull requests

1 participant