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

racket: Cannot build, neiter 6.3 nor 6.2.1 #13733

Closed
matthiasbeyer opened this issue Mar 7, 2016 · 4 comments · Fixed by #13740
Closed

racket: Cannot build, neiter 6.3 nor 6.2.1 #13733

matthiasbeyer opened this issue Mar 7, 2016 · 4 comments · Fixed by #13740

Comments

@matthiasbeyer
Copy link
Contributor

Basic info

To make sure that we are on the same page:

  • Kernel: Linux yuu 4.3.6 Compile glibc without -fstack-protector. #1-NixOS SMP Fri Feb 19 22:35:24 UTC 2016 x86_64 GNU/Linux
  • System: 16.09pre78286.0bf8a1a (Emu)
  • Nix version: nix-env (Nix) 1.11.2
  • Nixpkgs version: 16.09pre78286.0bf8a1a

Describe your issue here

{ stdenv, pkgs ? (import <nixpkgs> {})}:
let env = with pkgs; [ racket ];
in stdenv.mkDerivation rec {
    name = "test";
    src = ./.;
    version = "0.0.0";
    buildInputs = [ env ];
}

fails. Building inside nixpkgs: nix-build -A racket fails for both unstable and unstable with 00f394e reverted (which was the update from 6.2.1 -> 6.3)

Expected result

nix-shell with racket build

Actual result

Build error:

[...]
Copying /tmp/nix-build-racket-6.3.drv-0/racket-6.3/collects/racket/runtime-config.rkt to /tmp/nix-build-racket-6.3.drv-0/racket-6.3/src/build/racket/gc2/xform-collects/racket/runtime-config.rkt
Compiling xform support...
Done making xform-collects.
make[4]: Leaving directory '/tmp/nix-build-racket-6.3.drv-0/racket-6.3/src/build/racket/gc2'
make xobjects
make[4]: Entering directory '/tmp/nix-build-racket-6.3.drv-0/racket-6.3/src/build/racket/gc2'
env XFORM_USE_PRECOMP=xsrc/precomp.h ../racketcgc  -cqu ../../../racket/gc2/xform.rkt --setup . --depends --cpp "gcc -E -I./.. -I../../../racket/gc2/../include -pthread   -DUSE_SENORA_GC   -DMZ_USES_SHARED_LIB "  --keep-lines -o xsrc/salloc.c ../../../racket/gc2/../src/salloc.c
/nix/store/a7cagjah2n6c2d9y83lms5jj6nzavnhr-libtool-2.4.6/bin/libtool --mode=compile --tag=CC gcc -g -O2  -Wall   -I./.. -I../../../racket/gc2/../include -pthread   -DUSE_SENORA_GC   -DMZ_USES_SHARED_LIB  -c xsrc/salloc.c -o salloc.lo
libtool: compile:  gcc -g -O2 -Wall -I./.. -I../../../racket/gc2/../include -pthread -DUSE_SENORA_GC -DMZ_USES_SHARED_LIB -c xsrc/salloc.c  -fPIC -DPIC -o .libs/salloc.o
env XFORM_USE_PRECOMP=xsrc/precomp.h ../racketcgc  -cqu ../../../racket/gc2/xform.rkt --setup . --depends --cpp "gcc -E -I./.. -I../../../racket/gc2/../include -pthread   -DUSE_SENORA_GC   -DMZ_USES_SHARED_LIB "  --keep-lines -o xsrc/bignum.c ../../../racket/gc2/../src/bignum.c
/nix/store/a7cagjah2n6c2d9y83lms5jj6nzavnhr-libtool-2.4.6/bin/libtool --mode=compile --tag=CC gcc -g -O2  -Wall   -I./.. -I../../../racket/gc2/../include -pthread   -DUSE_SENORA_GC   -DMZ_USES_SHARED_LIB  -c xsrc/bignum.c -o bignum.lo
libtool: compile:  gcc -g -O2 -Wall -I./.. -I../../../racket/gc2/../include -pthread -DUSE_SENORA_GC -DMZ_USES_SHARED_LIB -c xsrc/bignum.c  -fPIC -DPIC -o .libs/bignum.o
env XFORM_USE_PRECOMP=xsrc/precomp.h ../racketcgc  -cqu ../../../racket/gc2/xform.rkt --setup . --depends --cpp "gcc -E -I./.. -I../../../racket/gc2/../include -pthread   -DUSE_SENORA_GC   -DMZ_USES_SHARED_LIB "  --keep-lines -o xsrc/bool.c ../../../racket/gc2/../src/bool.c
Error [GCING] 212 in ../../../racket/gc2/../src/bool.c: Function mz_long_double_eqv declared __xform_nongcing__, but includes a function call.
Error [GCING] 248 in ../../../racket/gc2/../src/bool.c: Function double_eqv declared __xform_nongcing__, but includes a function call.
xform: Errors converting
  context...:
   /tmp/nix-build-racket-6.3.drv-0/racket-6.3/src/build/racket/gc2/xform-collects/compiler/private/x...:8:2: xform
   /tmp/nix-build-racket-6.3.drv-0/racket-6.3/src/build/racket/gc2/xform-collects/xform/xform-mod.rkt: [running body]
Makefile:208: recipe for target 'xsrc/bool.c' failed
make[4]: *** [xsrc/bool.c] Error 1
make[4]: Leaving directory '/tmp/nix-build-racket-6.3.drv-0/racket-6.3/src/build/racket/gc2'
Makefile:172: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/tmp/nix-build-racket-6.3.drv-0/racket-6.3/src/build/racket/gc2'
Makefile:101: recipe for target '3m' failed
make[2]: *** [3m] Error 2
make[2]: Leaving directory '/tmp/nix-build-racket-6.3.drv-0/racket-6.3/src/build/racket'
Makefile:57: recipe for target '3m' failed
make[1]: *** [3m] Error 2
make[1]: Leaving directory '/tmp/nix-build-racket-6.3.drv-0/racket-6.3/src/build'
Makefile:51: recipe for target 'all' failed
make: *** [all] Error 2
builder for ‘/nix/store/x3ns7yr3kn88dbxa6kafqxr0v6imdsdd-racket-6.3.drv’ failed with exit code 2
error: build of ‘/nix/store/x3ns7yr3kn88dbxa6kafqxr0v6imdsdd-racket-6.3.drv’ failed
/run/current-system/sw/bin/nix-shell: failed to build all dependencies

Steps to reproduce

Load the upper environment definition.

@joachifm
Copy link
Contributor

joachifm commented Mar 7, 2016

cc maintainer @henrytill

@henrytill
Copy link
Member

Appears to be to this:
racket/racket#1222

PR with fix incoming...

henrytill added a commit to henrytill/nixpkgs that referenced this issue Mar 7, 2016
fpletz pushed a commit to mayflower/nixpkgs that referenced this issue Mar 7, 2016
vcunat pushed a commit that referenced this issue Mar 7, 2016
racket/racket#1222

closes #13733

(cherry picked from commit cf71bc9)
@matthiasbeyer
Copy link
Contributor Author

Awesome. Hopefully this will be in unstable soon.

Why did everyone this apply to their nixpkgs repositories? 😄

@vcunat
Copy link
Member

vcunat commented Mar 8, 2016

I just picked it to 16.03 as it was broken there as well. I assume the other guys use workflow that involves rebasing.

@gebner gebner mentioned this issue Nov 11, 2017
8 tasks
adrianpk added a commit to adrianpk/nixpkgs that referenced this issue May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants