Skip to content

Cross compilation fails in GCC #2394

Open
@akku1139

Description

@akku1139

I'm cross-compiling the Linux kernel using arm-none-eabi-gcc, but sccache throws up some errors and doesn't work.

linux $ export CROSS_COMPILE="sccache /bin/arm-none-eabi-"
linux $ make -j10
  SYNC    include/config/auto.conf
sccache: error: failed to execute compile
sccache: caused by: Compiler not supported: "/bin/arm-none-eabi-ld: cannot open output file a.out: Permission denied\n"
sccache /bin/arm-none-eabi-ld: unknown linker
scripts/Kconfig.include:57: Sorry, this linker is not supported.
make[3]: *** [scripts/kconfig/Makefile:85: syncconfig] Error 1
make[2]: *** [Makefile:730: syncconfig] Error 2
make[1]: *** [/home/akku/tmp/linux/Makefile:831: include/config/auto.conf] Error 2
make[1]: *** [include/config/auto.conf] Deleting file 'include/generated/rustc_cfg'
make[1]: *** [include/config/auto.conf] Deleting file 'include/generated/autoconf.h'
make: *** [Makefile:248: __sub-make] Error 2

(It seems to start with a vmlinux link because I completed the build without sccache)

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