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

RQT (ROS2 Humble) fails to build on MacOS (arm64) #460

Open
Tracked by #363
hegde-atri opened this issue Aug 31, 2024 · 1 comment
Open
Tracked by #363

RQT (ROS2 Humble) fails to build on MacOS (arm64) #460

hegde-atri opened this issue Aug 31, 2024 · 1 comment

Comments

@hegde-atri
Copy link

Adding rqt to my package list, it fails to build.

First there is an error about shiboken2 being marked as broken.
error: Package ‘shiboken2-5.15.11’ in /nix/store/snp5f95xhkz89kdw9703kana3m6xfd0a-source/pkgs/development/python-modules/shiboken2/default.nix:54 is marked as broken, refusing to evaluate.

After overriding this, tango-icon-theme fails to build is it is not available on requested platform.

After also overriding this, I get a build error with gnome-icon-theme.

error: builder for '/nix/store/irz9n8mhrcdkbg5g3qb1jb0xmb424hfg-gnome-icon-theme-3.12.0.drv' failed with exit code 1;
       last 25 log lines:
       > for lang in $linguas; do \
       >   rm -f /nix/store/0mn1gp5s1czx5dpz18y2is3ij6k3sp6n-gnome-icon-theme-3.12.0/lib/locale/$lang/LC_MESSAGES/gnome-icon-theme.mo; \
       >   rm -f /nix/store/0mn1gp5s1czx5dpz18y2is3ij6k3sp6n-gnome-icon-theme-3.12.0/lib/locale/$lang/LC_MESSAGES/gnome-icon-theme.mo.m; \
       > done
       > make[3]: Leaving directory '/private/tmp/nix-build-gnome-icon-theme-3.12.0.drv-0/gnome-icon-theme-3.12.0/po'
       > if [ -h /nix/store/0mn1gp5s1czx5dpz18y2is3ij6k3sp6n-gnome-icon-theme-3.12.0/share/icons/gnome ]; then \
       >   rm -f /nix/store/0mn1gp5s1czx5dpz18y2is3ij6k3sp6n-gnome-icon-theme-3.12.0/share/icons/gnome; \
       > fi
       > if [ -d /nix/store/0mn1gp5s1czx5dpz18y2is3ij6k3sp6n-gnome-icon-theme-3.12.0/share/icons/gnome ]; then \
       >    touch /nix/store/0mn1gp5s1czx5dpz18y2is3ij6k3sp6n-gnome-icon-theme-3.12.0/share/icons/gnome; \
       > fi
       >  /nix/store/05f94jq5l6kfs9s3gyzj28y1v4xf6hfm-coreutils-9.4/bin/mkdir -p '/nix/store/0mn1gp5s1czx5dpz18y2is3ij6k3sp6n-gnome-icon-theme-3.12.0/share/pkgconfig'
       >  /nix/store/05f94jq5l6kfs9s3gyzj28y1v4xf6hfm-coreutils-9.4/bin/install -c -m 644 gnome-icon-theme.pc '/nix/store/0mn1gp5s1czx5dpz18y2is3ij6k3sp6n-gnome-icon-theme-3.12.0/share/pkgconfig'
       >  /nix/store/05f94jq5l6kfs9s3gyzj28y1v4xf6hfm-coreutils-9.4/bin/mkdir -p '/nix/store/0mn1gp5s1czx5dpz18y2is3ij6k3sp6n-gnome-icon-theme-3.12.0/share/icons/gnome'
       >  /nix/store/05f94jq5l6kfs9s3gyzj28y1v4xf6hfm-coreutils-9.4/bin/install -c -m 644 index.theme '/nix/store/0mn1gp5s1czx5dpz18y2is3ij6k3sp6n-gnome-icon-theme-3.12.0/share/icons/gnome'
       > make  install-data-hook
       > make[3]: Entering directory '/private/tmp/nix-build-gnome-icon-theme-3.12.0.drv-0/gnome-icon-theme-3.12.0'
       > if test -z "" ; then \
       >      /nix/store/0kj4vjpz00lffq9z7b4dbjbyr1n1fpzx-gtk+-2.24.33/bin/gtk-update-icon-cache -q /nix/store/0mn1gp5s1czx5dpz18y2is3ij6k3sp6n-gnome-icon-theme-3.12.0/share/icons/gnome; \
       > fi
       > make[3]: Leaving directory '/private/tmp/nix-build-gnome-icon-theme-3.12.0.drv-0/gnome-icon-theme-3.12.0'
       > make[2]: Leaving directory '/private/tmp/nix-build-gnome-icon-theme-3.12.0.drv-0/gnome-icon-theme-3.12.0'
       > make[1]: Leaving directory '/private/tmp/nix-build-gnome-icon-theme-3.12.0.drv-0/gnome-icon-theme-3.12.0'
       > rm: cannot remove '/nix/store/0mn1gp5s1czx5dpz18y2is3ij6k3sp6n-gnome-icon-theme-3.12.0/share/locale': No such file or directory
       > /nix/store/ymqnr6q4slam0ns76mjpcjry70fa8h3i-stdenv-darwin/setup: line 140: pop_var_context: head of shell_variables not a function context
       For full logs, run 'nix log /nix/store/irz9n8mhrcdkbg5g3qb1jb0xmb424hfg-gnome-icon-theme-3.12.0.drv'.
error: 1 dependencies of derivation '/nix/store/prwrf7sgdkig9fw6zdyi0yvchz1cizx8-tango-icon-theme-0.8.90.drv' failed to build
error: 1 dependencies of derivation '/nix/store/axqqigsd3dgkqyymzz90zr34imz8kz5h-ros-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/lws2cxih0dy5vh7afwi4dsspwc44278z-nix-shell-env.drv' failed to build

Where do I begin to resolve this?

@stevalkr
Copy link
Contributor

@hegde-atri please check the pull request.

Most of the issues have been fixed in the upstream code, but they haven’t been made available to humble or this overlay yet. To fix the issues by yourself, download the package (the link is in, for example, tango-icons-vendor/default.nix. You might need to set up a shell with the dependencies (buildInputs) of this package and compile it. In this case, it’s failing. But if you look into tango-icons-vendor's CMakeLists.txt, it actually installs the needed icons for Apple and MS platforms (you can download the source of tango-icon-theme and find out they're mostly the same), so we can skip that dependency.

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