尝试使用AVR目标的UB杀毒程序会产生以下结果:
avr-gcc -Wall -mmcu=attiny1614 -fsanitize=undefined bm02.c
/usr/local/lib/gcc/avr/10.0.0/../../../../avr/bin/ld: cannot find
-lubsan collect2: error: ld returned 1 exit status可以在UBsan支持下构建avr-gcc吗?
发布于 2020-01-23 00:00:29
不是的。
目前,avr-g++没有完全的C++支持,对于这样的目标,顶层configure.ac switches off libsanitizer。这是因为libsanitizer是用C++编写的,请参阅。ubsan sources。
https://stackoverflow.com/questions/59862715
复制相似问题