Installing package into ‘/home/byron/R/x86_64-pc-linux-gnu-library/4.3’ (as ‘lib’ is unspecified) trying URL 'https://cran.mirror.ac.za/src/contrib/nloptr_2.0.3.tar.gz' Content type 'application/octet-stream' length 2219877 bytes (2.1 MB) ================================================== downloaded 2.1 MB * installing *source* package ‘nloptr’ ... ** package ‘nloptr’ successfully unpacked and MD5 sums checked ** using staged installation checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C++... yes checking whether g++ -std=gnu++17 accepts -g... yes checking for g++ -std=gnu++17 option to enable C++11 features... none needed checking how to run the C++ preprocessor... g++ -std=gnu++17 -E checking whether the compiler supports GNU C++... (cached) yes checking whether g++ -std=gnu++17 accepts -g... (cached) yes checking for g++ -std=gnu++17 option to enable C++11 features... (cached) no ne needed checking for pkg-config... /usr/bin/pkg-config checking if pkg-config knows NLopt... no checking for cmake... /usr/bin/cmake using NLopt via local cmake build on x86_64 set CMAKE_BIN=/usr/bin/cmake set CC=gcc set CFLAGS=-I/usr/local/include -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-secur ity -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/r/s rc=/usr/src/debug/r -flto=auto -ffat-lto-objects set CXX=g++ set CXXFLAGS=-std=gnu++11 -I/usr/local/include -fpic -march=x86-64 -mtune=ge neric -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werr or=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_A SSERTIONS -g -ffile-prefix-map=/build/r/src=/usr/src/debug/r -flto=auto -ffa t-lto-objects set LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -- The C compiler identification is GNU 13.1.1 -- The CXX compiler identification is GNU 13.1.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- NLopt version 2.7.1 -- Looking for getopt.h -- Looking for getopt.h - found -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for time.h -- Looking for time.h - found -- Looking for sys/time.h -- Looking for sys/time.h - found -- Looking for getpid -- Looking for getpid - found -- Looking for syscall -- Looking for syscall - found -- Looking for isinf -- Looking for isinf - found -- Looking for isnan -- Looking for isnan - found -- Looking for gettimeofday -- Looking for gettimeofday - found -- Looking for qsort_r -- Looking for qsort_r - found -- Looking for time -- Looking for time - found -- Looking for copysign -- Looking for copysign - found -- Looking for getopt -- Looking for getopt - found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of uint32_t -- Check size of uint32_t - done -- Check size of unsigned int -- Check size of unsigned int - done -- Check size of unsigned long -- Check size of unsigned long - done -- Looking for sqrt in m -- Looking for sqrt in m - found -- Looking for fpclassify -- Looking for fpclassify - TRUE -- Performing Test HAVE_THREAD_LOCAL_STORAGE -- Performing Test HAVE_THREAD_LOCAL_STORAGE - Success -- Performing Test HAVE_THREAD_LOCAL_STORAGE -- Performing Test HAVE_THREAD_LOCAL_STORAGE - Failed -- Looking for __cplusplus -- Looking for __cplusplus - found -- Performing Test SUPPORTS_STDCXX11 -- Performing Test SUPPORTS_STDCXX11 - Success -- Performing Test HAS_FPIC -- Performing Test HAS_FPIC - Success -- Configuring done (2.3s) -- Generating done (0.0s) -- Build files have been written to: /tmp/RtmpFVfEYv/R.INSTALL161a29e5f144/n loptr/src/nlopt-build [ 1%] Generating nlopt.f [ 3%] Generating nlopt.hpp [ 3%] Built target generate-fortran [ 3%] Built target generate-cpp [ 7%] Building C object CMakeFiles/nlopt.dir/src/algs/direct/DIRect.c.o [ 7%] Building C object CMakeFiles/nlopt.dir/src/algs/direct/direct_wrap.c. o [ 9%] Building C object CMakeFiles/nlopt.dir/src/algs/direct/DIRserial.c.o [ 11%] Building C object CMakeFiles/nlopt.dir/src/algs/direct/DIRsubrout.c.o [ 13%] Building C object CMakeFiles/nlopt.dir/src/algs/cdirect/cdirect.c.o [ 15%] Building C object CMakeFiles/nlopt.dir/src/algs/cdirect/hybrid.c.o [ 17%] Building C object CMakeFiles/nlopt.dir/src/algs/praxis/praxis.c.o [ 19%] Building C object CMakeFiles/nlopt.dir/src/algs/luksan/plis.c.o [ 21%] Building C object CMakeFiles/nlopt.dir/src/algs/luksan/plip.c.o [ 23%] Building C object CMakeFiles/nlopt.dir/src/algs/luksan/pnet.c.o [ 25%] Building C object CMakeFiles/nlopt.dir/src/algs/luksan/mssubs.c.o [ 27%] Building C object CMakeFiles/nlopt.dir/src/algs/luksan/pssubs.c.o [ 29%] Building C object CMakeFiles/nlopt.dir/src/algs/crs/crs.c.o [ 31%] Building C object CMakeFiles/nlopt.dir/src/algs/mlsl/mlsl.c.o [ 33%] Building C object CMakeFiles/nlopt.dir/src/algs/mma/mma.c.o [ 35%] Building C object CMakeFiles/nlopt.dir/src/algs/mma/ccsa_quadratic.c. o [ 37%] Building C object CMakeFiles/nlopt.dir/src/algs/cobyla/cobyla.c.o [ 39%] Building C object CMakeFiles/nlopt.dir/src/algs/newuoa/newuoa.c.o [ 41%] Building C object CMakeFiles/nlopt.dir/src/algs/neldermead/nldrmd.c.o [ 43%] Building C object CMakeFiles/nlopt.dir/src/algs/neldermead/sbplx.c.o [ 45%] Building C object CMakeFiles/nlopt.dir/src/algs/auglag/auglag.c.o [ 47%] Building C object CMakeFiles/nlopt.dir/src/algs/bobyqa/bobyqa.c.o [ 49%] Building C object CMakeFiles/nlopt.dir/src/algs/isres/isres.c.o [ 50%] Building C object CMakeFiles/nlopt.dir/src/algs/slsqp/slsqp.c.o [ 52%] Building C object CMakeFiles/nlopt.dir/src/algs/esch/esch.c.o [ 54%] Building C object CMakeFiles/nlopt.dir/src/api/general.c.o [ 56%] Building C object CMakeFiles/nlopt.dir/src/api/options.c.o [ 58%] Building C object CMakeFiles/nlopt.dir/src/api/optimize.c.o [ 60%] Building C object CMakeFiles/nlopt.dir/src/api/deprecated.c.o [ 62%] Building C object CMakeFiles/nlopt.dir/src/api/f77api.c.o [ 64%] Building C object CMakeFiles/nlopt.dir/src/util/mt19937ar.c.o [ 66%] Building C object CMakeFiles/nlopt.dir/src/util/sobolseq.c.o [ 68%] Building C object CMakeFiles/nlopt.dir/src/util/timer.c.o [ 70%] Building C object CMakeFiles/nlopt.dir/src/util/stop.c.o [ 72%] Building C object CMakeFiles/nlopt.dir/src/util/redblack.c.o [ 74%] Building C object CMakeFiles/nlopt.dir/src/util/qsort_r.c.o [ 76%] Building C object CMakeFiles/nlopt.dir/src/util/rescale.c.o [ 78%] Building CXX object CMakeFiles/nlopt.dir/src/algs/stogo/global.cc.o [ 80%] Building CXX object CMakeFiles/nlopt.dir/src/algs/stogo/linalg.cc.o [ 82%] Building CXX object CMakeFiles/nlopt.dir/src/algs/stogo/local.cc.o [ 84%] Building CXX object CMakeFiles/nlopt.dir/src/algs/stogo/stogo.cc.o [ 86%] Building CXX object CMakeFiles/nlopt.dir/src/algs/stogo/tools.cc.o [ 88%] Building CXX object CMakeFiles/nlopt.dir/src/algs/ags/evolvent.cc.o [ 90%] Building CXX object CMakeFiles/nlopt.dir/src/algs/ags/solver.cc.o [ 92%] Building CXX object CMakeFiles/nlopt.dir/src/algs/ags/local_optimizer .cc.o [ 94%] Building CXX object CMakeFiles/nlopt.dir/src/algs/ags/ags.cc.o [ 96%] Linking CXX static library libnlopt.a [100%] Built target nlopt [ 1%] Built target generate-cpp [ 3%] Built target generate-fortran [100%] Built target nlopt Install the project... -- Install configuration: "Release" -- Installing: /tmp/RtmpFVfEYv/R.INSTALL161a29e5f144/nloptr/src/nlopt/lib/pk gconfig/nlopt.pc -- Installing: /tmp/RtmpFVfEYv/R.INSTALL161a29e5f144/nloptr/src/nlopt/includ e/nlopt.h -- Installing: /tmp/RtmpFVfEYv/R.INSTALL161a29e5f144/nloptr/src/nlopt/includ e/nlopt.hpp -- Installing: /tmp/RtmpFVfEYv/R.INSTALL161a29e5f144/nloptr/src/nlopt/includ e/nlopt.f -- Installing: /tmp/RtmpFVfEYv/R.INSTALL161a29e5f144/nloptr/src/nlopt/lib/li bnlopt.a -- Installing: /tmp/RtmpFVfEYv/R.INSTALL161a29e5f144/nloptr/src/nlopt/lib/cm ake/nlopt/NLoptLibraryDepends.cmake -- Installing: /tmp/RtmpFVfEYv/R.INSTALL161a29e5f144/nloptr/src/nlopt/lib/cm ake/nlopt/NLoptLibraryDepends-release.cmake -- Installing: /tmp/RtmpFVfEYv/R.INSTALL161a29e5f144/nloptr/src/nlopt/lib/cm ake/nlopt/NLoptConfig.cmake -- Installing: /tmp/RtmpFVfEYv/R.INSTALL161a29e5f144/nloptr/src/nlopt/lib/cm ake/nlopt/NLoptConfigVersion.cmake -- Installing: /tmp/RtmpFVfEYv/R.INSTALL161a29e5f144/nloptr/src/nlopt/share/ man/man3/nlopt.3 -- Installing: /tmp/RtmpFVfEYv/R.INSTALL161a29e5f144/nloptr/src/nlopt/share/ man/man3/nlopt_minimize.3 -- Installing: /tmp/RtmpFVfEYv/R.INSTALL161a29e5f144/nloptr/src/nlopt/share/ man/man3/nlopt_minimize_constrained.3 mv: cannot move 'nlopt/lib' to a subdirectory of itself, 'nlopt/lib/lib' configure: creating ./config.status config.status: creating src/Makevars ** libs using C compiler: ‘gcc (GCC) 13.1.1 20230429’ using C++ compiler: ‘g++ (GCC) 13.1.1 20230429’ using C++11 gcc -I"/usr/include/R/" -DNDEBUG -I../inst/include -I'/usr/lib/R/library/te stthat/include' -I/usr/local/include -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -We rror=format-security -fstack-clash-protection -fcf-protection -g -ff ile-prefix-map=/build/r/src=/usr/src/debug/r -flto=auto -ffat-lto-objects - c init_nloptr.c -o init_nloptr.o gcc -I"/usr/include/R/" -DNDEBUG -I../inst/include -I'/usr/lib/R/library/te stthat/include' -I/usr/local/include -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -We rror=format-security -fstack-clash-protection -fcf-protection -g -ff ile-prefix-map=/build/r/src=/usr/src/debug/r -flto=auto -ffat-lto-objects - c nloptr.c -o nloptr.o g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I../inst/include -I'/usr/lib /R/library/testthat/include' -I/usr/local/include -fpic -march=x86-64 -m tune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-prot ection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/r/src=/usr/src/ debug/r -flto=auto -ffat-lto-objects -c test-C-API.cpp -o test-C-API.o g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I../inst/include -I'/usr/lib /R/library/testthat/include' -I/usr/local/include -fpic -march=x86-64 -m tune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-prot ection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/r/src=/usr/src/ debug/r -flto=auto -ffat-lto-objects -c test-runner.cpp -o test-runner.o In file included from /usr/include/signal.h:328, from /usr/lib/R/library/testthat/include/testthat/vendor/ca tch.h:6472, from /usr/lib/R/library/testthat/include/testthat/testthat. h:65, from /usr/lib/R/library/testthat/include/testthat.h:1, from test-runner.cpp:7: /usr/lib/R/library/testthat/include/testthat/vendor/catch.h:6495:33: error: size of array ‘altStackMem’ is not an integral constant-expression 6495 | static char altStackMem[SIGSTKSZ]; | ^~~~~~~~ /usr/lib/R/library/testthat/include/testthat/vendor/catch.h:6546:45: error: size of array ‘altStackMem’ is not an integral constant-expression 6546 | char FatalConditionHandler::altStackMem[SIGSTKSZ] = {}; | ^~~~~~~~ make: *** [/usr/lib64/R/etc/Makeconf:200: test-runner.o] Error 1 ERROR: compilation failed for package ‘nloptr’ * removing ‘/home/byron/R/x86_64-pc-linux-gnu-library/4.3/nloptr’ The downloaded source packages are in ‘/tmp/RtmpaQhVNg/downloaded_packages’ Warning message: In install.packages("nloptr") : installation of package ‘nloptr’ had non-zero exit status