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

build/linux-4.14.62/scripts/gcc-version.sh points to wrong musl gcc binary #619

Closed
sellerie98 opened this issue Nov 1, 2019 · 4 comments

Comments

@sellerie98
Copy link

sellerie98 commented Nov 1, 2019

The file build/linux-4.14.62/scripts/gcc-version.sh points to the wrong gcc binary:
I cant find the file where the wrong binary is referenced though.

make[1]: Entering directory '/media/Storage/git/heads/build/linux-4.14.62/linux-x230'
../scripts/gcc-version.sh: line 26: /media/Storage/git/heads/build/../crossgcc/x86_64-linux-musl/bin/x86_64-musl-linux-gcc: No such file or directory
../scripts/gcc-version.sh: line 27: /media/Storage/git/heads/build/../crossgcc/x86_64-linux-musl/bin/x86_64-musl-linux-gcc: No such file or directory
../scripts/gcc-version.sh: line 29: /media/Storage/git/heads/build/../crossgcc/x86_64-linux-musl/bin/x86_64-musl-linux-gcc: No such file or directory
../scripts/gcc-version.sh: line 26: /media/Storage/git/heads/build/../crossgcc/x86_64-linux-musl/bin/x86_64-musl-linux-gcc: No such file or directory
../scripts/gcc-version.sh: line 27: /media/Storage/git/heads/build/../crossgcc/x86_64-linux-musl/bin/x86_64-musl-linux-gcc: No such file or directory
make[3]: /media/Storage/git/heads/build/../crossgcc/x86_64-linux-musl/bin/x86_64-musl-linux-gcc: Command not found
make[3]: /media/Storage/git/heads/build/../crossgcc/x86_64-linux-musl/bin/x86_64-musl-linux-gcc: Command not found
make[3]: /media/Storage/git/heads/build/../crossgcc/x86_64-linux-musl/bin/x86_64-musl-linux-gcc: Command not found
make[3]: /media/Storage/git/heads/build/../crossgcc/x86_64-linux-musl/bin/x86_64-musl-linux-gcc: Command not found
make[3]: /media/Storage/git/heads/build/../crossgcc/x86_64-linux-musl/bin/x86_64-musl-linux-gcc: Command not found
  CHK     include/config/kernel.release
make[3]: /media/Storage/git/heads/build/../crossgcc/x86_64-linux-musl/bin/x86_64-musl-linux-gcc: Command not found
  Using .. as source for kernel
make[3]: /media/Storage/git/heads/build/../crossgcc/x86_64-linux-musl/bin/x86_64-musl-linux-gcc: Command not found
Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
make[3]: *** [/media/Storage/git/heads/build/linux-4.14.62/Makefile:1110: prepare-compiler-check] Error 1
make[2]: *** [Makefile:146: sub-make] Error 2
make[1]: *** [Makefile:24: __sub-make] Error 2
make[1]: Leaving directory '/media/Storage/git/heads/build/linux-4.14.62/linux-x230'
make: *** [Makefile:378: /media/Storage/git/heads/build/linux-4.14.62/linux-x230/.build] Error 1

Edit:
Found the script that seeminly dynamically assembles the path to the binary, but apparently incorrectly: build/linux-4.14.62/scripts/gcc-version.sh
As I dont understand what is going on in this script I cant fix it.

@sellerie98 sellerie98 changed the title Makefile points to wrong musl gcc binary build/linux-4.14.62/scripts/gcc-version.sh points to wrong musl gcc binary Nov 1, 2019
@tlaurion
Copy link
Collaborator

tlaurion commented Nov 1, 2019

@osresearch

@osresearch
Copy link
Collaborator

It's fixed in e5038e6

That could be cherry picked and applied to master

@tlaurion
Copy link
Collaborator

tlaurion commented Dec 6, 2019

@sellerie98 should be fixed with latest commit 8af849c

Please confirm and close ticket

@tlaurion
Copy link
Collaborator

tlaurion commented Mar 9, 2020

@sellerie98 please reopen if still problematic

@tlaurion tlaurion closed this as completed Mar 9, 2020
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