Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 881813 - sci-astronomy/xephem-4.1.0 - /.../ld: cannot find -lastro: No such file or directory
Summary: sci-astronomy/xephem-4.1.0 - /.../ld: cannot find -lastro: No such file or di...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Astronomy project
URL: https://github.com/XEphem/XEphem/issu...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: parallel-make
  Show dependency tree
 
Reported: 2022-11-18 15:23 UTC by Toralf Förster
Modified: 2022-12-24 07:03 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.69 KB, text/plain)
2022-11-18 15:23 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,71.68 KB, text/plain)
2022-11-18 15:23 UTC, Toralf Förster
Details
environment (environment,69.56 KB, text/plain)
2022-11-18 15:23 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,706 bytes, application/x-bzip)
2022-11-18 15:23 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,18.53 KB, application/x-bzip)
2022-11-18 15:23 UTC, Toralf Förster
Details
sci-astronomy:xephem-4.1.0:20221118-152237.log (sci-astronomy:xephem-4.1.0:20221118-152237.log,37.98 KB, text/plain)
2022-11-18 15:23 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,20.12 KB, application/x-bzip)
2022-11-18 15:23 UTC, Toralf Förster
Details
xephem-4.1.0:20221209-110447.log (xephem-4.1.0:20221209-110447.log,49.93 KB, text/plain)
2022-12-09 11:15 UTC, Bernd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-11-18 15:23:37 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-gcc -I../../libastro -I../libastro -I../../libip -I../libip -I../../liblilxml -I../liblilxml -pipe -march=native -fno-diagnostics-color -O2   -c -o vsop87.o vsop87.c
x86_64-pc-linux-gnu-gcc -I../../libastro -I../libastro -I../../libip -I../libip -I../../liblilxml -I../liblilxml -pipe -march=native -fno-diagnostics-color -O2   -c -o eq_ecl.o eq_ecl.c
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o xephem aavso.o annotmenu.o broadcast.o calmenu.o closemenu.o compiler.o coordsmenu.o datamenu.o db.o dbmenu.o earthmap.o earthmenu.o fallbacks.o favmenu.o formats.o fsmenu.o gallerymenu.o glance.o gsc.o gscnet
x86_64-pc-linux-gnu-gcc -I../../libastro -I../libastro -I../../libip -I../libip -I../../liblilxml -I../liblilxml -pipe -march=native -fno-diagnostics-color -O2   -c -o obliq.o obliq.c
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lastro: No such file or directory
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lip: No such file or directory
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -llilxml: No such file or directory

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

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

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

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.5
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.5
Python 3.10.8
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.65.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.352_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

php cli (if any):

  HEAD of ::gentoo
commit 2dc0599db15ba66514a875deccb15b8554c768ec
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Nov 18 15:01:57 2022 +0000

    2022-11-18 15:01:56 UTC

emerge -qpvO sci-astronomy/xephem
[ebuild  N    ] sci-astronomy/xephem-4.1.0
Comment 1 Toralf Förster gentoo-dev 2022-11-18 15:23:39 UTC
Created attachment 833441 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-18 15:23:40 UTC
Created attachment 833443 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-11-18 15:23:42 UTC
Created attachment 833445 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-11-18 15:23:43 UTC
Created attachment 833447 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-11-18 15:23:44 UTC
Created attachment 833449 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-18 15:23:45 UTC
Created attachment 833451 [details]
sci-astronomy:xephem-4.1.0:20221118-152237.log
Comment 7 Toralf Förster gentoo-dev 2022-11-18 15:23:46 UTC
Created attachment 833453 [details]
temp.tar.bz2
Comment 8 Bernd 2022-12-09 11:08:38 UTC
I had a similar error, but for `-lip` and `-llilxml` instead of `-lastro`. It seems to be a parallel build issue. Setting MAKEOPTS=-j1 let's me build the package successfully.
Comment 9 Bernd 2022-12-09 11:15:39 UTC
Created attachment 841093 [details]
xephem-4.1.0:20221209-110447.log

succesful build of the package by avoiding parallel build
Comment 10 Bernd 2022-12-09 11:48:41 UTC
Must have been really unlucky. On my first re-merge after several years I got the failure. On about a dozen test emerges now, the issue didn't show up. So it's likely a race condition.
Anyway, IMO moving the libs target from the all target to the xephem target should solve this race condition. This way, it should be guaranteed, that all libs are built, before the final binary is linked.
I'm gonna prepare a PR with such a patch.
Comment 11 Toralf Förster gentoo-dev 2022-12-09 12:08:11 UTC
(In reply to Bernd from comment #10)
> Must have been really unlucky. On my first re-merge after several years I
> got the failure. On about a dozen test emerges now, the issue didn't show
> up. So it's likely a race condition.

GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
Comment 12 Bernd 2022-12-09 12:30:55 UTC
(In reply to Toralf Förster from comment #11)
> (In reply to Bernd from comment #10)
> > Must have been really unlucky. On my first re-merge after several years I
> > got the failure. On about a dozen test emerges now, the issue didn't show
> > up. So it's likely a race condition.
> 
> GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"

Another dozen merges passing this from the command line, but no fails. Adding it to MAKEOPTS in make.conf and the second try fails :)
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-09 12:31:48 UTC
Note that with --shuffle you can pass a seed (look in toralf log) to reproduce specific failures too.
Comment 14 Bernd 2022-12-09 12:34:15 UTC
Oh I passed GNUMAKEOPTS from the command line. Probably that's why it didn't work out properly.

I read that I can pass a seed, but didn't look into how this works to produce a specific result.
Comment 15 Bernd 2022-12-09 12:35:31 UTC
So, if I pass the value from the logfile shuffle=1973246583, I get the same result?
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-09 12:37:17 UTC
Yes! (Hopefully)
Comment 17 Bernd 2022-12-09 12:40:51 UTC
Doesn't seem to work exactly like this. I do get an error, but it looks more like my first error, not mentioning libastro, but only libip and liblilxml. But it least it produces a failure.
Comment 18 Larry the Git Cow gentoo-dev 2022-12-24 07:03:08 UTC
The bug has been closed via the following commit(s):

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

commit 09607a4dd3014f1373b1437f06d4aa0e1bce4633
Author:     Bernd Waibel <waebbl-gentoo@posteo.net>
AuthorDate: 2022-12-09 11:50:45 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-24 06:59:44 +0000

    sci-astronomy/xephem: enable parallel build
    
    - add a patch to allow parallel builds
    - add remote-id to make pkgcheck happy
    - update obsolete virtual/jpeg dependency and order deps
    
    Closes: https://bugs.gentoo.org/881813
    Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
    Closes: https://github.com/gentoo/gentoo/pull/28610
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/xephem-4.1.0-allow-parallel-builds.patch | 26 ++++++++++++++++++++++
 sci-astronomy/xephem/metadata.xml                  |  3 +++
 ...{xephem-4.1.0.ebuild => xephem-4.1.0-r1.ebuild} |  7 ++++--
 3 files changed, 34 insertions(+), 2 deletions(-)