Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC 3.3
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3 ... 10, 11, 12  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Mon Apr 28, 2003 9:39 pm    Post subject: GCC 3.3 Reply with quote

UPDATE: (May 1st 2003) Thanks to cyfred, there is now a gcc 3.3 ebuild, scroll down halfway and check it out.

I was reading this and it seems pretty cool, (better x86-64, and better sse2/3dnow it seems as well) Also the DFA Scheduler seems nifty as well.

http://gcc.gnu.org/gcc-3.3/changes.html

So why can't gcc 3.3 be in portage? I know it's beta/buggy/evil/unstable, but it could always be in hardmasked in the mask file.


Last edited by floam on Fri May 02, 2003 11:45 pm; edited 8 times in total
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Mon Apr 28, 2003 9:59 pm    Post subject: Reply with quote

ahh... i don't get it. as if the gentoo maintainers would not have enought work to do?!?!?

you have to wait until it is in the portage and if you can not wait till it is there and you want to be a very nice gentoo user, then make a great and rock solid ebuild for gcc 3.3 and submit it to bugs.gentoo.org. :twisted: i and others will gladly help you to test that thing.

cheers

SteveB
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Mon Apr 28, 2003 11:09 pm    Post subject: Reply with quote

I'm not specifically asking for a ebuild (although yes, one would be awesome) I'm mainly just trying to start a good GCC 3.3 conversation.
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Tue Apr 29, 2003 1:04 am    Post subject: Reply with quote

there are serval discussions going on about gcc 3.3. i just saw one some days ago on osnews. anyway... if you go to ftp://gcc.gnu.org/pub/gcc/releases you will see the following:
Code:
drwxrwxr-x   2 220      1002         4096 Aug 28  1999 egcs-1.1.2
drwxrwxr-x   2 220      65516        4096 Aug 28  1999 gcc-2.95
drwxrwxr-x   2 220      65516        4096 Aug 28  1999 gcc-2.95.1
drwxrwxr-x   2 220      65516        4096 Oct 28  1999 gcc-2.95.2
drwxrwxr-x   2 220      65516        4096 Dec 11  2000 gcc-2.95.2.1
drwxrwxr-x   2 586      65516        4096 Mar 19  2001 gcc-2.95.3
drwxrwxr-x   2 9160     65516        4096 Jun 17  2001 gcc-3.0
drwxrwxr-x   2 9160     65516        4096 Aug 20  2001 gcc-3.0.1
drwxrwxr-x   2 9160     65516        4096 Oct 26  2001 gcc-3.0.2
drwxrwxr-x   2 9160     65516        4096 Dec 20  2001 gcc-3.0.3
drwxrwxr-x   2 9160     65516        4096 Feb 22  2002 gcc-3.0.4
drwxrwxr-x   2 9160     65516        4096 May 15  2002 gcc-3.1
drwxrwxr-x   2 9160     65516        4096 Jul 26  2002 gcc-3.1.1
drwxrwxr-x   2 9160     65516        4096 Aug 15  2002 gcc-3.2
drwxrwxr-x   2 9160     65516        4096 Jan  9  2003 gcc-3.2.1
drwxrwxr-x   2 9160     65516        4096 Feb  5  2003 gcc-3.2.2
drwxrwxr-x   2 9160     65516        4096 Apr 22 11:54 gcc-3.2.3
-rw-r--r--   1 9160     65516        3797 Apr 25 08:24 index.html
-rw-rw-r--   1 root     65516          45 Apr 25 08:54 md5.sum


eaven gcc 3.3 beeing out, the server is still not updated with it. and the newest available 3.2.3 is in the portage! you can install it, if you want:
Code:
# emerge -pv /usr/portage/sys-devel/gcc/gcc-3.2.3.ebuild

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R  ] sys-devel/gcc-3.2.3  -static +nls -bootstrap +java -build

and at the end you get:
Code:
# gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/specs
Configured with: /var/tmp/portage/gcc-3.2.3/work/gcc-3.2.3/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.2 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,ada,f77,objc,java --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext
Thread model: posix
gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3, propolice)


if you wait some time, you would probably be able to test 3.3... who knows?!? maybe you don't have to wait that long...

cheers

SteveB
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Tue Apr 29, 2003 1:21 am    Post subject: Reply with quote

too late, already picked up gcc 3.2.3 the moment i saw it during my last emerge sync :)

edit: oops.


Last edited by floam on Tue Apr 29, 2003 2:37 am; edited 1 time in total
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Tue Apr 29, 2003 2:33 am    Post subject: Reply with quote

floam wrote:
too late, already picked up gcc 2.3.3 the moment i saw it during my last emerge sync :)


gcc 2.3.3?
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Tue Apr 29, 2003 2:37 am    Post subject: Reply with quote

that was a typo, fixed now
Back to top
View user's profile Send private message
cyfred
Retired Dev
Retired Dev


Joined: 23 Aug 2002
Posts: 596

PostPosted: Tue Apr 29, 2003 3:01 am    Post subject: Reply with quote

Well before I left IRC running cause I was late for maths I set CVS to download the latest gcc sources. That mayve been a little silly now that I think about it though, cause that will be gcc-cvs not gcc-3.3 -- oh well something to fix when I get home :)

The more important thing is I will updated this thread on how my setup/build/install goes and if it was successful.

floam I may try and throw together an ebuild -- for use at own risk definately I think.
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Tue Apr 29, 2003 3:03 am    Post subject: Reply with quote

cyfred: awesome! i'll be here to test it if/when you make one
Back to top
View user's profile Send private message
cyfred
Retired Dev
Retired Dev


Joined: 23 Aug 2002
Posts: 596

PostPosted: Tue Apr 29, 2003 11:35 am    Post subject: Reply with quote

Just to keep the thread updated, ive finished hacking up an ebuild script and am currently testing it on my spare machine... Will post the ebuild if it works :)

EDIT:: I know the script works but I had to manually run things during the build so ive made some updates and am recompiling currently. If it is successful I will post.
Back to top
View user's profile Send private message
cyfred
Retired Dev
Retired Dev


Joined: 23 Aug 2002
Posts: 596

PostPosted: Wed Apr 30, 2003 2:25 am    Post subject: Reply with quote

EDIT: Disregard this post, there is more information in the next one.

UPDATE:: I have the ebuild working but somewhere in the install process the 'gcc' binary gets removed so Im going back through makefiles etc to work out where and patch the file. Not sure how long this will take but once I have done it I will post the ebuild.


Last edited by cyfred on Wed Apr 30, 2003 7:01 am; edited 1 time in total
Back to top
View user's profile Send private message
cyfred
Retired Dev
Retired Dev


Joined: 23 Aug 2002
Posts: 596

PostPosted: Wed Apr 30, 2003 7:00 am    Post subject: Reply with quote

OK peoples here it is...
http://www.volutin.net/~andrew/GENTOO/gcc-3.3.ebuild

I recommend that you setup PORTAGE_OVERLAY in /etc/make.conf and copy this ebuild into $PORTAGE_OVERLAY/sys-devel/gcc/gcc-3.3.ebuild -- that way it is not in your portage tree.

You will need to run the following before trying to build,
Code:
ebuild sys-devel/gcc/gcc-3.3.ebuild digest


Both myself and floam had some trouble getting portage to pick up the script so if a standard emerge command does not work you will need to manually specify the ebuild location.

Please LOG your builds and if you have problems either post a link to the log or email me the log at gentoo@volutin.net, you can log the builds with
Code:
emerge sys-devel/gcc 2> /path/to/log
* This command probably isnt what you will use, only the 2> /path/to/log part is


NOTE that this ebuild does NOT remove your previous GCC version so you can use gcc-config to revert back to your stable gcc compiler if you find your system becomes self destructive.

Also please be aware that this ebuild is a beta ebuild in itself, it has hardly been tested -- in someways you are testing the ebuild aswell as GCC 3.3. All the errors that I have had or others have mentioned have been addressed so far, but I have only built this on two machines so far, so this cannot be considered exhaustive.

Errors that have been previously noted
1) emerge sys-devel/gcc does not compile GCC 3.3
-- This worked on one machine for me, and not on another, im hoping to get the script working before worrying about that.

2) Sandbox violations by libstdc++
-- this is supposedly fixed by the Makefile fixes, if you get this error please report it so the appropriate patching can be added to the ebuild.

3) gcc not found in /var/tmp/portage/gcc-3.3/image
-- Im trying to verify this error right now. It happened on one of my machines during a recompile with some new features. I do not know if the problem still exists, but should with in the hour. I will post an update about this later.

4) libgcc.patch fails to apply
-- You have an old ebuild file, please download the new copy from above. The problem you are having is caused by the cvs-src get, it changes the timestamp and attributes of certain files causing them to not patch correctly (or so I figure after playing around with this for a little bit).

Thats it. :)
Enjoy
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Wed Apr 30, 2003 9:09 am    Post subject: Reply with quote

The ebuild needs to depend on cvs - or you get a failure.
Back to top
View user's profile Send private message
cyfred
Retired Dev
Retired Dev


Joined: 23 Aug 2002
Posts: 596

PostPosted: Wed Apr 30, 2003 9:13 am    Post subject: Reply with quote

OK Ive found one more bug in the Makefiles.

This bug will cause the error about GCC not being found in the image directory. Id fix this right now but have to go out for an hour or so, DONT try to build gcc 3.3 yet. It will now work.

Sorry if you have allready tried and run into this problem, I believe that the time that I actually managed to get 3.3 to fully emerge that the libstdc++ libraries did not get processed and that seems to be the location of the problem.

Cheerio :)
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Wed Apr 30, 2003 10:39 am    Post subject: Reply with quote

please release the next build as -r1 - it's getting hard to track all these updates man..
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Thu May 01, 2003 6:57 am    Post subject: Reply with quote

I hate to be begging but... where's the update ?

I'm dying to rebuild my system :)
Back to top
View user's profile Send private message
iamarug
Apprentice
Apprentice


Joined: 09 Feb 2003
Posts: 220

PostPosted: Thu May 01, 2003 8:48 am    Post subject: Reply with quote

Lovechild, you are a very brave soul. I salute you 8O
its scary how eager you are to use a compiler in prerelease!
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Thu May 01, 2003 9:16 am    Post subject: Reply with quote

iamarug wrote:
Lovechild, you are a very brave soul. I salute you 8O
its scary how eager you are to use a compiler in prerelease!


Well, I'm willing to break my machine to futher mankind... plus I want GCC 3.3 really bad.
Back to top
View user's profile Send private message
cyfred
Retired Dev
Retired Dev


Joined: 23 Aug 2002
Posts: 596

PostPosted: Thu May 01, 2003 10:50 am    Post subject: Reply with quote

Im sorry for the delay, but family issues prevented me working on this ebuild all of last night. So ive doubled my efforts and have it finished and successfully tested on both my P4 and Athlon XP.

The link has stayed the same as above
http://www.volutin.net/~andrew/GENTOO/gcc-3.3.ebuild

Im sorry LoveChild for not bumping this too -r1 but I dont feel it really was warranted -- after all the other script was a complete flop. I believe it has to at least complete the build to be counted.

OK peoples there really shouldnt be any problems with the build now.
Just before you use this ebuild please remove the old one and any digest file that was generated for it. (This includes any in PORTAGE_OVERLAY or /usr/portage -- this causes problems if you dont).

If you experience the ebuild dieing on you, with either "gcc not found" or "I didnt copy ..." then you have not done the above properly. These are the only two problems I can envisage.

Please report any bugs or problems.

Yes the compiler does work aswell. I have tried it on a few small builds and am about to attempt mozilla without the p4 flags removed -- this version apparently supports them. :)

Enjoy :)

EDIT: The bug report link https://bugs.gentoo.org/show_bug.cgi?id=20268


Last edited by cyfred on Thu May 01, 2003 10:56 am; edited 1 time in total
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Thu May 01, 2003 10:56 am    Post subject: Reply with quote

great work - now lets see if it builds an OS :)
Back to top
View user's profile Send private message
cyfred
Retired Dev
Retired Dev


Joined: 23 Aug 2002
Posts: 596

PostPosted: Thu May 01, 2003 10:59 am    Post subject: Reply with quote

Lovechild ill be very interested to know that aswell. Because it appears to be building things so much faster than 3.2* versions did. And from what im seeing with the mozilla build with far less number of warnings.
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Thu May 01, 2003 11:53 am    Post subject: Reply with quote

So far it seems to be building glibc just fine... emerge -e world will begining in a moment.
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Thu May 01, 2003 12:07 pm    Post subject: Reply with quote

arghh..

Code:

gcc perror.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -freorder-blocks      -I../include -I. -I/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/stdio-common -I.. -I../libio  -I/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere -I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386 -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686 -I../linuxthreads/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../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 /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -D_IO_MTSAFE_IO -o /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/stdio-common/perror.o
sscanf.c:31: warning: conflicting types for built-in function `sscanf'
sscanf.c: In function `sscanf':
sscanf.c:37: error: `va_start' used in function with fixed args
../string/bits/string2.h: At top level:
../stdio-common/_itoa.h:40: warning: inlining failed in call to `_itoa_word'
../string/bits/string2.h:76: warning: called from here
make[2]: *** [/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/stdio-common/sscanf.o] Error 1
make[2]: *** Waiting for unfinished jobs....
../stdio-common/_itoa.h:40: warning: inlining failed in call to `_itoa_word'
../string/bits/string2.h:76: warning: called from here
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/stdio-common'
make[1]: *** [stdio-common/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2'
make: *** [all] Error 2
 
!!! ERROR: sys-libs/glibc-2.3.2-r1 failed.
!!! Function src_compile, Line 377, Exitcode 2
!!! (no error message)
Back to top
View user's profile Send private message
cyfred
Retired Dev
Retired Dev


Joined: 23 Aug 2002
Posts: 596

PostPosted: Thu May 01, 2003 12:20 pm    Post subject: Reply with quote

http://sources.redhat.com/ml/libc-alpha/2003-03/msg00052.html

That may work.
Seems there is going to have to be a bit of patching done to a few ebuilds to deal with GCC 3.3.
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Thu May 01, 2003 12:24 pm    Post subject: Reply with quote

cyfred wrote:
http://sources.redhat.com/ml/libc-alpha/2003-03/msg00052.html

That may work.
Seems there is going to have to be a bit of patching done to a few ebuilds to deal with GCC 3.3.


let's just see this in action... unstability here I go :)

mozilla 1.4a and glibc are being used as test cases btw.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page 1, 2, 3 ... 10, 11, 12  Next
Page 1 of 12

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum