View previous topic :: View next topic |
Author |
Message |
rhill Retired Dev
Joined: 22 Oct 2004 Posts: 1629 Location: sk.ca
|
Posted: Tue Dec 07, 2004 2:10 am Post subject: |
|
|
same thing happened to me. after realizing i had just built from stage one with hardened gcc, i just decided to wipe it all and start again from stage 3. took the same amount of time to recompile everything anyways =/, and this time everything is a lot less flakey.
i'm starting to agree that stage three is the way to go. i don't think i've done a stage one or stage two yet that hasn't bombed out or fell apart for one reason or another. (although to be fair, i like to fiddle with things a lot so in most cases it's probably been my own fault ) |
|
Back to top |
|
|
yodermk Apprentice
Joined: 09 Jun 2003 Posts: 189 Location: Quito, Ecuador
|
Posted: Sat Dec 11, 2004 4:30 pm Post subject: |
|
|
Just jumping in here.... I'm trying to build Rimfaxe Web Server, written using gcj, on 3.4.3-r1. It says it requires 3.3, though I'm hoping that's a minimal version (a list message from January says it works with 3.4 CVS). Am getting this error:
Code: | /usr/bin/gcj -O2 -fPIC -Wno-deprecated -fno-bounds-check -fno-store-check -c \
\
javax/servlet/*.class \
javax/servlet/http/*.class \
javax/servlet/jsp/*.class \
javax/servlet/jsp/tagext/*.class \
-o javax_servlet.o
javax/servlet/Filter.class:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
make: *** [javax_servlet.o] Error 1 |
Not sure if this is a problem with the GCC ebuild, GCC itself, or the RWS code. Any ideas? |
|
Back to top |
|
|
Jengu Guru
Joined: 28 Oct 2004 Posts: 384
|
Posted: Tue Dec 14, 2004 4:20 am Post subject: |
|
|
I want to try GCC 3.4 since my XP3000+ desktop has spoiled me and my P3 700mhz laptop seems so slow.
These would be the correct steps for setting up gcc 3.4 yes?
Code: |
emerge sync
echo "sys-devel/gcc ~x86" >> /etc/portage/package.keywords
echo "sys-libs/glibc ~x86" >> /etc/portage/package.keywords
echo "sys-devel/gcc-config ~x86" >> /etc/portage/package.keywords
emerge gcc glibc gcc-config
gcc-config -l
gcc-config number_of_gcc3.4_profile_from_last_command
fix_libtool_files.sh 3.3.4 #3.3.4 is the version of gcc I have now
emerge -e system
emerge -e system
emerge -e world
emerge -e world
|
|
|
Back to top |
|
|
Rafal_Glazar Apprentice
Joined: 10 Jul 2004 Posts: 167 Location: Rzeszow, Poland
|
Posted: Tue Dec 14, 2004 7:58 am Post subject: |
|
|
Jengu wrote: | I want to try GCC 3.4 since my XP3000+ desktop has spoiled me and my P3 700mhz laptop seems so slow.
These would be the correct steps for setting up gcc 3.4 yes?
Code: |
emerge sync
echo "sys-devel/gcc ~x86" >> /etc/portage/package.keywords
echo "sys-libs/glibc ~x86" >> /etc/portage/package.keywords
echo "sys-devel/gcc-config ~x86" >> /etc/portage/package.keywords
emerge gcc glibc gcc-config
gcc-config -l
gcc-config number_of_gcc3.4_profile_from_last_command
fix_libtool_files.sh 3.3.4 #3.3.4 is the version of gcc I have now
emerge -e system
emerge -e system
emerge -e world
emerge -e world
|
|
All I did was:
Code: |
emerge sync
echo "sys-devel/gcc ~x86" >> /etc/portage/package.keywords
echo "sys-libs/libstdc++-v3 ~x86" >> /etc/portage/package.keywords
emerge gcc libstdc++-v3
gcc-config -l
gcc-config number_of_gcc3.4_profile
emerge -e system
emerge -e system
emerge -e world
emerge -e world
|
_________________ "All I ask for is choice. I want to be able to go into any store you can buy a computer in and say, "I want ______ OS on this computer." Is that too much to ask? We can't always be looking out Windows. We also need to get work done." - Bill Olson |
|
Back to top |
|
|
Cintra Advocate
Joined: 03 Apr 2004 Posts: 2111 Location: Norway
|
Posted: Tue Dec 14, 2004 4:02 pm Post subject: |
|
|
[quote="Rafal_Glazar"] Jengu wrote: | I want to try GCC 3.4 since my XP3000+ desktop has spoiled me and my P3 700mhz laptop seems so slow. These would be the correct steps for setting up gcc 3.4 yes? ...
All I did was:
Code: |
emerge sync
echo "sys-devel/gcc ~x86" >> /etc/portage/package.keywords
echo "sys-libs/libstdc++-v3 ~x86" >> /etc/portage/package.keywords
emerge gcc libstdc++-v3
gcc-config -l
gcc-config number_of_gcc3.4_profile
emerge -e system
emerge -e system
emerge -e world
emerge -e world
|
|
I've seen this a number of times now, but why twice emerge -e system and world?
regards _________________ "I am not bound to please thee with my answers" W.S. |
|
Back to top |
|
|
Rafal_Glazar Apprentice
Joined: 10 Jul 2004 Posts: 167 Location: Rzeszow, Poland
|
Posted: Tue Dec 14, 2004 5:54 pm Post subject: |
|
|
Cintra wrote: |
I've seen this a number of times now, but why twice emerge -e system and world?
regards |
Look at the page 3 of this topic. There is a post about it by robmoss. _________________ "All I ask for is choice. I want to be able to go into any store you can buy a computer in and say, "I want ______ OS on this computer." Is that too much to ask? We can't always be looking out Windows. We also need to get work done." - Bill Olson |
|
Back to top |
|
|
Cintra Advocate
Joined: 03 Apr 2004 Posts: 2111 Location: Norway
|
Posted: Tue Dec 14, 2004 6:01 pm Post subject: |
|
|
Thanks Rafal_Glazar
Now I understand
mvh _________________ "I am not bound to please thee with my answers" W.S. |
|
Back to top |
|
|
Jengu Guru
Joined: 28 Oct 2004 Posts: 384
|
Posted: Tue Dec 14, 2004 8:55 pm Post subject: |
|
|
Would all of these cflags be safe for me to use with 3.4? I think that they are based on the thread but want to double check before I recompile everything and find a horribly unstable system
(I have a P3 Coppermine)
Code: |
CFLAGS="-O2 -mtune=pentium3 -march=pentium3 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -frename-registers -fprefetch-loop-arrays -fweb -ftracer -pipe "
CXXFLAGS=${CFLAGS}-fvisibility-inlines-hidden
|
And do I need to add sse/mmx stuff to that or is having the sse and mmx use flags enough? |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Tue Dec 14, 2004 10:07 pm Post subject: |
|
|
-fprefetch-loop-arrays does longer compile time and unstable system here on my pentium4.
USE="mxx mmx2 sse sse2" is ok. adding kind of these to CFLAGS can break things... seen often enough |
|
Back to top |
|
|
Jengu Guru
Joined: 28 Oct 2004 Posts: 384
|
Posted: Tue Dec 14, 2004 10:20 pm Post subject: |
|
|
geki wrote: | -fprefetch-loop-arrays does longer compile time and unstable system here on my pentium4.
USE="mxx mmx2 sse sse2" is ok. adding kind of these to CFLAGS can break things... seen often enough |
Can my p3 handle mmx2 and sse2? I don't see either listed in my flags:
Code: |
tuxedo dri # cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 8
model name : Pentium III (Coppermine)
stepping : 6
cpu MHz : 848.204
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse
bogomips : 1687.55
|
Edit: OK, now I'm confused. I googled and found out that mmx2 and sse are the same thing! Why are there multiple use flags? But google does say p3 does not support sse2. |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Tue Dec 14, 2004 11:32 pm Post subject: |
|
|
i use p4! |
|
Back to top |
|
|
irf2003 Veteran
Joined: 10 Sep 2003 Posts: 1078
|
Posted: Wed Dec 15, 2004 12:02 am Post subject: |
|
|
Jengu,
take out all the mmx sse stuff from your USE flags, also
don't use these with your cflags, be wary of the -fpmath,
and you should be ok
cannot vouche for "-fprefetch-loop-arrays", but, that's plenty
of optimizations as a whole.
i can vouche for the compiler flags below, on a pentium3 and a pentium4 (change march mtune to pentium3 or 4), minus any sse or mmx USE flags.
Code: |
CFLAGS="-O2 -mtune=pentium3 -march=pentium3 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -frename-registers -fweb -ftracer -pipe "
CXXFLAGS=${CFLAGS}-fvisibility-inlines-hidden
|
hth
happy gentooing
@geki, i had bad experience with those mmx and sse USE flags,
can we compare notes?
@Jengu,
the p3 only supports, mmx, and sse, dunno what mmx2 and sse2
in the USE flags entail, but, wouldn't trust them.
as far as CFLAGS are conerned sse2 -> sse -> mmx
since sse2 is a superset of sse, which is a super set of mmx,
i stand to be corrected |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Wed Dec 15, 2004 12:38 am Post subject: |
|
|
i saw USE="mmx2" with mplayer ^^ used it and all fine still hehe
@ irf2003 what you mean with notes? |
|
Back to top |
|
|
irf2003 Veteran
Joined: 10 Sep 2003 Posts: 1078
|
Posted: Wed Dec 15, 2004 12:40 am Post subject: |
|
|
geki wrote: | i saw USE="mmx2" with mplayer ^^ used it and all fine still hehe
@ irf2003 what you mean with notes? :oops: |
i mean your emerge info
TIA
these are mine:
Code: |
gentoo2 ~ # emerge info
Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.4, glibc-2.3.4.20041102-r0,
2.6.8-gentoo-r10 i686)
=================================================================
System uname: 2.6.8-gentoo-r10 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.6.7
Python: dev-lang/python-2.3.4 [2.3.4 (#1, Dec 11 2004, 20:09:55)]
distcc 2.18.2 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled
]
ccache version 2.3 [enabled]
dev-lang/python: 2.3.4
sys-devel/autoconf: 2.59-r6, 2.13
sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils: 2.15.92.0.2-r2
sys-devel/libtool: 1.5.10-r1
virtual/os-headers: 2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mtune=pentium4 -march=pentium4 -fforce-addr -momit-leaf-frame-point
er -fomit-frame-pointer -frename-registers -fweb -ftracer -pipe "
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3
/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /us
r/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=pentium4 -march=pentium4 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -frename-registers -fweb -ftracer -pipe -fvisibility-inlines-hidden"
DISTDIR="/mnt/sda4/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distcc distlocks sfperms"
GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo"
MAKEOPTS="-j7"
PKGDIR="/mnt/sda4/shared/packages"
PORTAGE_TMPDIR="/mnt/sda4/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://134.68.220.73/gentoo-portage"
USE="X alsa arts avi berkdb bitmap-fonts cdr crypt dvd encode esd f77 fam flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 idea imagemagick imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls nomalloccheck nptl nptlonly oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcpd tetex tiff truetype x86 xml2 xmms xvzlib"
gentoo2 ~ # gcc -v
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/specs
Configured with: /mnt/sda4/tmp/portage/gcc-3.4.4_beta20041203/work/gcc-3.4-20041203/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.4 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/g++-v3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls--without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-shared --enable-threads=posix --disable-multilib --disable-libgcj --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.4 (Gentoo Linux 3.4.4_beta20041203)
gentoo2 ~ #
|
Last edited by irf2003 on Wed Dec 15, 2004 12:43 am; edited 1 time in total |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Wed Dec 15, 2004 12:42 am Post subject: |
|
|
there you are: ^^
Code: |
anomalie ~ # emerge info
Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-rc3-ano1 i686)
=================================================================
System uname: 2.6.10-rc3-ano1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.7
Python: dev-lang/python-2.3.4 [2.3.4 (#1, Dec 13 2004, 22:05:49)]
dev-lang/python: 2.3.4
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.4_p6, 1.8.5-r2, 1.6.3, 1.9.3, 1.5, 1.7.9
sys-devel/binutils: 2.15.94.0.1
sys-devel/libtool: 1.5.10-r1
virtual/os-headers: 2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mtune=pentium4 -march=pentium4 -pipe -fforce-addr -fforce-mem -momit-leaf-frame-pointer -fomit-frame-pointer -fweb -ftracer -frename-registers"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=pentium4 -march=pentium4 -pipe -fforce-addr -fforce-mem -momit-leaf-frame-pointer -fomit-frame-pointer -fweb -ftracer -frename-registers -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa apache2 avi berkdb bitmap-fonts cdr cups curl dga dts dvd dvdr dvdread fastcgi fbcon gd gif glx gpm gtk gtk2 hardenedphp icq imap imlib ipv6 java jpeg ldap lesstif libwww mad mbox mmx mmx2 motif mpeg multislot mysql ncurses nls nptl nptlonly nvidia oggvorbis opengl pam pdflib perl png python qt quicktime readline sasl sdl sse sse2 ssl stats tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales vhosts videos wmf wxwindows x86 xface xinerama xml xml2 xmms xprint xv xvid zlib video_cards_nvidia linguas_de" |
|
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Wed Dec 15, 2004 12:45 am Post subject: |
|
|
well, please, explain me what you see with these emerge info's I am lost today ... headless |
|
Back to top |
|
|
irf2003 Veteran
Joined: 10 Sep 2003 Posts: 1078
|
Posted: Wed Dec 15, 2004 12:51 am Post subject: |
|
|
@geki,
i see you are getting away with those mmx and sse USE flags,
i gave up on them a long time ago, as i got so many problems
with these, and took them out of my USE flags and never tired again.
the reason i wanted to compare notes is because we more or less
have the same setup.
however, i would still not dare to have those mmx and sse in my
USE flags, can you convince me otherwise??
TIA
happy gentooing |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Wed Dec 15, 2004 1:05 am Post subject: |
|
|
there were some progs erroring out on mmx specific code. like mplayer does. but that is not because of mmx USE-Flags or mmx specific. that are some other compiler flags that do these errors. with the flags i use it should not happen. or they are dropped by the ebuilds.
have a look at: (mplayer)
https://bugs.gentoo.org/show_bug.cgi?id=67903 |
|
Back to top |
|
|
irf2003 Veteran
Joined: 10 Sep 2003 Posts: 1078
|
Posted: Wed Dec 15, 2004 1:13 am Post subject: |
|
|
geki wrote: | there were some progs erroring out on mmx specific code. like mplayer does. but that is not because of mmx USE-Flags or mmx specific. that are some other compiler flags that do these errors. with the flags i use it should not happen. or they are dropped by the ebuilds.
have a look at: (mplayer)
https://bugs.gentoo.org/show_bug.cgi?id=67903 |
but look at what this guy had
Code: |
CFLAGS="-O3 -march=athlon-xp -m3dnow -msse -mfpmath=sse,387 -mmmx -maccumulate-outgoing-args -ftracer -pipe -fforce-addr -falign-functions=4 -fomit-frame-pointer"
|
no wonder he's having problems!
hey, i don't blame him, but, the compiler is not there yet...
many thanks
happy gentooing
PS the latest gcc-3.4 snapshot (20041210, don't use that one) can't even compile gettext, with the sanest of compiler flags |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Wed Dec 15, 2004 1:19 am Post subject: |
|
|
if you drop -fstack-protector and -fforce-addr mplayer compiles with mmx/sse specifics
doesn't matter what other flags you use... |
|
Back to top |
|
|
irf2003 Veteran
Joined: 10 Sep 2003 Posts: 1078
|
Posted: Wed Dec 15, 2004 1:26 am Post subject: |
|
|
geki wrote: | if you drop -fstack-protector and -fforce-addr mplayer compiles with mmx/sse specifics :)
doesn't matter what other flags you use... |
OK
many thanks
happy gentooing |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Wed Dec 15, 2004 1:46 am Post subject: |
|
|
geki wrote: | if you drop -fstack-protector and -fforce-addr mplayer compiles with mmx/sse specifics
doesn't matter what other flags you use... |
well, kinda other flags matter like -mfpmath=sse -mmmx -msse and alike are no-go *my personal view*
'man gcc' is a good friend of telling what incompatibilities occur etc... |
|
Back to top |
|
|
Jengu Guru
Joined: 28 Oct 2004 Posts: 384
|
Posted: Wed Dec 15, 2004 5:00 am Post subject: |
|
|
I have used the sse and mmx use flags succesfully on all the packages I have installed that actually use them. The major ones are xine, imlib2, eterm, and xorg. My system is completely stable with them.
I'm using irf's cflags and gcc 3.4 to recompile my whole system right now =) Seeing as my cflags before just had -pipe, march, and fomit-frame-pointer, and with gcc 3.4, I expect to see a pretty big speed improvement.
The 512MB of PC133 (have 256MB PC100 right now) coming in the mail should help too =)
Update: My first emerge -e system is done |
|
Back to top |
|
|
Jengu Guru
Joined: 28 Oct 2004 Posts: 384
|
Posted: Thu Dec 16, 2004 6:34 am Post subject: |
|
|
Both emerge systems are done and the first emerge world is going on in the background. Gaim segfaults a few seconds after I open it -- could this be due to the emerge's not finishing yet or am I going to have to recompile it after all this is done?
Edit: Specifically, whenever I send or a receive a message gaim segfaults. |
|
Back to top |
|
|
irf2003 Veteran
Joined: 10 Sep 2003 Posts: 1078
|
Posted: Thu Dec 16, 2004 6:00 pm Post subject: |
|
|
Jengu wrote: | Both emerge systems are done and the first emerge world is going on in the background. Gaim segfaults a few seconds after I open it -- could this be due to the emerge's not finishing yet or am I going to have to recompile it after all this is done?
Edit: Specifically, whenever I send or a receive a message gaim segfaults. |
try re-emerging gaim with plain Jane compiler flags, see if that helps.
please post you emerge info, so that we may see what you've got.
hth
happy gentooing
another thing, when programs segfaults, it could be a hardware problem, such as
bad memory sticks and such, does the segfaults only occure when you run gaim?
if not run memtestx86
hth |
|
Back to top |
|
|
|