|
From: Dirk E. <ed...@de...> - 2019-08-07 03:39:52
|
Having updated QuantLib to 1.16 yesterday, I just tried to update
QuantLib-SWIG using the regular build process -- but I now get
/usr/bin/ld: error: lto-wrapper failed
Am I missing something simple? Do I need add something to the build
dependencies?
Dirk, who is less well versed in Python than in R or C++
*** Running on arch amd64 and cpu x86_64
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking dependency style of g++... none
checking for python... /usr/bin/python
checking for jar... no
checking for java... no
checking for scalac... no
checking for scala... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating CSharp/Makefile
config.status: creating Java/Makefile
config.status: creating Python/Makefile
config.status: creating Python/setup.py
config.status: creating R/Makefile
config.status: creating R/DESCRIPTION
config.status: executing depfiles commands
(cd Python && for python in python3.7; do \
CC="g++" \
CXX="g++" \
CFLAGS="-O2 -Wall -Wno-strict-aliasing -DBOOST_NO_AUTO_PTR" \
CXXFLAGS="-O2 -Wall -Wno-strict-aliasing -DBOOST_NO_AUTO_PTR" \
$python setup.py build; \
done )
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/QuantLib
copying QuantLib/__init__.py -> build/lib.linux-x86_64-3.7/QuantLib
copying QuantLib/QuantLib.py -> build/lib.linux-x86_64-3.7/QuantLib
running build_ext
building 'QuantLib._QuantLib' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/QuantLib
running build_ext
building 'QuantLib._QuantLib' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/QuantLib
g++ -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -O2 -Wall -Wno-strict-aliasing -DBOOST_NO_AUTO_PTR -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -I/usr/include -c QuantLib/quantlib_wrap.cpp -o build/temp.linux-x86_64-3.7/QuantLib/quantlib_wrap.o -fopenmp -Wno-unused -O2 -Wall -Wno-strict-aliasing -DBOOST_NO_AUTO_PTR
QuantLib/quantlib_wrap.cpp: In function 'PyObject* GaussLobattoIntegral_swigregister(PyObject*, PyObject*)':
QuantLib/quantlib_wrap.cpp:426255: note: -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
SWIG_TypeNewClientData(SWIGTYPE_p_GaussLobattoIntegral, SWIG_NewClientData(obj));
QuantLib/quantlib_wrap.cpp: In function '_wrap_new_MCLDAmericanEngine':
QuantLib/quantlib_wrap.cpp:264555:27: warning: 'MEM[(struct optional *)&arg13 + 1B]' may be used uninitialized in this function [-Wmaybe-uninitialized]
boost::optional< bool > arg13 = (boost::optional< bool >) boost::none ;
^~~~~
QuantLib/quantlib_wrap.cpp: In function '_wrap_new_MCPRAmericanEngine':
QuantLib/quantlib_wrap.cpp:264303:27: warning: 'MEM[(struct optional *)&arg13 + 1B]' may be used uninitialized in this function [-Wmaybe-uninitialized]
boost::optional< bool > arg13 = (boost::optional< bool >) boost::none ;
^~~~~
g++ -shared -Wl,-z,relro -O2 -Wall -Wno-strict-aliasing -DBOOST_NO_AUTO_PTR -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.7/QuantLib/quantlib_wrap.o -lQuantLib -o build/lib.linux-x86_64-3.7/QuantLib/_QuantLib.cpython-37m-x86_64-linux-gnu.so -fopenmp
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
error: command 'g++' failed with exit status 1
make: *** [debian/rules:99: build-stamp] Error 1
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
I: copying local configuration
E: Failed autobuilding of package
I: unmounting dev/ptmx filesystem
I: unmounting dev/pts filesystem
I: unmounting dev/shm filesystem
I: unmounting proc filesystem
I: unmounting sys filesystem
I: cleaning the build env
I: removing directory /var/cache/pbuilder/build//32183 and its subdirectories
gbp:error: 'pdebuild' failed: it exited with 1
Command exited with non-zero status 1
415.88user 19.25system 7:25.21elapsed 97%CPU (0avgtext+0avgdata 7642488maxresident)k
1784256inputs+7819032outputs (707major+7442530minor)pagefaults 0swaps
Done
quantlib-swig ->
warning: the authors of lintian do not recommend running it with root privileges!
bad package file name /mnt/ (neither .deb, .udeb, .changes .dsc or .buildinfo file)
edd@rob:~/deb/quantlib-swig(master)$
--
http://dirk.eddelbuettel.com | @eddelbuettel | ed...@de...
|