All of lore.kernel.org
 help / color / mirror / Atom feed
* error: unknown argument: '-fno-ipa-sra', err: true
@ 2021-08-06 20:11 Antonio Terceiro
  2021-08-09 11:09 ` Miguel Ojeda
  0 siblings, 1 reply; 2+ messages in thread
From: Antonio Terceiro @ 2021-08-06 20:11 UTC (permalink / raw)
  To: rust-for-linux

[-- Attachment #1: Type: text/plain, Size: 1208 bytes --]

Hi, I'm trying a few Rust-enabled builds, and I got the following error
when building an arm kernel:

make --silent --keep-going --jobs=8 O=/home/tuxbuild/.cache/tuxmake/builds/current ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- 'CC=sccache arm-linux-gnueabihf-gcc' 'HOSTCC=sccache gcc'
error: unknown argument: '-fno-ipa-sra', err: true
thread 'main' panicked at 'Unable to generate bindings: ()', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.56.0/src/main.rs:54:36
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
make[2]: *** [/builds/linux/rust/Makefile:229: rust/bindings_generated.rs] Error 1
make[2]: *** Deleting file 'rust/bindings_generated.rs'
make[2]: Target '__build' not remade because of errors.
make[1]: *** [/builds/linux/Makefile:1330: prepare0] Error 2
make[1]: Target '__all' not remade because of errors.
make: *** [Makefile:222: __sub-make] Error 2
make: Target '__all' not remade because of errors.

There I'm using LLVM/libclang from Debian 11 (so LLVM 11). Is this
supposed to be fixed by a newer LLVM (assuming that flag got implemented
since then), or should I send a patch to rust/Makefile to filter that
specific flag out as well?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: error: unknown argument: '-fno-ipa-sra', err: true
  2021-08-06 20:11 error: unknown argument: '-fno-ipa-sra', err: true Antonio Terceiro
@ 2021-08-09 11:09 ` Miguel Ojeda
  0 siblings, 0 replies; 2+ messages in thread
From: Miguel Ojeda @ 2021-08-09 11:09 UTC (permalink / raw)
  To: Antonio Terceiro; +Cc: rust-for-linux

Hi Antonio,

On Sat, Aug 7, 2021 at 2:10 AM Antonio Terceiro
<antonio.terceiro@linaro.org> wrote:
>
> There I'm using LLVM/libclang from Debian 11 (so LLVM 11). Is this
> supposed to be fixed by a newer LLVM (assuming that flag got implemented
> since then), or should I send a patch to rust/Makefile to filter that
> specific flag out as well?

Please feel free to send the patch!

Cheers,
Miguel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-09 11:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-06 20:11 error: unknown argument: '-fno-ipa-sra', err: true Antonio Terceiro
2021-08-09 11:09 ` Miguel Ojeda

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.