You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering an issue when building the agnos system, specifically when compiling the ffmpeg, qtwaland packages). For some reason, using the exact same script, the build works completely fine when running the ./build_system.sh file on an Ubuntu 20.04 AMD computer with older packages but fails on an AMD laptop running Ubuntu 24.04.
The build process will take approximately 1000 seconds before crashing and giving an error similar to the following but the compile script will vary from build to build (compile-ffmpeg once compile-qtwaland5 another time):
Dockerfile.agnos:47
ERROR: failed to solve: process "/bin/sh -c /tmp/agnos/compile-qtwayland5.sh" did not complete successfully: exit code: 2
Specifics:
The ffmpeg compilation errors seem to relate to mismatches in the dependencies maybe (example below):
./libavutil/linm.h. error: static declaration of cbrt follows non static declaration
As for the qtwayland errors, there is no clear 'logged' indication as to why it is crashing but I do get warnings related to deprecated functions (example below):
690.8 /tmp/qtwayland/src/client/qwaylanddatadevice.cpp:197:43: warning: 'static QPlatformDragQtResponse QWindowSystemInterface::handleDrag(QWindow*, const QMimeData*, const QPoint&, Qt::DropActions)' is deprecated [-Wdeprecated-declarations]
However, even after removing warning detection in the compile-qtwayland5.sh script, by setting CXXFLAGS="-Wno-deprecated-declarations" within the script, it still crashes during that step of the build process.
Package Versions:
In terms of package versions, the 20.04 computer had gcc 9 and ffmpeg version 4.2.2 and the 24.04 computer has gcc13 with ffmpeg 7.1 (had version 6.1.1 before I updated it to 7.1 to see if that would resolve the problem). I've tried updating all the libraries but that doesn't seem to solve anything.
Opinion:
The build system relies on Docker so I don't see why version mismatches would be a problem for this. Also, it would make more sense if the outdated packages in Ubuntu 20.04 were causing the problems but not the other way around. I've checked the Discord channels and the other issues posted here, but there seems to be no other occurrence of this issue despite many stating they built agnos on their Ubuntu 24.04 devices.
If anyone has any idea on how to fix this or what the cause could be, please let me know. I'd really appreciate some guidance here. Thanks.
The text was updated successfully, but these errors were encountered:
Issue:
I'm encountering an issue when building the agnos system, specifically when compiling the ffmpeg, qtwaland packages). For some reason, using the exact same script, the build works completely fine when running the ./build_system.sh file on an Ubuntu 20.04 AMD computer with older packages but fails on an AMD laptop running Ubuntu 24.04.
The build process will take approximately 1000 seconds before crashing and giving an error similar to the following but the compile script will vary from build to build (compile-ffmpeg once compile-qtwaland5 another time):
Dockerfile.agnos:47
46 | COPY ./userspace/qtwayland/patch* /tmp/agnos/
47 | >>> RUN --mount=type=cache,target=/root/.ccache,id=qtwayland5,sharing=shared
48 | >>> /tmp/agnos/compile-qtwayland5.sh
49 |
ERROR: failed to solve: process "/bin/sh -c /tmp/agnos/compile-qtwayland5.sh" did not complete successfully: exit code: 2
Specifics:
The ffmpeg compilation errors seem to relate to mismatches in the dependencies maybe (example below):
./libavutil/linm.h. error: static declaration of cbrt follows non static declaration
As for the qtwayland errors, there is no clear 'logged' indication as to why it is crashing but I do get warnings related to deprecated functions (example below):
690.8 /tmp/qtwayland/src/client/qwaylanddatadevice.cpp:197:43: warning: 'static QPlatformDragQtResponse QWindowSystemInterface::handleDrag(QWindow*, const QMimeData*, const QPoint&, Qt::DropActions)' is deprecated [-Wdeprecated-declarations]
However, even after removing warning detection in the compile-qtwayland5.sh script, by setting CXXFLAGS="-Wno-deprecated-declarations" within the script, it still crashes during that step of the build process.
Package Versions:
In terms of package versions, the 20.04 computer had gcc 9 and ffmpeg version 4.2.2 and the 24.04 computer has gcc13 with ffmpeg 7.1 (had version 6.1.1 before I updated it to 7.1 to see if that would resolve the problem). I've tried updating all the libraries but that doesn't seem to solve anything.
Opinion:
The build system relies on Docker so I don't see why version mismatches would be a problem for this. Also, it would make more sense if the outdated packages in Ubuntu 20.04 were causing the problems but not the other way around. I've checked the Discord channels and the other issues posted here, but there seems to be no other occurrence of this issue despite many stating they built agnos on their Ubuntu 24.04 devices.
If anyone has any idea on how to fix this or what the cause could be, please let me know. I'd really appreciate some guidance here. Thanks.
The text was updated successfully, but these errors were encountered: