lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 23 Dec 2020 19:36:06 +0100
From:   Borislav Petkov <>
To:     kernel test robot <>
Cc:     Geert Uytterhoeven <>,,,,,
        Ard Biesheuvel <>
Subject: Re: [tip:efi/core 3/7] /tmp/slab-258052.s:9870: Error: unrecognized
 opcode `zext.b a2,a2'

On Fri, Dec 18, 2020 at 09:03:14AM +0800, kernel test robot wrote:
> tree: efi/core
> head:   b283477d394ac41ca59ee20eb9293ae9002eb1d7
> commit: 6edcf9dc2e1aff3aa1f5a69ee420fb30dd0e968a [3/7] efi/libstub: EFI_GENERIC_STUB_INITRD_CMDLINE_LOADER should not default to yes
> config: riscv-randconfig-r022-20201217 (attached as .config)
> compiler: clang version 12.0.0 ( cee1e7d14f4628d6174b33640d502bff3b54ae45)
> reproduce (this is a W=1 build):
>         wget -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # install riscv cross compiling tool for clang build
>         # apt-get install binutils-riscv64-linux-gnu
>         #
>         git remote add tip
>         git fetch --no-tags tip efi/core
>         git checkout 6edcf9dc2e1aff3aa1f5a69ee420fb30dd0e968a
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv 

Something's still not good with that test - it fails much earlier for me:

$ COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang /tmp/make.cross ARCH=riscv
Compiler will be installed in /home/boris/0day
cd: received redirection to `'  
lftpget -c
tar Jxf clang-latest/clang.tar.xz -C /home/boris/0day                                                     
make W=1 CONFIG_OF_ALL_DTBS=y CONFIG_DTC=y HOSTCC=/home/boris/0day/clang-latest/bin/clang CC=/home/boris/0day/clang-latest/bin/clang LD=/home/boris/0day/clang-latest/bin/ld.lld HOSTLD=/home/boris/0day/clang-latest/bin/ld.lld AR=/home/boris/0day/clang-latest/bin/llvm-ar NM=/home/boris/0day/clang-latest/bin/llvm-nm STRIP=/home/boris/0day/clang-latest/bin/llvm-strip OBJDUMP=/home/boris/0day/clang-latest/bin/llvm-objdump OBJSIZE=/home/boris/0day/clang-latest/bin/llvm-size READELF=/home/boris/0day/clang-latest/bin/llvm-readelf HOSTCXX=/home/boris/0day/clang-latest/bin/clang++ HOSTAR=/home/boris/0day/clang-latest/bin/llvm-ar CROSS_COMPILE=riscv-linux-gnu- --jobs=32 ARCH=riscv
  SYNC    include/config/auto.conf.cmd

scripts/genksyms/parse.y: warning: 9 shift/reduce conflicts [-Wconflicts-sr]
scripts/genksyms/parse.y: warning: 5 reduce/reduce conflicts [-Wconflicts-rr]
  DTC     arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dtb
  DTC     arch/riscv/boot/dts/kendryte/k210.dtb
  HOSTCC  scripts/genksyms/
  HOSTCC  scripts/genksyms/lex.lex.o
  HOSTLD  scripts/genksyms/genksyms
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  CC      scripts/mod/devicetable-offsets.s
error: unknown target triple 'riscv-unknown-linux-gnu', please use -triple or -arch
make[1]: *** [scripts/ scripts/mod/devicetable-offsets.s] Error 1
make[1]: *** Waiting for unfinished jobs....
error: unknown target triple 'riscv-unknown-linux-gnu', please use -triple or -arch
make[1]: *** [scripts/ scripts/mod/empty.o] Error 1
make: *** [Makefile:1199: prepare0] Error 2


Powered by blists - more mailing lists