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: 6.10.1 -> 6.11 #31017

Merged
merged 1 commit into from Oct 31, 2017
Merged

racket: 6.10.1 -> 6.11 #31017

merged 1 commit into from Oct 31, 2017

Conversation

oxzi
Copy link
Member

@oxzi oxzi commented Oct 31, 2017

Motivation for this change

Updates the racket-package to the latest version.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@disassembler
Copy link
Member

Builds, runs, no dependencies. Merging! Thanks for the update.

@disassembler disassembler merged commit d7bbfa9 into NixOS:master Oct 31, 2017
@oxzi oxzi deleted the racket-6.11 branch October 31, 2017 14:44
@bendlas
Copy link
Contributor

bendlas commented Nov 10, 2017

Racket build is failing for me. Any ideas?
@disassembler

libtool: compile:  gcc -g -O2 -Wall -I./.. -I../../../racket/gc2/../include -I../../../racket/gc2/../../rktio -I../../rktio -pthread -DUSE_SENORA_GC -DMZ_USES_SHARED_LIB -c xsrc/numarith.c  -fPIC -DPIC -o .libs/numarith.o
env XFORM_USE_PRECOMP=xsrc/precomp.h ../racketcgc  -cqu ../../../racket/gc2/xform.rkt --setup . --depends --cpp "gcc -E -I./.. -I../../../racket/gc2/../include -I../../../racket/gc2/../../rktio -I../../rktio -pthread   -DUSE_SENORA_GC   -DMZ_USES_SHARED_LIB "  --keep-lines -o xsrc/number.c ../../../racket/gc2/../src/number.c
Error [GCING] 1958 in ../../../racket/gc2/../src/number.c: Function double_is_integer declared __xform_nongcing__, but includes a function call at __isinff128.
Error [GCING] 4050 in ../../../racket/gc2/../src/number.c: Function double_fits_fixnum declared __xform_nongcing__, but includes a function call at __isinff128.
xform: Errors converting
  context...:
   /tmp/nix-build-racket-6.11.drv-0/racket-6.11/src/build/racket/gc2/xform-collects/compiler/private...:8:2: xform
   /tmp/nix-build-racket-6.11.drv-0/racket-6.11/src/build/racket/gc2/xform-collects/xform/xform-mod.rkt: [running body]
   /tmp/nix-build-racket-6.11.drv-0/racket-6.11/src/racket/gc2/xform.rkt: [running body]
make[4]: *** [Makefile:268: xsrc/number.c] Error 1
make[4]: Leaving directory '/tmp/nix-build-racket-6.11.drv-0/racket-6.11/src/build/racket/gc2'
make[3]: *** [Makefile:176: all] Error 2
make[3]: Leaving directory '/tmp/nix-build-racket-6.11.drv-0/racket-6.11/src/build/racket/gc2'
make[2]: *** [Makefile:104: 3m] Error 2
make[2]: Leaving directory '/tmp/nix-build-racket-6.11.drv-0/racket-6.11/src/build/racket'
make[1]: *** [Makefile:58: 3m] Error 2
make[1]: Leaving directory '/tmp/nix-build-racket-6.11.drv-0/racket-6.11/src/build'
make: *** [Makefile:51: all] Error 2
builder for ‘/nix/store/jg5qlq1rr8rds0821yzw7w5bi7xn69a6-racket-6.11.drv’ failed with exit code 2

@oxzi oxzi restored the racket-6.11 branch November 11, 2017 10:35
@oxzi
Copy link
Member Author

oxzi commented Nov 11, 2017

This is interesting.
The build also fails for me on the current master-branch. However, switching back to my racket-6.11-branch, which is one commit ahead of 25515ce, works fine. There must be a change in one of the depending packages.
Funfact: Compiling the old nix expression for 6.10.1 on the current master-branch fails with the exact same error. So someone has pushed something with breaks racket without nox-reviewing it first.

The issue has some similarities with racket/racket#1638.

@gebner
Copy link
Member

gebner commented Nov 11, 2017

We've already had a similar issue before, see #13733 and upstream racket/racket#1222.

@gebner
Copy link
Member

gebner commented Nov 11, 2017

I managed to build the git version of racket by patching xform.rkt:

diff --git a/racket/collects/compiler/private/xform.rkt b/racket/collects/compiler/private/xform.rkt
index f2c0f53360..ca77b74d9a 100644
--- a/racket/collects/compiler/private/xform.rkt
+++ b/racket/collects/compiler/private/xform.rkt
@@ -905,6 +905,7 @@
                strlen cos cosl sin sinl exp expl pow powl log logl sqrt sqrtl atan2 atan2l frexp
                isnan isinf fpclass signbit _signbit _fpclass __fpclassify __fpclassifyf __fpclassifyl
               _isnan __isfinited __isnanl __isnan __signbit __signbitf __signbitd __signbitl
+               __isinff128
                __isinff __isinfl isnanf isinff __isinfd __isnanf __isnand __isinf
                __inline_isnanl __inline_isnan __inline_signbit __inline_signbitf __inline_signbitd __inline_signbitl
                __builtin_popcount __builtin_clz __builtin_isnan __builtin_isinf __builtin_signbit

@gebner
Copy link
Member

gebner commented Nov 12, 2017

So for now I've fixed the build by switching to gcc7.

gebner added a commit that referenced this pull request Nov 12, 2017
matthewbauer pushed a commit to matthewbauer/nixpkgs that referenced this pull request Nov 14, 2017
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 this pull request may close these issues.

None yet

4 participants