Thanks for all the answers, the nproc
one is a nice hint, I was used to grepping /proc/cpuinfo
since it works even without that binary e.g. on Android CLI.
I still have the issue on latest Manjaro fresh install:
yay -S gazebo --noconfirm
fails with
[ 47%] Built target component_deps_RelWithDebInfo
[ 47%] Performing test step for 'component_deps_Release'
[ 47%] Completed 'component_deps_Release'
[ 47%] Built target component_deps_Release
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Error making: ignition-cmake
I am totally aware that adjusting the PKGBUILD
is a hack but I don't know any way of telling CMake to disable build testing for ignition-cmake (-DBUILD_TESTING=OFF
) from the file /etc/makepkg.conf
. Setting the environmental variable BUILD_TESTING=OFF
in the configuration doesn't help. It doesn't belong into any of CFLAGS/CXXFLAGS/LDFLAGS
according to my understanding and also in the linked (wiki)[https://wiki.archlinux.org/index.php/Makepkg#Troubleshooting] it says if -DCMAKE_BUILD_TYPE
is defined for a certain package it will ignore the /etc/makepkg.conf
CMake configuration.
Would be nice if the root cause could actually get fixed since the ignition-cmake PKGBUILD
defines ENABLE_TESTS_COMPILATION:BOOL=False
and then CMake out put tells you that parameter doesn't exist but you need to disable testing (which ENABLE_TESTS_COMPILATION:BOOL=False
previously probably did) to make the build work on Arch.
I'll also comment on the ignition-cmake AUR.
Pinned Comments
billypilgrim commented on 2022-05-09 16:04 (UTC)
Development is on Github: https://github.com/acxz/gazebo-arch Please open issues and PRs there instead of commenting.