Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

fatal error: cannot specify '-o' with '-c', '-S' or '-E' with multiple files compilation terminated. #30

Open
alex9434 opened this issue Jan 5, 2024 · 3 comments

Comments

@alex9434
Copy link

alex9434 commented Jan 5, 2024

I get the following error message compiling openwrt-vlmcsd:

make[4]: Entering directory '/opt/build/openwrt/build_dir/target-aarch64_cortex-a72_musl/vlmcsd/vlmcsd-svn1113'
make[5]: Entering directory '/opt/build/openwrt/build_dir/target-aarch64_cortex-a72_musl/vlmcsd/vlmcsd-svn1113/src'
	CC	vlmcsd.o <- vlmcsd.c
	CC	kmsdata.o <- kmsdata.c
	CC	crypto.o <- crypto.c
	CC	kms.o <- kms.c
	CC	endian.o <- endian.c
	CC	output.o <- output.c
	CC	shared_globals.o <- shared_globals.c
	CC	helpers.o <- helpers.c
	CC	network.o <- network.c
	CC	rpc.o <- rpc.c
	CC	crypto_internal.o <- crypto_internal.c
aarch64-openwrt-linux-musl-gcc: fatal error: cannot specify '-o' with '-c', '-S' or '-E' with multiple files
compilation terminated.
make[5]: *** [GNUmakefile:513: ../build/endian.o] Error 1
make[5]: *** Waiting for unfinished jobs....
aarch64-openwrt-linux-musl-gcc: fatal error: cannot specify '-o' with '-c', '-S' or '-E' with multiple files
compilation terminated.
make[5]: *** [GNUmakefile:513: ../build/crypto.o] Error 1
aarch64-openwrt-linux-musl-gcc: fatal error: cannot specify '-o' with '-c', '-S' or '-E' with multiple files
compilation terminated.
make[5]: *** [GNUmakefile:513: ../build/kmsdata.o] Error 1
aarch64-openwrt-linux-musl-gcc: fatal error: cannot specify '-o' with '-c', '-S' or '-E' with multiple files
compilation terminated.
make[5]: *** [GNUmakefile:513: ../build/shared_globals.o] Error 1
aarch64-openwrt-linux-musl-gcc: fatal error: cannot specify '-o' with '-c', '-S' or '-E' with multiple files
compilation terminated.
make[5]: *** [GNUmakefile:513: ../build/vlmcsd.o] Error 1
aarch64-openwrt-linux-musl-gcc: fatal error: cannot specify '-o' with '-c', '-S' or '-E' with multiple files
compilation terminated.
make[5]: *** [GNUmakefile:513: ../build/kms.o] Error 1
aarch64-openwrt-linux-musl-gcc: fatal error: cannot specify '-o' with '-c', '-S' or '-E' with multiple files
compilation terminated.
aarch64-openwrt-linux-musl-gcc: fatal error: cannot specify '-o' with '-c', '-S' or '-E' with multiple files
compilation terminated.
make[5]: *** [GNUmakefile:513: ../build/helpers.o] Error 1
make[5]: *** [GNUmakefile:513: ../build/output.o] Error 1
aarch64-openwrt-linux-musl-gcc: fatal error: cannot specify '-o' with '-c', '-S' or '-E' with multiple files
compilation terminated.
make[5]: *** [GNUmakefile:513: ../build/network.o] Error 1
aarch64-openwrt-linux-musl-gcc: fatal error: cannot specify '-o' with '-c', '-S' or '-E' with multiple files
compilation terminated.
make[5]: *** [GNUmakefile:513: ../build/rpc.o] Error 1
aarch64-openwrt-linux-musl-gcc: fatal error: cannot specify '-o' with '-c', '-S' or '-E' with multiple files
compilation terminated.
make[5]: *** [GNUmakefile:513: ../build/crypto_internal.o] Error 1
make[5]: Leaving directory '/opt/build/openwrt/build_dir/target-aarch64_cortex-a72_musl/vlmcsd/vlmcsd-svn1113/src'
make[4]: *** [GNUmakefile:107: vlmcsd] Error 2
make[4]: Leaving directory '/opt/build/openwrt/build_dir/target-aarch64_cortex-a72_musl/vlmcsd/vlmcsd-svn1113'
make[3]: *** [Makefile:68: /opt/build/openwrt/build_dir/target-aarch64_cortex-a72_musl/vlmcsd/vlmcsd-svn1113/.built] Error 2

Compiler runs on x64 Debian Stable and target is BCM2711 aarch64.

@pexcn
Copy link

pexcn commented Jan 23, 2024

same error.

@pexcn
Copy link

pexcn commented Jan 24, 2024

Disable CONFIG_CCACHE should resolve it.

@alex9434
Copy link
Author

Can confirm. Disabling cccache solved it . Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants