LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: graydream

有没有人用gcc4作emerge -e system

[复制链接]
发表于 2005-4-19 14:16:43 | 显示全部楼层
能不能告诉我glibc是如何编译通过的,我的一直通不过,其他的也就编译的没劲

[PHP]i686-pc-linux-gnu-gcc ../sysdeps/ieee754/dbl-64/s_isnan.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -march=pentium4 -pipe -mpreferred-stack-boundary=4  -fPIC -g0 -O99 -fomit-frame-pointer -D__USE_STRING_INLINES -Wno-uninitialized -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES -I../include -I. -I/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/math -I.. -I../libio -I../nptl -I/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 -I../libidn/sysdeps/unix -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.0.0-beta20050416/include -isystem /usr/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DSHARED     -o /var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/math/s_isnan.os -MD -MP -MF /var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/math/s_isnan.os.dt -MT /var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/math/s_isnan.os
../sysdeps/ieee754/dbl-64/s_isinf.c:29: error: 'isinf' aliased to undefined symbol '__isinf'
make[2]: *** [/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/math/s_isinf.os] 错误 1
make[2]: *** 正在等待未完成的任务....
../sysdeps/ieee754/dbl-64/s_isnan.c:40: error: 'isnan' aliased to undefined symbol '__isnan'
make[2]: *** [/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/math/s_isnan.os] 错误 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5/math'
make[1]: *** [math/subdir_lib] 错误 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5'
make: *** [all] 错误 2[/PHP]
回复 支持 反对

使用道具 举报

发表于 2005-4-19 15:18:06 | 显示全部楼层
glibc 用的是CVS 20050411版本,ebuild可以在gentoo forums那个gcc4的帖子找到,
而且要设置PORTAGE_TMPDIR=/t,否则会出现命令行过长的问题。
回复 支持 反对

使用道具 举报

发表于 2005-4-19 15:33:59 | 显示全部楼层
安装 xorg-x11-6.8.99.[23] 如果出现启动程序超慢,请把 /usr/share/fonts/fonts 删掉
它是罪魁祸首。:)
回复 支持 反对

使用道具 举报

发表于 2005-4-19 22:54:42 | 显示全部楼层
xorg 6.8.99.3能用上最新的ati-drivers吗?
回复 支持 反对

使用道具 举报

发表于 2005-4-19 23:10:31 | 显示全部楼层
Post by Debentoo Gao
xorg 6.8.99.3能用上最新的ati-drivers吗?

好像不行。没搞定。
ATI的在Linux下基本就是浪费使用者的生命。。。 :beat
回复 支持 反对

使用道具 举报

发表于 2005-4-20 09:23:27 | 显示全部楼层
Post by younker
glibc 用的是CVS 20050411版本,ebuild可以在gentoo forums那个gcc4的帖子找到,
而且要设置PORTAGE_TMPDIR=/t,否则会出现命令行过长的问题。


谢谢younter兄,编译就要通过了,具体作法是:
1.下载glibc2.3.4ebuild 放到/usr/portage/sys-libs/glibc目录中
2.
  1. cd /usr/portage/sys-libs/glibc
  2. ebuild glibc-2.3.4.20050404.ebuild digest
  3. mkdir /t
  4. PORTAGE_TMPDIR=/t emerge XX
复制代码

我可能忘记用multislot了,连接出现问题,不能生成可执行文件了
回复 支持 反对

使用道具 举报

发表于 2005-4-20 10:18:52 | 显示全部楼层
使用emerge glibc成功,但是再编译其他软件时出现如下错误
checking whether the C compiler (gcc -march=pentium4 -O2 -pipe ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

!!! ERROR: sys-devel/gcc-4.0.0_beta20050416 failed.
!!! Function gcc_do_configure, Line 1048, Exitcode 1
!!! failed to run configure
!!! If you need support, post the topmost build error, NOT this status message.


[PHP]parrot ~ #gcc tt.c
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/../../../../i686-pc-linux-gnu/bin/ld:/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/../../../libc.so: file format not recognized; treating as linker script
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/../../../../i686-pc-linux-gnu/bin/ld:/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/../../../libc.so:5: syntax error
collect2: ld returned 1 exit status
parrot ~ # gcc tt.c -c -o tt.o
parrot ~ # ld tt.o
parrot ~ # ld tt.o
ld: warning: cannot find entry symbol _start; defaulting to 00000000080480b4[/PHP]
回复 支持 反对

使用道具 举报

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

本版积分规则

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