Summary: | sci-mathematics/rstudio-2023.06.2.561::jgenco will fail to compile (lto): Logger.hpp:89:12: error: type ‘rstudio::core::log::LogLevel’ violates the C++ One Definition Rule [-Werror=odr] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ppw0 |
Component: | Overlays | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | floppym |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 618550 | ||
Attachments: |
build log
emerge --info |
Created attachment 874162 [details]
emerge --info
There is no repository called "jgenco" on overlays.gentoo.org. Please report the issue to the overlay owner by some other means. |
Created attachment 874158 [details] build log In a stricter lto environment, rstudio-2023.06.2.561::jgenco will fail to compile with the following errors: ``` /var/tmp/portage/sci-mathematics/rstudio-2023.06.2.561/work/rstudio-2023.06.2-561/src/cpp/shared_core/include/shared_core/Logger.hpp:89:12: error: type ‘rstudio::core::log::LogLevel’ violates the C++ One Definition Rule [-Werror=odr] 89 | enum class LogLevel | ^ /var/tmp/portage/sci-mathematics/rstudio-2023.06.2.561/work/rstudio-2023.06.2-561/src/cpp/shared_core/include/shared_core/Logger.hpp:89:12: note: an enum with different value name is defined in another translation unit 89 | enum class LogLevel | ^ /var/tmp/portage/sci-mathematics/rstudio-2023.06.2.561/work/rstudio-2023.06.2-561/src/cpp/shared_core/include/shared_core/Logger.hpp:95:4: note: name ‘DEBUG’ differs from name ‘RSTUDIO_DEBUG’ defined in another translation unit 95 | DEBUG = 4 // All messages will be logged. | ^ /var/tmp/portage/sci-mathematics/rstudio-2023.06.2.561/work/rstudio-2023.06.2-561/src/cpp/shared_core/include/shared_core/Logger.hpp:95:4: note: mismatching definition 95 | DEBUG = 4 // All messages will be logged. | ^ lto1: some warnings being treated as errors lto-wrapper: fatal error: /usr/bin/x86_64-pc-linux-gnu-g++ returned 1 exit status compilation terminated. /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status ``` Attaching logs.