Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clisp doesn't build on Darwin #20062

Closed
nycnewman opened this issue Nov 1, 2016 · 18 comments
Closed

clisp doesn't build on Darwin #20062

nycnewman opened this issue Nov 1, 2016 · 18 comments
Labels
6.topic: darwin Running or building packages on Darwin

Comments

@nycnewman
Copy link

Issue description

Attempting to install texlive.combined.scheme-full on macOS Sierra fails during clisp compilation step with following message:

Welcome to GNU CLISP 2.49 (2010-07-07) http://clisp.cons.org/

.... lots of messages about loading file xxx.lisp

;; Loading file /private/var/folders/t7/p76q77kx7m55wtpsswwmb8sw0000gn/T/nix-build-clisp-2.49.drv-0/clisp-2.49/builddir/config.lisp ...
;; Loaded file /private/var/folders/t7/p76q77kx7m55wtpsswwmb8sw0000gn/T/nix-build-clisp-2.49.drv-0/clisp-2.49/builddir/config.lisp
Bytes permanently allocated: 182,360
Bytes currently in use: 10,030,400
Bytes available until next GC: 2,507,600
Bye.
mv lispimag.mem interpreted.mem
./lisp.run -B . -N locale -E UTF-8 -Epathname 1:1 -Emisc 1:1 -norc -m 2MW -M interpreted.mem -q -c ../src/compiler.lisp -o ./
;; Compiling file /private/var/folders/t7/p76q77kx7m55wtpsswwmb8sw0000gn/T/nix-build-clisp-2.49.drv-0/clisp-2.49/src/compiler.lisp ...
;; Wrote file /private/var/folders/t7/p76q77kx7m55wtpsswwmb8sw0000gn/T/nix-build-clisp-2.49.drv-0/clisp-2.49/builddir/compiler.fas
0 errors, 0 warnings
*** - handle_fault error2 ! address = 0x106c25ff8 not in [0x200000000,0x200296800) !
SIGSEGV cannot be cured. Fault address = 0x106c25ff8.
GC count: 62
Space collected by GC: 154829416
Run time: 84 163342
Real time: 85 271810
GC time: 0 396006
Permanently allocated: 182360 bytes.
Currently in use: 12672456 bytes.
Free space: 504432 bytes.

*** - handle_fault error2 ! address = 0x10499bf75 not in [0x200000000,0x200296800) !
SIGSEGV cannot be cured. Fault address = 0x10499bf75.
GC count: 62
Space collected by GC: 154829416
Run time: 84 163422
Real time: 85 271892
GC time: 0 396006
Permanently allocated: 182360 bytes.
Currently in use: 12672456 bytes.
Free space: 504432 bytes.
make: *** [Makefile:1817: compiler.fas] Segmentation fault: 11
make: *** Deleting file 'compiler.fas'
builder for ‘/nix/store/qshf5fqyb0wird2bc80m5nivj32277cx-clisp-2.49.drv’ failed with exit code 2
building path(s) ‘/nix/store/kkq647kjq0j4212ayrdglz442ivbv2q0-clrscode-1.7’
cannot build derivation ‘/nix/store/my981psq7c22djikz1s6rl52pqbg7vx0-texlive-xindy.bin-2016.drv’: 1 dependencies couldn't be built
killing process 90918
cannot build derivation ‘/nix/store/9mg8hacnshqqd0hpfpnygac0paflnagm-texlive-combined-full-2016.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/9mg8hacnshqqd0hpfpnygac0paflnagm-texlive-combined-full-2016.drv’ failed

Steps to reproduce

Try to install texlive full package on macOS Sierra, i.e.

nix-env -f '' -iA texlive.combined.scheme-full

Technical details

  • System: (NixOS: nixos-version, Ubuntu/Fedora: lsb_release -a, ...)
    macOS Sierra 10.12.1 on macBook Pro 16Gb

  • Nix version: (run nix-env --version)
    nix-env (Nix) 1.11.4

  • Nixpkgs version: (run nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)
    "17.03pre94812.3c6e0f1"

@vcunat vcunat added the 6.topic: darwin Running or building packages on Darwin label Nov 1, 2016
@vcunat vcunat mentioned this issue Nov 1, 2016
7 tasks
@cresh
Copy link
Contributor

cresh commented Nov 2, 2016

I see the same failure:

mv lispimag.mem interpreted.mem
./lisp.run -B . -N locale -E UTF-8 -Epathname 1:1 -Emisc 1:1 -norc -m 2MW -M interpreted.mem -q -c ../src/compiler.lisp -o ./
;; Compiling file /private/tmp/nix-build-clisp-2.49.drv-0/clisp-2.49/src/compiler.lisp ...
;; Wrote file /private/tmp/nix-build-clisp-2.49.drv-0/clisp-2.49/builddir/compiler.fas
0 errors, 0 warnings
*** - handle_fault error2 ! address = 0x10762aff8 not in [0x200000000,0x200292380) !
SIGSEGV cannot be cured. Fault address = 0x10762aff8.
GC count: 62
Space collected by GC: 154558888
Run time: 78 378664
Real time: 79 597395
GC time: 0 430694
Permanently allocated: 182360 bytes.
Currently in use: 12911216 bytes.
Free space: 155888 bytes.

*** - handle_fault error2 ! address = 0x105397f75 not in [0x200000000,0x200292380) !
SIGSEGV cannot be cured. Fault address = 0x105397f75.
GC count: 62
Space collected by GC: 154558888
Run time: 78 378729
Real time: 79 597461
GC time: 0 430694
Permanently allocated: 182360 bytes.
Currently in use: 12911216 bytes.
Free space: 155888 bytes.
make: *** [Makefile:1817: compiler.fas] Segmentation fault: 11 (core dumped)
make: *** Deleting file 'compiler.fas'
builder for ‘/nix/store/qshf5fqyb0wird2bc80m5nivj32277cx-clisp-2.49.drv’ failed with exit code 2
building path(s) ‘/nix/store/39lpwwcrmwwjhnf98aq1pibyhyaarfmg-clock-2016’
cannot build derivation ‘/nix/store/my981psq7c22djikz1s6rl52pqbg7vx0-texlive-xindy.bin-2016.drv’: 1 dependencies couldn't be built
killing process 95909
cannot build derivation ‘/nix/store/9mg8hacnshqqd0hpfpnygac0paflnagm-texlive-combined-full-2016.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/6v4wkxv8i8q8ycxk0dgb00sqfq8hxr3b-all.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/6v4wkxv8i8q8ycxk0dgb00sqfq8hxr3b-all.drv’ failed

@vcunat
Copy link
Member

vcunat commented Nov 7, 2016

For now I disabled the xindy binary on Darwin, so any texlive installations should avoid this problem.

@nycnewman
Copy link
Author

Thank you! How log do commits generally take to get into latest nixpkgs channel? Is there a way to trace your commit through to the channel? (apologies for the dumb questions....)

@vcunat
Copy link
Member

vcunat commented Nov 7, 2016

It won't get into a channel yet; see http://howoldis.herokuapp.com/

You can checkout a nixpkgs tree and nix-env -f /path/to/nixpkgs ...

@vcunat vcunat changed the title texlive / clisp segfault clisp doesn't build on Darwin Nov 26, 2016
@vcunat
Copy link
Member

vcunat commented Nov 26, 2016

Maintainers: @7c6f434c @tohl – if you have no idea what to do about it, I suggest to switch clisp.meta.platform = platforms.linux;.

@ghost
Copy link

ghost commented Nov 29, 2016 via email

@ghost
Copy link

ghost commented Nov 29, 2016 via email

@ghost
Copy link

ghost commented Nov 30, 2016

@mikesperber ping

@mikesperber
Copy link
Contributor

Before the change referenced above, CLisp refused to build because some of the dependencies and configuration options were Linux-only. After that, it did.

I'll take a look at this, but it won't be until Saturday.

@vcunat
Copy link
Member

vcunat commented Nov 30, 2016

Actually, is it possible that there was a problem with the build slave rather than the clisp package?

Apart from Hydra, two people above reported it won't build. It might be an elusive problem that doesn't happen for everyone, but Hydra can reproduce the failure pretty reliably: https://hydra.nixos.org/job/nixpkgs/trunk/clisp.x86_64-darwin/all

vcunat added a commit that referenced this issue Dec 4, 2016
@mikesperber
Copy link
Contributor

So I can now reproduce this to the point where it dumps core. This is a longstanding problem that occurs not just on the Mac, and that is fixed in current development builds. Since the release 2.49 in Nix is the latest available and is from 2010, would it be acceptable to change the package to build a current development version? I'd gladly provide that.

@7c6f434c
Copy link
Member

I would say that adding a development version should be a definitely good idea, but the latest release should probably be an available option for those who want it.

@Profpatsch
Copy link
Member

(triage) has this been fixed?

@mikesperber
Copy link
Contributor

No, but it's probably not worth fixing, given that the original problem has been worked around.

@7c6f434c
Copy link
Member

Technically speaking clisp-tip is still marked Linux-only. Should I try to abuse ofborg to verify if this is no longer needed?

@Profpatsch
Copy link
Member

@7c6f434c awesome, go ahead.

@7c6f434c
Copy link
Member

#42611

@Profpatsch
Copy link
Member

Okay, clisp still doesn’t build on Darwin (see link) and is marked as such.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

No branches or pull requests

6 participants