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

Failed to link by 1.82.0 on Linux #104

Closed
inflation opened this issue Oct 22, 2024 · 1 comment
Closed

Failed to link by 1.82.0 on Linux #104

inflation opened this issue Oct 22, 2024 · 1 comment

Comments

@inflation
Copy link
Owner

#103
https://github.com/inflation/jpegxl-rs/actions/runs/11437278288

/usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlidec.a(decode.c.o): in function `ReadBlockLength':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:880: undefined reference to `_kBrotliPrefixCodeRanges'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:881: undefined reference to `_kBrotliPrefixCodeRanges'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlidec.a(decode.c.o): in function `SafeReadBlockLength':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:899: undefined reference to `_kBrotliPrefixCodeRanges'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:900: undefined reference to `_kBrotliPrefixCodeRanges'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlidec.a(decode.c.o): in function `PrepareLiteralDecoding':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:1194: undefined reference to `_kBrotliContextLookupTable'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlidec.a(decode.c.o): in function `ReadBlockLength':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:880: undefined reference to `_kBrotliPrefixCodeRanges'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:881: undefined reference to `_kBrotliPrefixCodeRanges'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlidec.a(decode.c.o): in function `SafeReadBlockLength':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:899: undefined reference to `_kBrotliPrefixCodeRanges'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:900: undefined reference to `_kBrotliPrefixCodeRanges'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlidec.a(decode.c.o): in function `PrepareLiteralDecoding':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:1194: undefined reference to `_kBrotliContextLookupTable'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlidec.a(decode.c.o): in function `ReadBlockLength':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:880: undefined reference to `_kBrotliPrefixCodeRanges'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:881: undefined reference to `_kBrotliPrefixCodeRanges'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlidec.a(decode.c.o): in function `SafeReadBlockLength':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:899: undefined reference to `_kBrotliPrefixCodeRanges'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:900: undefined reference to `_kBrotliPrefixCodeRanges'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlidec.a(decode.c.o): in function `ReadBlockLength':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:880: undefined reference to `_kBrotliPrefixCodeRanges'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlidec.a(decode.c.o):/home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:881: more undefined references to `_kBrotliPrefixCodeRanges' follow
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlidec.a(decode.c.o): in function `ProcessCommandsInternal':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:2098: undefined reference to `BrotliTransformDictionaryWord'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:2098: undefined reference to `BrotliTransformDictionaryWord'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlidec.a(decode.c.o): in function `SafeReadBlockLength':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:899: undefined reference to `_kBrotliPrefixCodeRanges'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:900: undefined reference to `_kBrotliPrefixCodeRanges'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlidec.a(decode.c.o): in function `PrepareLiteralDecoding':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/decode.c:1194: undefined reference to `_kBrotliContextLookupTable'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlidec.a(state.c.o): in function `BrotliDecoderStateInit':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/state.c:23: undefined reference to `BrotliDefaultAllocFunc'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/state.c:24: undefined reference to `BrotliDefaultFreeFunc'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/state.c:89: undefined reference to `BrotliSharedDictionaryCreateInstance'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlidec.a(state.c.o): in function `BrotliDecoderStateCleanup':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/dec/state.c:150: undefined reference to `BrotliSharedDictionaryDestroyInstance'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlienc.a(encode.c.o): in function `ShouldUseComplexStaticContextMap':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/enc/encode.c:351: undefined reference to `_kBrotliContextLookupTable'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlienc.a(encode.c.o): in function `WriteMetaBlockInternal':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/enc/encode.c:489: undefined reference to `_kBrotliContextLookupTable'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlienc.a(encode.c.o): in function `EncodeData':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/enc/encode.c:[106](https://github.com/inflation/jpegxl-rs/actions/runs/11437278288/job/31830884659#step:7:107)0: undefined reference to `_kBrotliContextLookupTable'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlienc.a(encoder_dict.c.o): in function `InitEncoderDictionary':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/enc/encoder_dict.c:46: undefined reference to `BrotliGetDictionary'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/enc/encoder_dict.c:47: undefined reference to `BrotliGetTransforms'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlienc.a(memory.c.o): in function `BrotliInitMemoryManager':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/enc/memory.c:35: undefined reference to `BrotliDefaultAllocFunc'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/enc/memory.c:36: undefined reference to `BrotliDefaultFreeFunc'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlienc.a(brotli_bit_stream.c.o): in function `BlockLengthPrefixCode':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/enc/brotli_bit_stream.c:41: undefined reference to `_kBrotliPrefixCodeRanges'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/enc/brotli_bit_stream.c:41: undefined reference to `_kBrotliPrefixCodeRanges'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlienc.a(brotli_bit_stream.c.o): in function `GetBlockLengthPrefixCode':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/enc/brotli_bit_stream.c:48: undefined reference to `_kBrotliPrefixCodeRanges'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/enc/brotli_bit_stream.c:49: undefined reference to `_kBrotliPrefixCodeRanges'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlienc.a(brotli_bit_stream.c.o): in function `BlockLengthPrefixCode':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/enc/brotli_bit_stream.c:41: undefined reference to `_kBrotliPrefixCodeRanges'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlienc.a(brotli_bit_stream.c.o):/home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/enc/brotli_bit_stream.c:48: more undefined references to `_kBrotliPrefixCodeRanges' follow
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlienc.a(brotli_bit_stream.c.o): in function `BrotliStoreMetaBlock':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/enc/brotli_bit_stream.c:960: undefined reference to `_kBrotliContextLookupTable'
          /usr/bin/ld: /home/runner/work/jpegxl-rs/jpegxl-rs/target/debug/build/jpegxl-sys-30a162624b8a7b91/out/lib/libbrotlienc.a(histogram.c.o): in function `BrotliBuildHistogramsWithContext':
          /home/runner/work/jpegxl-rs/jpegxl-rs/jpegxl-src/libjxl/third_party/brotli/c/enc/histogram.c:72: undefined reference to `_kBrotliContextLookupTable'
          collect2: error: ld returned 1 exit status
          
  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)
@inflation
Copy link
Owner Author

Fixed by #103

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant