Open kumarak opened 6 months ago
clang diagnostic error while building AST from the compile command of curl codebase. It seems due to type mismatch.
E20240528 16:09:03.901198 1896787 IndexCompileJob.cpp:3250] Error building AST for command -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name hostip.c -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -fdebug-compilation-dir=/home/akshay/multiplier_workspace/curl/build/lib -fcoverage-compilation-dir=/home/akshay/multiplier_workspace/curl/build/lib -nostdsysteminc -nobuiltininc -resource-dir /usr/lib/gcc/x86_64-linux-gnu/12 -isystem /home/akshay/multiplier_workspace/curl/include -isystem /home/akshay/multiplier_workspace/curl/ -isystem /home/akshay/multiplier_workspace/curl/build/ -isystem /home/akshay/multiplier_workspace/curl/lib -isystem /home/akshay/multiplier_workspace/curl/build/lib -isystem /usr/lib/gcc/x86_64-linux-gnu/12/include -iwithsysroot /usr/local/include -iwithsysroot /usr/include/x86_64-linux-gnu -iwithsysroot /usr/include -I /home/akshay/multiplier_workspace/curl/include -I /home/akshay/multiplier_workspace/curl/build/lib/../include -I /home/akshay/multiplier_workspace/curl/ -I /home/akshay/multiplier_workspace/curl/include -I /home/akshay/multiplier_workspace/curl/build/ -I /home/akshay/multiplier_workspace/curl/lib -I /home/akshay/multiplier_workspace/curl/build/lib -D BUILDING_LIBCURL -D CURL_HIDDEN_SYMBOLS -D HAVE_CONFIG_H -D libcurl_EXPORTS -isysroot / -W -Wbad-function-cast -Wconversion -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wno-multichar -Wpointer-arith -Wshadow -Wsign-compare -Wundef -Wunused -Wwrite-strings -Wcast-align -Wdeclaration-after-statement -Wempty-body -Wendif-labels -Wfloat-equal -Wignored-qualifiers -Wno-format-nonliteral -Wno-sign-conversion -Wno-system-headers -Wstrict-prototypes -Wtype-limits -Wvla -Wmissing-parameter-type -Wold-style-declaration -Wstrict-aliasing=3 -Wformat=2 -Warray-bounds=2 -Wduplicated-cond -Wnull-dereference -Wshift-negative-value -Wshift-overflow=2 -Walloc-zero -Wduplicated-branches -Wformat-overflow=2 -Wformat-truncation=1 -Wrestrict -Warith-conversion -Wdouble-promotion -Wenum-conversion -Wunused-const-variable -pedantic -fconst-strings -ferror-limit 19 -fvisibility=hidden -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -nostdinc++ -nobuiltininc -nostdsysteminc -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /dev/null -x c /home/akshay/multiplier_workspace/curl/lib/hostip.c on main file /home/akshay/multiplier_workspace/curl/lib/hostip.c; error was: A clang diagnostic or uncompilable error was produced when trying to get an AST due to error: /pasta:66699:226 address argument to atomic operation must be a pointer to a trivially-copyable type ('atomic_int *' (aka '_Atomic(int) *') invalid)
clang diagnostic error while building AST from the compile command of curl codebase. It seems due to type mismatch.