Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sci-astronomy/celestia: ninja fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
rsnfunky
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2007
Posts: 91

PostPosted: Tue Jan 07, 2025 3:03 pm    Post subject: sci-astronomy/celestia: ninja fails Reply with quote

[Administrator note: this post, and only this post, was originally attached to the topic app-crypt/gpgme fails, but appears to be unrelated, so I split it. -Hu]

Thank fedeliallalinea.

Facing issue with ninja. I have a 8core 8700G processor with 64GB ram. Have tried various makropts but it keeps failing.


Code:
[6/179] /usr/bin/x86_64-pc-linux-gnu-g++ -DCONFIG_DATA_DIR=\"/usr/share/celestia\" -DEIGEN_NO_DEBUG -DENABLE_NLS -DFMT_SHARED -DGIT_COMMIT=\"unknown\" -DHIP_DATA_DIR=\"/usr/share/celestia\" -DLOCALEDIR=\"/usr/share/locale\" -DNO_DEBUG -DPACKAGE=\"celestia\" -DSPLASH_DIR=\"/usr/share/celestia/splash\" -DVERSION=\"1.7.0\" -D_USE_MATH_DEFINES -I/var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20221215-r1/work/Celestia-9b00246b17a60f0a6dce724be8f7a3bda04809c3/src/celengine -I/var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20221215-r1/work/Celestia-9b00246b17a60f0a6dce724be8f7a3bda04809c3/src -I/var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20221215-r1/work/Celestia-9b00246b17a60f0a6dce724be8f7a3bda04809c3 -isystem /usr/include/eigen3 -isystem /usr/include/freetype2  -march=znver4 -O2 -pipe -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -std=gnu++17 -fPIC -fno-exceptions -MD -MT src/celengine/CMakeFiles/celengine.dir/astro.cpp.o -MF src/celengine/CMakeFiles/celengine.dir/astro.cpp.o.d -o src/celengine/CMakeFiles/celengine.dir/astro.cpp.o -c /var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20221215-r1/work/Celestia-9b00246b17a60f0a6dce724be8f7a3bda04809c3/src/celengine/astro.cpp
ninja: build stopped: subcommand failed.
 * ERROR: sci-astronomy/celestia-1.7.0_pre20221215-r1::gentoo failed (compile phase):
 *   ninja -v -j5 -l5 failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 2929:  Called cmake_src_compile
 *   environment, line 1177:  Called cmake_build
 *   environment, line 1144:  Called eninja
 *   environment, line 1647:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
 *
 * If you need support, post the output of `emerge --info '=sci-astronomy/celestia-1.7.0_pre20221215-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-astronomy/celestia-1.7.0_pre20221215-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20221215-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20221215-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20221215-r1/work/Celestia-9b00246b17a60f0a6dce724be8f7a3bda04809c3'
 * S: '/var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20221215-r1/work/Celestia-9b00246b17a60f0a6dce724be8f7a3bda04809c3'
Back to top
View user's profile Send private message
tckosvic
Apprentice
Apprentice


Joined: 18 Apr 2023
Posts: 154

PostPosted: Tue Jan 07, 2025 3:17 pm    Post subject: Reply with quote

I also cannot get celestia compiled with same error messages.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22955

PostPosted: Tue Jan 07, 2025 3:28 pm    Post subject: Reply with quote

Neither of you has posted any actual error messages, only the report that an error occurred, so there is nothing we can do for you. If you need help, please follow the instructions that Portage printed, which rsnfunky quoted.
Back to top
View user's profile Send private message
rsnfunky
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2007
Posts: 91

PostPosted: Tue Jan 07, 2025 5:48 pm    Post subject: Reply with quote

Code:
[2/179] /usr/bin/x86_64-pc-linux-gnu-g++ -DCONFIG_DATA_DIR=\"/usr/share/celestia\" -DEIGEN_NO_DEBUG -DENABLE_NLS -DFMT_SHARED -DGIT_COMMIT=\"unknown\" -DHIP_DATA_DIR=\"/usr/share/celestia\" -DLOCALEDIR=\"/usr/share/locale\" -DNO_DEBUG -DPACKAGE=\"celestia\" -DSPLASH_DIR=\"/usr/share/celestia/splash\" -DVERSION=\"1.7.0\" -D_USE_MATH_DEFINES -I/var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20221215-r1/work/Celestia-9b00246b17a60f0a6dce724be8f7a3bda04809c3/src/cel3ds -I/var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20221215-r1/work/Celestia-9b00246b17a60f0a6dce724be8f7a3bda04809c3/src -I/var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20221215-r1/work/Celestia-9b00246b17a60f0a6dce724be8f7a3bda04809c3 -isystem /usr/include/eigen3 -isystem /usr/include/freetype2  -march=znver4 -O2 -pipe -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -std=gnu++17 -fPIC -fno-exceptions -MD -MT src/cel3ds/CMakeFiles/cel3ds.dir/3dsread.cpp.o -MF src/cel3ds/CMakeFiles/cel3ds.dir/3dsread.cpp.o.d -o src/cel3ds/CMakeFiles/cel3ds.dir/3dsread.cpp.o -c /var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20221215-r1/work/Celestia-9b00246b17a60f0a6dce724be8f7a3bda04809c3/src/cel3ds/3dsread.cpp
FAILED: src/cel3ds/CMakeFiles/cel3ds.dir/3dsread.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++ -DCONFIG_DATA_DIR=\"/usr/share/celestia\" -DEIGEN_NO_DEBUG -DENABLE_NLS -DFMT_SHARED -DGIT_COMMIT=\"unknown\" -DHIP_DATA_DIR=\"/usr/share/celestia\" -DLOCALEDIR=\"/usr/share/locale\" -DNO_DEBUG -DPACKAGE=\"celestia\" -DSPLASH_DIR=\"/usr/share/celestia/splash\" -DVERSION=\"1.7.0\" -D_USE_MATH_DEFINES -I/var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20221215-r1/work/Celestia-9b00246b17a60f0a6dce724be8f7a3bda04809c3/src/cel3ds -I/var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20221215-r1/work/Celestia-9b00246b17a60f0a6dce724be8f7a3bda04809c3/src -I/var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20221215-r1/work/Celestia-9b00246b17a60f0a6dce724be8f7a3bda04809c3 -isystem /usr/include/eigen3 -isystem /usr/include/freetype2  -march=znver4 -O2 -pipe -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -std=gnu++17 -fPIC -fno-exceptions -MD -MT src/cel3ds/CMakeFiles/cel3ds.dir/3dsread.cpp.o -MF src/cel3ds/CMakeFiles/cel3ds.dir/3dsread.cpp.o.d -o src/cel3ds/CMakeFiles/cel3ds.dir/3dsread.cpp.o -c /var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20221215-r1/work/Celestia-9b00246b17a60f0a6dce724be8f7a3bda04809c3/src/cel3ds/3dsread.cpp
In file included from /usr/include/fmt/format.h:41,


Code:
/var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20221215-r1/work/Celestia-9b00246b17a60f0a6dce724be8f7a3bda04809c3/src/cel3ds/3dsread.cpp:817:27:   required from here
  817 |         GetLogger()->error("Read3DSFile: Error opening {}\n", filename);
      |         ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/fmt/base.h:1402:29: error: passing ‘const fmt::v11::formatter<std::filesystem::__cxx11::path>’ as ‘this’ argument discards qualifiers [-fpermissive]
 1402 |     ctx.advance_to(cf.format(*static_cast<qualified_type*>(arg), ctx));
      |                    ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20221215-r1/work/Celestia-9b00246b17a60f0a6dce724be8f7a3bda04809c3/src/cel3ds/3dsread.cpp:24:
/var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20221215-r1/work/Celestia-9b00246b17a60f0a6dce724be8f7a3bda04809c3/src/celutil/logger.h:25:10: note:   in call to ‘auto fmt::v11::formatter<std::filesystem::__cxx11::path>::format(const std::filesystem::__cxx11::path&, FormatContext&) [with FormatContext = fmt::v11::context]’
   25 |     auto format(const fs::path &path, FormatContext &ctx)
      |          ^~~~~~
ninja: build stopped: subcommand failed.
 * ERROR: sci-astronomy/celestia-1.7.0_pre20221215-r1::gentoo failed (compile phase):
 *   ninja -v -j1 -l1 failed
 *
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31401
Location: here

PostPosted: Tue Jan 07, 2025 6:00 pm    Post subject: Reply with quote

Probabli celestia 1.7.0 is not compatible with libfmt-11, try this upstream patch.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
rsnfunky
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2007
Posts: 91

PostPosted: Wed Jan 08, 2025 6:43 am    Post subject: Reply with quote

Noted. How does one patch it using this patch and emerge command?
Back to top
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 452

PostPosted: Wed Jan 08, 2025 6:58 am    Post subject: Reply with quote

man 5 portage:
       /etc/portage/patches/
              In this directory patches to the package source tree can be created.  For each package, patches are taken from these subdirectories in the following order:

              1. /etc/portage/patches/${CATEGORY}/${P}-${PR}[:${SLOT}]

              2. /etc/portage/patches/${CATEGORY}/${P}[:${SLOT}]

              3. /etc/portage/patches/${CATEGORY}/${PN}[:${SLOT}]

              Patches from more-specific directories overrides patches from less-specific, i.e. if patches with the same name coexist in different  directories  matches  same  package,  only
              patch  from  directory  matches  the  first matching pattern will be applied. Patches for each package are applied in the POSIX lexicographic order. Patch file name must end in
              ".patch" or, for EAPI >= 6, in ".diff".

              If package ebuild uses EAPI <= 5, it must explicitly invoke epatch_user or inherit epatch.eclass(5) and rely on default src_prepare for apply patches.  Otherwise,  patches  are
              silently ignored. If package ebuild uses EAPI >= 6, applying user patches is mandatory.
Back to top
View user's profile Send private message
tckosvic
Apprentice
Apprentice


Joined: 18 Apr 2023
Posts: 154

PostPosted: Wed Jan 08, 2025 4:46 pm    Post subject: Reply with quote

Code:

How does one patch it using this patch and emerge command?


The posted response has no meaning to me. I repeat the question posted by @rsnfunky.

thanks, tom kosvic
Back to top
View user's profile Send private message
rsnfunky
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2007
Posts: 91

PostPosted: Wed Jan 08, 2025 4:56 pm    Post subject: Reply with quote

@tckosvic the problem actually is getting a .patch file from the git repo.

We need to put that file in the directory '/etc/portage/patches/sci-astronomy/celestia-1.7.0_pre20221215-r1 '
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1975

PostPosted: Wed Jan 08, 2025 5:05 pm    Post subject: Reply with quote

rsnfunky wrote:
@tckosvic the problem actually is getting a .patch file from the git repo.

The patch is easy. Take the URL above and add ".patch" to it. GitHub will do all the work for you.
Easy to just grab with wget at that point.
Back to top
View user's profile Send private message
rsnfunky
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2007
Posts: 91

PostPosted: Wed Jan 08, 2025 5:13 pm    Post subject: Reply with quote

we are noobs at this, can you give us the command please?
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1975

PostPosted: Wed Jan 08, 2025 5:17 pm    Post subject: Reply with quote

wget https://github.com/CelestiaProject/Celestia/pull/2225/commits/2c3f7a0b2089b34aca98e33ced2de0314172470c.patch
Back to top
View user's profile Send private message
rsnfunky
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2007
Posts: 91

PostPosted: Wed Jan 08, 2025 5:27 pm    Post subject: Reply with quote

thanks the patch got created but:

Code:
Build directory  (BUILD_DIR):     "/var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20221215-r1/work/Celestia-9b00246b17a60f​0a6dce724be8f7a3bda04809c3"
 * Applying celestia-1.6.99-cfg.patch ...                                                                                                                                                                                            [ ok ]
 * Applying celestia-1.7.0-cmake_lua_version.patch ...                                                                                                                                                                               [ ok ]
 * ==========================================================================================​==========================================================================================​=====================================================
 * Applying user patches from /etc/portage/patches ...
 * Applying 2c3f7a0b2089b34aca98e33ced2de0314172470c.patch ...
patching file .github/workflows/ci.yml
Hunk #1 FAILED at 30.
1 out of 1 hunk FAILED -- saving rejects to file .github/workflows/ci.yml.rej
patching file CMakeLists.txt
Hunk #1 succeeded at 228 (offset -44 lines).
patching file src/cel3ds/3dsread.cpp
Hunk #1 succeeded at 86 (offset -1 lines).
can't find file to patch at input line 73
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/src/celengine/stardbbuilder.cpp b/src/celengine/stardbbuilder.cpp
|index 22ea2d1d7c..2759b32704 100644
|--- a/src/celengine/stardbbuilder.cpp
|+++ b/src/celengine/stardbbuilder.cpp
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
patching file src/celutil/formatnum.cpp
Hunk #1 FAILED at 52.
Hunk #2 FAILED at 68.
2 out of 2 hunks FAILED -- saving rejects to file src/celutil/formatnum.cpp.rej
patching file src/celutil/formatnum.h
Hunk #1 FAILED at 116.
Hunk #2 FAILED at 132.
2 out of 2 hunks FAILED -- saving rejects to file src/celutil/formatnum.h.rej
patching file src/celutil/logger.h
File thirdparty/fmt is not a regular file -- refusing to patch
1 out of 1 hunk ignored -- saving rejects to file thirdparty/fmt.rej                                                                                                                                                                 [ !! ]
 * ERROR: sci-astronomy/celestia-1.7.0_pre20221215-r1::gentoo failed (prepare phase):
 *   patch -p1  failed with /etc/portage/patches/sci-astronomy/celestia-1.7.0_pre20221215-r1/2c3f7a0b2089b34aca98e33ce​d2de0314172470c.patch
 *
 * Call stack:
 *               ebuild.sh, line  136:  Called src_prepare
 *             environment, line 2931:  Called cmake_src_prepare
 *             environment, line 1341:  Called default_src_prepare
 *      phase-functions.sh, line  950:  Called __eapi8_src_prepare
 *             environment, line  353:  Called eapply_user
 *             environment, line 1559:  Called eapply '/etc/portage/patches/sci-astronomy/celestia-1.7.0_pre20221215-r1/2c3f7a0b2089b34aca98e33c​ed2de0314172470c.patch'
 *             environment, line 1519:  Called _eapply_patch '/etc/portage/patches/sci-astronomy/celestia-1.7.0_pre20221215-r1/2c3f7a0b2089b34aca98e33c​ed2de0314172470c.patch'
 *             environment, line 1457:  Called __helpers_die 'patch -p1  failed with /etc/portage/patches/sci-astronomy/celestia-1.7.0_pre20221215-r1/2c3f7a0b2089b34aca98e33ce​d2de0314172470c.patch'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *              die "$@"


[Administrator edit: broke long whitespace-free lines in code tags to fix thread layout. -Hu]
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31401
Location: here

PostPosted: Wed Jan 08, 2025 5:50 pm    Post subject: Reply with quote

There is a new version in tree sci-astronomy/celestia-1.7.0_pre20241231 that probably support fmt-11, remove patch and try to unmask it.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
rsnfunky
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2007
Posts: 91

PostPosted: Wed Jan 08, 2025 6:02 pm    Post subject: Reply with quote

strange that new ebuild is not syncing even after emerge --sync. These are the files in the gentoo repo

Code:
/var/db/repos/gentoo/sci-astronomy/celestia # ls
Manifest  celestia-1.7.0_pre20221215-r1.ebuild  files  metadata.xml
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31401
Location: here

PostPosted: Wed Jan 08, 2025 6:08 pm    Post subject: Reply with quote

rsnfunky wrote:
strange that new ebuild is not syncing even after emerge --sync. These are the files in the gentoo repo ]

Probably the mirror you use is not already synchronized, try to sync later.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
rsnfunky
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2007
Posts: 91

PostPosted: Wed Jan 08, 2025 6:18 pm    Post subject: Reply with quote

Actually emerge --sync is showing the ebuild. But when I do ls its not in the directory.

Code:
project/trace/
project/trace/gentoo.cs.nctu.edu.tw
sci-astronomy/celestia/celestia-1.7.0_pre20241231.ebuild
deleting sci-electronics/librepcb/librepcb-1.2.0.ebuild
sci-electronics/Manifest.gz
sci-electronics/librepcb/Manifest
sec-keys/Manifest.gz
sec-keys/openpgp-keys-apache-tomcat/Manifest
sec-keys/openpgp-keys-apache-tomcat/openpgp-keys-apache-tomcat-10.1.33.ebuild
sec-keys/openpgp-keys-apache-tomcat/openpgp-keys-apache-tomcat-9.0.97.ebuild
sys-libs/Manifest.gz
deleting sys-libs/pam/pam-1.7.0_p20241230-r2.ebuild
sys-libs/pam/Manifest
sys-libs/pam/pam-1.7.0_p20241230.ebuild
deleting www-apps/rutorrent/rutorrent-5.1.5.ebuild
www-apps/Manifest.gz
www-apps/rutorrent/Manifest
www-apps/rutorrent/rutorrent-5.1.4.ebuild
www-servers/Manifest.gz
www-servers/tomcat/Manifest
www-servers/tomcat/tomcat-10.1.33.ebuild
www-servers/tomcat/tomcat-9.0.97.ebuild

Number of files: 151,728 (reg: 124,506, dir: 27,222)
Number of created files: 51 (reg: 49, dir: 2)
Number of deleted files: 63 (reg: 62, dir: 1)
Number of regular files transferred: 194
Total file size: 225.11M bytes
Total transferred file size: 3.76M bytes
Literal data: 3.76M bytes
Matched data: 0 bytes
File list size: 2.08M
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 32.86K
Total bytes received: 7.24M

sent 32.86K bytes  received 7.24M bytes  199.36K bytes/sec
total size is 225.11M  speedup is 30.94
 * Manifest timestamp: 2025-01-08 09:10:25 UTC
 * Valid OpenPGP signature found:
 * - primary key: DCD05B71EAB94199527F44ACDB6B8C1F96D8BF6D
 * - subkey: E1D6ABB63BFCFB4BA02FDF1CEC590EEAC9189250
 * - timestamp: 2025-01-08 09:10:25 UTC
 * Verifying /var/db/repos/gentoo/.tmp-unverified-download-quarantine ...!!! Manifest verification failed:
Manifest mismatch for app-vim/project/Manifest
  __exists__: expected: True, have: False


Code:
/var/db/repos/gentoo/sci-astronomy/celestia # ls
Manifest  celestia-1.7.0_pre20221215-r1.ebuild  files  metadata.xml
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22955

PostPosted: Wed Jan 08, 2025 6:52 pm    Post subject: Reply with quote

rsnfunky wrote:
Actually emerge --sync is showing the ebuild. But when I do ls its not in the directory.
Code:
 * Verifying /var/db/repos/gentoo/.tmp-unverified-download-quarantine ...!!! Manifest verification failed:
Manifest mismatch for app-vim/project/Manifest
  __exists__: expected: True, have: False
Your verification failed, and the result was discarded. Effectively, the sync did not change local state because of the verification failure.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum