Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 783192 - sci-electronics/spice-3.5.5-r3 - /.../environment:line <snip>: obj/.../makeidx: No such file or directory
Summary: sci-electronics/spice-3.5.5-r3 - /.../environment:line <snip>: obj/.../makeid...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: The Soldering-Iron Brotherhood
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-04-16 17:19 UTC by Toralf Förster
Modified: 2023-09-12 07:13 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.01 KB, text/plain)
2021-04-16 17:19 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,144.08 KB, text/plain)
2021-04-16 17:19 UTC, Toralf Förster
Details
environment (environment,93.83 KB, text/plain)
2021-04-16 17:19 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,23.93 KB, application/x-bzip)
2021-04-16 17:19 UTC, Toralf Förster
Details
sci-electronics:spice-3.5.5-r2:20210416-165046.log (sci-electronics:spice-3.5.5-r2:20210416-165046.log,464.93 KB, text/plain)
2021-04-16 17:19 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,47.71 KB, application/x-bzip)
2021-04-16 17:19 UTC, Toralf Förster
Details
build.log (spice-3.5.5-r3-build.log,619.90 KB, text/x-log)
2022-02-20 10:47 UTC, segmentation fault
Details
fix (spice.patch,461 bytes, patch)
2023-07-23 14:22 UTC, Vitaly Kirsanov
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 2021-04-16 17:19:48 UTC
make[1]: Leaving directory '/var/tmp/portage/sci-electronics/spice-3.5.5-r2/work/spice3f5sfix'
Done with build at Fri Apr 16 18:52:04 CEST 2021
/var/tmp/portage/sci-electronics/spice-3.5.5-r2/temp/environment: line 2412: obj/bin/makeidx: No such file or directory
 * ERROR: sci-electronics/spice-3.5.5-r2::gentoo failed (compile phase):
 *   makeidx failed
 * 

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_developer-20210410-103050

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.3.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.8.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.51.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.282_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Fri Apr 16 16:35:23 UTC 2021

emerge -qpvO sci-electronics/spice
[ebuild  N    ] sci-electronics/spice-3.5.5-r2
Comment 1 Toralf Förster gentoo-dev 2021-04-16 17:19:50 UTC
Created attachment 700185 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-04-16 17:19:51 UTC
Created attachment 700188 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-04-16 17:19:53 UTC
Created attachment 700191 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-04-16 17:19:54 UTC
Created attachment 700194 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-04-16 17:19:56 UTC
Created attachment 700197 [details]
sci-electronics:spice-3.5.5-r2:20210416-165046.log
Comment 6 Toralf Förster gentoo-dev 2021-04-16 17:19:57 UTC
Created attachment 700200 [details]
temp.tar.bz2
Comment 7 Agostino Sarubbo gentoo-dev 2022-01-17 08:17:11 UTC
ci has reproduced this issue with version 3.5.5-r3 - Updating summary.
Comment 8 segmentation fault 2022-02-20 10:46:18 UTC
I have the same problem (See attached build.log):

....sci-electronics/spice-3.5.5-r3/temp/environment: line 2437: obj/bin/makeidx: No such file or directory
 * ERROR: sci-electronics/spice-3.5.5-r3::gentoo failed (compile phase):
 *   makeidx failed
 * 
 * Call stack:
 *     ebuild.sh, line 127:  Called src_compile
 *   environment, line 2437:  Called die
 * The specific snippet of code:
 *       obj/bin/makeidx lib/helpdir/spice.txt || die "makeidx failed"

But problems start very early with spice:

make[5]: Entering directory '/XXXXXX/portage/sci-electronics/spice-3.5.5-r3/work/spice3f5sfix/obj/lib/dev/disto'
cc -O1 -march=x86-64-v3 -pipe -ftree-vectorize  -I/XXXXXX/portage/sci-electronics/spice-3.5.5-r3/work/spice3f5sfix/src/include -c
 /XXXXXX/portage/sci-electronics/spice-3.5.5-r3/work/spice3f5sfix/src/lib/dev/disto//atander.c  
/XXXXXX/portage/sci-electronics/spice-3.5.5-r3/work/spice3f5sfix/src/lib/dev/disto//atander.c: In function 'AtanDeriv':
/XXXXXX/portage/sci-electronics/spice-3.5.5-r3/work/spice3f5sfix/src/lib/dev/disto//atander.c:22:1: warning: implicit declaration of function 'EqualDeriv' [-Wimplicit-function-declaration]


Indeed, there is no .h file containing a declaration of EqualDeriv:

find /XXXXXX/portage/sci-electronics/spice-3.5.5-r3/ -name '*.h' | xargs -n 5 -P 6 fgrep EqualDeriv

returns nothing.

Then it creates an atander.o file whose format is not recognized:

ar cql /XXXXXX/portage/sci-electronics/spice-3.5.5-r3/work/spice3f5sfix/obj/lib/dev.a atander.o cosderiv.o cubeder.o divderiv.o equalder.o expderiv.o invderiv.o multder.o plusder.o powderiv.o sqrtder.o tanderiv.o timesder.o
ar: atander.o: file format not recognized
         Done with spice3f5sfix/src/lib/dev/disto

ar is part of binutils and my sys-devel/binutils-2.37_p1 is compiled/rebuilt with my newest gcc multiple times already on other occasions.

Of course it will end badly. 

This is very weird, as I have spice-3.5.5-r2 installed since Jan. 2019...

FWIW the compiler (as given by 'gcc-config -l') is x86_64-pc-linux-gnu-11.2.0.

Some info
=========

Portage 3.0.28 (python 3.9.9-final-0, default/linux/amd64/17.1/hardened, gcc-11.2.0, glibc-2.33-r7, 5.4.168-gentoo x86_64)
=================================================================
System uname: Linux-5.4.168-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700HQ_CPU_@_2.60GHz-with-glibc2.33


Timestamp of repository gentoo: Sat, 22 Jan 2022

sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p8::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           2.7.18_p13::gentoo, 3.6.15::gentoo, 3.7.12_p1::gentoo, 3.8.12_p1-r1::gentoo, 3.9.9-r1::gentoo, 3.10.0_p1-r1::gentoo
dev-lang/rust:             1.58.1::gentoo
dev-lang/rust-bin:         1.53.0::gentoo
dev-util/cmake:            3.21.4::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/openrc:           0.42.1::gentoo
sys-apps/sandbox:          2.25::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.69-r4::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.11.6-r3::gentoo, 1.12.6::gentoo, 1.13.4-r2::gentoo, 1.14.1::gentoo, 1.15.1-r2::gentoo, 1.16.4::gentoo
sys-devel/binutils:        2.37_p1::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           12.0.1::gentoo, 13.0.0::gentoo
sys-devel/gcc:             7.5.0::gentoo, 8.3.0-r1::gentoo, 8.4.0::gentoo, 9.3.0::gentoo, 11.2.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.0::gentoo
sys-devel/llvm:            12.0.1::gentoo, 13.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.33-r7::gentoo
Comment 9 segmentation fault 2022-02-20 10:47:05 UTC
Created attachment 765518 [details]
build.log
Comment 10 Grzegorz Stawik 2022-11-07 19:42:09 UTC
Same problem here.

"file format not recognized", except, that file exists, and at least appears to be valid:



# file ./spice3f5sfix/obj/lib/dev/disto/atander.o
./spice3f5sfix/obj/lib/dev/disto/atander.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped



compared to:



ar: supported targets: elf64-x86-64 elf32-i386 elf32-iamcu elf32-x86-64 pei-i386 pe-x86-64 pei-x86-64 elf64-l1om elf64-k1om elf64-little elf64-big elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex plugin
Comment 11 Fitap 2023-06-25 00:53:11 UTC
Same issue here.


-------------------------------------------------------------------------------/var/tmp/portage/sci-electronics/spice-3.5.5-r3/work/spice3f5sfix/src/bin//multidec.c:24:2: warning: return type defaults to ‘int’ [-Wimplicit-int]
   24 |  main (argc, argv)
      |  ^~~~
/var/tmp/portage/sci-electronics/spice-3.5.5-r3/work/spice3f5sfix/src/bin//multidec.c: In function ‘main’:
/var/tmp/portage/sci-electronics/spice-3.5.5-r3/work/spice3f5sfix/src/bin//multidec.c:229:1: warning: implicit declaration of function ‘spErrorMessage’ [-Wimplicit-function-declaration]
  229 | spErrorMessage(othermatrix,stderr,NULL);
      | ^~~~~~~~~~~~~~
make[3]: Target 'recursive' not remade because of errors.
make[3]: Leaving directory '/var/tmp/portage/sci-electronics/spice-3.5.5-r3/work/spice3f5sfix/obj/bin'
	Done with spice3f5sfix/src
make[2]: Leaving directory '/var/tmp/portage/sci-electronics/spice-3.5.5-r3/work/spice3f5sfix/obj'
	Done with spice3f5sfix
make[1]: Leaving directory '/var/tmp/portage/sci-electronics/spice-3.5.5-r3/work/spice3f5sfix'
Done with build at sáb 24 jun 2023 21:38:22 -03
/var/tmp/portage/sci-electronics/spice-3.5.5-r3/temp/environment: line 2425: obj/bin/makeidx: No such file or directory
 * ERROR: sci-electronics/spice-3.5.5-r3::gentoo failed (compile phase):
 *   makeidx failed

-----------------------------------------------------------------------------
Comment 12 Vitaly Kirsanov 2023-07-23 14:22:43 UTC
Created attachment 866012 [details, diff]
fix

-l flag of ar is the culprit. It looks like it the past it had other meaning that it does now. Then it indicated that ar should have used the local path rather than /tmp or whatever and now ar -l needs an extra argument specifying "the dependencies of this library" which was never fed to it by make.
Comment 13 Larry the Git Cow gentoo-dev 2023-09-12 07:13:47 UTC
The bug has been closed via the following commit(s):

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

commit 68bf11d86ea4291ef232923bd66caf860c30122d
Author:     Vitaliy Kirsanov <krokoziabla@gmail.com>
AuthorDate: 2023-07-23 13:57:34 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2023-09-12 07:13:36 +0000

    sci-electronics/spice: remove unnecessary -l argument from ar
    
    Closes: https://bugs.gentoo.org/783192
    Closes: https://github.com/gentoo/gentoo/pull/32012
    Signed-off-by: Vitaliy Kirsanov <krokoziabla@gmail.com>
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 sci-electronics/spice/files/spice-3.5.5-arlocal.patch | 11 +++++++++++
 sci-electronics/spice/spice-3.5.5-r3.ebuild           |  2 ++
 2 files changed, 13 insertions(+)