Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 2 when building #2

Open
borgchrist1 opened this issue Oct 5, 2021 · 2 comments
Open

Error 2 when building #2

borgchrist1 opened this issue Oct 5, 2021 · 2 comments

Comments

@borgchrist1
Copy link

I get this error when trying to build.

make[3]: Leaving directory '/buildd/sources/out/KERNEL_OBJ'
make[2]: *** [Makefile:152: sub-make] Error 2
make[2]: Leaving directory '/buildd/sources'
make[1]: *** [/usr/share/linux-packaging-snippets/kernel-snippet.mk:67: out/kernel-stamp] Error 2
make[1]: Leaving directory '/buildd/sources'
make: *** [debian/rules:6: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -d -us -uc -ui -sa --jobs=4 --build=any --build=any -aarm64 failed

Cant figure out what the problem is.

@istadem2077
Copy link

the error should be a little upper.
I get this error when build with LLVM(clang)
error: unknown target ABI 'aapcs-linux' error: unknown target ABI 'aapcs-linux' make[4]: *** [/buildd/sources/arch/arm64/kernel/vdso32/Makefile:144: arch/arm64/kernel/vdso32/sigreturn.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: *** [/buildd/sources/arch/arm64/kernel/vdso32/Makefile:142: arch/arm64/kernel/vdso32/vgettimeofday.o] Error 1 make[3]: *** [arch/arm64/Makefile:212: vdso_prepare] Error 2 make[3]: Leaving directory '/buildd/sources/out/KERNEL_OBJ' make[2]: *** [Makefile:152: sub-make] Error 2 make[2]: Leaving directory '/buildd/sources' make[1]: *** [/usr/share/linux-packaging-snippets/kernel-snippet.mk:67: out/kernel-stamp] Error 2 make[1]: Leaving directory '/buildd/sources' make: *** [debian/rules:6: build-arch] Error 2 dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2 debuild: fatal error at line 1182: dpkg-buildpackage -d -us -uc -ui -sa --jobs=4 --build=any --build=any -aarm64 failed

And this error when building with GCC(btw you have to disable CONFIG_CC_STACKPROTECTOR=y and CONFIG_CC_STACKPROTECTOR_STRONG=y, because compiler too old):
CC scripts/mod/empty.o gcc: error: unrecognized command-line option '-mlittle-endian' make[5]: *** [/buildd/sources/scripts/Makefile.build:340: scripts/mod/empty.o] Error 1 make[4]: *** [/buildd/sources/scripts/Makefile.build:653: scripts/mod] Error 2 make[4]: *** Waiting for unfinished jobs.... HOSTCC scripts/dtc/flattree.o

Seems that the problem is too old compilers.

@Saikatsaha1996
Copy link

the error should be a little upper. I get this error when build with LLVM(clang) error: unknown target ABI 'aapcs-linux' error: unknown target ABI 'aapcs-linux' make[4]: *** [/buildd/sources/arch/arm64/kernel/vdso32/Makefile:144: arch/arm64/kernel/vdso32/sigreturn.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: *** [/buildd/sources/arch/arm64/kernel/vdso32/Makefile:142: arch/arm64/kernel/vdso32/vgettimeofday.o] Error 1 make[3]: *** [arch/arm64/Makefile:212: vdso_prepare] Error 2 make[3]: Leaving directory '/buildd/sources/out/KERNEL_OBJ' make[2]: *** [Makefile:152: sub-make] Error 2 make[2]: Leaving directory '/buildd/sources' make[1]: *** [/usr/share/linux-packaging-snippets/kernel-snippet.mk:67: out/kernel-stamp] Error 2 make[1]: Leaving directory '/buildd/sources' make: *** [debian/rules:6: build-arch] Error 2 dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2 debuild: fatal error at line 1182: dpkg-buildpackage -d -us -uc -ui -sa --jobs=4 --build=any --build=any -aarm64 failed

And this error when building with GCC(btw you have to disable CONFIG_CC_STACKPROTECTOR=y and CONFIG_CC_STACKPROTECTOR_STRONG=y, because compiler too old): CC scripts/mod/empty.o gcc: error: unrecognized command-line option '-mlittle-endian' make[5]: *** [/buildd/sources/scripts/Makefile.build:340: scripts/mod/empty.o] Error 1 make[4]: *** [/buildd/sources/scripts/Makefile.build:653: scripts/mod] Error 2 make[4]: *** Waiting for unfinished jobs.... HOSTCC scripts/dtc/flattree.o

Seems that the problem is too old compilers.

You can solve this error useing patch
https://patchwork.kernel.org/project/linux-kselftest/patch/[email protected]/

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

No branches or pull requests

3 participants