Update ceph-libs

Hello
Any idea how to fix this error? It happens only when I try to update ceph-libs

Preparing...
Checking ceph-libs dependencies...
Resolving dependencies...
Checking inter-conflicts...

Building ceph...
==> Making package: ceph 16.2.7-1 (Fri 14 Oct 2022 07:01:44 AM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found ceph-16.2.7.tar.gz
  -> Found ceph.sysusers
  -> Found zstd-1.5.2.tar.gz
  -> Found ceph-14.2.0-cflags.patch
  -> Found ceph-12.2.4-boost-build-none-options.patch
  -> Found ceph-13.2.0-cflags.patch
  -> Found ceph-13.2.2-dont-install-sysvinit-script.patch
  -> Found ceph-14.2.0-cython-0.29.patch
  -> Found ceph-15.2.0-rocksdb-cmake.patch
  -> Found ceph-15.2.14-gcc12.patch
  -> Found disable-empty-readable.sh-test.patch
  -> Found fix-python310-ssize-macro.patch
  -> Found ceph-16.2.4-rgw-string-missing-includes.patch
  -> Found fix-python310-update-mgr-more-itertools.patch
  -> Found fix-test-encoding-exception-wording.patch
  -> Found fix-test-import-tasks-deps.patch
  -> Found ceph-16.2.7-remove-promtool-test.patch
  -> Found disable-test-cls-fifo.patch
  -> Found ceph-16.2.7-delete-test-librados-asio.patch
==> Validating source files with sha512sums...
    ceph-16.2.7.tar.gz ... Passed
    ceph.sysusers ... Passed
    zstd-1.5.2.tar.gz ... Passed
    ceph-14.2.0-cflags.patch ... Passed
    ceph-12.2.4-boost-build-none-options.patch ... Passed
    ceph-13.2.0-cflags.patch ... Passed
    ceph-13.2.2-dont-install-sysvinit-script.patch ... Passed
    ceph-14.2.0-cython-0.29.patch ... Passed
    ceph-15.2.0-rocksdb-cmake.patch ... Passed
    ceph-15.2.14-gcc12.patch ... Passed
    disable-empty-readable.sh-test.patch ... Passed
    fix-python310-ssize-macro.patch ... Passed
    ceph-16.2.4-rgw-string-missing-includes.patch ... Passed
    fix-python310-update-mgr-more-itertools.patch ... Passed
    fix-test-encoding-exception-wording.patch ... Passed
    fix-test-import-tasks-deps.patch ... Passed
    ceph-16.2.7-remove-promtool-test.patch ... Passed
    disable-test-cls-fifo.patch ... Passed
    ceph-16.2.7-delete-test-librados-asio.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting ceph-16.2.7.tar.gz with bsdtar
  -> Extracting zstd-1.5.2.tar.gz with bsdtar
==> Starting prepare()...
Applying patch ceph-14.2.0-cflags.patch
patching file cmake/modules/Distutils.cmake
Hunk #1 succeeded at 78 (offset 17 lines).
Applying patch ceph-12.2.4-boost-build-none-options.patch
patching file src/boost/tools/build/src/tools/features/debug-feature.jam
Hunk #1 succeeded at 18 with fuzz 1 (offset 10 lines).
patching file src/boost/tools/build/src/tools/features/optimization-feature.jam
Hunk #1 succeeded at 16 with fuzz 1 (offset 8 lines).
Applying patch ceph-13.2.0-cflags.patch
patching file cmake/modules/BuildBoost.cmake
Hunk #1 succeeded at 62 with fuzz 1.
patching file src/compressor/zstd/CMakeLists.txt
Applying patch ceph-13.2.2-dont-install-sysvinit-script.patch
patching file src/CMakeLists.txt
Hunk #1 succeeded at 765 (offset 164 lines).
Applying patch ceph-14.2.0-cython-0.29.patch
patching file cmake/modules/Distutils.cmake
Hunk #1 succeeded at 95 (offset 37 lines).
Applying patch ceph-15.2.0-rocksdb-cmake.patch
patching file cmake/modules/BuildRocksDB.cmake
Applying patch ceph-15.2.14-gcc12.patch
patching file src/common/dout.h
patching file src/include/buffer.h
Applying patch disable-empty-readable.sh-test.patch
patching file src/test/encoding/CMakeLists.txt
Applying patch fix-python310-ssize-macro.patch
patching file src/mgr/CMakeLists.txt
Hunk #1 succeeded at 33 (offset 3 lines).
Applying patch ceph-16.2.4-rgw-string-missing-includes.patch
patching file src/rgw/rgw_string.h
Applying patch fix-python310-update-mgr-more-itertools.patch
patching file src/pybind/mgr/dashboard/constraints.txt
Applying patch fix-test-encoding-exception-wording.patch
patching file src/test/encoding.cc
Applying patch fix-test-import-tasks-deps.patch
patching file qa/tox.ini
Applying patch ceph-16.2.7-remove-promtool-test.patch
patching file src/test/CMakeLists.txt
Applying patch disable-test-cls-fifo.patch
patching file src/test/cls_fifo/CMakeLists.txt
Applying patch ceph-16.2.7-delete-test-librados-asio.patch
patching file src/test/librados/CMakeLists.txt
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-- The CXX compiler identification is GNU 12.2.0
-- The C compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Looking for fallocate
-- Looking for fallocate - found
-- Looking for posix_fadvise
-- Looking for posix_fadvise - found
-- Looking for posix_fallocate
-- Looking for posix_fallocate - found
-- Looking for syncfs
-- Looking for syncfs - found
-- Looking for sync_file_range
-- Looking for sync_file_range - found
-- Looking for pwritev
-- Looking for pwritev - found
-- Looking for splice
-- Looking for splice - found
-- Looking for getgrouplist
-- Looking for getgrouplist - found
-- Looking for fdatasync
-- Looking for fdatasync - found
-- Looking for strerror_r
-- Looking for strerror_r - found
-- Looking for name_to_handle_at
-- Looking for name_to_handle_at - found
-- Looking for pipe2
-- Looking for pipe2 - found
-- Looking for accept4
-- Looking for accept4 - found
-- Looking for sigdescr_np
-- Looking for sigdescr_np - found
-- Looking for pthread_spin_init
-- Looking for pthread_spin_init - found
-- Looking for pthread_set_name_np
-- Looking for pthread_set_name_np - not found
-- Looking for pthread_get_name_np
-- Looking for pthread_get_name_np - not found
-- Looking for pthread_setname_np
-- Looking for pthread_setname_np - found
-- Looking for pthread_getname_np
-- Looking for pthread_getname_np - found
-- Looking for pthread_rwlockattr_setkind_np
-- Looking for pthread_rwlockattr_setkind_np - found
-- Looking for eventfd
-- Looking for eventfd - found
-- Looking for getprogname
-- Looking for getprogname - not found
-- Looking for gettid
-- Looking for gettid - found
-- Looking for include file linux/types.h
-- Looking for include file linux/types.h - found
-- Looking for include file linux/version.h
-- Looking for include file linux/version.h - found
-- Looking for include file arpa/nameser_compat.h
-- Looking for include file arpa/nameser_compat.h - found
-- Looking for include file sys/mount.h
-- Looking for include file sys/mount.h - found
-- Looking for include file sys/param.h
-- Looking for include file sys/param.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file sys/vfs.h
-- Looking for include file sys/vfs.h - found
-- Looking for include file sys/prctl.h
-- Looking for include file sys/prctl.h - found
-- Looking for include file execinfo.h
-- Looking for include file execinfo.h - found
-- Looking for include file sched.h
-- Looking for include file sched.h - found
-- Looking for include file valgrind/helgrind.h
-- Looking for include file valgrind/helgrind.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of __u8
-- Check size of __u8 - done
-- Check size of __u16
-- Check size of __u16 - done
-- Check size of __u32
-- Check size of __u32 - done
-- Check size of __u64
-- Check size of __u64 - done
-- Check size of __s8
-- Check size of __s8 - done
-- Check size of __s16
-- Check size of __s16 - done
-- Check size of __s32
-- Check size of __s32 - done
-- Check size of __s64
-- Check size of __s64 - done
-- Check size of in_addr_t
-- Check size of in_addr_t - done
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Looking for res_nquery
-- Looking for res_nquery - found
-- Looking for F_SETPIPE_SZ
-- Looking for F_SETPIPE_SZ - found
-- Looking for __func__
-- Looking for __func__ - found
-- Looking for __PRETTY_FUNCTION__
-- Looking for __PRETTY_FUNCTION__ - found
-- Looking for getentropy
-- Looking for getentropy - found
-- Performing Test STRERROR_R_CHAR_P
-- Performing Test STRERROR_R_CHAR_P - Success
-- Performing Test HAVE_STAT_ST_MTIM_TV_NSEC
-- Performing Test HAVE_STAT_ST_MTIM_TV_NSEC - Success
-- Performing Test HAVE_STAT_ST_MTIMESPEC_TV_NSEC
-- Performing Test HAVE_STAT_ST_MTIMESPEC_TV_NSEC - Failed
-- Performing Test HAVE_UNALIGNED_ACCESS
-- Performing Test HAVE_UNALIGNED_ACCESS - Success
-- Performing Test HAVE_CXX11_ATOMIC
-- Performing Test HAVE_CXX11_ATOMIC - Success
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /usr/include  
-- Found udev: /usr/lib/libudev.so  
-- Found blkid: /usr/lib/libblkid.so  
-- Found keyutils: /usr/lib/libkeyutils.so  
-- Found FUSE: /usr/lib/libfuse3.so (found version "3.12") 
-- Found xfs: /usr/lib/libhandle.so  
-- Found aio: /lib/libaio.so  
-- Checking for one of the modules 'libcryptsetup'
-- Found libcryptsetup: /usr/include (found version "2.5.0") 
-- Found SQLite3: /usr/lib/libsqlite3.so  
-- Found leveldb: /lib/libleveldb.so  
-- Found snappy: /usr/lib/libsnappy.so  
-- Found LZ4: /usr/lib/liblz4.so (found suitable version "1.9.4", minimum required is "1.7") 
-- Found gperftools: /usr/include (found version "2.10") 
-- Found CURL: /usr/lib/libcurl.so (found version "7.85.0")  
-- Looking for curl_multi_wait
-- Looking for curl_multi_wait - found
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "1.1.1q")  
-- Found EXPAT: /usr/lib/libexpat.so (found version "2.4.9") 
-- Found OATH: /usr/lib/liboath.so  
-- ssl soname: libssl.so.1.1
-- crypto soname: libcrypto.so.1.1
-- Found Python3: /usr/bin/python3.10 (found suitable exact version "3.10.8") found components: Interpreter Development 
-- mgr module disabled for 3.10.8: diskprediction_local
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.12") 
-- Found Boost: /usr/lib64/cmake/Boost-1.80.0/BoostConfig.cmake (found suitable version "1.80.0", minimum required is "1.72") found components: atomic chrono thread system regex random program_options date_time iostreams context coroutine filesystem python310 filesystem 
-- Found StdFilesystem: stdc++fs  
-- Performing Test COMPILER_SUPPORTS_PESSIMIZING_MOVE
-- Performing Test COMPILER_SUPPORTS_PESSIMIZING_MOVE - Success
-- Performing Test COMPILER_SUPPORTS_REDUNDANT_MOVE
-- Performing Test COMPILER_SUPPORTS_REDUNDANT_MOVE - Success
-- Performing Test HAS_FORTIFY_SOURCE
-- Performing Test HAS_FORTIFY_SOURCE - Success
-- Performing Test HAS_STACK_PROTECT
-- Performing Test HAS_STACK_PROTECT - Success
-- Performing Test HAS_GLIBCXX_ASSERTIONS
-- Performing Test HAS_GLIBCXX_ASSERTIONS - Success
-- Performing Test HAVE_INTEL_SSE
-- Performing Test HAVE_INTEL_SSE - Success
-- Performing Test HAVE_INTEL_SSE2
-- Performing Test HAVE_INTEL_SSE2 - Success
-- Performing Test HAVE_INTEL_SSE3
-- Performing Test HAVE_INTEL_SSE3 - Success
-- Performing Test HAVE_INTEL_SSSE3
-- Performing Test HAVE_INTEL_SSSE3 - Success
-- Performing Test HAVE_INTEL_PCLMUL
-- Performing Test HAVE_INTEL_PCLMUL - Success
-- Performing Test HAVE_INTEL_SSE4_1
-- Performing Test HAVE_INTEL_SSE4_1 - Success
-- Performing Test HAVE_INTEL_SSE4_2
-- Performing Test HAVE_INTEL_SSE4_2 - Success
-- Could NOT find nasm
-- Performing Test HAVE_STDLIB_MAP_SPLICING
-- Performing Test HAVE_STDLIB_MAP_SPLICING - Success
-- Performing Test COMPILER_SUPPORTS_DIAGNOSTICS_COLOR
-- Performing Test COMPILER_SUPPORTS_DIAGNOSTICS_COLOR - Success
-- Ceph/.git directory not found, parsing /var/tmp/pamac-build-atc/ceph/src/ceph-16.2.7/src/.git_version for CEPH_GIT_VER and CEPH_GIT_NICE_VER
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Java (missing: Java_JAVAC_EXECUTABLE Java_JAR_EXECUTABLE
  Java_JAVADOC_EXECUTABLE Development) (found version "18.0.2")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindJava.cmake:314 (find_package_handle_standard_args)
  src/java/CMakeLists.txt:1 (find_package)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/pamac-build-atc/ceph/src/ceph-16.2.7/build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/pamac-build-atc/ceph/src/ceph-16.2.7/build/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in build().
    Aborting...

@Foxtrot813
Please use
~~~
Terminal output
~~~
to format it nicely.

Please, post logs and your garuda-inxi output.

3 Likes

Looks like you are trying to build the one from the AUR instead of the Community one? Looks like somebody has a similar error AUR (en) - ceph . Not to mention its a very strenuous build and can hang some PCs.
If you absolutely must have the latest version from the AUR, you might want to look at the pre-built bin instead AUR (en) - ceph-bin and ceph-libs-bin

2 Likes

Give also a look at the arch comments.
It should be a matter of old Java or to switch default.
https://aur.archlinux.org/packages/ceph-libs

2 Likes

I recommend just removing it all together. Most don't even need it.

1 Like
Determining if the function pthread_set_name_np exists failed with the following output:
Change Dir: /var/tmp/pamac-build-atc/ceph/src/ceph-16.2.7/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_6f4aa/fast && /usr/bin/make  -f CMakeFiles/cmTC_6f4aa.dir/build.make CMakeFiles/cmTC_6f4aa.dir/build
make[1]: Entering directory '/var/tmp/pamac-build-atc/ceph/src/ceph-16.2.7/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_6f4aa.dir/CheckFunctionExists.c.o
/usr/bin/cc   -march=x86-64 -mtune=generic -O2 -pipe  -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection  -DBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT -DFMT_DEPRECATED_OSTREAM -DCHECK_FUNCTION_EXISTS=pthread_set_name_np -o CMakeFiles/cmTC_6f4aa.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_6f4aa
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_6f4aa.dir/link.txt --verbose=1
/usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe  -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection  -DBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT -DFMT_DEPRECATED_OSTREAM -DCHECK_FUNCTION_EXISTS=pthread_set_name_np -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now  CMakeFiles/cmTC_6f4aa.dir/CheckFunctionExists.c.o -o cmTC_6f4aa  -lpthread 
/usr/bin/ld: CMakeFiles/cmTC_6f4aa.dir/CheckFunctionExists.c.o: in function `main':
CheckFunctionExists.c:(.text.startup+0x10): undefined reference to `pthread_set_name_np'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_6f4aa.dir/build.make:99: cmTC_6f4aa] Error 1
make[1]: Leaving directory '/var/tmp/pamac-build-atc/ceph/src/ceph-16.2.7/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:127: cmTC_6f4aa/fast] Error 2



Determining if the function pthread_get_name_np exists failed with the following output:
Change Dir: /var/tmp/pamac-build-atc/ceph/src/ceph-16.2.7/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_817e1/fast && /usr/bin/make  -f CMakeFiles/cmTC_817e1.dir/build.make CMakeFiles/cmTC_817e1.dir/build
make[1]: Entering directory '/var/tmp/pamac-build-atc/ceph/src/ceph-16.2.7/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_817e1.dir/CheckFunctionExists.c.o
/usr/bin/cc   -march=x86-64 -mtune=generic -O2 -pipe  -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection  -DBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT -DFMT_DEPRECATED_OSTREAM -DCHECK_FUNCTION_EXISTS=pthread_get_name_np -o CMakeFiles/cmTC_817e1.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_817e1
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_817e1.dir/link.txt --verbose=1
/usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe  -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection  -DBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT -DFMT_DEPRECATED_OSTREAM -DCHECK_FUNCTION_EXISTS=pthread_get_name_np -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now  CMakeFiles/cmTC_817e1.dir/CheckFunctionExists.c.o -o cmTC_817e1  -lpthread 
/usr/bin/ld: CMakeFiles/cmTC_817e1.dir/CheckFunctionExists.c.o: in function `main':
CheckFunctionExists.c:(.text.startup+0x10): undefined reference to `pthread_get_name_np'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_817e1.dir/build.make:99: cmTC_817e1] Error 1
make[1]: Leaving directory '/var/tmp/pamac-build-atc/ceph/src/ceph-16.2.7/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:127: cmTC_817e1/fast] Error 2



Determining if the function getprogname exists failed with the following output:
Change Dir: /var/tmp/pamac-build-atc/ceph/src/ceph-16.2.7/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_149b5/fast && /usr/bin/make  -f CMakeFiles/cmTC_149b5.dir/build.make CMakeFiles/cmTC_149b5.dir/build
make[1]: Entering directory '/var/tmp/pamac-build-atc/ceph/src/ceph-16.2.7/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_149b5.dir/CheckFunctionExists.c.o
/usr/bin/cc   -march=x86-64 -mtune=generic -O2 -pipe  -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection  -DBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT -DFMT_DEPRECATED_OSTREAM -DCHECK_FUNCTION_EXISTS=getprogname -o CMakeFiles/cmTC_149b5.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_149b5
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_149b5.dir/link.txt --verbose=1
/usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe  -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection  -DBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT -DFMT_DEPRECATED_OSTREAM -DCHECK_FUNCTION_EXISTS=getprogname -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now  CMakeFiles/cmTC_149b5.dir/CheckFunctionExists.c.o -o cmTC_149b5 
/usr/bin/ld: CMakeFiles/cmTC_149b5.dir/CheckFunctionExists.c.o: in function `main':
CheckFunctionExists.c:(.text.startup+0x10): undefined reference to `getprogname'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_149b5.dir/build.make:99: cmTC_149b5] Error 1
make[1]: Leaving directory '/var/tmp/pamac-build-atc/ceph/src/ceph-16.2.7/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:127: cmTC_149b5/fast] Error 2



Performing C SOURCE FILE Test HAVE_STAT_ST_MTIMESPEC_TV_NSEC failed with the following output:
Change Dir: /var/tmp/pamac-build-atc/ceph/src/ceph-16.2.7/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_a3fe9/fast && /usr/bin/make  -f CMakeFiles/cmTC_a3fe9.dir/build.make CMakeFiles/cmTC_a3fe9.dir/build
make[1]: Entering directory '/var/tmp/pamac-build-atc/ceph/src/ceph-16.2.7/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_a3fe9.dir/src.c.o
/usr/bin/cc -DHAVE_STAT_ST_MTIMESPEC_TV_NSEC  -march=x86-64 -mtune=generic -O2 -pipe  -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection  -DBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT -DFMT_DEPRECATED_OSTREAM  -o CMakeFiles/cmTC_a3fe9.dir/src.c.o -c /var/tmp/pamac-build-atc/ceph/src/ceph-16.2.7/build/CMakeFiles/CMakeTmp/src.c
/var/tmp/pamac-build-atc/ceph/src/ceph-16.2.7/build/CMakeFiles/CMakeTmp/src.c: In function ‘main’:
/var/tmp/pamac-build-atc/ceph/src/ceph-16.2.7/build/CMakeFiles/CMakeTmp/src.c:6:34: error: ‘struct stat’ has no member named ‘st_mtimespec’
    6 |   (void)sizeof(((struct stat *)0)->st_mtimespec.tv_nsec);
      |                                  ^~
make[1]: *** [CMakeFiles/cmTC_a3fe9.dir/build.make:78: CMakeFiles/cmTC_a3fe9.dir/src.c.o] Error 1
make[1]: Leaving directory '/var/tmp/pamac-build-atc/ceph/src/ceph-16.2.7/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:127: cmTC_a3fe9/fast] Error 2


Source file was:

#include <sys/stat.h>

int main()
{
  (void)sizeof(((struct stat *)0)->st_mtimespec.tv_nsec);
  return 0;
}

How? I can't see it in installed libs!

This is an update I get from Add/Remove app

it was also on all of my installs, but i removed it last week sometime and haven't had an issue.

try sudo pacman -R ceph-libs that is how it was installed on my systems

2 Likes

There are a few problems here:

  1. Initially, I figured you were trying to just use pamac to grab a different version of ceph-libs specially. Instead it looks like this problem was caused by Pamac going out of its way to build something crazy strenuous on your system. You really shouldn't use pamac to update, use the garuda-update command instead.

  2. As others said, unless you have a very oddly specific use case for ceph-libs, you most likely won't need it. You should be fine to remove it, as it has been phased out from what I see: Arch Linux - Todo: Removal of ceph

3 Likes

the problem cropped up for me whilest using the update command. it calls out to see if anything needs to be rebuilt, and ceph-libs is/was one of them

That is weird. It should favor the Community pre-built one unless you have went out of your way at some point to get the AUR one.

On my system I am assuming I have the Community one on my system because of a dependency for samba when ceph-libs was still a dependency for it. I have just updated yesterday and it didn't bother trying to grab the AUR version.

like i said in the earlier post, it did that sometime last week. i am not sure how to look it up via pacman, but check to see which version you have installed. i know it can be done via pamac, but i don't know what you have installed

Okay. I see what you mean now. It either reported the Community was behind the AUR version or that the AUR version need to be rebuilt.

(got me a bit confused there and thought you were trying to make a different point :sweat_smile:)

1 Like

i promise, it "isn't confusing" at all whatsoever... nope, perfectly clear!!! just like regression "to learn regression one must first know regression"

Ah, I though it was only me.
I wondered, what's this thing with paru asking me to install Java when I want to update.
And I though ceph-libs was a leftover dependency from something I uninstalled, so I removed it.

2 Likes

Garuda isn't the only Arch based OS that included ceph-libs, no it's not the only one that our of the blue wanted to build the file. Three Arch based OS's that I know of ran into this. To me this screams the devs for ceph-libs did something.

In my opinion the troubles come from here.

Probably due to this

It was removed as dependency of samba, so became an orphan, that should be removed (of course, if not explicitely needed).
This is only system maintenance, nothing wrong from a development point of view.
If you don't remove it, since ceph-libs is only in the AUR (now, probably in the past it was in the repos) and has clear problems (see comments in the AUR), the updates, rebuilds, etc. get stuck.

6 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.