免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: stroustrup
打印 上一主题 下一主题

gcc安装问题。 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2003-07-11 08:54 |只看该作者

gcc安装问题。

我没在sco上编译过GCC。不知道你是如何configure的,用了什么选项。第一次编译,最好是只编译C编译器,且用make bootstrap。有了gcc之后,再编译其他的。
sco上有什么需要特别注意的地方,你可以看一下GCC自带的安装指南。

论坛徽章:
0
12 [报告]
发表于 2003-07-11 09:02 |只看该作者

gcc安装问题。

# ./configure
loading cache ./config.cache
checking host system type... i686-pc-sco3.2v5.0.5
checking target system type... i686-pc-sco3.2v5.0.5
checking build system type... i686-pc-sco3.2v5.0.5
*** This configuration is not supported in the following subdirectories:
     target-libffi target-boehm-gc target-zlib target-libjava
    (Any other directories should still work fine.)
*** removing intl/Makefile to force reconfigure
*** removing libiberty/Makefile to force reconfigure
*** removing zlib/Makefile to force reconfigure
*** removing gcc/Makefile to force reconfigure
checking for i686-pc-sco3.2v5.0.5-ar... (cached) ar
checking for i686-pc-sco3.2v5.0.5-as... no
checking for as... (cached) as
checking for i686-pc-sco3.2v5.0.5-dlltool... no
checking for dlltool... (cached) dlltool
checking for i686-pc-sco3.2v5.0.5-ld... no
checking for ld... (cached) ld
checking for i686-pc-sco3.2v5.0.5-nm... no
checking for nm... (cached) nm
checking for i686-pc-sco3.2v5.0.5-ranlib... (cached) :
checking for i686-pc-sco3.2v5.0.5-windres... no
checking for windres... (cached) windres
checking for windres... (cached) windres
checking for i686-pc-sco3.2v5.0.5-objcopy... no
checking for objcopy... (cached) objcopy
checking for i686-pc-sco3.2v5.0.5-objdump... no
checking for objdump... (cached) objdump
checking for i686-pc-sco3.2v5.0.5-ar... no
checking for ar... (cached) ar
checking for i686-pc-sco3.2v5.0.5-as... no
checking for as... (cached) as
checking for i686-pc-sco3.2v5.0.5-dlltool... no
checking for dlltool... (cached) dlltool
checking for i686-pc-sco3.2v5.0.5-ld... no
checking for ld... (cached) ld
checking for i686-pc-sco3.2v5.0.5-nm... no
checking for nm... (cached) nm
checking for i686-pc-sco3.2v5.0.5-ranlib... no
checking for ranlib... (cached) :
checking for i686-pc-sco3.2v5.0.5-windres... no
checking for windres... (cached) windres
checking whether to enable maintainer-specific portions of Makefiles... no
creating ./config.status
creating Makefile

configure通过(下了sco的bison)。

make

        cc    -g -DIN_GCC     -DHAVE_CONFIG_H -DGENERATOR_FILE  -o gengtype \
         gengtype.o gengtype-lex.o gengtype-yacc.o ../libiberty/libiberty.a
undefined                       first referenced
symbol                             in file
lexer_line                          gengtype.o
parse_file                          gengtype.o
yyerror                             gengtype-yacc.o
yylex                               gengtype-yacc.o
lexer_toplevel_done                 gengtype-yacc.o
i386ld fatal: Symbol referencing errors. No output written to gengtype
*** Error code 13 (bu21)
*** Error code 1 (bu21)

请指教。

论坛徽章:
0
13 [报告]
发表于 2003-07-11 09:07 |只看该作者

gcc安装问题。

这样吧,一步步来。先编译C编译器看看怎么样
make distclean
./configure --enable-languages=c
make bootstrap
make install
如果成功,再说别的。
另外,注意configure的输出有没有警告,比如少什么库一类的。

论坛徽章:
0
14 [报告]
发表于 2003-07-11 09:31 |只看该作者

gcc安装问题。

# make distclean
Doing distclean in intl
        rm -f *.a *.la *.o *.obj *.lo core core.*
        rm -f libgnuintl.h libintl.h charset.alias ref-add.sed ref-del.sed
        rm -f -r .libs _libs
        rm -f Makefile ID TAGS
        if test "@PACKAGE@" = "gettext-runtime" || test "@PACKAGE@" = "gettext-t
ools"; then \
          rm -f ChangeLog.inst ; \
        else \
          : ; \
        fi
Doing distclean in libiberty
        rm -f test-demangle
        rm -f Makefile
        make SUBDIRS="" clean
        make SUBDIRS="" mostlyclean
        rm -rf *.o pic core errs \#* *.E a.out
        rm -f needed.awk needed2.awk errors dummy needed-list config.h stamp-*
        rm -f   stamp-picdir
        rm -f libiberty.aux libiberty.cp libiberty.cps libiberty.fn libiberty.ky
        rm -f libiberty.log libiberty.tmp libiberty.tps libiberty.pg
        rm -f libiberty.pgs libiberty.toc libiberty.tp libiberty.tpl libiberty.v
r        rm -f libtexi.stamp
        rm -f *.a required-list tmpmulti.out
        rm -f libiberty.dvi libiberty.info* libiberty.html
        rm -f *~ Makefile config.status xhost-mkfrag TAGS multilib.out
        rm -f config.log
        rmdir testsuite 2>;/dev/null
*** Error code 2 (bu21) (ignored)
        rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
        rm -f Makefile config.status config.cache mh-frag mt-frag
        rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
        if [ "i686-pc-sco3.2v5.0.5" != "." ]; then \
          rm -rf i686-pc-sco3.2v5.0.5; \
        else true; fi
        rm -rf build-i686-pc-sco3.2v5.0.5
        rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
        rm -f texinfo/doc/Makefile texinfo/po/POTFILES
        rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>;/dev/null
*** Error code 2 (bu21) (ignored)
        rmdir texinfo/makeinfo texinfo/po texinfo/util 2>;/dev/null
*** Error code 2 (bu21) (ignored)
        rmdir fastjar gcc libiberty texinfo zlib 2>;/dev/null
*** Error code 2 (bu21) (ignored)


# ./configure --enable-languages=c
creating cache ./config.cache
checking host system type... i686-pc-sco3.2v5.0.5
checking target system type... i686-pc-sco3.2v5.0.5
checking build system type... i686-pc-sco3.2v5.0.5
*** This configuration is not supported in the following subdirectories:
     target-libffi target-boehm-gc target-zlib target-libjava target-libstdc++-v
3 target-libf2c zlib fastjar target-libobjc
    (Any other directories should still work fine.)
checking for i686-pc-sco3.2v5.0.5-ar... no
checking for ar... ar
checking for i686-pc-sco3.2v5.0.5-as... no
checking for as... as
checking for i686-pc-sco3.2v5.0.5-dlltool... no
checking for dlltool... dlltool
checking for i686-pc-sco3.2v5.0.5-ld... no
checking for ld... ld
checking for i686-pc-sco3.2v5.0.5-nm... no
checking for nm... nm
checking for i686-pc-sco3.2v5.0.5-ranlib... no
checking for ranlib... :
checking for i686-pc-sco3.2v5.0.5-windres... no
checking for windres... windres
checking for i686-pc-sco3.2v5.0.5-objcopy... no
checking for objcopy... objcopy
checking for i686-pc-sco3.2v5.0.5-objdump... no
checking for objdump... objdump
checking for i686-pc-sco3.2v5.0.5-ar... no
checking for ar... ar
checking for i686-pc-sco3.2v5.0.5-as... no
checking for as... as
checking for i686-pc-sco3.2v5.0.5-dlltool... no
checking for dlltool... dlltool
checking for i686-pc-sco3.2v5.0.5-ld... no
checking for ld... ld
checking for i686-pc-sco3.2v5.0.5-nm... no
checking for nm... nm
checking for i686-pc-sco3.2v5.0.5-ranlib... no
checking for ranlib... :
checking for i686-pc-sco3.2v5.0.5-windres... no
checking for windres... windres
checking whether to enable maintainer-specific portions of Makefiles... no
updating cache ./config.cache
creating ./config.status
creating Makefile

make bootstrap (太长,部分)

checking for bison... bison
checking version of bison... 1.25, bad
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... no
checking for GNU gettext in libintl... no
checking whether to use NLS... yes
checking where the gettext function comes from... included intl directory
updating cache .././config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
        CONFIG_HEADERS=config.h CONFIG_FILES= /bin/sh config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
        echo timestamp >; cstamp-h
don't know how to make ./libgnuintl.h (bu42).
*** Error code 1 (bu21)


# make install
        /bin/sh ./mkinstalldirs /usr/local  /usr/local
don't know how to make ./libgnuintl.h (bu42).
*** Error code 1 (bu21)


少./libgnuintl.h ?

论坛徽章:
0
15 [报告]
发表于 2003-07-11 10:35 |只看该作者

gcc安装问题。

安装GNU make看看。

论坛徽章:
0
16 [报告]
发表于 2003-07-11 10:49 |只看该作者

gcc安装问题。

找(GUN make)ing...

论坛徽章:
0
17 [报告]
发表于 2003-07-11 11:05 |只看该作者

gcc安装问题。

找到了make,但gcc问题依旧。

论坛徽章:
0
18 [报告]
发表于 2003-07-11 11:14 |只看该作者

gcc安装问题。

安装GNU make后,把它改名为gmake,然后gmake bootstrap

论坛徽章:
0
19 [报告]
发表于 2003-07-15 16:19 |只看该作者

gcc安装问题。

问题依旧。
谢谢。
放弃ing...
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP