| View previous topic :: View next topic |
| Author |
Message |
Matje l33t

Joined: 29 Oct 2002 Posts: 619 Location: Hasselt, Belgium
|
Posted: Thu May 22, 2003 11:02 am Post subject: |
|
|
https://bugs.gentoo.org/show_bug.cgi?id=21471
There ya go
Instant-java
Download the tarball and extract it in your portage-overlay, then emerge it. Should work out of the box, if any problems, report them here or in the bug report
Now let's take on openoffice
P.S.: Really really make sure you have enough free HD space, 2 GB didn't suffice for me, make sure you have at least 2.5 - 3 GB free... _________________ Life is like a box of chocolates... Before you know it, it's empty... |
|
| Back to top |
|
 |
Matje l33t

Joined: 29 Oct 2002 Posts: 619 Location: Hasselt, Belgium
|
Posted: Thu May 22, 2003 6:45 pm Post subject: |
|
|
This openoffice is a hard case to crack But I'm getting there... I hope  _________________ Life is like a box of chocolates... Before you know it, it's empty... |
|
| Back to top |
|
 |
floam Veteran

Joined: 27 Oct 2002 Posts: 1067 Location: Vancouver, WA USA
|
Posted: Fri May 23, 2003 1:09 am Post subject: |
|
|
glibc 2.3.2-r2 fails for some reason here (this could be the regular glibc error with gcc, but i doupt it, since glibc 2.3.2-r2 applys a patch im sure):
| Code: | gcc ../sysdeps/unix/sysv/linux/i386/sysdep.S -c -I../include -I. -I/var/tmp/portage/glibc-2.3.2-r2/work/glibc-2.3.2/buildhere/csu -I.. -I../libio -I../nptl -I/var/tmp/portage/glibc-2.3.2-r2/work/glibc-2.3.2/buildhere -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../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-lib/i686-pc-linux-gnu/3.3/include -isystem /lib/modules/2.5.69-mm8/build/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -DASSEMBLER -I/var/tmp/portage/glibc-2.3.2-r2/work/glibc-2.3.2/buildhere/csu/. -DGAS_SYNTAX -o /var/tmp/portage/glibc-2.3.2-r2/work/glibc-2.3.2/buildhere/csu/sysdep.o -MD -MP -MF /var/tmp/portage/glibc-2.3.2-r2/work/glibc-2.3.2/buildhere/csu/sysdep.o.dt
In file included from ../sysdeps/unix/sysv/linux/sys/sysctl.h:29,
from ../include/sys/sysctl.h:2,
from ../sysdeps/unix/sysv/linux/dl-osinfo.h:22,
from ../sysdeps/generic/libc-start.c:33:
/lib/modules/2.5.69-mm8/build/include/linux/sysctl.h:39: error: parse error before '*' token
/lib/modules/2.5.69-mm8/build/include/linux/sysctl.h:41: error: parse error before '*' token
/lib/modules/2.5.69-mm8/build/include/linux/sysctl.h:42: error: parse error before '*' token
/lib/modules/2.5.69-mm8/build/include/linux/sysctl.h:43: error: parse error before '*' token
/lib/modules/2.5.69-mm8/build/include/linux/sysctl.h:46: error: parse error before '}' token
../stdio-common/_itoa.h:40: warning: inlining failed in call to `_itoa_word'
../nptl/sysdeps/pthread/list.h:76: warning: called from here
make[2]: *** [/var/tmp/portage/glibc-2.3.2-r2/work/glibc-2.3.2/buildhere/csu/libc-start.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r2/work/glibc-2.3.2/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r2/work/glibc-2.3.2'
make: *** [all] Error 2
!!! ERROR: sys-libs/glibc-2.3.2-r2 failed.
!!! Function src_compile, Line 422, Exitcode 2
!!! (no error message)
|
|
|
| Back to top |
|
 |
Hayl Guru


Joined: 28 Jan 2003 Posts: 442 Location: Calgary, Alberta, Canada
|
Posted: Fri May 23, 2003 1:11 pm Post subject: |
|
|
how can i make the GCC 3.3 from portage co-exist with the GCC 3.2 from portage?
i have only GCC 3.3 installed at the moment. |
|
| Back to top |
|
 |
Rhino Apprentice


Joined: 12 Feb 2003 Posts: 177
|
Posted: Fri May 23, 2003 1:30 pm Post subject: |
|
|
| floam wrote: | glibc 2.3.2-r2 fails for some reason here (this could be the regular glibc error with gcc, but i doupt it, since glibc 2.3.2-r2 applys a patch im sure):
|
this is a kernel header problem, take a look here :
https://forums.gentoo.org/viewtopic.php?t=55034 _________________ With sufficient thrust, pigs fly just fine.
[ RFC 1925 ] |
|
| Back to top |
|
 |
Matje l33t

Joined: 29 Oct 2002 Posts: 619 Location: Hasselt, Belgium
|
Posted: Fri May 23, 2003 5:12 pm Post subject: |
|
|
| Hayl wrote: | how can i make the GCC 3.3 from portage co-exist with the GCC 3.2 from portage?
i have only GCC 3.3 installed at the moment. |
| Code: | | emerge /usr/portage/sys-devel/gcc/gcc-3.2.3-r1.ebuild |
This wil not unmerge your gcc 3.3
switch between them with gcc-config _________________ Life is like a box of chocolates... Before you know it, it's empty... |
|
| Back to top |
|
 |
Gnufsh Guru


Joined: 28 Dec 2002 Posts: 400 Location: Portland, OR
|
Posted: Thu May 29, 2003 5:13 pm Post subject: |
|
|
| I'm using the gcc-3.3 ebuild in portage right now. It seems to have completely replaced 3.2. I have successfully compiled the hard-masked glibc, mozilla, gimp, and several updates in the last week. |
|
| Back to top |
|
 |
scrooch n00b

Joined: 25 Jan 2003 Posts: 52 Location: Venlo/Eindhoven, the Netherlands
|
Posted: Sat May 31, 2003 2:57 pm Post subject: |
|
|
Is there a way to let the bootstrap been done by gcc 3.3 yet? _________________ too much is never enough |
|
| Back to top |
|
 |
Safrax Guru

Joined: 23 Apr 2002 Posts: 422
|
Posted: Sun Jun 01, 2003 2:25 am Post subject: |
|
|
| scrooch wrote: | | Is there a way to let the bootstrap been done by gcc 3.3 yet? |
Yes. You need to unmask it and change some stuff in packages file in /etc/make.profile. There's still a few broken packages running around though... |
|
| Back to top |
|
 |
Exner Tux's lil' helper


Joined: 08 Apr 2003 Posts: 128 Location: Melbourne, Australia
|
Posted: Mon Jun 02, 2003 7:52 pm Post subject: What about 3.3-r1 ? |
|
|
Its been a while now but there has been no gcc-3.3-r1 package yet. There must be a small mountain of bug fixes and tweaks ready to go into an upgraded gcc-3.3 package.
I'm having upgrade withdrawl! Tool to make tools!  _________________ - Exner (Antony Suter) |
|
| Back to top |
|
 |
klette n00b

Joined: 30 Apr 2003 Posts: 34 Location: Norway
|
Posted: Mon Jun 02, 2003 10:03 pm Post subject: |
|
|
debianutils stops with
| Code: |
klette root # emerge --resume
*** Resuming merge...
>>> emerge (1 of 332) sys-apps/debianutils-1.16.7-r1 to /
>>> md5 src_uri ;-) debianutils_1.16.7.tar.gz
>>> Unpacking source...
>>> Unpacking debianutils_1.16.7.tar.gz to /var/tmp/portage/debianutils-1.16.7-r1/work
* Applying debianutils-1.16.7-gentoo.patch... [ ok ]
* Applying debianutils-compress.patch... [ ok ]
>>> Source unpacked.
gcc -strip-flags mktemp.c -o mktemp
gcc: unrecognized option `-strip-flags'
gcc -strip-flags readlink.c -o readlink
gcc: unrecognized option `-strip-flags'
gcc -strip-flags run-parts.c -o run-parts
gcc: unrecognized option `-strip-flags'
gcc -strip-flags tempfile.c -o tempfile
gcc: unrecognized option `-strip-flags'
tempfile.c:19:12: missing terminating " character
tempfile.c: In function `usage':
tempfile.c:21: error: stray '\' in program
tempfile.c:21: error: parse error before "n"
tempfile.c:21: error: `n' undeclared (first use in this function)
tempfile.c:21: error: (Each undeclared identifier is reported only once
tempfile.c:21: error: for each function it appears in.)
tempfile.c:21: error: `d' undeclared (first use in this function)
tempfile.c:21: error: `directory' undeclared (first use in this function)
tempfile.c:21: error: `DIR' undeclared (first use in this function)
tempfile.c:21: error: parse error before "place"
tempfile.c:21: error: stray '\' in program
tempfile.c:23:40: warning: character constant too long for its type
tempfile.c:21: error: stray '\' in program
tempfile.c:21: error: stray '\' in program
tempfile.c:21: error: stray '\' in program
tempfile.c:21: error: stray '\' in program
tempfile.c:21: error: stray '\' in program
tempfile.c:28:59: missing terminating " character
make: *** [tempfile] Error 1
make: *** Waiting for unfinished jobs....
run-parts.c:58:1: missing terminating " character
run-parts.c: In function `version':
run-parts.c:59: error: parse error before "Copyright"
run-parts.c:60: error: `see' undeclared (first use in this function)
run-parts.c:60: error: (Each undeclared identifier is reported only once
run-parts.c:60: error: for each function it appears in.)
run-parts.c:62:1: missing terminating " character
run-parts.c:69:20: missing terminating " character
run-parts.c: In function `usage':
run-parts.c:70: error: wrong type argument to decrement
run-parts.c:70: error: parse error before "test"
run-parts.c:70:62: missing terminating ' character
run-parts.c:70:62: warning: character constant too long for its type
run-parts.c:77:1: missing terminating " character
make: *** [run-parts] Error 1
!!! ERROR: sys-apps/debianutils-1.16.7-r1 failed.
!!! Function src_compile, Line 36, Exitcode 2
!!! (no error message)
|
Any tips? Seems like some package needs it badly  _________________ Never read the manual... It can betray you... |
|
| Back to top |
|
 |
Gnufsh Guru


Joined: 28 Dec 2002 Posts: 400 Location: Portland, OR
|
Posted: Tue Jun 03, 2003 8:33 am Post subject: |
|
|
Successfully compiled
[ebuild N ] sys-devel/patch-2.5.4-r5
[ebuild N ] sys-devel/libtool-1.4.3-r1
[ebuild N ] sys-libs/zlib-1.1.4-r1
[ebuild N ] dev-python/python-fchksum-1.6.1-r1
[ebuild N ] sys-apps/bzip2-1.0.2-r2
[ebuild N ] sys-apps/debianutils-1.16.7-r2
[ebuild N ] app-shells/bash-2.05b-r5
[ebuild N ] sys-libs/readline-4.3-r4
[ebuild N ] dev-util/dialog-0.9_beta20030308-r1
[ebuild N ] sys-devel/gettext-0.11.5-r1
[ebuild N ] sys-apps/grep-2.5.1-r1
[ebuild N ] app-admin/gentoolkit-0.1.25
[ebuild N ] dev-lang/tcl-8.4.2-r1
[ebuild N ] media-libs/libpng-1.2.5-r4
[ebuild N ] sys-devel/flex-2.5.4a-r5
[ebuild N ] sys-apps/gawk-3.1.2-r3
[ebuild N ] sys-kernel/linux-headers-2.4.19
[ebuild N ] sys-apps/baselayout-1.8.6.8-r1
[ebuild N ] x11-base/opengl-update-1.5
[ebuild N ] media-libs/freetype-2.1.4
[ebuild N ] x11-misc/ttmkfdir-3.0.9
[ebuild N ] dev-libs/expat-1.95.6-r1
[ebuild N ] sys-devel/m4-1.4
[ebuild N ] sys-libs/db-1.85-r1
[ebuild N ] sys-libs/db-3.2.9-r5
[ebuild N ] sys-apps/texinfo-4.5
[ebuild N ] sys-devel/autoconf-2.57-r1
[ebuild N ] sys-apps/miscfiles-1.3-r1
[ebuild N ] sys-devel/gcc-config-1.3.3-r1
[ebuild N ] sys-libs/cracklib-2.7-r7
[ebuild N ] dev-libs/glib-1.2.10-r5
[ebuild N ] sys-libs/pwdb-0.61-r4
[ebuild N ] sys-devel/automake-1.7.2
[ebuild N ] sys-libs/pam-0.75-r11
[ebuild N ] sys-apps/ed-0.2-r3
[ebuild N ] media-libs/fontconfig-2.2.0-r2
[ebuild N ] app-arch/unzip-5.50-r1
[ebuild N ] app-arch/cabextract-0.6
[ebuild N ] x11-base/xfree-4.3.0-r2
[ebuild N ] dev-lang/tk-8.4.2-r1
[ebuild N ] dev-lang/python-2.2.2-r1
[ebuild N ] sys-apps/fileutils-4.1.11
failed compiles:
[ebuild N ] sys-libs/ncurses-5.3-r1
I also can't get gentoo-sources-2.4.20-r5 to compile, it fails while working on ide-cd.
When I compile procps with 3.3 it gies me floating point exceptions when I try to run top or ps. The same flags worked fine with 3.2 |
|
| Back to top |
|
 |
Exner Tux's lil' helper


Joined: 08 Apr 2003 Posts: 128 Location: Melbourne, Australia
|
Posted: Tue Jun 03, 2003 11:50 am Post subject: |
|
|
FWIW my list of successful emergings with gcc-3.3 is:
20030519102517 app-admin/gkrellm-2.1.10
20030519103543 sys-apps/shadow-4.0.3-r6
20030519162516 dev-libs/atk-1.2.3
20030519162954 media-libs/gdk-pixbuf-0.21.0
20030520142427 media-video/mplayer-0.90-r1
20030520193659 sys-libs/db-3.2.9-r2
20030520194550 gnome-base/eel-2.2.3
20030520195638 gnome-base/nautilus-2.2.3
20030520201751 net-www/galeon-1.2.10a
20030520224913 x11-libs/gtkmm-1.2.9-r2
20030521041851 dev-lang/python-2.2.2
20030521042950 dev-python/wxPython-2.4.0.2
20030521153128 gnome-base/libglade-2.0.1
20030521153255 gnome-base/libgnome-2.2.0.1
20030521153611 gnome-base/libgnomeui-2.2.0.1
20030521153936 gnome-base/libbonobo-2.2.1
20030521154330 gnome-base/libbonoboui-2.2.0.1
20030521154520 gnome-base/libgtop-2.0.1
20030521154814 gnome-base/libgnomeprint-2.2.1.2
20030521154921 gnome-base/libgnomeprintui-2.2.1.2
20030521155821 gnome-base/gnome-panel-2.2.1
20030521160047 gnome-base/gnome-session-2.2.1
20030521160519 gnome-base/gnome-applets-2.2.1
20030521160621 gnome-base/gnome-desktop-2.2.1-r1
20030522010516 sys-apps/portage-2.0.48
20030522042802 x11-themes/gtk-engines-pixmap-0.12
20030522150929 net-misc/whois-4.6.5
20030522151952 x11-themes/gnome-icon-theme-1.0.3
20030522152443 sys-apps/baselayout-1.8.6.8-r1
20030523061532 gnome-base/gnome-vfs-2.2.4
20030523163748 gnome-base/oaf-0.6.10
20030523164848 gnome-base/gdm-2.4.1.3
20030523165712 gnome-base/gnome-libs-1.4.2
20030523165729 gnome-base/gnome-common-1.2.4-r3
20030525092314 x11-libs/libwnck-2.2.1
20030525092410 gnome-extra/libgail-gnome-1.0.2
20030525092751 x11-terms/gnome-terminal-2.2.1
20030526025649 net-libs/libwww-5.4.0-r1
20030526030055 x11-libs/gtkglext-0.7.1
20030526030532 dev-java/jmf-2.1.1e
20030526030616 media-gfx/aoi-1.4
20030526180757 media-libs/openal-20020127
20030526183653 media-gfx/blender-2.27
20030526190443 media-video/cinelerra-1.1.5
20030527061658 app-admin/gentoolkit-0.1.25
20030527061834 media-sound/jack-audio-connection-kit-0.71.1
20030527080449 x11-libs/gtkglarea-1.99.0
20030527080722 dev-python/pygtk-1.99.13-r1
20030527235350 net-analyzer/nessus-libraries-2.0.6a
20030527235552 net-analyzer/libnasl-2.0.6a
20030527235809 net-analyzer/nessus-core-2.0.6a
20030528000336 net-analyzer/nessus-plugins-2.0.6a
20030528000415 net-analyzer/nessus-2.0.6a
20030528061624 dev-libs/libIDL-0.8.1
20030528062142 gnome-extra/gnome-utils-2.2.2
20030528062236 sys-apps/epm-0.8.4
20030528162308 net-wireless/airtraf-1.0
20030529015738 dev-util/cvs-1.11.6
20030529025049 sys-kernel/mm-sources-2.5.70-r1
20030529232210 dev-libs/libusb-0.1.7
20030529232321 media-libs/libexif-0.5.9
20030529233303 media-libs/libgphoto2-2.1.1-r2
20030529233500 dev-libs/cdk-4.9.10.20020809
20030529233541 media-gfx/gphoto2-2.1.1-r1
20030529233742 media-libs/libexif-gtk-0.3.3
20030529233855 media-gfx/gtkam-0.1.10
20030601011028 sys-kernel/mm-sources-2.5.70-r3
20030601152307 media-sound/esound-0.2.29
20030601152949 sys-apps/e2fsprogs-1.33
20030601164403 dev-perl/File-Spec-0.82
20030601164421 dev-perl/Text-Balanced-1.95
20030601164437 dev-perl/Digest-MD5-2.24
20030601164451 dev-perl/Test-Harness-2.28
20030601164506 dev-perl/Data-Dumper-2.101
20030601164604 dev-perl/Inline-0.44
20030601164628 dev-perl/Filter-1.29
20030601165215 dev-perl/PDL-2.3.4
20030601171209 dev-perl/Parse-RecDescent-1.94
20030602045535 sys-kernel/ksymoops-2.4.9
20030602083249 sys-devel/prelink-20030505
20030602083706 dev-libs/elfutils-0.76-r2
20030602172203 dev-perl/ExtUtils-MakeMaker-6.05-r5
20030602172259 app-games/frozen-bubble-1.0.0-r1
20030602192400 x11-wm/metacity-2.4.55
20030603003407 media-video/nvidia-kernel-1.0.4363-r2
20030603031424 dev-libs/glib-1.2.10-r5
20030603031638 dev-libs/glib-2.2.1
20030603031930 net-im/imcom-0.95
20030603032023 gnome-base/ORBit-0.5.17
20030603032308 gnome-base/ORBit2-2.6.1
20030603032828 x11-libs/gtk+-1.2.10-r10
20030603033630 x11-libs/gtk+-2.2.1
20030603033903 media-libs/freetype-2.1.4
20030603034125 x11-libs/pango-1.2.1-r1
20030603034816 gnome-base/bonobo-1.0.22
20030603034913 gnome-base/librsvg-2.2.5
20030603035142 gnome-base/bonobo-activation-2.2.1.1
20030603035509 gnome-base/control-center-2.2.1
20030603035620 gnome-base/libgnomecanvas-2.2.0.2
20030603035628 gnome-base/gnome-2.2.1
20030603035750 x11-libs/startup-notification-0.5
20030603035837 media-libs/libart_lgpl-2.3.11
20030603035902 sys-libs/db-1.85-r1
20030603040331 gnome-base/gnome-vfs-1.0.5-r3
20030603040620 gnome-base/gconf-2.2.0
20030603040807 gnome-base/gconf-1.0.8-r3
20030603061511 sys-apps/hotplug-20030501-r1
20030603061611 sys-apps/fxload-20020411
20030603123035 net-mail/evolution-1.2.4
20030603165202 net-irc/xchat-2.0.2-r2
20030603172144 sys-libs/zlib-1.1.4-r1 _________________ - Exner (Antony Suter) |
|
| Back to top |
|
 |
klette n00b

Joined: 30 Apr 2003 Posts: 34 Location: Norway
|
Posted: Tue Jun 03, 2003 11:54 am Post subject: |
|
|
Fixed my problem by using the r2 package.. _________________ Never read the manual... It can betray you... |
|
| Back to top |
|
 |
sebgarden Guru

Joined: 21 Dec 2002 Posts: 353
|
Posted: Tue Jun 03, 2003 12:06 pm Post subject: |
|
|
Gnufsh: I have the same problemS. The ps, top .... bug was reported as a bug in the coreutils package I think (take a look at bugs.gentoo.org) but is due to the hammer patch. Also qpkg for me doesn't work ("uniq "-1" option is obsolete, try with "-n 1"" or so and same problem with head). I successfully compiled ncurses with -march=pentium3 -O2 -pipe on my pentium3 Coppermine. Some other packages needed -O2 too during emerge -eu world (well, I ended at the 100th of 540 packages for me, not so bad ).
Regards,
Sébastien. |
|
| Back to top |
|
 |
klette n00b

Joined: 30 Apr 2003 Posts: 34 Location: Norway
|
Posted: Tue Jun 03, 2003 1:32 pm Post subject: |
|
|
Another package that wont compile: Grub ..
i managed to resume recompilng all other packages by deleting it from portage... _________________ Never read the manual... It can betray you... |
|
| Back to top |
|
 |
tacheonmaster n00b

Joined: 04 Jun 2003 Posts: 4
|
Posted: Wed Jun 04, 2003 4:50 am Post subject: |
|
|
| Gnufsh wrote: |
I also can't get gentoo-sources-2.4.20-r5 to compile, it fails while working on ide-cd. |
This is pretty easy to fix as far as I recall. It was just a problem with a spurious 'short' after a __u8. Delete the 'short' and it should compile fine. |
|
| Back to top |
|
 |
robmoss Retired Dev

Joined: 27 May 2003 Posts: 2634 Location: Jesus College, Oxford
|
Posted: Wed Jun 04, 2003 3:01 pm Post subject: |
|
|
Both ncurses-5.3-r1 and pam-login-3.11 have problems with function inlining, which -O3 turns on with GCC 3.3. You can use all the rest of the GCC 3.3 -O3 optimizations minus this one and both packages compile with no problems. Like this:
| Code: | | CFLAGS="-O2 -finline-functions -fweb -funit-at-a-time -ftracer -funswitch-loops -frename-registers -mcpu=athlon-xp -march=athlon-xp -mfpmath=sse,387 -msse -mmmx -m3dnow -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=64 -falign-jumps=4 -falign-loops=4 -pipe" |
(note that "-O2 -finline-functions -fweb -funit-at-a-time -ftracer -funswitch-loops -frename-registers" is identically equal to "-O3")
Then, a couple of patches:
| Code: | --- ncurses-5.3-r1.ebuild.temp 2003-06-03 15:11:20.000000000 +0100
+++ ncurses-5.3-r1.ebuild 2003-06-03 15:09:35.000000000 +0100
@@ -5,7 +5,7 @@
IUSE=""
inherit eutils flag-o-matic
-filter-flags "-fno-exceptions"
+filter-flags "-fno-exceptions -O3 -finline-functions"
S="${WORKDIR}/${P}"
DESCRIPTION="Linux console display library" |
That's for ncurses, this is for pam-login:
| Code: | --- pam-login-3.11.ebuild 2003-05-20 09:30:23.000000000 +0100
+++ pam-login-3.11.ebuild.temp 2003-06-03 17:26:06.000000000 +0100
@@ -3,7 +3,8 @@
# $Header: /home/cvsroot/gentoo-x86/sys-apps/pam-login/pam-login-3.11.ebuild,v 1.2 2003/05/20 08:00:11 kumba Exp $
-inherit gnuconfig
+inherit gnuconfig flag-o-matic
+filter-flags "-O3 -finline-functions"
# Do we want to backup an old login.defs, and forcefully
# install a new version? |
Unfortunately, I haven't yet worked out how to detect the GCC version being used for the purposes of an ebuild. If it's possible to autodetect the version, then we could strip "-finline-functions", and we could replace any occurrences of "-O3" with "-O2 -fweb -funit-at-a-time -ftracer -funswitch-loops -frename-registers", thus giving GCC 3.3 compatibility for both packages. If anyone can tell me how to do this, I'll submit a bug and a fix for both these to bugzilla...
I haven't yet managed to get grub to compile either. It really is annoying me, I have no idea what's going wrong - it's not a CFLAGS problem, I know that. I can't remember whether or not I managed to get grub-0.92-r1 to successfully compile, but that's not really the point; I want to use grub-0.93.20030118!
Gnufsh, if you meander your way back through the thread, the exact edit you need to do to get gentoo-sources-2.4.20-r5 to compile correctly is in there  |
|
| Back to top |
|
 |
Exner Tux's lil' helper


Joined: 08 Apr 2003 Posts: 128 Location: Melbourne, Australia
|
Posted: Fri Jun 06, 2003 1:46 pm Post subject: |
|
|
I have found that for some packages, notably procps, compiling in -O3 builds binaries that don't run properly, but compiling with -O2 does. My system is an Athlon Tbird 1.3 GHz with 512 MB of PC133 RAM and portage's gcc-3.3.
I narrowed it down to the -funit-at-a-time flag. So now I run with /etc/make.conf having | Code: | | CFLAGS="-march=athlon-tbird -O3 -fomit-frame-pointer -ffast-math -pipe -fno-unit-at-a-time -fno-unroll-loops -falign-functions=4 -fprefetch-loop-arrays" |
edit: fixed the -O3/-O2 typos _________________ - Exner (Antony Suter)
Last edited by Exner on Sat Jun 07, 2003 2:31 am; edited 1 time in total |
|
| Back to top |
|
 |
mjoswig Tux's lil' helper

Joined: 05 Feb 2003 Posts: 122 Location: Hamburg, Germany
|
Posted: Fri Jun 06, 2003 3:24 pm Post subject: |
|
|
| robmoss2k wrote: | | Unfortunately, I haven't yet worked out how to detect the GCC version being used for the purposes of an ebuild. If it's possible to autodetect the version, then we could strip "-finline-functions", and we could replace any occurrences of "-O3" with "-O2 -fweb -funit-at-a-time -ftracer -funswitch-loops -frename-registers", thus giving GCC 3.3 compatibility for both packages. If anyone can tell me how to do this, I'll submit a bug and a fix for both these to bugzilla... |
You can parse the output from gcc-version -c. |
|
| Back to top |
|
 |
robmoss Retired Dev

Joined: 27 May 2003 Posts: 2634 Location: Jesus College, Oxford
|
Posted: Sat Jun 07, 2003 8:08 pm Post subject: |
|
|
You can parse the output from gcc-version -c.[/quote]
Indeed I can, except for one small problem. I'm still a complete and utter scripting n00b. As such I've got absolutely no idea what to do with that output (and I assume you mean gcc-config -c?) once I've got it
I suppose I should probably learn how to do shell scripts properly at some point... ah well, I'm sure I'll get round to it eventually. |
|
| Back to top |
|
 |
fca Guru

Joined: 22 Feb 2003 Posts: 346 Location: Netherlands
|
Posted: Sat Jun 07, 2003 9:31 pm Post subject: |
|
|
| robmoss2k wrote: | | Quote: | | You can parse the output from gcc-version -c. |
Indeed I can, except for one small problem. I'm still a complete and utter scripting n00b. As such I've got absolutely no idea what to do with that output (and I assume you mean gcc-config -c?) once I've got it
I suppose I should probably learn how to do shell scripts properly at some point... ah well, I'm sure I'll get round to it eventually. |
From the openoffice ebuild:
| Code: | pkg_setup() {
if [ "$(gcc-version)" != "3.2" ]
then
eerror
eerror "This build needs gcc-3.2 or later, but due to profile"
eerror "settings, it cannot DEPEND on it, so please merge it"
eerror "manually:"
eerror |
If I understand your question correctly, you should use this kind of construction. And yes, this does check the current gcc used, not just the most recent installed or something like that. |
|
| Back to top |
|
 |
watersb Apprentice


Joined: 04 Sep 2002 Posts: 297 Location: take a left turn in Tesuque
|
Posted: Sun Jun 08, 2003 12:18 am Post subject: GRUB WORKING |
|
|
| klette wrote: | Another package that wont compile: Grub ..
|
GRUB COMPILED WITH GCC 3.3 on x86
I pulled grub from their CVS repository, then tried various options to get it to build.
Stage2 compile would fail to link, complaining of "undefined reference to memcpy" -- because you are building this for the boot environment, you're not running Linux yet, so don't use libc...
It is GCC itself which is generating the memcpy references; you can dork with the source code all day and won't make this go away...
Trolling the GCC info pages, I set my CFLAGS to
| Code: |
export CFLAGS="-minline-all-stringops -Os"
|
-minline-all-stringops tells GCC to slam the memcpy code in wherever it would otherwise generate a call to memcpy for block-move instructions. This is an x86 architecture option for GCC 3.x
With -Os I was able to get stage2 to be smaller than 7168 (bytes?); the "make check" for GRUB fails if stage2 is too large, presumably there is a size restiction due to low-memory or MBR issues, I dunno. Anyway it needs to be small, inlining the block memory moves can make it too large, unless you tell GCC to try to keep the code small.
YMMV.
Anyway I was able to bootstrap a "pure-GCC 3.3" machine, it's running 2.5.70 and glibc-2.3.2-r2.
I also saw "-mno-memcpy" for the MIPS architecture. (PPC folks, do you use GRUB? I suppose the OpenFirmware plays well... I don't know...)
I did not see any indidcation on the grub-bugs mailing list that they have this clue. I'll try to tell them... |
|
| Back to top |
|
 |
watersb Apprentice


Joined: 04 Sep 2002 Posts: 297 Location: take a left turn in Tesuque
|
Posted: Sun Jun 08, 2003 12:18 am Post subject: |
|
|
| Quote: |
i managed to resume recompilng all other packages by deleting it from portage... |
Ouch.. if you hit a package that is holding you up like this, and you can't fix it, use the "inject" feature of emerge to "pretend" to install it. (You can always unregister it later with "unmerge"):
| Code: |
# emerge sys-apps/b0rken-package-1.2.3 inject
|
|
|
| Back to top |
|
 |
Niko_K Guru


Joined: 19 Sep 2002 Posts: 484 Location: Rietz/Tirol
|
Posted: Sun Jun 08, 2003 12:36 pm Post subject: Grub |
|
|
Hi,
i am not able to merge grub.
Even with the CFLAG postet by watersb it won't compile gor me!
Is there anything that I can do about it?
Please help me,
Niko _________________ Meine Homepage |
|
| Back to top |
|
 |
|