emscripten

本文记录了在使用CMake 2.8.3进行编译配置过程中遇到的问题,包括找不到合适的C++编译器及尝试安装gcc-c++失败的情况,并展示了编译过程中出现的错误,如链接失败等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

timan@timan-Rev-1-0:~/Downloads/cmake-2.8.3$ ./bootstrap 
---------------------------------------------
CMake 2.8.3, Copyright 2000-2009 Kitware, Inc.
C compiler on this system is: cc 
---------------------------------------------
Error when bootstrapping CMake:
Cannot find appropriate C++ compiler on this system.
Please specify one using environment variable CXX.
See cmake_bootstrap.log for compilers attempted.
---------------------------------------------
Log of errors: /home/timan/Downloads/cmake-2.8.3/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------
timan@timan-Rev-1-0:~/Downloads/cmake-2.8.3$ sudo apt-get install gcc-c++
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package gcc-c+
E: Couldn't find any package by regex 'gcc-c+'
timan@timan-Rev-1-0:~/Downloads/cmake-2.8.3$ sudo apt-get install gcc-c++

why?



sudo apt-get build-essential g++


2.

/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libLTO.so] Error 1
make[1]: *** [tools/lto/CMakeFiles/LTO.dir/all] Error 2
make: *** [all] Error 2
Build failed due to exception!
Working directory: /home/qiaocy/Desktop/emsdk_portable/clang/fastcomp/build_master_64
Command '['make', '-j1']' returned non-zero exit status 2
Installation failed!


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值