public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [asahilinux:gpu/rust-wip 65/229] thread 'main' panicked at 'Unable to generate bindings: ()', /opt/cross/rustc-1.66.0-bindgen-0.56.0/cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.56.0/src/main.rs:54:36
@ 2023-05-28 19:07 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-28 19:07 UTC (permalink / raw)
  To: Asahi Lina; +Cc: llvm, oe-kbuild-all

Hi Asahi,

First bad commit (maybe != root cause):

tree:   https://github.com/AsahiLinux/linux gpu/rust-wip
head:   98f5852ba1f7bc80f0f575fa9175ceb19aa5c8d5
commit: 8f5537727cf10e320bc6f82a059797cd9965d60a [65/229] *RFL import: kernel::io_mem
config: x86_64-randconfig-r022-20230528 (https://download.01.org/0day-ci/archive/20230529/202305290330.F58aYgvP-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
        mkdir -p ~/bin
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/AsahiLinux/linux/commit/8f5537727cf10e320bc6f82a059797cd9965d60a
        git remote add asahilinux https://github.com/AsahiLinux/linux
        git fetch --no-tags asahilinux gpu/rust-wip
        git checkout 8f5537727cf10e320bc6f82a059797cd9965d60a
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=x86_64 prepare

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202305290330.F58aYgvP-lkp@intel.com/

All errors (new ones prefixed by >>):

   rust/helpers.c:201:9: error: implicit declaration of function 'ioremap' is invalid in C99 [-Wimplicit-function-declaration]
   rust/helpers.c:201:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'void *' [-Wint-conversion]
   rust/helpers.c:207:9: error: implicit declaration of function 'readb' is invalid in C99 [-Wimplicit-function-declaration]
   rust/helpers.c:213:9: error: implicit declaration of function 'readw' is invalid in C99 [-Wimplicit-function-declaration]
   rust/helpers.c:219:9: error: implicit declaration of function 'readl' is invalid in C99 [-Wimplicit-function-declaration]
   rust/helpers.c:226:9: error: implicit declaration of function 'readq' is invalid in C99 [-Wimplicit-function-declaration]
   rust/helpers.c:233:2: error: implicit declaration of function 'writeb' is invalid in C99 [-Wimplicit-function-declaration]
   rust/helpers.c:239:2: error: implicit declaration of function 'writew' is invalid in C99 [-Wimplicit-function-declaration]
   rust/helpers.c:245:2: error: implicit declaration of function 'writel' is invalid in C99 [-Wimplicit-function-declaration]
   rust/helpers.c:252:2: error: implicit declaration of function 'writeq' is invalid in C99 [-Wimplicit-function-declaration]
   rust/helpers.c:259:9: error: implicit declaration of function 'readb_relaxed' is invalid in C99 [-Wimplicit-function-declaration]
   rust/helpers.c:265:9: error: implicit declaration of function 'readw_relaxed' is invalid in C99 [-Wimplicit-function-declaration]
   rust/helpers.c:271:9: error: implicit declaration of function 'readl_relaxed' is invalid in C99 [-Wimplicit-function-declaration]
   rust/helpers.c:278:9: error: implicit declaration of function 'readq_relaxed' is invalid in C99 [-Wimplicit-function-declaration]
   rust/helpers.c:285:2: error: implicit declaration of function 'writeb_relaxed' is invalid in C99 [-Wimplicit-function-declaration]
   rust/helpers.c:291:2: error: implicit declaration of function 'writew_relaxed' is invalid in C99 [-Wimplicit-function-declaration]
   rust/helpers.c:297:2: error: implicit declaration of function 'writel_relaxed' is invalid in C99 [-Wimplicit-function-declaration]
   rust/helpers.c:304:2: error: implicit declaration of function 'writeq_relaxed' is invalid in C99 [-Wimplicit-function-declaration]
   rust/helpers.c:311:2: error: implicit declaration of function 'memcpy_fromio' is invalid in C99 [-Wimplicit-function-declaration]
   rust/helpers.c:201:9: error: implicit declaration of function 'ioremap' is invalid in C99 [-Wimplicit-function-declaration], err: true
   rust/helpers.c:201:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'void *' [-Wint-conversion], err: false
   rust/helpers.c:207:9: error: implicit declaration of function 'readb' is invalid in C99 [-Wimplicit-function-declaration], err: true
   rust/helpers.c:213:9: error: implicit declaration of function 'readw' is invalid in C99 [-Wimplicit-function-declaration], err: true
   rust/helpers.c:219:9: error: implicit declaration of function 'readl' is invalid in C99 [-Wimplicit-function-declaration], err: true
   rust/helpers.c:226:9: error: implicit declaration of function 'readq' is invalid in C99 [-Wimplicit-function-declaration], err: true
   rust/helpers.c:233:2: error: implicit declaration of function 'writeb' is invalid in C99 [-Wimplicit-function-declaration], err: true
   rust/helpers.c:239:2: error: implicit declaration of function 'writew' is invalid in C99 [-Wimplicit-function-declaration], err: true
   rust/helpers.c:245:2: error: implicit declaration of function 'writel' is invalid in C99 [-Wimplicit-function-declaration], err: true
   rust/helpers.c:252:2: error: implicit declaration of function 'writeq' is invalid in C99 [-Wimplicit-function-declaration], err: true
   rust/helpers.c:259:9: error: implicit declaration of function 'readb_relaxed' is invalid in C99 [-Wimplicit-function-declaration], err: true
   rust/helpers.c:265:9: error: implicit declaration of function 'readw_relaxed' is invalid in C99 [-Wimplicit-function-declaration], err: true
   rust/helpers.c:271:9: error: implicit declaration of function 'readl_relaxed' is invalid in C99 [-Wimplicit-function-declaration], err: true
   rust/helpers.c:278:9: error: implicit declaration of function 'readq_relaxed' is invalid in C99 [-Wimplicit-function-declaration], err: true
   rust/helpers.c:285:2: error: implicit declaration of function 'writeb_relaxed' is invalid in C99 [-Wimplicit-function-declaration], err: true
   rust/helpers.c:291:2: error: implicit declaration of function 'writew_relaxed' is invalid in C99 [-Wimplicit-function-declaration], err: true
   rust/helpers.c:297:2: error: implicit declaration of function 'writel_relaxed' is invalid in C99 [-Wimplicit-function-declaration], err: true
   rust/helpers.c:304:2: error: implicit declaration of function 'writeq_relaxed' is invalid in C99 [-Wimplicit-function-declaration], err: true
   rust/helpers.c:311:2: error: implicit declaration of function 'memcpy_fromio' is invalid in C99 [-Wimplicit-function-declaration], err: true
>> thread 'main' panicked at 'Unable to generate bindings: ()', /opt/cross/rustc-1.66.0-bindgen-0.56.0/cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.56.0/src/main.rs:54:36
   stack backtrace:
      0: rust_begin_unwind
                at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/panicking.rs:575:5
      1: core::panicking::panic_fmt
                at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/core/src/panicking.rs:65:14
      2: core::result::unwrap_failed
                at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/core/src/result.rs:1791:5
      3: bindgen::main
   note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
   make[2]: *** [rust/Makefile:330: rust/bindings/bindings_helpers_generated.rs] Error 1
   make[2]: *** Deleting file 'rust/bindings/bindings_helpers_generated.rs'
   make[2]: Target 'rust/' not remade because of errors.
   make[1]: *** [Makefile:1292: prepare] Error 2
   make: *** [Makefile:226: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-28 19:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-28 19:07 [asahilinux:gpu/rust-wip 65/229] thread 'main' panicked at 'Unable to generate bindings: ()', /opt/cross/rustc-1.66.0-bindgen-0.56.0/cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.56.0/src/main.rs:54:36 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox