Skip to content

C/C++ runner fails: cannot open output file .../use/tmp/_acs_run (should be usr/tmp) #182

Description

@Dankgowndove

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

  1. Open or create a .c or .cpp file.
  2. Click the Run button.
  3. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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