Closed maflcko closed 1 week ago
Work around:
+ /src/aflplusplus/afl-clang-fast++ -O1 -fno-omit-frame-pointer -gline-tables-only -Wno-error=enum-constexpr-conversion -Wno-error=incompatible-function-pointer-types -Wno-error=int-conversion -Wno-error=deprecated-declarations -Wno-error=implicit-function-declaration -Wno-error=implicit-int -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=address -fsanitize-address-use-after-scope -stdlib=libc++ /usr/lib/libFuzzingEngine.a h5_read_fuzzer.o ./build-dir/bin/libhdf5.a -lz -o /out/h5_read_fuzzer /usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x25 ./build-dir/bin/libhdf5.a(H5Tconv_integer.c.o): in function `H5T__conv_schar__Float16': H5Tconv_integer.c:(.text.H5T__conv_schar__Float16[H5T__conv_schar__Float16]+0xe77): undefined reference to `__truncsfhf2' /usr/bin/ld: H5Tconv_integer.c:(.text.H5T__conv_schar__Float16[H5T__conv_schar__Float16]+0xf9a): undefined reference to `__truncsfhf2' /usr/bin/ld: H5Tconv_integer.c:(.text.H5T__conv_schar__Float16[H5T__conv_schar__Float16]+0x117d): undefined reference to `__truncsfhf2' /usr/bin/ld: H5Tconv_integer.c:(.text.H5T__conv_schar__Float16[H5T__conv_schar__Float16]+0x121d): undefined reference to `__truncsfhf2' /usr/bin/ld: H5Tconv_integer.c:(.text.H5T__conv_schar__Float16[H5T__conv_schar__Float16]+0x12dc): undefined reference to `__truncsfhf2' /usr/bin/ld: ./build-dir/bin/libhdf5.a(H5Tconv_integer.c.o):H5Tconv_integer.c:(.text.H5T__conv_schar__Float16[H5T__conv_schar__Float16]+0x137d): more undefined references to `__truncsfhf2' follow
maflcko has previously contributed to projects/hdf5. The previous PR was #11714
Possibly a missing -lclang_rt.builtins, but I couldn't get it to work.
-lclang_rt.builtins
Work around: