Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916969 - 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]
Summary: sci-mathematics/rstudio-2023.06.2.561::jgenco will fail to compile (lto): Log...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2023-11-06 17:56 UTC by ppw0
Modified: 2023-11-08 16:44 UTC (History)
1 user (show)

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


Attachments
build log (sci-mathematics:rstudio-2023.06.2.561:20231106-173337.log,528.62 KB, text/x-log)
2023-11-06 17:56 UTC, ppw0
Details
emerge --info (emerge_info.log,7.40 KB, text/x-log)
2023-11-06 17:57 UTC, ppw0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ppw0 2023-11-06 17:56:54 UTC
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.
Comment 1 ppw0 2023-11-06 17:57:35 UTC
Created attachment 874162 [details]
emerge --info
Comment 2 Mike Gilbert gentoo-dev 2023-11-08 16:44:48 UTC
There is no repository called "jgenco" on overlays.gentoo.org. Please report the issue to the overlay owner by some other means.