Title: Install issues with gcc-14.1 · Issue #169 · DiamondLightSource/pythonSoftIOC · GitHub
Open Graph Title: Install issues with gcc-14.1 · Issue #169 · DiamondLightSource/pythonSoftIOC
X Title: Install issues with gcc-14.1 · Issue #169 · DiamondLightSource/pythonSoftIOC
Description: Hello, pip install will bug out with the following error for me: [...] gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions │ -fcf-protect...
Open Graph Description: Hello, pip install will bug out with the following error for me: [...] gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fc...
X Description: Hello, pip install will bug out with the following error for me: [...] gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fc...
Opengraph URL: https://github.com/DiamondLightSource/pythonSoftIOC/issues/169
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Install issues with gcc-14.1","articleBody":"Hello,\r\n\r\n`pip install` will bug out with the following error for me:\r\n```\r\n [...]\r\ngcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions │\r\n-fcf-protection -fPIC -D_GNU_SOURCE -D_DEFAULT_SOURCE -Dlinux -DUNIX -D_GLIBCXX_USE_CXX11_ABI=1 -I/tmp/pip-build-env-03ykrg0g/overlay/lib64/python3.12/site-pa│\r\nckages/epicscorelibs/include -Isoftioc/iocStats/devIocStats -Isoftioc/iocStats/devIocStats/os/Linux -Isoftioc/iocStats/devIocStats/os/default -I/usr/include/p│\r\nython3.12 -c softioc/iocStats/devIocStats/devIocStatsSub.c -o build/temp.linux-x86_64-cpython-312/softioc/iocStats/devIocStats/devIocStatsSub.o -g0 -std=c99 │\r\n softioc/iocStats/devIocStats/devIocStatsSub.c: In function ‘scanMonInit’: │\r\n softioc/iocStats/devIocStats/devIocStatsSub.c:91:16: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] │\r\n 91 | psub->dpvt = malloc(sizeof(epicsTimeStamp)); │\r\n | ^~~~~~ │\r\n softioc/iocStats/devIocStats/devIocStatsSub.c:26:1: note: include ‘\u003cstdlib.h>’ or provide a declaration of ‘malloc’ │\r\n 25 | #include \"devIocStats.h\" │\r\n +++ |+#include \u003cstdlib.h> │\r\n 26 | │\r\n softioc/iocStats/devIocStats/devIocStatsSub.c:91:16: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mis│\r\nmatch] │\r\n 91 | psub->dpvt = malloc(sizeof(epicsTimeStamp)); │\r\n | ^~~~~~ │\r\n softioc/iocStats/devIocStats/devIocStatsSub.c:91:16: note: include ‘\u003cstdlib.h>’ or provide a declaration of ‘malloc’ │\r\n error: command '/usr/bin/gcc' failed with exit code 1\r\n```\r\n\r\nEssentially, `gcc` is right: there's no `\u003cstdlib.h>` in `devIocStatsSub.c`. I'm guessing it's a 14 year old upstream error of EPICS.\r\n\r\nI don't know why it used to work until now, but it might have something to do with the fact that it's a gcc 14.1 environment?... Maybe something changed in the way the standard prototype is being interpreted (which I belive is `int malloc()`, with `()` generally meaning \"no arguments\", but also being a valid replacement for \"(...)\" in the past -- maybe not anymore?)\r\n\r\nOr it's because of Python 3.12.4, the one I'm using?\r\n\r\nI'm running this on what most likely amounts to a clean install of Fedora 40. (Technically, it's a freshly created \"Toolbox\" on a recent \"Fedora CoreOS\"...) Here is the complete script to reproduce:\r\n```\r\ntoolbox create\r\ntoolbox enter\r\nsudo dnf install python3-pip python3-devel\r\nsudo dnf group install \"C Development Tools and Libraries\"\r\npip install softioc\r\n```\r\n\r\nCheers,\r\nF.","author":{"url":"https://github.com/codedump","@type":"Person","name":"codedump"},"datePublished":"2024-07-23T13:11:05Z","url":"https://github.com/DiamondLightSource/pythonSoftIOC/issues/169"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:a42306a6-1ba9-63f4-fa94-388b426eeadf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B9B0:1FA32B:995567:D14A41:6B048158 |
| html-safe-nonce | b1dbaae0cb1e24ff484b96973514e530081889612a3ea35d10845bff09ce8430 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUIwOjFGQTMyQjo5OTU1Njc6RDE0QTQxOjZCMDQ4MTU4IiwidmlzaXRvcl9pZCI6Ijg5MDY1MTIyMzk0MzIwNzM1NjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bd76414307a308c36766eeb97a198568802412d6e3d302e7d413e009c62a52ab |
| hovercard-subject-tag | issue:2425184832 |
| 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/DiamondLightSource/pythonSoftIOC/169/issue_layout |
| twitter:image | https://opengraph.githubassets.com/97bdeb5793e5c58cccff73762b7ce71c59408ccfc407424aa38146f42a629a50/DiamondLightSource/pythonSoftIOC/issues/169 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/97bdeb5793e5c58cccff73762b7ce71c59408ccfc407424aa38146f42a629a50/DiamondLightSource/pythonSoftIOC/issues/169 |
| og:image:alt | Hello, pip install will bug out with the following error for me: [...] gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | codedump |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| turbo-cache-control | no-preview |
| go-import | github.com/DiamondLightSource/pythonSoftIOC git https://github.com/DiamondLightSource/pythonSoftIOC.git |
| octolytics-dimension-user_id | 1233618 |
| octolytics-dimension-user_login | DiamondLightSource |
| octolytics-dimension-repository_id | 20049394 |
| octolytics-dimension-repository_nwo | DiamondLightSource/pythonSoftIOC |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20049394 |
| octolytics-dimension-repository_network_root_nwo | DiamondLightSource/pythonSoftIOC |
| 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 | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width