LinuxSir.cn,穿越时空的Linuxsir!

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

gcc 4.3.1 Make问题,不知道发哪个版了

[复制链接]
发表于 2008-7-16 22:02:49 | 显示全部楼层 |阅读模式
我的内核是2。6。22

现在gcc版本是
gcc version 4.1.3 20070601

今天想编译新的版本,在最后一步出了点错,以下是错误消息

/bin/sh ./mkinstalldirs /usr/local /usr/local
/bin/sh: line 3: cd: host-i686-pc-linux-gnu/fixincludes: 没有那个文件或目录
make[1]: *** [install-fixincludes] 错误 1
make[1]: Leaving directory `/usr/src/gcc-4.3.1'
make: *** [install] 错误 2


本人接触linux的时日还不长,不太清楚 /usr/local/host-i686-pc-linux-gnu这个目录在linux系统的用途,不知道这个错误原因,请高手指点一二。
发表于 2008-7-16 22:36:53 | 显示全部楼层
接触linux时间不长就开始编译gcc啦!!很猛
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-17 17:58:40 | 显示全部楼层
呵呵,接触linux时间确实不长,可我写程序,用gcc的时间可长了

自己起,等待有人解答
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-17 21:30:11 | 显示全部楼层
补充一些,继续期待有人能指点一二

今天仔细查了一下日志,怀疑是 configure 时就出了错,下面是 config.log中的可疑的内容,我没有查到该错误的资料,请知道的人帮忙看下:

Target: i686-pc-linux-gnu
Configured with: /usr/src/gcc-4.3.1/configure --prefix=/opt/applications/gcc-4.3.1/ --disable-multilib --enable-threads=win32 --enable-languages=c,c++,java
Thread model: win32
gcc version 4.3.1 (GCC)
configure:2374: $? = 0
configure:2376: /usr/gcc-build/./gcc/xgcc -B/usr/gcc-build/./gcc/ -B/opt/applications/gcc-4.3.1//i686-pc-linux-gnu/bin/ -B/opt/applications/gcc-4.3.1//i686-pc-linux-gnu/lib/ -isystem /opt/applications/gcc-4.3.1//i686-pc-linux-gnu/include -isystem /opt/applications/gcc-4.3.1//i686-pc-linux-gnu/sys-include -V </dev/null >&5
xgcc: '-V' must come at the start of the command line
configure:2379: $? = 1
configure:2398: /usr/gcc-build/./gcc/xgcc -B/usr/gcc-build/./gcc/ -B/opt/applications/gcc-4.3.1//i686-pc-linux-gnu/bin/ -B/opt/applications/gcc-4.3.1//i686-pc-linux-gnu/lib/ -isystem /opt/applications/gcc-4.3.1//i686-pc-linux-gnu/include -isystem /opt/applications/gcc-4.3.1//i686-pc-linux-gnu/sys-include -o conftest -g -fkeep-inline-functions   conftest.c  >&5
/usr/gcc-build/./gcc/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
configure:2401: $? = 1
configure:2567: checking for suffix of object files
configure:2588: /usr/gcc-build/./gcc/xgcc -B/usr/gcc-build/./gcc/ -B/opt/applications/gcc-4.3.1//i686-pc-linux-gnu/bin/ -B/opt/applications/gcc-4.3.1//i686-pc-linux-gnu/lib/ -isystem /opt/applications/gcc-4.3.1//i686-pc-linux-gnu/include -isystem /opt/applications/gcc-4.3.1//i686-pc-linux-gnu/sys-include -c -g -fkeep-inline-functions  conftest.c >&5
/usr/gcc-build/./gcc/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
configure:2591: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2605: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
回复 支持 反对

使用道具 举报

发表于 2008-7-17 21:59:24 | 显示全部楼层
Post by 书呆彭;1875768
Target: i686-pc-linux-gnu
Configured with: /usr/src/gcc-4.3.1/configure --prefix=/opt/applications/gcc-4.3.1/ --disable-multilib --enable-threads=win32 --enable-languages=c,c++,java
Thread model: win32
gcc version 4.3.1 (GCC)

Are you crazy?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-17 22:49:02 | 显示全部楼层
well , i know about this configuration is ..er ..strange,but this is what i meant to , and i am sure this is not the reason of my problem. to prove it,  ii "make distclean" and  re-configured it with no thread model support, then make it again, and the  problem is still there.

thank you for your carefully reading the log,

i think you must be a skilled developer, would you please give me some advise to make it work? i also logged the "make" output ,which is a rather long file, i dont know if it is helpful.


this is the stderr msg from the console
the "make"s output is redirected to a file,but the file is as 10M bytes large, i cant upload it here,


/usr/src/gcc-4.3.1/gcc/config/i386/i386.md:19425: warning: operand 1 missing mode?
/usr/src/gcc-4.3.1/gcc/builtins.c: In function 'expand_builtin':
/usr/src/gcc-4.3.1/gcc/builtins.c:6294: warning: unknown conversion type character 'K' in format
/usr/src/gcc-4.3.1/gcc/builtins.c:6294: warning: too many arguments for format
/usr/src/gcc-4.3.1/gcc/builtins.c:6300: warning: unknown conversion type character 'K' in format
/usr/src/gcc-4.3.1/gcc/builtins.c:6300: warning: too many arguments for format
/usr/src/gcc-4.3.1/gcc/builtins.c: In function 'expand_builtin_object_size':
/usr/src/gcc-4.3.1/gcc/builtins.c:11550: warning: unknown conversion type character 'K' in format
/usr/src/gcc-4.3.1/gcc/builtins.c:11550: warning: too many arguments for format
/usr/src/gcc-4.3.1/gcc/builtins.c:11563: warning: unknown conversion type character 'K' in format
/usr/src/gcc-4.3.1/gcc/builtins.c:11563: warning: too many arguments for format
/usr/src/gcc-4.3.1/gcc/builtins.c: In function 'expand_builtin_memory_chk':
/usr/src/gcc-4.3.1/gcc/builtins.c:11607: warning: unknown conversion type character 'K' in format
/usr/src/gcc-4.3.1/gcc/builtins.c:11607: warning: too many arguments for format
/usr/src/gcc-4.3.1/gcc/builtins.c: In function 'maybe_emit_chk_warning':
/usr/src/gcc-4.3.1/gcc/builtins.c:11761: warning: unknown conversion type character 'K' in format
/usr/src/gcc-4.3.1/gcc/builtins.c:11761: warning: too many arguments for format
/usr/src/gcc-4.3.1/gcc/builtins.c:11771: warning: unknown conversion type character 'K' in format
/usr/src/gcc-4.3.1/gcc/builtins.c:11771: warning: too many arguments for format
/usr/src/gcc-4.3.1/gcc/builtins.c: In function 'maybe_emit_sprintf_chk_warning':
/usr/src/gcc-4.3.1/gcc/builtins.c:11830: warning: unknown conversion type character 'K' in format
/usr/src/gcc-4.3.1/gcc/builtins.c:11830: warning: too many arguments for format
/usr/src/gcc-4.3.1/gcc/expr.c: In function 'expand_expr_real_1':
/usr/src/gcc-4.3.1/gcc/expr.c:8024: warning: unknown conversion type character 'K' in format
/usr/src/gcc-4.3.1/gcc/expr.c:8024: warning: too many arguments for format
/usr/src/gcc-4.3.1/gcc/expr.c:8033: warning: unknown conversion type character 'K' in format
/usr/src/gcc-4.3.1/gcc/expr.c:8033: warning: format '%qs' expects type 'char *', but argument 2 has type 'tree'
/usr/src/gcc-4.3.1/gcc/expr.c:8033: warning: too many arguments for format
/usr/src/gcc-4.3.1/gcc/expr.c:8039: warning: unknown conversion type character 'K' in format
/usr/src/gcc-4.3.1/gcc/expr.c:8039: warning: format '%qs' expects type 'char *', but argument 3 has type 'tree'
/usr/src/gcc-4.3.1/gcc/expr.c:8039: warning: too many arguments for format
/usr/gcc-build/./gcc/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
Applying io_quotes_use            to asm-i386/mtrr.h
Applying io_quotes_use            to xorg/xorgVersion.h
Applying io_quotes_def            to xorg/edid.h
Applying io_quotes_use            to xorg/edid.h
Fixed:  xorg/edid.h
Quoted includes in xorg/edid.h
Applying io_quotes_use            to xorg/xf86Module.h
Applying io_quotes_def            to xorg/xf86Pci.h
Applying strict_ansi_only         to xorg/compiler.h
Fixed:  xorg/compiler.h
Quoted includes in xorg/compiler.h
Applying io_quotes_def            to xorg/IBM.h
Applying hpux8_bogus_inlines      to math.h
Applying io_quotes_use            to rdma/ib_user_mad.h
Applying io_quotes_use            to asm-x86_64/mtrr.h
Applying io_quotes_use            to linux/cm4000_cs.h
Applying io_quotes_use            to linux/input.h
Applying io_quotes_use            to linux/fd.h
Applying io_quotes_use            to linux/blkpg.h
Applying io_quotes_use            to linux/spi/spidev.h
Applying io_quotes_use            to linux/cciss_ioctl.h
Applying io_quotes_use            to linux/dn.h
Applying io_quotes_use            to linux/fs.h
Applying io_quotes_def            to linux/version.h
Applying io_quotes_use            to linux/random.h
Applying io_quotes_def            to linux/ppp-comp.h
Applying io_quotes_use            to linux/dm-ioctl.h
Applying io_quotes_use            to linux/mmtimer.h
Applying io_quotes_def            to linux/pci_regs.h
Applying io_quotes_use            to linux/uinput.h
Applying io_quotes_use            to linux/raid/md_u.h
Applying io_quotes_use            to linux/if_pppox.h
Applying io_quotes_use            to linux/atmbr2684.h
Applying io_quotes_use            to linux/agpgart.h
Applying io_quotes_use            to linux/synclink.h
Applying io_quotes_use            to linux/ppdev.h
Applying io_quotes_use            to linux/kvm.h
Applying io_quotes_use            to linux/auto_fs4.h
Applying io_quotes_use            to linux/i2o-dev.h
Applying io_quotes_use            to linux/videotext.h
Applying io_quotes_use            to linux/gigaset_dev.h
Applying io_quotes_use            to linux/nbd.h
Applying io_quotes_use            to linux/pktcdvd.h
Applying io_quotes_use            to linux/phantom.h
Applying io_quotes_def            to linux/reiserfs_fs.h
Applying io_quotes_use            to linux/reiserfs_fs.h
Applying io_quotes_use            to linux/auto_fs.h
Applying io_quotes_use            to linux/raw.h
Applying io_quotes_use            to linux/watchdog.h
Applying io_quotes_use            to linux/ipmi.h
Applying io_quotes_def            to linux/soundcard.h
Applying io_quotes_use            to sound/asound.h
Applying io_quotes_use            to sound/asequencer.h
Applying io_quotes_use            to sound/emu10k1.h
Applying pthread_incomplete_struct_argument to pthread.h
Applying io_quotes_use            to mtd/ubi-user.h
Applying glibc_c99_inline_1       to features.h
Fixed:  features.h
Applying sun_malloc               to malloc.h
Applying io_quotes_use            to video/sisfb.h
Applying io_quotes_use            to sys/mount.h
Applying io_quotes_use            to sys/raw.h
Applying sysv68_string            to string.h
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] 错误 1
make[1]: *** [stage1-bubble] 错误 2
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-17 23:02:39 | 显示全部楼层
if you need this, i uploaded the 'make' output message here:
http://pickup.mofile.com/7695977505409184

this is too big, i compressed it .

thank you
回复 支持 反对

使用道具 举报

发表于 2008-7-17 23:33:44 | 显示全部楼层
Perhaps you need is wine/win+Cygwin/Mingw.
Otherwise, I don't know why you want to do this.
回复 支持 反对

使用道具 举报

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

本版积分规则

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