https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: sci-mathematics/rstudio-1.3.1093-r1 fails to compile. Discovered on: amd64 (internal ref: tinderbox) NOTE: This machine uses CLANG as a compiler and LLD as a linker
Created attachment 763316 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: fatal: not a git repository (or any parent up to mount point /var/tmp) /var/tmp/portage/sci-mathematics/rstudio-1.3.1093-r1/work/rstudio-1.3.1093/src/cpp/tests/cpp/tests/vendor/catch.hpp:6470:21: error: variable length array declaration not allowed at file scope
(In reply to Agostino Sarubbo from comment #2) > Error(s) that match a know pattern in addition to what has been reported in > the summary: > > > fatal: not a git repository (or any parent up to mount point /var/tmp) > /var/tmp/portage/sci-mathematics/rstudio-1.3.1093-r1/work/rstudio-1.3.1093/ > src/cpp/tests/cpp/tests/vendor/catch.hpp:6470:21: error: variable length > array declaration not allowed at file scope As in other bugs I think it is time to pass to 1.4 version.
I get slightly different error, probably due to a newer compiler: [9/587] /usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ASIO_DISABLE_KQUEUE -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_DYN_LINK -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_DYN_LINK -DBOOST_DATE_TIME_NO_LIB -DBOOST_ENABLE_ASSERT_HANDLER -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_IOSTREAMS_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_RANDOM_DYN_LINK -DBOOST_RANDOM_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DBOOST_SIGNALS_NO_DEPRECATION_WARNING -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DRSTUDIO_BOOST_NAMESPACE=boost -DRSTUDIO_BOOST_SIGNALS_VERSION=2 -DRSTUDIO_UNIT_TESTS_ENABLED -DWEBSOCKETPP_STRICT_MASKING -D_FORTIFY_SOURCE=2 -D_WEBSOCKETPP_NO_CPP11_MEMORY_=1 -I/var/tmp/portage/portage/sci-mathematics/rstudio-1.3.1093-r1/work/rstudio-1.3.1093/src/cpp/shared_core/include -I/var/tmp/portage/portage/sci-mathematics/rstudio-1.3.1093-r1/work/rstudio-1.3.1093/src/cpp/tests/cpp -isystem /opt/rstudio-tools/crashpad -isystem /opt/rstudio-tools/crashpad/crashpad -isystem /opt/rstudio-tools/crashpad/crashpad/third_party/mini_chromium/mini_chromium -O2 -pipe -march=native -ftree-vectorize -std=c++0x -std=c++11 -fPIE -Wall -pthread -Wformat -Wformat-security -fstack-protector --param ssp-buffer-size=4 -fPIC -Wlogical-op -Wduplicated-cond -Wduplicated-branches -Wrestrict -Wnull-dereference -MD -MT src/cpp/shared_core/CMakeFiles/rstudio-shared-core-tests.dir/__/tests/cpp/tests/TestMain.cpp.o -MF src/cpp/shared_core/CMakeFiles/rstudio-shared-core-tests.dir/__/tests/cpp/tests/TestMain.cpp.o.d -o src/cpp/shared_core/CMakeFiles/rstudio-shared-core-tests.dir/__/tests/cpp/tests/TestMain.cpp.o -c /var/tmp/portage/portage/sci-mathematics/rstudio-1.3.1093-r1/work/rstudio-1.3.1093/src/cpp/tests/cpp/tests/TestMain.cpp FAILED: src/cpp/shared_core/CMakeFiles/rstudio-shared-core-tests.dir/__/tests/cpp/tests/TestMain.cpp.o /usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ASIO_DISABLE_KQUEUE -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_DYN_LINK -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_DYN_LINK -DBOOST_DATE_TIME_NO_LIB -DBOOST_ENABLE_ASSERT_HANDLER -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_IOSTREAMS_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_RANDOM_DYN_LINK -DBOOST_RANDOM_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DBOOST_SIGNALS_NO_DEPRECATION_WARNING -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DRSTUDIO_BOOST_NAMESPACE=boost -DRSTUDIO_BOOST_SIGNALS_VERSION=2 -DRSTUDIO_UNIT_TESTS_ENABLED -DWEBSOCKETPP_STRICT_MASKING -D_FORTIFY_SOURCE=2 -D_WEBSOCKETPP_NO_CPP11_MEMORY_=1 -I/var/tmp/portage/portage/sci-mathematics/rstudio-1.3.1093-r1/work/rstudio-1.3.1093/src/cpp/shared_core/include -I/var/tmp/portage/portage/sci-mathematics/rstudio-1.3.1093-r1/work/rstudio-1.3.1093/src/cpp/tests/cpp -isystem /opt/rstudio-tools/crashpad -isystem /opt/rstudio-tools/crashpad/crashpad -isystem /opt/rstudio-tools/crashpad/crashpad/third_party/mini_chromium/mini_chromium -O2 -pipe -march=native -ftree-vectorize -std=c++0x -std=c++11 -fPIE -Wall -pthread -Wformat -Wformat-security -fstack-protector --param ssp-buffer-size=4 -fPIC -Wlogical-op -Wduplicated-cond -Wduplicated-branches -Wrestrict -Wnull-dereference -MD -MT src/cpp/shared_core/CMakeFiles/rstudio-shared-core-tests.dir/__/tests/cpp/tests/TestMain.cpp.o -MF src/cpp/shared_core/CMakeFiles/rstudio-shared-core-tests.dir/__/tests/cpp/tests/TestMain.cpp.o.d -o src/cpp/shared_core/CMakeFiles/rstudio-shared-core-tests.dir/__/tests/cpp/tests/TestMain.cpp.o -c /var/tmp/portage/portage/sci-mathematics/rstudio-1.3.1093-r1/work/rstudio-1.3.1093/src/cpp/tests/cpp/tests/TestMain.cpp In file included from /usr/include/signal.h:328, from /var/tmp/portage/portage/sci-mathematics/rstudio-1.3.1093-r1/work/rstudio-1.3.1093/src/cpp/tests/cpp/tests/vendor/catch.hpp:6447, from /var/tmp/portage/portage/sci-mathematics/rstudio-1.3.1093-r1/work/rstudio-1.3.1093/src/cpp/tests/cpp/tests/TestMain.hpp:24, from /var/tmp/portage/portage/sci-mathematics/rstudio-1.3.1093-r1/work/rstudio-1.3.1093/src/cpp/tests/cpp/tests/TestMain.cpp:19: /var/tmp/portage/portage/sci-mathematics/rstudio-1.3.1093-r1/work/rstudio-1.3.1093/src/cpp/tests/cpp/tests/vendor/catch.hpp:6470:33: error: size of array 'altStackMem' is not an integral constant-expression 6470 | static char altStackMem[SIGSTKSZ]; | ^~~~~~~~ /var/tmp/portage/portage/sci-mathematics/rstudio-1.3.1093-r1/work/rstudio-1.3.1093/src/cpp/tests/cpp/tests/vendor/catch.hpp:6521:45: error: size of array 'altStackMem' is not an integral constant-expression 6521 | char FatalConditionHandler::altStackMem[SIGSTKSZ] = {}; |
(In reply to Martin Mokrejš from comment #4) > I get slightly different error, probably due to a newer compiler: I got your error, indeed with gcc-12.1
You should unbundle that catch.hpp ad depend on dev-cpp/catch
(In reply to Alessandro Barbieri from comment #6) > You should unbundle that catch.hpp ad depend on dev-cpp/catch
Sorry for the empty comment. But, unbundling catch1 would be great. I'll check if it's complicated...
You delete catch.hpp and then depend on dev-cpp/catch:0 and append-cxxflags "-I/usr/include/catch2" or (for older catch versions) depend on dev-cpp/catch:1 and append-cxxflags "-I/usr/include/catch"
Yeah, I think I got that to work. But it died on /tmp/portage/sci-mathematics/rstudio-1.3.1093-r2/work/rstudio-1.3.1093/src/cpp/r/session/RSession.cpp: In function ‘bool rstudio::r::session::browserContextActive()’: /tmp/portage/sci-mathematics/rstudio-1.3.1093-r2/work/rstudio-1.3.1093/src/cpp/r/session/RSession.cpp:438:11: error: ‘Rf_countContexts’ was not declared in this scope 438 | return Rf_countContexts(CTXT_BROWSER, 1) > 0; | ^~~~~~~~~~~~~~~~ instead. I tried with the in-tree version. Oh well.
*** Bug 851180 has been marked as a duplicate of this bug. ***
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9d5fc19de9f6ba9a6e9982f61f2c7518f058de1 commit a9d5fc19de9f6ba9a6e9982f61f2c7518f058de1 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-07-22 22:20:47 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-07-22 22:20:47 +0000 profiles: last-rite sci-mathematics/rstudio, dev-haskell/pandoc-citeproc Bug: https://bugs.gentoo.org/766294 Bug: https://bugs.gentoo.org/775545 Bug: https://bugs.gentoo.org/855197 Bug: https://bugs.gentoo.org/727912 Bug: https://bugs.gentoo.org/831868 Bug: https://bugs.gentoo.org/696938 Bug: https://bugs.gentoo.org/531996 Bug: https://bugs.gentoo.org/836111 Bug: https://bugs.gentoo.org/818721 Signed-off-by: Sam James <sam@gentoo.org> profiles/package.mask | 7 +++++++ 1 file changed, 7 insertions(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07ccc989339f75ab648ede0419e498527901d463 commit 07ccc989339f75ab648ede0419e498527901d463 Author: Jakov Smolić <jsmolic@gentoo.org> AuthorDate: 2022-08-21 21:10:32 +0000 Commit: Jakov Smolić <jsmolic@gentoo.org> CommitDate: 2022-08-21 21:31:00 +0000 sci-mathematics/rstudio: treeclean Closes: https://bugs.gentoo.org/766294 Closes: https://bugs.gentoo.org/696938 Closes: https://bugs.gentoo.org/531996 Closes: https://bugs.gentoo.org/818721 Closes: https://bugs.gentoo.org/727912 Closes: https://bugs.gentoo.org/836111 Closes: https://bugs.gentoo.org/831868 Closes: https://bugs.gentoo.org/855197 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org> profiles/package.mask | 6 - sci-mathematics/rstudio/Manifest | 2 - sci-mathematics/rstudio/files/rsession.conf | 26 --- .../rstudio/files/rstudio-1.0.44-systemd.patch | 21 -- .../files/rstudio-1.2.1335-linker_flags.patch | 11 - .../files/rstudio-1.2.5042-boost-1.73.0.patch | 22 -- .../rstudio/files/rstudio-1.3.1056-R-4.0.0.patch | 58 ----- .../files/rstudio-1.3.1056-boost-1.74.0.patch | 30 --- .../files/rstudio-1.3.1093-boost-1.76.patch | 55 ----- .../rstudio/files/rstudio-1.3.959-core.patch | 184 ---------------- .../files/rstudio-1.3.959-pandoc-mathjax.patch | 42 ---- .../rstudio/files/rstudio-1.3.959-paths.patch | 118 ----------- .../rstudio/files/rstudio-1.3.959-prefs.patch | 68 ------ .../rstudio-1.3.959-qtsingleapplication.patch | 60 ------ sci-mathematics/rstudio/files/rstudio-server.conf | 35 ---- sci-mathematics/rstudio/files/rstudio-server.initd | 19 -- .../rstudio/files/rstudio-server.service.in | 11 - sci-mathematics/rstudio/metadata.xml | 18 -- sci-mathematics/rstudio/rstudio-1.3.1093-r1.ebuild | 233 --------------------- 19 files changed, 1019 deletions(-)