haulm 发表于 2008-7-31 15:08:16

如果升级了gcc3到gcc4.2.4,会影响当前系统的正常使用么?

RT,早就想更新GCC了,可重新编译整个系统又一直被拖延。

sejishikong 发表于 2008-7-31 15:42:50

基本不会有什么影响,除了我打包时弄错了的那个时区.

haulm 发表于 2008-7-31 18:54:37

2.5u]# rpm -Uvh *.rpm
Preparing...                ###########################################
   1:libgcc               ###########################################
   2:glibc-common         ########################################### [ 12%]
   3:glibc                  ########################################### [ 18%]
   4:binutils               ########################################### [ 24%]
   5:glibc-headers          ########################################### [ 29%]
   6:glibc-devel            ########################################### [ 35%]
   7:libstdc++            ########################################### [ 41%]
   8:libstdc++-devel      ########################################### [ 47%]
   9:apr                  ########################################### [ 53%]
10:cpp                  ########################################### [ 59%]
11:libgomp                ########################################### [ 65%]
12:gcc                  ########################################### [ 71%]
13:apr-devel            ########################################### [ 76%]
14:binutils-devel         ########################################### [ 82%]
15:gcc-c++                ########################################### [ 88%]
16:glibc-utils            ########################################### [ 94%]
17:libtool                ###########################################

sejishikong 发表于 2008-7-31 19:08:55

嗯,基本上就是这些包就可以了.libtool和apr的依赖是写成gcc版本形式的,所以必须一块更新,其实没什么变动.

haulm 发表于 2008-7-31 19:11:13

还好,终于用上GCC4了,还等终结了2.1投入2.5。

xx_zz 发表于 2008-7-31 20:55:01

不错啊,升级了gcc和glibc很多新软件应该都能编译了。

jiangtao9999 发表于 2008-7-31 21:07:48

:roll:
干脆 rc2 拿新的 gcc 和 glibc 重建吧……

sejishikong 发表于 2008-7-31 21:10:50

那样可能需要等一段时间了,可以接受么?而且会导致对老软件的兼容性下降.

还有,我的想法是在gcc4上的是2.5版本,包括python/perl等都会做大版本号的升级.但基本的开发方式还是和现在一样的.所以并不是3.0

jiangtao9999 发表于 2008-8-1 08:55:43

兼容问题能不能制作一个共存的旧版兼容包?

haulm 发表于 2008-8-1 12:51:12

原帖由 jiangtao9999 于 2008-8-1 08:55 发表 http://www.linuxfans.org/bbs/images/common/back.gif
兼容问题能不能制作一个共存的旧版兼容包?

旧软件不更新肯定要被取代的,这是软件的自然淘汰。

fang3307 发表于 2008-8-1 13:55:14

为什么我现在不能编译源码了?

configure时候提示:error: C compiler cannot create executables

环境:rc1 cd版,昨天安装QQ for linux,照帖子更新gcc到4.2的

是不是gcc还需要更多的升级文件

下面是log文件

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by advance configure source, which was
generated by GNU Autoconf 2.59.Invocation command line was

$ ./configure --prefix=/usr/advansemame

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

hostname = MagicLinux-fjw
uname -m = i686
uname -r = 2.6.25.10-smp
uname -s = Linux
uname -v = #1 SMP Tue Jul 8 16:20:12 CST 2008

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

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

PATH: /usr/lib/qt-3.3/bin
PATH: /usr/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /usr/java/jre1.6.0_04/bin
PATH: /root/bin
PATH: /usr/java/jre1.6.0_04/bin


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

configure:1404: checking build system type
configure:1422: result: i686-pc-linux-gnu
configure:1430: checking host system type
configure:1444: result: i686-pc-linux-gnu
configure:1605: checking for gcc
configure:1621: found /usr/bin/gcc
configure:1631: result: gcc
configure:1875: checking for C compiler version
configure:1878: gcc --version </dev/null >&5
gcc (GCC) 4.2.4 20080519 (Red Hat 4.2.4-2mgc)
Copyright (C) 2007 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:1881: $? = 0
configure:1883: gcc -v </dev/null >&5
Using built-in specs.
Target: i686-magic-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --disable-libjava-multilib --with-cpu=generic --host=i686-magic-linux --build=i686-magic-linux --target=i686-magic-linux
Thread model: posix
gcc version 4.2.4 20080519 (Red Hat 4.2.4-2mgc)
configure:1886: $? = 0
configure:1888: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:1891: $? = 1
configure:1914: checking for C compiler default output file name
configure:1917: gcc    conftest.c>&5
gcc: error trying to exec 'cc1': execvp: No such file or directory
configure:1920: $? = 1
configure: failed program was:
| /* confdefs.h.*/
|
| #define PACKAGE_NAME "advance"
| #define PACKAGE_TARNAME "advance"
| #define PACKAGE_VERSION "source"
| #define PACKAGE_STRING "advance source"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.*/
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:1959: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
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_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_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=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_prog_ac_ct_CC=gcc

## ----------------- ##
## Output variables. ##
## ----------------- ##

ALLOCA=''
AR=''
ASM=''
ASMFLAGS='-f elf'
CC='gcc'
CC_FOR_BUILD=''
CFLAGS=''
CFLAGS_FOR_BUILD='-O0 -DUSE_COMPILER_GNUC -DUSE_OBJ_ELF -DUSE_OS_UNIX'
CONF_BUILD='linux'
CONF_CFLAGS_ARCH=''
CONF_CFLAGS_OPT=''
CONF_DEBUG=''
CONF_DEBUGGER=''
CONF_EMU=''
CONF_HOST='linux'
CONF_LDFLAGS=''
CONF_LIB_ALSA=''
CONF_LIB_DIRECT=''
CONF_LIB_EXPAT=''
CONF_LIB_FB=''
CONF_LIB_FREETYPE=''
CONF_LIB_JEVENT=''
CONF_LIB_JRAW=''
CONF_LIB_KEVENT=''
CONF_LIB_KRAW=''
CONF_LIB_MCPN=''
CONF_LIB_MEVENT=''
CONF_LIB_MRAW=''
CONF_LIB_MRAWINPUT=''
CONF_LIB_NCURSES=''
CONF_LIB_OSS=''
CONF_LIB_PTHREAD=''
CONF_LIB_SDL=''
CONF_LIB_SLANG=''
CONF_LIB_SVGALIB=''
CONF_LIB_SVGAWIN=''
CONF_LIB_ZLIB=''
CONF_SYSTEM='unix'
CP=''
CPP=''
CPPFLAGS=''
CXX=''
CXXFLAGS=''
CXX_FOR_BUILD=''
DEFS=''
ECHO=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXE=''
EXEEXT=''
EXE_FOR_BUILD=''
FREETYPECFLAGS=''
FREETYPELIBS=''
GZIP=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LN_S=''
LTLIBOBJS=''
MKDIR=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='advance'
PACKAGE_STRING='advance source'
PACKAGE_TARNAME='advance'
PACKAGE_VERSION='source'
PATH_SEPARATOR=':'
RC=''
RM=''
SDLCFLAGS=''
SDLLIBS=''
SHELL='/bin/sh'
TAR=''
ZIP=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_RC=''
ac_lib_freetype_config=''
ac_lib_sdl_config=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr/advansemame'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "advance"
#define PACKAGE_STRING "advance source"
#define PACKAGE_TARNAME "advance"
#define PACKAGE_VERSION "source"

configure: exit 77

[ 本帖最后由 fang3307 于 2008-8-1 13:59 编辑 ]

sejishikong 发表于 2008-8-1 14:42:49

你要装的什么程序,看提示是找不以cc1,gcc的包装全了么?

fang3307 发表于 2008-8-1 17:24:53

装一个游戏模拟器

我也想知道gcc的包是否装全了,不知道GCC是包含哪些包的

sejishikong 发表于 2008-8-1 17:34:46

应该就是上面列的那些包,不行再reinstall一次看看。
页: [1]
查看完整版本: 如果升级了gcc3到gcc4.2.4,会影响当前系统的正常使用么?