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 failure: pkgsLLVM.libomxil-bellagio #311001

Closed
RossComputerGuy opened this issue May 12, 2024 · 2 comments · Fixed by #311810
Closed

Build failure: pkgsLLVM.libomxil-bellagio #311001

RossComputerGuy opened this issue May 12, 2024 · 2 comments · Fixed by #311810

Comments

@RossComputerGuy
Copy link
Contributor

Steps To Reproduce

Steps to reproduce the behavior:

  1. build pkgsLLVM.libomxil-bellagio

Build log

/nix/store/bpvgbcdp4a3m200m69y59wbby19gncwy-bash-5.2p26/bin/bash ../../libtool  --tag=CC   --mode=compile aarch64-unknown-linux-gnu-clang -DHAVE_CONFIG_H -I. -I../..    -I../../include -I../../src -Wall -Werror -DCONFIG_DEBUG_LEVEL=0 -c -o libomxbase_la-omx_base_filter.lo `test -f 'omx_base_filter.c' || echo './'`omx_base_filter.c
libtool: compile:  aarch64-unknown-linux-gnu-clang -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../src -Wall -Werror -DCONFIG_DEBUG_LEVEL=0 -c omx_base_filter.c  -fPIC -DPIC -o .libs/libomxbase_la-omx_base_filter.o
/nix/store/bpvgbcdp4a3m200m69y59wbby19gncwy-bash-5.2p26/bin/bash ../../libtool  --tag=CC   --mode=compile aarch64-unknown-linux-gnu-clang -DHAVE_CONFIG_H -I. -I../..    -I../../include -I../../src -Wall -Werror -DCONFIG_DEBUG_LEVEL=0 -c -o libomxbase_la-omx_base_sink.lo `test -f 'omx_base_sink.c' || echo './'`omx_base_sink.c
libtool: compile:  aarch64-unknown-linux-gnu-clang -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../src -Wall -Werror -DCONFIG_DEBUG_LEVEL=0 -c omx_base_sink.c  -fPIC -DPIC -o .libs/libomxbase_la-omx_base_sink.o
omx_base_sink.c:77:35: error: variable 'inBufExchanged' set but not used [-Werror,-Wunused-but-set-variable]
   77 |   int                             inBufExchanged              = 0;
      |                                   ^
1 error generated.
make[3]: *** [Makefile:331: libomxbase_la-omx_base_sink.lo] Error 1
make[3]: Leaving directory '/build/libomxil-bellagio-0.9.3/src/base'
make[2]: *** [Makefile:627: all-recursive] Error 1
make[2]: Leaving directory '/build/libomxil-bellagio-0.9.3/src'
make[1]: *** [Makefile:381: all-recursive] Error 1
make[1]: Leaving directory '/build/libomxil-bellagio-0.9.3'
make: *** [Makefile:266: all] Error 2

Additional context

Found while compiling pkgsLLVM.mesa in nixpkgs staging.

Notify maintainers

@vcunat

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"aarch64-linux"`
 - host os: `Linux 5.15.156, NixOS, 24.05 (Uakari), 24.05.20240418.bc279bb`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/run/current-system/nixpkgs`

Add a 👍 reaction to issues you find important.

@vcunat
Copy link
Member

vcunat commented May 12, 2024

It probably needs more -Wno-error=foo in the nix expression. (I'm not motivated to maintain this expression.)

RossComputerGuy added a commit to ExpidusOS/nixpkgs that referenced this issue May 15, 2024
Adds a new check which adds cflags when building with LLVM.

Ref: NixOS#311001
@RossComputerGuy
Copy link
Contributor Author

@vcunat I've added the fix into #311810. I marked it as a draft until I know it's working.

RossComputerGuy added a commit to ExpidusOS/nixpkgs that referenced this issue May 15, 2024
Adds a new check which adds cflags when building with LLVM.

Ref: NixOS#311001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants