Skip to content

installing under Termux fails: permission denied when creating hardlinks #1041

Description

@mbakhterev

I am building Chez under Termux on the phone. It is doable, but has two issues. Second one is that creation of hard links is prohibited.

The log of actions:

$ ./configure --prefix=$HOME/.local --disable-x11 CC=clang CFLAGS='-flto -O3' LIBS+='-liconv'
...
$ make
...
$ make install
bin/zuo tarm64le install MAKE="make" DESTDIR=""
makefiles/installsh -o "" -g "" -d -m 755 /data/data/com.termux/files/home/.local/lib/csv10.4.0-pre-release.4
makefiles/installsh -o "" -g "" -d -m 755 /data/data/com.termux/files/home/.local/lib/csv10.4.0-pre-release.4/tarm64le
makefiles/installsh -o "" -g "" -d -m 755 /data/data/com.termux/files/home/.local/lib/csv10.4.0-pre-release.4/examples
makefiles/installsh -o "" -g "" -d -m 755 /data/data/com.termux/files/home/.local/bin
makefiles/installsh -o "" -g "" -d -m 755 /data/data/com.termux/files/home/.local/share/man/man1
rm -f /data/data/com.termux/files/home/.local/bin/scheme
rm -f /data/data/com.termux/files/home/.local/bin/petite
rm -f /data/data/com.termux/files/home/.local/bin/scheme-script
makefiles/installsh -o "" -g "" -m 555 tarm64le/bin/tarm64le/scheme /data/data/com.termux/files/home/.local/lib/csv10.4.0-pre-release.4/tarm64le/scheme
ln -f /data/data/com.termux/files/home/.local/lib/csv10.4.0-pre-release.4/tarm64le/scheme /data/data/com.termux/files/home/.local/lib/csv10.4.0-pre-release.4/tarm64le/petite
ln: failed to create hard link '/data/data/com.termux/files/home/.local/lib/csv10.4.0-pre-release.4/tarm64le/petite' => '/data/data/com.termux/files/home/.local/lib/csv10.4.0-pre-release.4/tarm64le/scheme': Permission denied
shell command failed
 in install {3}
 in build-one
 in loop
 in module->hash
make: *** [Makefile:20: install] Error 1

When i change the line:

(if haiku?

to (if #t, everything works

$ make install
...
$ export PATH=$PATH:$HOME/.local/bin 
$ scheme
Chez Scheme Version 10.4.0-pre-release.4
Copyright 1984-2025 Cisco Systems, Inc.

> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions