Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831868 - sci-mathematics/rstudio-1.3.1093-r1 fails to compile: catch.hpp:6470:21: error: variable length array declaration not allowed at file scope
Summary: sci-mathematics/rstudio-1.3.1093-r1 fails to compile: catch.hpp:6470:21: erro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Mark Wright
URL:
Whiteboard: ~arch only
Keywords: PMASKED
: 851180 (view as bug list)
Depends on:
Blocks: glibc-2.34
  Show dependency tree
 
Reported: 2022-01-23 08:17 UTC by Agostino Sarubbo
Modified: 2022-08-21 21:32 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,125.96 KB, text/plain)
2022-01-23 08:17 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-01-23 08:17:12 UTC
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
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-23 08:17:14 UTC
Created attachment 763316 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-01-23 08:17:15 UTC
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
Comment 3 Silvio 2022-01-23 21:51:27 UTC
(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.
Comment 4 Martin Mokrejš 2022-03-13 10:22:04 UTC
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] = {};
      |
Comment 5 Kobboi 2022-05-17 22:42:44 UTC
(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
Comment 6 Alessandro Barbieri 2022-05-18 13:14:37 UTC
You should unbundle that catch.hpp ad depend on dev-cpp/catch
Comment 7 Tamas Jantvik 2022-05-26 08:21:16 UTC
(In reply to Alessandro Barbieri from comment #6)
> You should unbundle that catch.hpp ad depend on dev-cpp/catch
Comment 8 Tamas Jantvik 2022-05-26 08:22:46 UTC
Sorry for the empty comment. But, unbundling catch1 would be great. I'll check if it's complicated...
Comment 9 Alessandro Barbieri 2022-05-27 18:48:20 UTC
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"
Comment 10 Tamas Jantvik 2022-05-28 18:17:31 UTC
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.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-11 07:41:09 UTC
*** Bug 851180 has been marked as a duplicate of this bug. ***
Comment 12 Larry the Git Cow gentoo-dev 2022-07-22 22:21:09 UTC
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(+)
Comment 13 Larry the Git Cow gentoo-dev 2022-08-21 21:32:37 UTC
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(-)