Description
When clicking Run on a .c or .cpp file, the linker fails with:
ld.lld: error: cannot open output file /data/data/com.acside/files/use/tmp/_acs_run: No such file or directory
g++: error: linker command failed with exit code 1
The temporary output path uses use/tmp instead of the correct usr/tmp. The directory use does not exist, so the linker cannot create the output file.
Steps to reproduce
- Open or create a
.c or .cpp file.
- Click the Run button.
- The linker fails with the error above.
Workaround
Creating a symlink from use to usr fixes the issue:
cd /data/data/com.acside/files
ln -s usr use
After that, running .c and .cpp files works normally.
Suggested Fix
- Use
usr/tmp instead of use/tmp.
- Or ensure the
use/tmp directory exists before running the compiler.
- Better: use
$PREFIX and $TMPDIR, e.g. ${TMPDIR:-$PREFIX/tmp}/_acs_run.
Environment
- Package:
com.nullij.androidcodestudio
- Version:
1.0.0-alpha.6.20260905-arm64-v8a (2007)
- Device: Xiaomi M2004J7AC
- Android: 12 (API 31)
- Termux prefix:
/data/data/com.acside/files/usr
Description
When clicking Run on a
.cor.cppfile, the linker fails with:The temporary output path uses
use/tmpinstead of the correctusr/tmp. The directoryusedoes not exist, so the linker cannot create the output file.Steps to reproduce
.cor.cppfile.Workaround
Creating a symlink from
usetousrfixes the issue:After that, running
.cand.cppfiles works normally.Suggested Fix
usr/tmpinstead ofuse/tmp.use/tmpdirectory exists before running the compiler.$PREFIXand$TMPDIR, e.g.${TMPDIR:-$PREFIX/tmp}/_acs_run.Environment
com.nullij.androidcodestudio1.0.0-alpha.6.20260905-arm64-v8a (2007)/data/data/com.acside/files/usr