LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 717|回复: 3

也是重回archlinux,编第一个软件就碰壁[已解决]

[复制链接]
发表于 2011-9-2 22:38:29 | 显示全部楼层 |阅读模式
  1. makepkg -si
  2. ==> 正在创建软件包:package-query 0.8.1-1 (2011年 09月 02日 星期五 22:29:32 HKT)
  3. ==> 正在检查运行时依赖关系...
  4. ==> 正在检查编译时依赖关系
  5. ==> 获取源代码...
  6.   -> 找到 package-query-0.8.1.tar.gz
  7. ==> 正在验证源代码文件 md5sums...
  8.     package-query-0.8.1.tar.gz ... 通过
  9. ==> 解压缩源码...
  10.   -> 正在解压缩 package-query-0.8.1.tar.gz,使用 bsdtar
  11. ==> 正在删除现有的 pkg/ 目录...
  12. ==> 正在开始 build()...
  13. checking for a BSD-compatible install... /bin/install -c
  14. checking whether build environment is sane... yes
  15. checking for a thread-safe mkdir -p... /bin/mkdir -p
  16. checking for gawk... gawk
  17. checking whether make sets $(MAKE)... yes
  18. checking for gcc... gcc
  19. checking whether the C compiler works... no
  20. configure: error: in `/home/chenss/Downloads/package-query/src/package-query-0.8.1':
  21. configure: error: C compiler cannot create executables
  22. See `config.log' for more details
  23. ==> 错误: 在 build() 中发生一个错误。
  24.     正在放弃...
复制代码

不知什么问题,GCC已经装了
  1. gcc -v
  2. 使用内建 specs。
  3. COLLECT_GCC=gcc
  4. COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/lto-wrapper
  5. 目标:x86_64-unknown-linux-gnu
  6. 配置为:/build/src/gcc-4.6-20110819/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --disable-multilib --disable-libssp --disable-libstdcxx-pch --enable-checking=release
  7. 线程模型:posix
  8. gcc 版本 4.6.1 20110819 (prerelease) (GCC)
复制代码
  1. uname -a
  2. Linux arch64 3.0-ARCH #1 SMP PREEMPT Wed Aug 17 21:55:57 CEST 2011 x86_64 Intel(R) Core(TM) i5-2300 CPU @ 2.80GHz GenuineIntel GNU/Linux
复制代码
发表于 2011-9-2 22:45:52 | 显示全部楼层
  1. #include <stdio.h>
  2. int main()
  3. {
  4. printf("hello\n");
  5. return 0;
  6. }
复制代码
gcc -o test main.c
编译看一下提示什么错误
前几天编译gentoo的东西发现gcc 因为 libssp出错
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-9-2 22:54:23 | 显示全部楼层
嗯,好像是哦:
  1. /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/cc1: error while loading shared libraries: libcloog-isl.so.2: cannot open shared object file: No such file or directory
复制代码
怎么解决呢?
  1. pacman -Ss cloog
  2. core/cloog 0.16.3-1 [已安装: 0.16.2-1]
  3.     Library that generates loops for scanning polyhedra
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-9-2 23:02:11 | 显示全部楼层
解决了:将 cloog 和 isl 更新下就好了,谢谢!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表