Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 752180 - [sage-on-gentoo] sci-mathematics/maxima-5.44.0[emacs] FileNotFoundError: [Errno 2] No such file or directory: b'src/binary-ecl/maxima.fas'
Summary: [sage-on-gentoo] sci-mathematics/maxima-5.44.0[emacs] FileNotFoundError: [Err...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: François Bissey
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-02 01:39 UTC by Alessandro Barbieri
Modified: 2024-01-10 09:19 UTC (History)
4 users (show)

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


Attachments
info-maxima (info-maxima,14.42 KB, text/plain)
2020-11-03 04:25 UTC, Alessandro Barbieri
Details
maxima-5.44.0:20201101-044611.log.xz (maxima-5.44.0:20201101-044611.log.xz,129.14 KB, application/x-xz)
2020-11-03 04:27 UTC, Alessandro Barbieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2020-11-02 01:39:49 UTC
make[1]: Leaving directory '/var/tmp/portage/sci-mathematics/maxima-5.44.0/work/maxima-5.44.0'
 * Installing Elisp files for GNU Emacs support ...                                        [ ok ]e
 * Installing site initialisation file for GNU Emacs ...                                   [ ok ]
Traceback (most recent call last):
  File "/usr/lib/portage/python3.7/doins.py", line 594, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/lib/portage/python3.7/doins.py", line 585, in main
    os.path.dirname(source)):
  File "/usr/lib/portage/python3.7/doins.py", line 434, in _doins
    return install_runner.install_file(source, os.path.dirname(dest))
  File "/usr/lib/portage/python3.7/doins.py", line 370, in install_file
    return self._ins_runner.run(source, dest_dir)
  File "/usr/lib/portage/python3.7/doins.py", line 179, in run
    sstat = os.stat(source)
FileNotFoundError: [Errno 2] No such file or directory: b'src/binary-ecl/maxima.fas'
 * ERROR: sci-mathematics/maxima-5.44.0::sage-on-gentoo failed (install phase):
 *   doins failed
 *
Comment 1 François Bissey 2020-11-02 19:02:41 UTC
Are you using ecls-20.04.x from the sage-on-gentoo overlay?
Comment 2 Alessandro Barbieri 2020-11-03 04:22:38 UTC
Yes, ecls-20.4.24-r2
Comment 3 Alessandro Barbieri 2020-11-03 04:25:08 UTC
Created attachment 669824 [details]
info-maxima

emerge --info
Comment 4 Alessandro Barbieri 2020-11-03 04:27:24 UTC
Created attachment 669827 [details]
maxima-5.44.0:20201101-044611.log.xz

buildlog
Comment 5 François Bissey 2020-11-03 09:18:13 UTC
Hum, the compilation of maxima.fas fails but is not stopping the build. So you only notice at the end when it is missing.

;      - Loading binary file "binary-ecl/init-cl.fas" 
;  - Providing system maxima
(#<MODULE: final> #<MODULE: graphics-drivers> #<MODULE: translated-packages>
 #<MODULE: poisson-series> #<MODULE: miscellaneous> #<MODULE: debugging>
 #<MODULE: solve> #<MODULE: limits> #<MODULE: determinants>
 #<MODULE: matrix-algebra> #<MODULE: special-functions>
 #<MODULE: definite-integration> #<MODULE: taylor-series>
 #<MODULE: integration> #<MODULE: algebraic-database> #<MODULE: documentation>
 #<MODULE: gcd> #<MODULE: display> #<MODULE: reader>
 #<MODULE: numerical-functions> #<MODULE: trigonometry>
 #<MODULE: pattern-matching> #<MODULE: maxima-language-compiler>
 #<MODULE: rational-functions> #<MODULE: ifactor> #<MODULE: factoring>
 #<MODULE: i-o> #<MODULE: server> #<MODULE: numeric-bigfloat>
 #<MODULE: simplification> #<MODULE: numerical> #<MODULE: evaluator>
 #<MODULE: commands> #<MODULE: utilities> #<MODULE: rat-macros>
 #<MODULE: other-macros> #<MODULE: utility-macros>
 #<MODULE: fundamental-macros> #<MODULE: command-line> #<MODULE: getopt>
 #<MODULE: maxima-language-compiler-macros> #<MODULE: prerequisites>
 #<MODULE: compatibility-macros> #<MODULE: defmfun>
 #<MODULE: compatibility-macros1> #<MODULE: destructuring-let>
 #<MODULE: declarations> #<MODULE: sloop> #<MODULE: info> #<MODULE: intl>
 #<MODULE: package>)
> 
Condition of type: SIMPLE-ERROR
Error code 1 when executing
(EXT:RUN-PROGRAM "x86_64-pc-linux-gnu-g++" ("-o" "binary-ecl/maxima.fas" "-L/usr/lib64/" "/var/tmp/portage/sci-mathematics/maxima-5.44.0/temp/eclinitQ5njqd.o" "binary-ecl/maxima-package.o" "binary-ecl/ecl-port.o" "binary-ecl/autoconf-variables.o" "binary-ecl/intl.o" "binary-ecl/nregex.o" "binary-ecl/cl-info.o" "binary-ecl/sloop.o" "binary-ecl/lmdcls.o" "binary-ecl/letmac.o" "binary-ecl/generr.o" "binary-ecl/clmacs.o" "binary-ecl/defmfun-check.o" ...)):
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: unrecognized option '--as-needed -Wl'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status

Available restarts:

1. (CONTINUE) Continues anyway.
2. (RESTART-TOPLEVEL) Go back to Top-Level REPL.

Broken at BUILD-MAXIMA-LIB. In: #<process TOP-LEVEL 0x7f9c57577f80>.
 File: #P"/var/tmp/portage/sci-mathematics/maxima-5.44.0/work/maxima-5.44.0/src/maxima.system" (Position #2068)
>> 


Compilation is attempted several times, since the error is reported 3 times before the ebuild fails in the install phase.
Comment 6 François Bissey 2020-11-03 09:22:02 UTC
From your emerge --info:
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed"
Can you fix it so there is no duplication and try again.
Clue, don't define it in /etc/portage/make.conf. It is now provided by default.
Comment 7 Alessandro Barbieri 2020-11-07 12:03:43 UTC
I successfully re-emerged it, I'll try to reproduce later
Comment 8 Alessandro Barbieri 2020-11-08 08:03:15 UTC
I reproduced it by using again the redundant LDFLAGS
Comment 9 François Bissey 2020-11-08 08:07:02 UTC
(In reply to Alessandro Barbieri from comment #8)
> I reproduced it by using again the redundant LDFLAGS

It may be an issue for upstream that LDFLAGS is not parsed properly. But I am satisfied that the real problem was not in the ebuild but in your settings.
Comment 10 Michael Orlitzky gentoo-dev 2021-03-29 13:51:16 UTC
(Both) Upstream LDFLAGS handling is a little weird at the moment. I think I've found the root cause of these problems:

  * https://sourceforge.net/p/maxima/bugs/3759/
  * https://gitlab.com/embeddable-common-lisp/ecl/-/issues/636
Comment 11 François Bissey 2024-01-10 09:19:00 UTC
maxima has left the overlay, hopefully for good and it seems the issue is fixed upstream.