g++ - What package do I need for Cygwin's UBsan? -


i have test script grinds through various configurations. script tests availability of undefined behavior sanitizer (ubsan), , performs build if available. here's test:

$cxx -x c++ -dm -e -fsanitize=undefined -std=c++11 - < /dev/null > /dev/null 2>&1 if [ "$?" -eq "0" ];     have_ubsan=1 else     have_ubsan=0 fi 

the test above sets have_ubsan=1 on cygwin, means gcc's cygwin claims support ubsan (otherwise, have produced error). however, i'm catching link error under both cygwin i686 , x86_64:

... g++ -ddebug -g2 -o2 -wall -std=c++03 -fsanitize=undefined -march=native -pipe -c fipsalgt.cpp g++ -ddebug -g2 -o2 -wall -std=c++03 -fsanitize=undefined -march=native -pipe -c dlltest.cpp g++ -o cryptest.exe -ddebug -g2 -o2 -wall -std=c++03 -fsanitize=undefined -march=native test.o validat1.o validat2.o validat3.o ... ./libcryptopp.a /usr/lib/gcc/i686-pc-cygwin/4.9.3/../../../../i686-pc-cygwin/bin/ld: cannot find -lubsan collect2: error: ld returned 1 exit status gnumakefile:333: recipe target 'cryptest.exe' failed make: *** [cryptest.exe] error 1 

obviously, whatever needed not installed gcc-core or gcc-g++. ran setup program again , searched ubsan got 0 hits.

what package(s) need cygwin's ubsan?

while i'm @ it, might ask next failure expect experience. package need cygwin's asan?

thanks in advance.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -