Title: -pedantic -Werror in cmakelist causes error when compiling on ubuntu18.04 · Issue #102 · AliceO2Group/DataDistribution · GitHub
Open Graph Title: -pedantic -Werror in cmakelist causes error when compiling on ubuntu18.04 · Issue #102 · AliceO2Group/DataDistribution
X Title: -pedantic -Werror in cmakelist causes error when compiling on ubuntu18.04 · Issue #102 · AliceO2Group/DataDistribution
Description: I am building on Ubuntu 18.04.4 LTS with gcc Version 10.3.0. The following warning 2021-07-09@12:00:17:DEBUG:O2-full-system-test:DataDistribution:0: /software/flo/alice/sw/SOURCES/DataDistribution/heads-v1.0.0/0/src/common/base/DataDistL...
Open Graph Description: I am building on Ubuntu 18.04.4 LTS with gcc Version 10.3.0. The following warning 2021-07-09@12:00:17:DEBUG:O2-full-system-test:DataDistribution:0: /software/flo/alice/sw/SOURCES/DataDistribution/...
X Description: I am building on Ubuntu 18.04.4 LTS with gcc Version 10.3.0. The following warning 2021-07-09@12:00:17:DEBUG:O2-full-system-test:DataDistribution:0: /software/flo/alice/sw/SOURCES/DataDistribution/...
Opengraph URL: https://github.com/AliceO2Group/DataDistribution/issues/102
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"-pedantic -Werror in cmakelist causes error when compiling on ubuntu18.04","articleBody":"I am building on **Ubuntu 18.04.4 LTS** with **gcc Version 10.3.0**. The following warning\r\n```shell\r\n2021-07-09@12:00:17:DEBUG:O2-full-system-test:DataDistribution:0: /software/flo/alice/sw/SOURCES/DataDistribution/heads-v1.0.0/0/src/common/base/DataDistLogger.h:377:11: warning: ignoring return value of 'int nice(int)' declared with attribute 'warn_unused_result' [-Wunused-result]\r\n2021-07-09@12:00:17:DEBUG:O2-full-system-test:DataDistribution:0: 377 | nice(+10);\r\n2021-07-09@12:00:17:DEBUG:O2-full-system-test:DataDistribution:0: | ~~~~^~~~~\r\n```\r\ncauses a crash on my system and I can only build succesfully when removing \r\n``` bash\r\nif(NOT APPLE)\r\n set(CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS} -pedantic -Werror\")\r\nendif()\r\n```\r\nfrom the cmakelist. Since I do not fully understand what was the original purpose using these specific compiler flags for none apple systems, I just open this issue and leave it up to the maintainers.\r\n\r\nIn addition the build failed on my system due to:\r\n```bash\r\nUndefined reference to 'dlsym'\r\n```\r\nwhich I could fix by adding \r\n```bash\r\n-Wl,--no-as-needed -ldl\r\n```\r\nto the cxx flags. However this might be an unrelated issue with my system, just wanted to leave this info here for future reference\r\n","author":{"url":"https://github.com/fjonasALICE","@type":"Person","name":"fjonasALICE"},"datePublished":"2021-07-09T10:20:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/102/DataDistribution/issues/102"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:39ac29be-41d1-b4e5-0a26-ba2f0332219e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9778:18AA88:EAEA7F:14D4590:6978BD58 |
| html-safe-nonce | 27643217edb497e167c76e3643643d56355028ea7531696da6cee636dcb5dd65 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Nzc4OjE4QUE4ODpFQUVBN0Y6MTRENDU5MDo2OTc4QkQ1OCIsInZpc2l0b3JfaWQiOiIyMjI2NjY1MjU4ODE2NjgzMzUyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 88228c45bef8f3dee280afe323ad6453dd28342f0be0f00bcb2d5552d2973767 |
| hovercard-subject-tag | issue:940629381 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/AliceO2Group/DataDistribution/102/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f30aefc4a7bc6bfc00ebce1c2c307867e1bca71ce1a59b789e7582cccab4ddd6/AliceO2Group/DataDistribution/issues/102 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f30aefc4a7bc6bfc00ebce1c2c307867e1bca71ce1a59b789e7582cccab4ddd6/AliceO2Group/DataDistribution/issues/102 |
| og:image:alt | I am building on Ubuntu 18.04.4 LTS with gcc Version 10.3.0. The following warning 2021-07-09@12:00:17:DEBUG:O2-full-system-test:DataDistribution:0: /software/flo/alice/sw/SOURCES/DataDistribution/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fjonasALICE |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50 |
| turbo-cache-control | no-preview |
| go-import | github.com/AliceO2Group/DataDistribution git https://github.com/AliceO2Group/DataDistribution.git |
| octolytics-dimension-user_id | 9053140 |
| octolytics-dimension-user_login | AliceO2Group |
| octolytics-dimension-repository_id | 162588050 |
| octolytics-dimension-repository_nwo | AliceO2Group/DataDistribution |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 162588050 |
| octolytics-dimension-repository_network_root_nwo | AliceO2Group/DataDistribution |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9520342ca7ead2f1a011aa96eaff82fc054a4970 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width