Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 605844 - sci-mathematics/fricas-1.3.0 : echo "PREGENERATED directory does not exist."; \
Summary: sci-mathematics/fricas-1.3.0 : echo "PREGENERATED directory does not exist....
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-16 08:40 UTC by Toralf Förster
Modified: 2023-10-12 06:00 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,5.48 KB, text/plain)
2017-01-16 08:40 UTC, Toralf Förster
Details
config.log (config.log,29.40 KB, text/plain)
2017-01-16 08:40 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,276.01 KB, text/plain)
2017-01-16 08:40 UTC, Toralf Förster
Details
environment (environment,47.08 KB, text/plain)
2017-01-16 08:40 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,17.91 KB, application/x-bzip)
2017-01-16 08:40 UTC, Toralf Förster
Details
sci-mathematics:fricas-1.3.0:20170116-020005.log (sci-mathematics:fricas-1.3.0:20170116-020005.log,26.93 KB, text/plain)
2017-01-16 08:40 UTC, Toralf Förster
Details
sci-mathematics:fricas-1.3.0-r1:20170122-175239.log (sci-mathematics:fricas-1.3.0-r1:20170122-175239.log,5.20 KB, text/plain)
2017-01-22 20:58 UTC, Toralf Förster
Details
dev-lisp:sbcl-1.3.12:20170122-174411.log (dev-lisp:sbcl-1.3.12:20170122-174411.log,853.00 KB, text/plain)
2017-01-22 20:58 UTC, Toralf Förster
Details
dev-lisp:sbcl-1.3.13:20170122-175220.log (dev-lisp:sbcl-1.3.13:20170122-175220.log,2.55 KB, text/plain)
2017-01-22 20:58 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-01-16 08:40:14 UTC
  echo "Not using pre-generated data."; \
elif test ! -d "/var/tmp/portage/sci-mathematics/fricas-1.3.0/work/fricas-1.3.0/pre-generated"; then \
  echo "PREGENERATED directory does not exist."; \
  exit 1; \
else \
  if test -d /var/tmp/portage/sci-mathematics/fricas-1.3.0/work/fricas-1.3.0/pre-generated/target; then \

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

  This is an unstable amd64 chroot image (named 13.0-libressl-unstable_20170110-100022) at a hardened host acting as a tinderbox.

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *
llvm-config --version:
3.9.1

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.5 (fallback)
  [3]   python2.7 (fallback)

java-config:
The following VMs are available for generation-2:
  -----------------------------------------------------------------
Comment 1 Toralf Förster gentoo-dev 2017-01-16 08:40:17 UTC
Created attachment 460264 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-01-16 08:40:20 UTC
Created attachment 460266 [details]
config.log
Comment 3 Toralf Förster gentoo-dev 2017-01-16 08:40:23 UTC
Created attachment 460268 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-01-16 08:40:26 UTC
Created attachment 460270 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-01-16 08:40:28 UTC
Created attachment 460272 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-01-16 08:40:31 UTC
Created attachment 460274 [details]
sci-mathematics:fricas-1.3.0:20170116-020005.log
Comment 7 Andrey Grozin gentoo-dev 2017-01-22 16:29:31 UTC
Please check fricas-1.3.0-r1.
I've never seen this particular problem, so, maybe, the change in r1 (fixing the bug #605596) does not cure it.
Comment 8 Toralf Förster gentoo-dev 2017-01-22 18:40:31 UTC
(In reply to Andrey Grozin from comment #7)

hhm, got this at that image after downgrading sbcl first (.13 was installed previously) :

checking PREGENERATED... "/var/tmp/portage/sci-mathematics/fricas-1.3.0-r1/work/fricas-1.3.0/pre-generated"
checking Lisp implementation... This is SBCL 1.3.12, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
While evaluating the form starting at line 3, column 0
  of #P"/etc/common-lisp/gentoo-init.lisp":

debugger invoked on a SB-INT:SIMPLE-FILE-ERROR in thread
#<THREAD "main thread" RUNNING {1001BBC883}>:
  Couldn't load #P"/usr/share/common-lisp/source/asdf/asdf.lisp": file does not
  exist.

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [RETRY   ] Retry EVAL of current toplevel form.
  1: [CONTINUE] Ignore error and continue loading file "/etc/common-lisp/gentoo-init.lisp".
  2: [ABORT   ] Abort loading file "/etc/common-lisp/gentoo-init.lisp".
  3:            Retry EVAL of current toplevel form.
  4:            Ignore error and continue sysinit file "/etc/sbclrc".
  5:            Abort sysinit file "/etc/sbclrc".
  6:            Skip to toplevel READ/EVAL/PRINT loop.
  7: [EXIT    ] Exit SBCL (calling #'EXIT, killing the process).

(LOAD #P"/usr/share/common-lisp/source/asdf/asdf.lisp" :VERBOSE NIL :PRINT NIL :IF-DOES-NOT-EXIST T :EXTERNAL-FORMAT :DEFAULT)
0] 
* sed: can't read config_cl.out: No such file or directory
configure: error: Unable to determine Lisp flavor

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sci-mathematics/fricas-1.3.0-r1/work/fricas-1.3.0/config.log
 * ERROR: sci-mathematics/fricas-1.3.0-r1::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line  115:  Called src_configure
 *             environment, line 1007:  Called econf '--disable-aldor' '--with-lisp=sbcl' '--without-x' '--without-gmp'
 *        phase-helpers.sh, line  665:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *              die "$@"
 *
Comment 9 Andrey Grozin gentoo-dev 2017-01-22 20:15:28 UTC
fricas-1.3.0 is incompatible with sbcl-1.3.13 (the upstream knows this; the next version of fricas, to be released soon, will be compatible with it). So, downgrading sbcl to 1.3.12 is necessary for compiling fricas.

Your listing shows that, after downgrading sbcl, sbcl simply does not start. It fails while executing its init file, namely, trying to load asdf. Indeed, /usr/share/common-lisp/source/asdf/asdf.lisp does not exist; the correct path is /usr/share/common-lisp/source/asdf/build/asdf.lisp (this file is installed by dev-lisp/asdf).

When starting, sbcl reads /etc/sbclrc; on my system it is

;;; The following is required if you want source location functions to
;;; work in SLIME, for example.

(setf (logical-pathname-translations "SYS")
      '(("SYS:SRC;**;*.*.*" #p"/usr/lib64/sbcl/src/**/*.*")
        ("SYS:CONTRIB;**;*.*.*" #p"/usr/lib64/sbcl/**/*.*")))

;;; Setup ASDF2
(load "/etc/common-lisp/gentoo-init.lisp")

The interesting part here is loading /etc/common-lisp/gentoo-init.lisp (this file is also installed by dev-lisp/asdf). On my system it is

(in-package #:cl-user)

#-(or cmu ccl ecl sbcl)
(let ((*compile-print* nil)
      (*compile-verbose* nil)
      #+cmu (ext:*gc-verbose* nil))
  (handler-bind ((warning #'muffle-warning))
    (load #p"/usr/share/common-lisp/source/asdf/build/asdf.lisp"
          :print nil :verbose nil)))

#+(or cmu ccl ecl sbcl)
(require :asdf)

The middle part of this file is not executed by sbcl because of #-. So, it seems that (require :asdf) fails (trying to read asdf.lisp from a wrong path). Could you please make the following experiment: start

sbcl --no-sysinit

It should start normally. At the sbcl prompt, say

(require :asdf)

On my system

grozin@dns ~ $ sbcl --no-sysinit
This is SBCL 1.3.12, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
* (in-package #:cl-user)

#<PACKAGE "COMMON-LISP-USER">
* (require :asdf)

("ASDF" "asdf" "UIOP" "uiop")
*

On your system it will, probably, fail. This means that something is inconsistent in sbcl on your system. We have to understand the reason.
Comment 10 Toralf Förster gentoo-dev 2017-01-22 20:58:00 UTC
(In reply to Andrey Grozin from comment #9)
will attach the log files ...
Comment 11 Toralf Förster gentoo-dev 2017-01-22 20:58:32 UTC
Created attachment 460990 [details]
sci-mathematics:fricas-1.3.0-r1:20170122-175239.log
Comment 12 Toralf Förster gentoo-dev 2017-01-22 20:58:44 UTC
Created attachment 460992 [details]
dev-lisp:sbcl-1.3.12:20170122-174411.log
Comment 13 Toralf Förster gentoo-dev 2017-01-22 20:58:56 UTC
Created attachment 460994 [details]
dev-lisp:sbcl-1.3.13:20170122-175220.log
Comment 14 Andrey Grozin gentoo-dev 2023-10-12 06:00:25 UTC
No longer in the tree