linux编译c代码错误,linux - 使用ASAN时如何解决错误“无法运行C编译程序” - 堆栈内存溢出...
问题:运行configure脚本可以正常工作,可以使用C编译器并运行生成的程序。 一旦添加了ASAN,配置脚本就会抱怨生成的程序无法运行。
./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
...
与
./configure CFLAGS="-fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer -fstack-protector" LDFLAGS="-fsanitize=undefined -fsanitize=address" --enable-debug
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether CFLAGS can be modified... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/tmp/test-asan':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
config.log显示:
configure:3653: checking whether we are cross compiling
configure:3661: gcc -o conftest -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer -fstack-protector -fsanitize=undefined -fsanitize=address conftest.c >&5
configure:3665: $? = 0
configure:3672: ./conftest
==9941==LeakSanitizer has encountered a fatal error.
==9941==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1
==9941==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)
configure:3676: $? = 1
configure:3683: error: in `/tmp/test-asan':
configure:3685: error: cannot run C compiled programs.
linux编译c代码错误,linux - 使用ASAN时如何解决错误“无法运行C编译程序” - 堆栈内存溢出...相关推荐
- linux下c11使用memcpy_s,c - 将c11标准与clang一起使用以使用strcpy_s - 堆栈内存溢出
我正在运行OS X Sierra并尝试编译使用strcpy_s ac程序,但是我安装的clang编译器正在使用c99标准,但是从我的阅读中来看strcpy_s需要c11. 这是我要编译的代码 #inc ...
- linux 'stack'未声明(在此函数内第一次使用,c - 错误:未声明“ asm”(此函数中的首次使用) - 堆栈内存溢出...
编译期间出现以下错误: error: 'asm' undeclared (first use in this function) EXCHANGE( s, *(a) ); ^ 在头文件中,该宏的调用方 ...
- linux 进程 内存 换入换出,linux - 在从bash进程替换完成输入后,如何继续发送到stdin? - 堆栈内存溢出...
这听起来像是期待的工作. 特定 #include int main() { char *cp = NULL; size_t n = 0; while(getline(&cp, &n, ...
- asn.1 rsa java_android - RSA公钥生成失败:“错误:0c0000be:ASN.1编码例程:OPENSSL_internal:WRONG_TAG” - 堆栈内存溢出...
我有一种应生成RSA公钥的方法: import android.util.Base64; import java.io.IOException; import java.security.KeyFac ...
- 卷影复制服务错误: 调用程序 CoCreateInstance 时的意外错误。hr = 0x8007045b, 系统正在关机。
服务器有时自动重启: 卷影复制服务错误: 调用程序 CoCreateInstance 时的意外错误.hr = 0x8007045b, 系统正在关机. 在服务中是:Volume Shadow Copy和 ...
- linux 编译指cpu内核,linux内核编译与配置
linux是如何组成的? 答:linux是由用户空间和内核空间组成的 为什么要划分用户空间和内核空间? 答:有关CPU体系结构,各处理器可以有多种模式,而LInux这样的划分是考虑到系统的 安全性,比 ...
- linux编译内核支持pam,linux编译内核make menuconfig报错解决办法
linux编译内核时 输入make menuconfig命令 *** Unable to find the ncurses libraries or the *** required header f ...
- 修改linux编译配置文件,Porting:linux内核编译、配置、修改配置文件、添加.c文件到内核...
一.linux内核 $:'uname -a $:'uanme -r // 查看linux内核版本,开发板上进入linux后是一样的命令. 早起常常使用的版本:linux 2.6.x 开发板上使用的版本 ...
- linux编译谷歌浏览器方法,构建Linux版本的谷歌Chrome浏览器
Chromium编译说明(Linux版) 此页描述如果在Linux操作系统上编译构建Chromium浏览器.假如你对测试chromium或想移植chromium到别的平台请你继续阅读. 小提示:目前还 ...
最新文章
- python3 检测端口是否开放
- linux系统 wm9713声卡配置 记录
- 转:VirtualBox虚拟机网络连接设置的四种方式
- django 中实现文件下载的3种方式
- 几种常用范数与距离的关系
- struct.error: cannot convert argument to integer解决办法
- 我的世界服务器防挂系统,[管理|机制]AFKKicker —— 防挂机!定时要求输入验证码 防止挂机[1.7.10-1.12.2]...
- Python-Learn
- 信息学奥赛一本通C++语言——1122:计算鞍点
- 安卓学习笔记45:初探开源框架OrmLite
- 在VS中手工创建一个最简单的WPF程序
- 半导体器件与集成电路实验 实验十 集成运算放大器参数的测量
- FlashFXP,flashfxp使用方法
- flv怎么转换成mp4?
- 长城汽车召回上万辆欧拉IQ:电池存在安全隐患,曾因自燃被拉黑
- php theexcerpt,WordPress获取文章摘要函数the_excerpt、get_the_excerpt
- 必要转载 1927年12月31日午夜一秒谜案
- 传说之下三重审判用计算机怎么弹,传说之下三重审判模拟器
- OpenJDK1.8 :java/lang/NoSuchMethodError‘: Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)
- 《软技能——代码之外的生存指南》笔记
热门文章
- php请求要通过什么协议,php – 发送多个应用程序协议请求(类似于mailto:)
- 西安python后端招聘_有大佬招 Python 后端初级人员吗?
- bat脚本保存dir结果_MySQL备份脚本,应该这么写
- 1709 - Index column size too large. The maximum column size is 767 bytes.
- Disruptor 分析
- ServletConfig对象和ServletContext对象配置初始化参数
- 懒加载、瀑布流和LightBox实现图片搜索效果
- 多线程-Threading
- STP的根端口与指定端口
- iOS开发 发布之后的Crash错误反馈(二)