免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4079 | 回复: 10
打印 上一主题 下一主题

C compiler default output怎样设置? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-04-03 17:25 |只看该作者 |倒序浏览
checking for C compiler default output... configure: error: C compiler cannot cr
eate executables
各位老大:这个错误是不是因为找不到路径?怎样解决?

论坛徽章:
0
2 [报告]
发表于 2003-04-03 18:22 |只看该作者

C compiler default output怎样设置?

错误信息太少了

最好把最部错误写出来

论坛徽章:
0
3 [报告]
发表于 2003-04-04 17:40 |只看该作者

C compiler default output怎样设置?

TO:无双斑竹
# cd resin-2.1.8
# ls
LICENSE        config.guess   configure.in   lib            readme.txt
Makefile.in    config.log     contrib        ltconfig       src
bin            config.sub     doc            missing        webapps
conf           configure      install-sh     mkinstalldirs  xsl
# ./configure
checking build system type... hppa2.0w-hp-hpux11.00
checking host system type... hppa2.0w-hp-hpux11.00
checking target system type... hppa2.0w-hp-hpux11.00
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot cr
eate executables
#

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
4 [报告]
发表于 2003-04-04 18:20 |只看该作者

C compiler default output怎样设置?

将config.log中最后的错误信息贴出来

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
5 [报告]
发表于 2003-04-04 18:28 |只看该作者

C compiler default output怎样设置?

$./configure  --with-CC=compiler

论坛徽章:
0
6 [报告]
发表于 2003-04-04 21:48 |只看该作者

C compiler default output怎样设置?

To:gadfly
# cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.53.  Invocation command line was

  $ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = yn
uname -m = 9000/800
uname -r = B.11.00
uname -s = HP-UX
uname -v = U

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/local/bin
PATH: /usr/ccs/bin
PATH: /usr/contrib/bin
PATH: /opt/nettladm/bin
PATH: /opt/fc/bin
PATH: /opt/fcms/bin
PATH: /opt/upgrade/bin
PATH: /opt/pd/bin
PATH: /usr/bin/X11
PATH: /usr/contrib/bin/X11
PATH: /opt/resmon/bin
PATH: /opt/pred/bin
PATH: /opt/hparray/bin
PATH: /opt/java/bin
PATH: /sbin
PATH: /home/root


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1236: checking build system type
configure:1254: result: hppa2.0w-hp-hpux11.00
configure:1262: checking host system type
configure:1276: result: hppa2.0w-hp-hpux11.00
configure:1284: checking target system type
configure:1298: result: hppa2.0w-hp-hpux11.00
configure:1326: checking for a BSD-compatible install
configure:1380: result: ./install-sh -c
configure:1391: checking whether build environment is sane
configure:1434: result: yes
configure:1467: checking for gawk
configure:1496: result: no
configure:1467: checking for mawk
configure:1496: result: no
configure:1467: checking for nawk
configure:1496: result: no
configure:1467: checking for awk
configure:1483: found /usr/bin/awk
configure:1493: result: awk
configure:1503: checking whether make sets ${MAKE}
configure:1523: result: yes
configure:1718: checking for gcc
configure:1734: found /usr/local/bin/gcc
configure:1744: result: gcc
configure:1988: checking for C compiler version
configure:1991: gcc --version </dev/null >;&amp;5
gcc (GCC) 3.2
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:1994: $? = 0
configure:1996: gcc -v </dev/null >;&amp;5
Reading specs from /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/specs
Configured with: ./configure  : (reconfigured) ./configure  : (reconfigured) ./c
onfigure  : (reconfigured) ./configure  : (reconfigured) ./configure  : (reconfi
gured) ./configure  : (reconfigured) ./configure  : (reconfigured) ./configure
: (reconfigured) ./configure  : (reconfigured) ./configure  : (reconfigured) ./c
onfigure
Thread model: posix
gcc version 3.2
configure:1999: $? = 0
configure:2001: gcc -V </dev/null >;&amp;5
gcc: argument to `-V' is missing
configure:2004: $? = 1
configure:2030: checking for C compiler default output
configure:2033: gcc    conftest.c  >;&amp;5
as: warning 2: Unknown option "--traditional-format" ignored.
as: "/var/tmp//ccK6fcwe.s", line 15: error 1052: Directive name not recognized -
NSUBSPA
configure:2036: $? = 1
configure: failed program was:
#line 2007 "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  ;
  return 0;
}
configure:2063: error: C compiler cannot create executables

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=hppa2.0w-hp-hpux11.00
ac_cv_build_alias=hppa2.0w-hp-hpux11.00
ac_cv_env_CC_set=''
ac_cv_env_CC_value=''
ac_cv_env_CFLAGS_set=''
ac_cv_env_CFLAGS_value=''
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_LDFLAGS_set=''
ac_cv_env_LDFLAGS_value=''
ac_cv_env_build_alias_set=''
ac_cv_env_build_alias_value=''
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_host=hppa2.0w-hp-hpux11.00
ac_cv_host_alias=hppa2.0w-hp-hpux11.00
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=hppa2.0w-hp-hpux11.00
ac_cv_target_alias=hppa2.0w-hp-hpux11.00

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "resin"
#define VERSION "2.1.8"

configure: exit 77
#

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
7 [报告]
发表于 2003-04-04 22:02 |只看该作者

C compiler default output怎样设置?

看来是你的as有问题
你把/usr/local/bin放到PATH的前面,这样gnu的as能先找到
如果没有gnu的as, 你装一下gnu的binutils的软件包试试看

论坛徽章:
0
8 [报告]
发表于 2003-04-04 22:30 |只看该作者

C compiler default output怎样设置?

这个脚本是自己写的吗

另外先检查看看自己的gcc是不是可以编译程序
如果不是那么是GCC安装问题

论坛徽章:
0
9 [报告]
发表于 2003-04-05 12:24 |只看该作者

C compiler default output怎样设置?

gcc装好的时候我检查过c++,但是没有检查过c

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
10 [报告]
发表于 2003-04-05 17:00 |只看该作者

C compiler default output怎样设置?

hp上装的时候,最好配套装。

把gnu的binutils也装上吧。

现在还有问题么?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP