You are not logged in.
I tried to install this metis package.
I cloned it, cd into it then ran
makepkg -siI got this error:
==> Making package: metis 5.2.1-2 (Thu Jul 11 12:13:15 2024)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found METIS-5.2.1.tar.gz
==> Validating source files with sha512sums...
METIS-5.2.1.tar.gz ... Passed
==> Extracting sources...
-> Extracting METIS-5.2.1.tar.gz with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
rm -rf build
mkdir -p build
mkdir -p build/xinclude
echo "#define IDXTYPEWIDTH 32" > build/xinclude/metis.h
echo "#define REALTYPEWIDTH 32" >> build/xinclude/metis.h
cat include/metis.h >> build/xinclude/metis.h
cp include/CMakeLists.txt build/xinclude
cd build && cmake /home/ed/packages/metis/src/METIS-5.2.1 -DCMAKE_VERBOSE_MAKEFILE=1 -DGKLIB_PATH=/usr -DCMAKE_INSTALL_PREFIX=/usr -DSHARED=1 -DCMAKE_C_COMPILER=gcc
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is GNU 14.1.1
-- Detecting C compiler ABI info
CMake Warning:
Value of CMAKE_C_FLAGS contained a newline; truncating
CMake Warning:
Value of CMAKE_C_FLAGS contained a newline; truncating
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /sbin/gcc
CMake Warning:
Value of CMAKE_C_FLAGS contained a newline; truncating
CMake Warning:
Value of CMAKE_C_FLAGS contained a newline; truncating
-- Check for working C compiler: /sbin/gcc - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"/sbin/gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/home/ed/packages/metis/src/METIS-5.2.1/build/CMakeFiles/CMakeScratch/TryCompile-3YtmkO'
Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /sbin/make -f Makefile cmTC_fffa8/fast
make[1]: Entering directory '/home/ed/packages/metis/src/METIS-5.2.1/build/CMakeFiles/CMakeScratch/TryCompile-3YtmkO'
/sbin/make -f CMakeFiles/cmTC_fffa8.dir/build.make CMakeFiles/cmTC_fffa8.dir/build
make[2]: Entering directory '/home/ed/packages/metis/src/METIS-5.2.1/build/CMakeFiles/CMakeScratch/TryCompile-3YtmkO'
CMakeFiles/cmTC_fffa8.dir/flags.make:10: *** recipe commences before first target. Stop.
make[2]: Leaving directory '/home/ed/packages/metis/src/METIS-5.2.1/build/CMakeFiles/CMakeScratch/TryCompile-3YtmkO'
make[1]: *** [Makefile:127: cmTC_fffa8/fast] Error 2
make[1]: Leaving directory '/home/ed/packages/metis/src/METIS-5.2.1/build/CMakeFiles/CMakeScratch/TryCompile-3YtmkO'
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
CMake Warning:
Value of CMAKE_C_FLAGS contained a newline; truncating
make: *** [Makefile:90: config] Error 1
==> ERROR: A failure occurred in build().
Aborting...I'm confused by this because the compiler is working fine afaik! Only when installing this package do I encounter this problem.
So I don't understand why /sbin/gcc is failing a simple test here.
Any help is much appreciated!
Last edited by shinhoubseum (2024-07-11 03:23:21)
Offline
CMakeFiles/cmTC_fffa8.dir/flags.make:10: *** recipe commences before first target. Stop.It's not gcc but make resp. the Makefile generated by cmake.
=> look at or post it.
Edit: because we just had that… post it to 0x0.st, the actual file matters, not a rendition of the text inside that went through a browser and a php script…
Last edited by seth (2024-07-11 06:54:06)
Offline