Title: Ubuntu VM on Apple Silicon fails to load or compile devIocStats · Issue #183 · DiamondLightSource/pythonSoftIOC · GitHub
Open Graph Title: Ubuntu VM on Apple Silicon fails to load or compile devIocStats · Issue #183 · DiamondLightSource/pythonSoftIOC
X Title: Ubuntu VM on Apple Silicon fails to load or compile devIocStats · Issue #183 · DiamondLightSource/pythonSoftIOC
Description: I have softIOC code developed on other systems that is failing to run on my Apple Silicon Macbook Pro M2 (in a Parallels virtual machine running Ubuntu), and it appears to be due to the devIocStats feature causing a buffer overflow and t...
Open Graph Description: I have softIOC code developed on other systems that is failing to run on my Apple Silicon Macbook Pro M2 (in a Parallels virtual machine running Ubuntu), and it appears to be due to the devIocStats...
X Description: I have softIOC code developed on other systems that is failing to run on my Apple Silicon Macbook Pro M2 (in a Parallels virtual machine running Ubuntu), and it appears to be due to the devIocStats...
Opengraph URL: https://github.com/DiamondLightSource/pythonSoftIOC/issues/183
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ubuntu VM on Apple Silicon fails to load or compile devIocStats","articleBody":"I have softIOC code developed on other systems that is failing to run on my Apple Silicon Macbook Pro M2 (in a Parallels virtual machine running Ubuntu), and it appears to be due to the devIocStats feature causing a buffer overflow and then core dump.\n\nMy machine:\n\n```vm-ubuntu24 13:28 ~ $ uname -a\nLinux vm-ubuntu24 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:32:09 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux\n```\n\nThe easiest way to demonstrate the error; this is on a machine installed last July. I wasn't running devIocStats on it until now.\n\n```vm-ubuntu24 13:27 ~ $ /usr/local/anaconda/bin/python3\nPython 3.12.4 | packaged by Anaconda, Inc. | (main, Jun 18 2024, 15:03:55) [GCC 11.2.0] on linux\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n>>> from softioc import softioc\nINFO: PVXS QSRV2 is loaded, permitted, and ENABLED.\n>>> softioc.devIocStats('test')\n*** buffer overflow detected ***: terminated\nAborted (core dumped)\n```\n\n\nI also tried to reproduce the problem on a freshly installed Ubuntu 24.04 machine I just made for a test. It fails to compile.\n\n```# ./pip install softioc\nCollecting softioc\n Downloading softioc-4.5.0.tar.gz (82 kB)\n Installing build dependencies ... done\n Getting requirements to build wheel ... done\n Preparing metadata (pyproject.toml) ... done\nCollecting epicscorelibs\u003c7.0.7.99.2,>=7.0.7.99.1.1 (from softioc)\n Using cached epicscorelibs-7.0.7.99.1.1-cp312-cp312-linux_aarch64.whl\nCollecting pvxslibs>=1.2.2 (from softioc)\n Downloading pvxslibs-1.3.2.tar.gz (660 kB)\n ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 660.7/660.7 kB 411.8 kB/s eta 0:00:00\n Installing build dependencies ... done\n Getting requirements to build wheel ... done\n Preparing metadata (pyproject.toml) ... done\nRequirement already satisfied: numpy in /usr/local/Anaconda3-2024.10-1/lib/python3.12/site-packages (from softioc) (1.26.4)\nCollecting epicsdbbuilder>=1.4 (from softioc)\n Downloading epicsdbbuilder-1.5-py3-none-any.whl.metadata (2.8 kB)\nRequirement already satisfied: setuptools in /usr/local/Anaconda3-2024.10-1/lib/python3.12/site-packages (from epicscorelibs\u003c7.0.7.99.2,>=7.0.7.99.1.1->softioc) (75.1.0)\nCollecting setuptools-dso>=2.11a2 (from epicscorelibs\u003c7.0.7.99.2,>=7.0.7.99.1.1->softioc)\n Using cached setuptools_dso-2.11-py2.py3-none-any.whl.metadata (1.6 kB)\nDownloading epicsdbbuilder-1.5-py3-none-any.whl (23 kB)\nUsing cached setuptools_dso-2.11-py2.py3-none-any.whl (23 kB)\nBuilding wheels for collected packages: softioc, pvxslibs\n Building wheel for softioc (pyproject.toml) ... error\n error: subprocess-exited-with-error\n \n × Building wheel for softioc (pyproject.toml) did not run successfully.\n │ exit code: 1\n ╰─> [149 lines of output]\n running bdist_wheel\n running build\n running build_py\n creating build/lib.linux-aarch64-cpython-312/softioc\n copying softioc/__init__.py -> build/lib.linux-aarch64-cpython-312/softioc\n copying softioc/__main__.py -> build/lib.linux-aarch64-cpython-312/softioc\n copying softioc/_version_git.py -> build/lib.linux-aarch64-cpython-312/softioc\n copying softioc/alarm.py -> build/lib.linux-aarch64-cpython-312/softioc\n copying softioc/asyncio_dispatcher.py -> build/lib.linux-aarch64-cpython-312/softioc\n copying softioc/builder.py -> build/lib.linux-aarch64-cpython-312/softioc\n copying softioc/cothread_dispatcher.py -> build/lib.linux-aarch64-cpython-312/softioc\n copying softioc/device.py -> build/lib.linux-aarch64-cpython-312/softioc\n copying softioc/device_core.py -> build/lib.linux-aarch64-cpython-312/softioc\n copying softioc/fields.py -> build/lib.linux-aarch64-cpython-312/softioc\n copying softioc/imports.py -> build/lib.linux-aarch64-cpython-312/softioc\n copying softioc/pvlog.py -> build/lib.linux-aarch64-cpython-312/softioc\n copying softioc/pythonSoftIoc.py -> build/lib.linux-aarch64-cpython-312/softioc\n copying softioc/softioc.py -> build/lib.linux-aarch64-cpython-312/softioc\n copying softioc/access.acf -> build/lib.linux-aarch64-cpython-312/softioc\n copying softioc/device.dbd -> build/lib.linux-aarch64-cpython-312/softioc\n creating build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats\n copying softioc/iocStats/devIocStats/Makefile -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats\n copying softioc/iocStats/devIocStats/devIocStats.dbd -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats\n copying softioc/iocStats/devIocStats/devIocStats.h -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats\n copying softioc/iocStats/devIocStats/devIocStatsAnalog.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats\n copying softioc/iocStats/devIocStats/devIocStatsString.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats\n copying softioc/iocStats/devIocStats/devIocStatsSub.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats\n copying softioc/iocStats/devIocStats/devIocStatsTest.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats\n copying softioc/iocStats/devIocStats/devIocStatsWaveform.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats\n copying softioc/iocStats/devIocStats/devVxStats.dbd -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats\n creating build/lib.linux-aarch64-cpython-312/softioc/iocStats/iocAdmin/Db\n copying softioc/iocStats/iocAdmin/Db/Makefile -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/iocAdmin/Db\n copying softioc/iocStats/iocAdmin/Db/access.db -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/iocAdmin/Db\n copying softioc/iocStats/iocAdmin/Db/access.doc -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/iocAdmin/Db\n copying softioc/iocStats/iocAdmin/Db/ioc.template -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/iocAdmin/Db\n copying softioc/iocStats/iocAdmin/Db/iocAdminRTEMS.substitutions -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/iocAdmin/Db\n copying softioc/iocStats/iocAdmin/Db/iocAdminScanMon.substitutions -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/iocAdmin/Db\n copying softioc/iocStats/iocAdmin/Db/iocAdminSoft.substitutions -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/iocAdmin/Db\n copying softioc/iocStats/iocAdmin/Db/iocAdminVxWorks.substitutions -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/iocAdmin/Db\n copying softioc/iocStats/iocAdmin/Db/iocCluster.template -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/iocAdmin/Db\n copying softioc/iocStats/iocAdmin/Db/iocEnvVar.template -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/iocAdmin/Db\n copying softioc/iocStats/iocAdmin/Db/iocGeneralTime.template -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/iocAdmin/Db\n copying softioc/iocStats/iocAdmin/Db/iocQueue.db -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/iocAdmin/Db\n copying softioc/iocStats/iocAdmin/Db/iocRTEMSOnly.template -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/iocAdmin/Db\n copying softioc/iocStats/iocAdmin/Db/iocRTOS.template -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/iocAdmin/Db\n copying softioc/iocStats/iocAdmin/Db/iocScanMon.template -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/iocAdmin/Db\n copying softioc/iocStats/iocAdmin/Db/iocScanMonSum.template -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/iocAdmin/Db\n copying softioc/iocStats/iocAdmin/Db/iocVxWorksOnly.template -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/iocAdmin/Db\n creating build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/default\n copying softioc/iocStats/devIocStats/os/default/devIocStatsOSD.h -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/default\n copying softioc/iocStats/devIocStats/os/default/osdBootInfo.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/default\n copying softioc/iocStats/devIocStats/os/default/osdClustInfo.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/default\n copying softioc/iocStats/devIocStats/os/default/osdCpuUsage.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/default\n copying softioc/iocStats/devIocStats/os/default/osdCpuUtilization.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/default\n copying softioc/iocStats/devIocStats/os/default/osdFdUsage.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/default\n copying softioc/iocStats/devIocStats/os/default/osdHostInfo.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/default\n copying softioc/iocStats/devIocStats/os/default/osdIFErrors.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/default\n copying softioc/iocStats/devIocStats/os/default/osdMemUsage.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/default\n copying softioc/iocStats/devIocStats/os/default/osdPIDInfo.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/default\n copying softioc/iocStats/devIocStats/os/default/osdPwdInfo.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/default\n copying softioc/iocStats/devIocStats/os/default/osdSuspTasks.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/default\n copying softioc/iocStats/devIocStats/os/default/osdSystemInfo.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/default\n copying softioc/iocStats/devIocStats/os/default/osdWorkspaceUsage.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/default\n creating build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/Darwin\n copying softioc/iocStats/devIocStats/os/Darwin/devIocStatsOSD.h -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/Darwin\n creating build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/WIN32\n copying softioc/iocStats/devIocStats/os/WIN32/devIocStatsOSD.h -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/WIN32\n copying softioc/iocStats/devIocStats/os/WIN32/osdBootInfo.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/WIN32\n copying softioc/iocStats/devIocStats/os/WIN32/osdCpuUtilization.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/WIN32\n copying softioc/iocStats/devIocStats/os/WIN32/osdFdUsage.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/WIN32\n copying softioc/iocStats/devIocStats/os/WIN32/osdHostInfo.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/WIN32\n copying softioc/iocStats/devIocStats/os/WIN32/osdMemUsage.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/WIN32\n copying softioc/iocStats/devIocStats/os/WIN32/osdSystemInfo.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/WIN32\n creating build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/Linux\n copying softioc/iocStats/devIocStats/os/Linux/osdCpuUsage.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/Linux\n copying softioc/iocStats/devIocStats/os/Linux/osdCpuUtilization.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/Linux\n copying softioc/iocStats/devIocStats/os/Linux/osdFdUsage.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/Linux\n copying softioc/iocStats/devIocStats/os/Linux/osdMemUsage.c -> build/lib.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/Linux\n running build_ext\n building 'softioc._extension' extension\n creating build/temp.linux-aarch64-cpython-312/softioc\n creating build/temp.linux-aarch64-cpython-312/softioc/iocStats/devIocStats\n creating build/temp.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/Linux\n creating build/temp.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/os/default\n gcc -pthread -B /usr/local/Anaconda3-2024.10-1/compiler_compat -fno-strict-overflow -Wsign-compare -DNDEBUG -O3 -Wall -fPIC -O3 -isystem /usr/local/Anaconda3-2024.10-1/include -fPIC -O3 -isystem /usr/local/Anaconda3-2024.10-1/include -fPIC -D_GNU_SOURCE -D_DEFAULT_SOURCE -Dlinux -DUNIX -D_GLIBCXX_USE_CXX11_ABI=1 -I/tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include -Isoftioc/iocStats/devIocStats -Isoftioc/iocStats/devIocStats/os/Linux -Isoftioc/iocStats/devIocStats/os/default -I/usr/local/Anaconda3-2024.10-1/include/python3.12 -c softioc/extension.c -o build/temp.linux-aarch64-cpython-312/softioc/extension.o -g0 -std=c99\n In file included from /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/dbAccess.h:20,\n from softioc/extension.c:7:\n /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/dbBase.h:164:5: warning: ‘rset’ is deprecated [-Wdeprecated-declarations]\n 164 | rset *prset;\n | ^~~~\n In file included from /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/dbBase.h:22:\n /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/recSup.h:68:8: note: declared here\n 68 | struct rset { /* record support entry table */\n | ^~~~\n In file included from /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/dbAccess.h:24:\n /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/dbAccessDefs.h:210:42: warning: ‘rset’ is deprecated [-Wdeprecated-declarations]\n 210 | DBCORE_API rset * dbGetRset(const struct dbAddr *paddr);\n | ^~~~~~\n /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/recSup.h:68:8: note: declared here\n 68 | struct rset { /* record support entry table */\n | ^~~~\n gcc -pthread -B /usr/local/Anaconda3-2024.10-1/compiler_compat -fno-strict-overflow -Wsign-compare -DNDEBUG -O3 -Wall -fPIC -O3 -isystem /usr/local/Anaconda3-2024.10-1/include -fPIC -O3 -isystem /usr/local/Anaconda3-2024.10-1/include -fPIC -D_GNU_SOURCE -D_DEFAULT_SOURCE -Dlinux -DUNIX -D_GLIBCXX_USE_CXX11_ABI=1 -I/tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include -Isoftioc/iocStats/devIocStats -Isoftioc/iocStats/devIocStats/os/Linux -Isoftioc/iocStats/devIocStats/os/default -I/usr/local/Anaconda3-2024.10-1/include/python3.12 -c softioc/iocStats/devIocStats/devIocStatsAnalog.c -o build/temp.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/devIocStatsAnalog.o -g0 -std=c99\n In file included from /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/dbAccess.h:20,\n from softioc/iocStats/devIocStats/devIocStatsAnalog.c:118:\n /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/dbBase.h:164:5: warning: ‘rset’ is deprecated [-Wdeprecated-declarations]\n 164 | rset *prset;\n | ^~~~\n In file included from /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/dbBase.h:22:\n /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/recSup.h:68:8: note: declared here\n 68 | struct rset { /* record support entry table */\n | ^~~~\n In file included from /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/dbAccess.h:24:\n /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/dbAccessDefs.h:210:42: warning: ‘rset’ is deprecated [-Wdeprecated-declarations]\n 210 | DBCORE_API rset * dbGetRset(const struct dbAddr *paddr);\n | ^~~~~~\n /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/recSup.h:68:8: note: declared here\n 68 | struct rset { /* record support entry table */\n | ^~~~\n gcc -pthread -B /usr/local/Anaconda3-2024.10-1/compiler_compat -fno-strict-overflow -Wsign-compare -DNDEBUG -O3 -Wall -fPIC -O3 -isystem /usr/local/Anaconda3-2024.10-1/include -fPIC -O3 -isystem /usr/local/Anaconda3-2024.10-1/include -fPIC -D_GNU_SOURCE -D_DEFAULT_SOURCE -Dlinux -DUNIX -D_GLIBCXX_USE_CXX11_ABI=1 -I/tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include -Isoftioc/iocStats/devIocStats -Isoftioc/iocStats/devIocStats/os/Linux -Isoftioc/iocStats/devIocStats/os/default -I/usr/local/Anaconda3-2024.10-1/include/python3.12 -c softioc/iocStats/devIocStats/devIocStatsString.c -o build/temp.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/devIocStatsString.o -g0 -std=c99\n In file included from /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/dbAccess.h:20,\n from softioc/iocStats/devIocStats/devIocStatsString.c:93:\n /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/dbBase.h:164:5: warning: ‘rset’ is deprecated [-Wdeprecated-declarations]\n 164 | rset *prset;\n | ^~~~\n In file included from /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/dbBase.h:22:\n /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/recSup.h:68:8: note: declared here\n 68 | struct rset { /* record support entry table */\n | ^~~~\n In file included from /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/dbAccess.h:24:\n /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/dbAccessDefs.h:210:42: warning: ‘rset’ is deprecated [-Wdeprecated-declarations]\n 210 | DBCORE_API rset * dbGetRset(const struct dbAddr *paddr);\n | ^~~~~~\n /tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include/recSup.h:68:8: note: declared here\n 68 | struct rset { /* record support entry table */\n | ^~~~\n gcc -pthread -B /usr/local/Anaconda3-2024.10-1/compiler_compat -fno-strict-overflow -Wsign-compare -DNDEBUG -O3 -Wall -fPIC -O3 -isystem /usr/local/Anaconda3-2024.10-1/include -fPIC -O3 -isystem /usr/local/Anaconda3-2024.10-1/include -fPIC -D_GNU_SOURCE -D_DEFAULT_SOURCE -Dlinux -DUNIX -D_GLIBCXX_USE_CXX11_ABI=1 -I/tmp/pip-build-env-f4dm2sp3/overlay/lib/python3.12/site-packages/epicscorelibs/include -Isoftioc/iocStats/devIocStats -Isoftioc/iocStats/devIocStats/os/Linux -Isoftioc/iocStats/devIocStats/os/default -I/usr/local/Anaconda3-2024.10-1/include/python3.12 -c softioc/iocStats/devIocStats/devIocStatsSub.c -o build/temp.linux-aarch64-cpython-312/softioc/iocStats/devIocStats/devIocStatsSub.o -g0 -std=c99\n softioc/iocStats/devIocStats/devIocStatsSub.c: In function ‘scanMonInit’:\n softioc/iocStats/devIocStats/devIocStatsSub.c:91:16: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]\n 91 | psub->dpvt = malloc(sizeof(epicsTimeStamp));\n | ^~~~~~\n softioc/iocStats/devIocStats/devIocStatsSub.c:26:1: note: include ‘\u003cstdlib.h>’ or provide a declaration of ‘malloc’\n 25 | #include \"devIocStats.h\"\n +++ |+#include \u003cstdlib.h>\n 26 |\n softioc/iocStats/devIocStats/devIocStatsSub.c:91:16: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]\n 91 | psub->dpvt = malloc(sizeof(epicsTimeStamp));\n | ^~~~~~\n softioc/iocStats/devIocStats/devIocStatsSub.c:91:16: note: include ‘\u003cstdlib.h>’ or provide a declaration of ‘malloc’\n error: command '/usr/bin/gcc' failed with exit code 1\n [end of output]\n \n note: This error originates from a subprocess, and is likely not a problem with pip.\n ERROR: Failed building wheel for softioc\n Building wheel for pvxslibs (pyproject.toml) ... done\n Created wheel for pvxslibs: filename=pvxslibs-1.3.2-cp312-cp312-linux_aarch64.whl size=1947218 sha256=4d61814d8b17ea04a967b5889969140bac7584c0299ea5937933f3e18586de4b\n Stored in directory: /root/.cache/pip/wheels/cb/b2/4e/5385924e571775421b6050a485cc1960c26227e972b21026c8\nSuccessfully built pvxslibs\nFailed to build softioc\nERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (softioc)\n```\n\n\n\n","author":{"url":"https://github.com/prichards-wmko","@type":"Person","name":"prichards-wmko"},"datePublished":"2025-01-29T00:11:19Z","url":"https://github.com/DiamondLightSource/pythonSoftIOC/issues/183"}
| 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:87b03ed6-22c3-12d8-8976-40731af51ab7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D90E:2AA566:68D9E0:934F22:6B044A80 |
| html-safe-nonce | 310d09613a9e54157ca48b8aa262e2ef1434d1e4909252e2526e6170a9474625 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTBFOjJBQTU2Njo2OEQ5RTA6OTM0RjIyOjZCMDQ0QTgwIiwidmlzaXRvcl9pZCI6IjM0NTU2ODIwNDIzMzY1Njk2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c60441a14a26049f11289786d7265b51bea0a50c967bd9c372bc2f5788d5756a |
| hovercard-subject-tag | issue:2816957519 |
| 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/183/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5d241229fcc9f5150171f45db4626db407260dbafafcb1e70f284587a2c5873a/DiamondLightSource/pythonSoftIOC/issues/183 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5d241229fcc9f5150171f45db4626db407260dbafafcb1e70f284587a2c5873a/DiamondLightSource/pythonSoftIOC/issues/183 |
| og:image:alt | I have softIOC code developed on other systems that is failing to run on my Apple Silicon Macbook Pro M2 (in a Parallels virtual machine running Ubuntu), and it appears to be due to the devIocStats... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | prichards-wmko |
| hostname | github.com |
| expected-hostname | github.com |
| None | d4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46 |
| 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 | 9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77 |
| 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