Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 868891 - sys-cluster/ceph-17.2.6-r3:0 - /.../legacy_config_opts.h: fatal error: global_legacy_options.h: No such file or directory
Summary: sys-cluster/ceph-17.2.6-r3:0 - /.../legacy_config_opts.h: fatal error: global...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-09-06 18:19 UTC by Toralf Förster
Modified: 2023-06-04 05:06 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.54 KB, text/plain)
2022-09-06 18:19 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,165.34 KB, text/plain)
2022-09-06 18:19 UTC, Toralf Förster
Details
environment (environment,182.45 KB, text/plain)
2022-09-06 18:19 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,93.06 KB, application/x-bzip)
2022-09-06 18:19 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,46.07 KB, application/x-bzip)
2022-09-06 18:19 UTC, Toralf Förster
Details
sys-cluster:ceph-17.2.3-r3:20220906-175129.log (sys-cluster:ceph-17.2.3-r3:20220906-175129.log,59.83 KB, text/plain)
2022-09-06 18:19 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,64.81 KB, application/x-bzip)
2022-09-06 18:19 UTC, Toralf Förster
Details
Patch File to patch src/CMakeLists.txt (ceph-17.2.5-librados-snap-global-legacy-options.patch,617 bytes, patch)
2023-05-28 23:45 UTC, Markus Baier
Details | Diff
Patch File for the ceph-17.2.5-r6 ebuild (ceph-17.2.5-r6.ebuild.patch,419 bytes, patch)
2023-05-28 23:47 UTC, Markus Baier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-09-06 18:19:30 UTC
                 from /var/tmp/portage/sys-cluster/ceph-17.2.3-r3/work/ceph-17.2.3/src/common/config.h:27,
                 from /var/tmp/portage/sys-cluster/ceph-17.2.3-r3/work/ceph-17.2.3/src/common/config_proxy.h:6,
                 from /var/tmp/portage/sys-cluster/ceph-17.2.3-r3/work/ceph-17.2.3/src/common/ceph_context.h:41,
                 from /var/tmp/portage/sys-cluster/ceph-17.2.3-r3/work/ceph-17.2.3/src/librados/snap_set_diff.cc:7:
/var/tmp/portage/sys-cluster/ceph-17.2.3-r3/work/ceph-17.2.3/src/common/options/legacy_config_opts.h:1:10: fatal error: global_legacy_options.h: No such file or directory
    1 | #include "global_legacy_options.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-j4-20220904-120638

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-11.3.0 *
clang/llvm (if any):
/usr/lib/llvm/14
14.0.6
Python 3.10.6
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.62.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.15_p10 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.3_p7 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.332_p09 [openjdk-bin-8]
4)	Eclipse Temurin JRE 17.0.3_p7 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm
  [4]   openjdk-jre-bin-17 

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit 1d86d0f3175ac8d6e69d7c0ef0abaeb9301388c3
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Sep 6 16:16:59 2022 +0000

    2022-09-06 16:16:58 UTC

emerge -qpvO sys-cluster/ceph
[ebuild  N    ] sys-cluster/ceph-17.2.3-r3  USE="cephfs mgr parquet radosgw sqlite ssl (system-boost) systemd tcmalloc uring -babeltrace -custom-cflags -diskprediction (-dpdk) -fuse -grafana -jaeger -jemalloc -kafka -kerberos -ldap -lttng -pmdk -rabbitmq -rbd-rwl -rbd-ssd -rdma -rgw-lua -spdk -test -xfs -zbd -zfs" CPU_FLAGS_X86="avx2 pclmul sse sse2 sse3 sse4_1 sse4_2 ssse3 -avx512f" LUA_SINGLE_TARGET="lua5-4 -lua5-3" PYTHON_TARGETS="python3_10 -python3_8 -python3_9"
Comment 1 Toralf Förster gentoo-dev 2022-09-06 18:19:31 UTC
Created attachment 803584 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-06 18:19:33 UTC
Created attachment 803587 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-09-06 18:19:35 UTC
Created attachment 803590 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-09-06 18:19:36 UTC
Created attachment 803593 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-09-06 18:19:38 UTC
Created attachment 803596 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-09-06 18:19:39 UTC
Created attachment 803599 [details]
sys-cluster:ceph-17.2.3-r3:20220906-175129.log
Comment 7 Toralf Förster gentoo-dev 2022-09-06 18:19:40 UTC
Created attachment 803602 [details]
temp.tar.bz2
Comment 8 jinqiang zhang 2023-01-28 12:22:34 UTC
Reproduced on sys-cluster/ceph-17.2.5-r1 ~riscv (not amd64), there is a PR to fix this issue: https://github.com/ceph/ceph/pull/49517
Comment 9 Markus Baier 2023-05-28 23:45:45 UTC
Created attachment 862770 [details, diff]
Patch File to patch src/CMakeLists.txt
Comment 10 Markus Baier 2023-05-28 23:47:17 UTC
Created attachment 862771 [details, diff]
Patch File for the ceph-17.2.5-r6 ebuild
Comment 11 Markus Baier 2023-05-28 23:53:42 UTC
I had exactly the same error when I tried to emerge the current stable Chep version 17.2.5-r6
With the hint from Jinqiang Zhang and the information from this side:
https://github.com/ceph/ceph/pull/49517/commits/80e422234acb1f8ffcbe8ee3898cb00f889466a3
I was ableto create a patch for the CMakeLists.txt in the src directory.
With the patch applied I am able to compile the ebuild without an error.
Comment 12 Agostino Sarubbo gentoo-dev 2023-06-03 07:20:53 UTC
ci has reproduced this issue with version 17.2.6-r3 - Updating summary.
Comment 13 Larry the Git Cow gentoo-dev 2023-06-04 05:06:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbbbb0a44b36b8e45c4b94e9cd55e3b564882389

commit bbbbb0a44b36b8e45c4b94e9cd55e3b564882389
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-06-04 04:59:34 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-06-04 05:06:39 +0000

    sys-cluster/ceph: fix parallel(?) build failure
    
    ... or at least a non-deterministic issue, as it only happens on some machines.
    
    We've seen that kind of thing in the past with ninja, although only pretty
    rarely (on m68k...).
    
    Closes: https://bugs.gentoo.org/868891
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-cluster/ceph/ceph-17.2.6-r3.ebuild         |  4 +-
 sys-cluster/ceph/files/ceph-17.2.6-cmake.patch | 80 ++++++++++++++++++++++++++
 2 files changed, 83 insertions(+), 1 deletion(-)