Skip to content

Racket fails to build if coreutils are not in /bin #3707

@ralsei

Description

@ralsei

What version of Racket are you using?
8.0.0.10 [cs] (git)

What program did you run?
When building Racket (with just make) on a system without cp in /bin (or a number of coreutils), the build fails.

What should have happened?
Racket probably should have compiled.

If you got an error message, please include it here.

make[9]: Entering directory '/home/hazel/tmp/racket/racket/src/build/cs/c'
cd ChezScheme && "../../../../cs/c/../../ChezScheme"/configure --pb --machine=ta6le --disable-x11 --disable-curses --disable-auto-flags  CC="clang" CFLAGS="-g -O2  -DELF_FIND_BOOT_SECTION  -pthread" LDFLAGS="-pthread" LIBS="-ldl -lm  -lrt" AR="ar" ARFLAGS="rc" RANLIB=":" WINDRES="windres"
Configuring for pb
../../../../cs/c/../../ChezScheme/workarea: line 281: /bin/cp: No such file or directory
../../../../cs/c/../../ChezScheme/workarea: line 287: /bin/cp: No such file or directory
make[9]: Leaving directory '/home/hazel/tmp/racket/racket/src/build/cs/c'
cd ChezScheme && make reset
make[9]: Entering directory '/home/hazel/tmp/racket/racket/src/build/cs/c/ChezScheme'
(cd pb && make reset)
(cd s && make reset)
make[11]: *** No rule to make target 'reset'.  Stop.
make[10]: *** [Makefile:50: reset] Error 2

Please include any other relevant details
NixOS solves this issue by patching various files to update the hardcoded paths: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/racket/default.nix#L74

BC had a similar issue, but only with uname: https://github.com/NixOS/nixpkgs/blob/nixos-20.09/pkgs/development/interpreters/racket/default.nix#L73

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctlybuildBuild failures, Makefiles, Zuo scripts, autoconf, building instructions, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions