Subscribe ?
Re: Subscribe ?
Please refer to http://gcc.gnu.org/lists.html on how to subscribe to our mailing lists, which lists exist and for what purpose (your request would have been more appropriate on gcc-h...@gcc.gnu.org), and the policies around the lists. Gerald
Bootstrap comparison failure! (gcc 4.6.x with -O3)
Hi, i often compile 4.6 snapshot images, and they work without problem. Even my longstanding bug about error in Java compilation with -O2, is solved now. But few days ago I was going to do something curious. I wanted to switch -flto. So I used something like this # uname -a Linux tytus 2.6.32-5-686 #1 SMP Wed Jan 12 04:01:41 UTC 2011 i686 GNU/Linux # gcc -v gcc version 4.4.5 (Debian 4.4.5-8) # export FLAGS="-O3 -march=core2 -Wl,-O1 -mfpmath=sse" export CFLAGS="$FLAGS" export CXXFLAGS="$FLAGS" /scratch/baryluk/gcc/gcc-4.6-20110305/configure \ --enable-shared \ --enable-multiarch \ --enable-linker-build-id \ --enable-checking=yes \ --enable-stage1-checking=all \ --enable-languages=c,c++,objc,go,fortran,ada,java \ --with-fpmath=sse \ --with-build-config=bootstrap-lto \ --enable-lto \ --enable-objc-gc \ --enable-plugin \ --enable-gold \ --with-system-zlib \ --without-included-gettext \ --enable-cloog-backend=isl \ CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" make BOOT_CFLAGS="$CFLAGS -flto" CFLAGS_FOR_BUILD="$CFLAGS" CXXFLAGS_FOR_BUILD="$CXXFLAGS" bootstrap And then waited I actually waited 5 days... (each file compiled about 45minutes on average, eating 100% of CPU). Normally whole gcc compiles in 25 minutes on this machine. After wait I got this: yluk/gcc/gcc-4.6-20110305/libgomp -Wall -Werror -ftls-model=initial-exec -march=i486 -mtune=i686 -Wc,-pthread -g -O3 -march=core2 -Wl,-O1 -mfpmath=sse -MT time.lo -MD -MP -MF .deps/time.Tpo -c -o time.lo /scratch/baryluk/gcc/ gcc-4.6-20110305/libgomp/config/posix/time.c libtool: compile: /scratch/baryluk/gcc/obiekty/./gcc/xgcc -B/scratch/baryluk/gcc/obiekty/./gcc/ -B/usr/local/i68 6-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /u sr/local/i686-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/scratch/baryluk/gcc/gcc-4.6-20110305/libgomp -I/scr atch/baryluk/gcc/gcc-4.6-20110305/libgomp/config/linux/x86 -I/scratch/baryluk/gcc/gcc-4.6-20110305/libgomp/config /linux -I/scratch/baryluk/gcc/gcc-4.6-20110305/libgomp/config/posix -I/scratch/baryluk/gcc/gcc-4.6-20110305/libgo mp -Wall -Werror -ftls-model=initial-exec -march=i486 -pthread -mtune=i686 -g -O3 -march=core2 -Wl,-O1 -mfpmath=s se -MT time.lo -MD -MP -MF .deps/time.Tpo -c /scratch/baryluk/gcc/gcc-4.6-20110305/libgomp/config/posix/time.c - fPIC -DPIC -o .libs/time.o libtool: compile: /scratch/baryluk/gcc/obiekty/./gcc/xgcc -B/scratch/baryluk/gcc/obiekty/./gcc/ -B/usr/local/i68 6-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /u sr/local/i686-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/scratch/baryluk/gcc/gcc-4.6-20110305/libgomp -I/scr atch/baryluk/gcc/gcc-4.6-20110305/libgomp/config/linux/x86 -I/scratch/baryluk/gcc/gcc-4.6-20110305/libgomp/config /linux -I/scratch/baryluk/gcc/gcc-4.6-20110305/libgomp/config/posix -I/scratch/baryluk/gcc/gcc-4.6-20110305/libgo mp -Wall -Werror -ftls-model=initial-exec -march=i486 -pthread -mtune=i686 -g -O3 -march=core2 -Wl,-O1 -mfpmath=s se -MT time.lo -MD -MP -MF .deps/time.Tpo -c /scratch/baryluk/gcc/gcc-4.6-20110305/libgomp/config/posix/time.c -o time.o >/dev/null 2>&1 mv -f .deps/time.Tpo .deps/time.Plo /bin/bash ./libtool --tag=CC --mode=compile /scratch/baryluk/gcc/obiekty/./gcc/xgcc -B/scratch/baryluk/gcc/obie kty/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-li nux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/scratch/baryluk/gcc/g cc-4.6-20110305/libgomp -I/scratch/baryluk/gcc/gcc-4.6-20110305/libgomp/config/linux/x86 -I/scratch/baryluk/gcc/ gcc-4.6-20110305/libgomp/config/linux -I/scratch/baryluk/gcc/gcc-4.6-20110305/libgomp/config/posix -I/scratch/bar yluk/gcc/gcc-4.6-20110305/libgomp -Wall -Werror -ftls-model=initial-exec -march=i486 -mtune=i686 -Wc,-pthread -g -O3 -march=core2 -Wl,-O1 -mfpmath=sse -MT fortran.lo -MD -MP -MF .deps/fortran.Tpo -c -o fortran.lo /scratch/bar yluk/gcc/gcc-4.6-20110305/libgomp/fortran.c libtool: compile: /scratch/baryluk/gcc/obiekty/./gcc/xgcc -B/scratch/baryluk/gcc/obiekty/./gcc/ -B/usr/local/i68 6-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /u sr/local/i686-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/scratch/baryluk/gcc/gcc-4.6-20110305/libgomp -I/scr atch/baryluk/gcc/gcc-4.6-20110305/libgomp/config/linux/x86 -I/scratch/baryluk/gcc/gcc-4.6-20110305/libgomp/config /linux -I/scratch/baryluk/gcc/gcc-4.6-20110305/libgomp/config/posix -I/scratch/baryluk/gcc/gcc-4.6-20110305/libgo mp -Wall -Werror -ftls-model=initial-exec -march=i486 -pthread -mtune=i686 -g -O3 -march=core2 -Wl,-O1 -mfpmath=s se -MT fortran.lo -MD -MP -MF .deps/fortran.Tpo -c /scratch/baryluk/gcc
Re: Bootstrap comparison failure! (gcc 4.6.x with -O3)
Witold Baryluk writes: > > make BOOT_CFLAGS="$CFLAGS -flto" CFLAGS_FOR_BUILD="$CFLAGS" > CXXFLAGS_FOR_BUILD="$CXXFLAGS" bootstrap Easier is to configure with --with-build-config=bootstrap-lto then you don't need all the magic CFLAGS lines. > And then waited > > I actually waited 5 days... (each file compiled about 45minutes on average, > eating 100% of CPU). Normally whole gcc compiles in 25 minutes on this > machine. It sounds like you don't have enough memory? Did you swap? LTO (or rather the first phase of it) needs quite a bit more memory than a normal build. I suspect you don't want to do this with less than 4GB, better 8G. If you have /tmp in shmfs it is also much worse because there will be large temporary files in memory too (workaround is to use TMPDIR=/some/dir/on/disk) > > After wait I got this: You have to use -frandom-seed=1 to avoid LTO bootstrap failures. If you use the build config line above that is done by default. -Andi -- a...@linux.intel.com -- Speaking for myself only
Re: Bootstrap comparison failure! (gcc 4.6.x with -O3)
> Is this because I manually changed BOOT_CFLAGS as passed to make? As previously said, you ought to avoid fiddling with BOOT_CFLAGS in any case. Configure --with-build-config=bootstrap-lto --with-fpmath=sse --with-arch=xxx and so on, and just type "make". > And why it took so long? Probably because you're also fiddling with configure checking options. Avoid doing that if you aren't familiar with them. -- Eric Botcazou
GCC 4.6 Successful Build and Install
configure.guess: x86_64-unknown-linux-gnu gcc -v: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/ad3/gma/go-gcc-build/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /ad3/gma/go-build-work/gcc-4.6.0/configure --prefix=/ad3/gma/go-gcc-build --enable-languages=c,c++,go Thread model: posix gcc version 4.6.0 (GCC) Languages: c,c++,go /etc/issue: Ubuntu 10.04.2 LTS \n \l uname -a: Linux tjjackson 2.6.32-30-generic #59-Ubuntu SMP Tue Mar 1 21:30:46 UTC 2011 x86_64 GNU/Linux dpkg -l libc6: Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name VersionDescription +++-==-==- ii libc6 2.11.1-0ubuntu Embedded GNU C Library: Shared libraries Misc: I had to install package: libc6-dev-i386 to get a successful build. Goal: working gccgo Results: - Simple go programs compile - Need to use LD_LIBRARY_PATH to get executables to run
Re: More links in release change list
On 26 March 2011 14:08, Jonathan Adamczewski wrote: > As I read through http://gcc.gnu.org/gcc-4.6/changes.html, it seems to me > that would be quite useful (and interesting) to be able to see more > information for each of the changes. Links to relevant discussion, bugs, > papers or patches/commits would make it far easier to understand the > substance of a change beyond the one-line summary. The links on that page > are very useful - it would be great to see more. > > http://kernelnewbies.org/LinuxChanges is a good example of the kind of thing > I'm talking about. I doubt many people would disagree, but someone needs to do the work (in other words "patches welcome"!) The GCC wiki could be a good place for people to add such information without needing write access to the wwwdocs repository.
Re: GCC 4.6 Successful Build and Install
Hello everyboy, Some for us, we manage to pass the all base of the next major release of NuTyX on gcc 4.6.0. We were actually ready and just waiting for it. If you are intersted in the results. Here are the links of the logs. Pass 1 and 2 are as suggested by Linux From Scratch and release is the real build of NuTyX (pass3) The i686 arch http://kiao.no-ip.info/NuTyX/logs/2011/i686/?C=M;O=D The x86_64 arch http://sibelle.dyndns.org/log/pakxe/x86_64/ Tanks a lot for this amazing work My best regards Thierry > configure.guess: > > x86_64-unknown-linux-gnu > > gcc -v: > > Using built-in specs. > COLLECT_GCC=gcc > COLLECT_LTO_WRAPPER=/ad3/gma/go-gcc-build/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper > Target: x86_64-unknown-linux-gnu > Configured with: /ad3/gma/go-build-work/gcc-4.6.0/configure > --prefix=/ad3/gma/go-gcc-build --enable-languages=c,c++,go > Thread model: posix > gcc version 4.6.0 (GCC) > > Languages: > > c,c++,go > > /etc/issue: > > Ubuntu 10.04.2 LTS \n \l > > uname -a: > > Linux tjjackson 2.6.32-30-generic #59-Ubuntu SMP Tue Mar 1 21:30:46 UTC > 2011 x86_64 GNU/Linux > > dpkg -l libc6: > > Desired=Unknown/Install/Remove/Purge/Hold > | > Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend > |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) > ||/ Name VersionDescription > +++-==-==- > ii libc6 2.11.1-0ubuntu Embedded GNU C Library: Shared libraries > > Misc: > > I had to install package: libc6-dev-i386 to get a successful build. > > Goal: working gccgo > > Results: > > - Simple go programs compile > - Need to use LD_LIBRARY_PATH to get executables to run > > >
gcc-4.3-20110327 is now available
Snapshot gcc-4.3-20110327 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.3-20110327/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.3 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches/gcc-4_3-branch revision 171579 You'll find: gcc-4.3-20110327.tar.bz2 Complete GCC (includes all of below) MD5=003d88b20bae7ef6fd65a3851069cdf7 SHA1=facc0309536f091651ecd56827947dfe2c4ca376 gcc-core-4.3-20110327.tar.bz2C front end and core compiler MD5=c5df4fb2059e0db7663fb4a22e8c6cc0 SHA1=100f1fe0de493b7c4dfac4ba9b98e2aabe5806ce gcc-ada-4.3-20110327.tar.bz2 Ada front end and runtime MD5=9858d938aadf4b4690209bf0db924a5f SHA1=67bbd3b9fb4b8c8ad66d69e7dedf26c5a27fdb40 gcc-fortran-4.3-20110327.tar.bz2 Fortran front end and runtime MD5=a886277c8b9f3105de9f7044805e8d78 SHA1=356cbb91389ac478ccbfbde12430e2139ac347b0 gcc-g++-4.3-20110327.tar.bz2 C++ front end and runtime MD5=f7fc03b11d75fe7cf8f244e32f27271e SHA1=69d0cbe8c95af0b83a29913d75d482dbfb2580d3 gcc-go-4.3-20110327.tar.bz2 Go front end and runtime MD5=2e0a3a8aedef6f199f3edc49b8596f37 SHA1=86daf910cac840f31e3046a836db925adc378213 gcc-java-4.3-20110327.tar.bz2Java front end and runtime MD5=79cbf4d532d4611402767ab34f8ee1c1 SHA1=360cf66eb7fb4afadd4e1556fdd6901d7d5617ba gcc-objc-4.3-20110327.tar.bz2Objective-C front end and runtime MD5=348cd5372fbf24459d4f18b64916180e SHA1=b136f46329822c23f37eccdff230fa477488e49d gcc-testsuite-4.3-20110327.tar.bz2 The GCC testsuite MD5=fc7d71fc4253acd793efa378a01865c5 SHA1=4d50dc8abb5829930a164261a916b0b589c743bf Diffs from 4.3-20110320 are available in the diffs/ subdirectory. When a particular snapshot is ready for public consumption the LATEST-4.3 link is updated and a message is sent to the gcc list. Please do not use a snapshot before it has been announced that way.