Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors while running build_system.sh (ffmpeg, qtwaland5, modemmanager) #455

Open
chebilyoussef21 opened this issue Feb 8, 2025 · 2 comments

Comments

@chebilyoussef21
Copy link

chebilyoussef21 commented Feb 8, 2025

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.

@adeebshihadeh
Copy link
Contributor

adeebshihadeh commented Feb 8, 2025

The AGNOS build now requires building on a native ARM64 machine. We use namespace.so.

@chebilyoussef21
Copy link
Author

chebilyoussef21 commented Feb 8, 2025

@adeebshihadeh
Interesting. But why did it work on the Ubuntu 20.04 amd64 computer then, with the exact same scripts and steps?

The AGNOS build now requires building on a native ARM64 machine. We use namespace.so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants