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

[linux-6.1.y] MIPS: ./scripts/check-local-export: llvm-nm failed #2012

Open
FlyGoat opened this issue Apr 2, 2024 · 3 comments
Open

[linux-6.1.y] MIPS: ./scripts/check-local-export: llvm-nm failed #2012

FlyGoat opened this issue Apr 2, 2024 · 3 comments
Labels
[ARCH] mips This bug impacts ARCH=mips

Comments

@FlyGoat
Copy link
Member

FlyGoat commented Apr 2, 2024

Hi,

I'm trying to backport MIPS clang build support for 6.1 but run into immedate problem that

➜  linux-stable git:(b4/mips-backports-6-1) make ARCH=mips malta_defconfig LLVM=18
#
# No change to .config
#
➜  linux-stable git:(b4/mips-backports-6-1) make ARCH=mips LLVM=18                 
  SYNC    include/config/auto.conf.cmd
  HOSTCC  scripts/genksyms/genksyms.o
  YACC    scripts/genksyms/parse.tab.[ch]
  HOSTCC  scripts/genksyms/parse.tab.o
  LEX     scripts/genksyms/lex.lex.c
  HOSTCC  scripts/genksyms/lex.lex.o
  HOSTLD  scripts/genksyms/genksyms
  HOSTCC  scripts/asn1_compiler
  CC      scripts/mod/empty.o
./scripts/check-local-export: llvm-nm failed
Terminated
make[1]: *** [scripts/Makefile.build:250: scripts/mod/empty.o] Error 143
make[1]: *** Deleting file 'scripts/mod/empty.o'
make: *** [Makefile:1284: prepare0] Error 2

Does it ring a bell for you guys?

Thanks

@nickdesaulniers nickdesaulniers added the [ARCH] mips This bug impacts ARCH=mips label Apr 2, 2024
@nathanchance
Copy link
Member

Is there a typo in your command? LLVM=18 -> LLVM=-18? Not sure if that is it though since I would have expected your HOSTCC commands to fail due to clang18...

@FlyGoat
Copy link
Member Author

FlyGoat commented Apr 3, 2024

@nathanchance Ah sorry, I edited it wrong when pasting here.

@nathanchance
Copy link
Member

Just wanted to make sure it was something as simple as that :) To answer your original question, I do not recall seeing this before.

scripts/check-local-export is calling just $NM (should be llvm-nm-18) with its first argument. Are you able to run that command manually to see why it is failing? Another option may be to remove the 2>/dev/null to see if it will appear in the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[ARCH] mips This bug impacts ARCH=mips
Projects
None yet
Development

No branches or pull requests

3 participants