Re: [Mingw-w64-public] building GCC myself from MSYS

2010-09-15 Thread Ruben Van Boxem
I am now trying to rebuild the same GCC version (4.6-20100904) with my fresh compiler, but getting stuck at either the stage2-stage3 comparison or if I don't bootstrap, this: xgcc.exe: error: C:UsersRubenAppDataLocalTempcccemHMa.lto.o: No such file or > directory > Some MSYS path problem: same ha

Re: [Mingw-w64-public] building GCC myself from MSYS

2010-09-14 Thread Ruben Van Boxem
2010/9/14 John E. / TDM > > This is correct. TDM64 GCC 4.5.1 is patched to remove a leading underscore > from the names of the _alloca and __chkstk symbols, in order for them to be > exported from both the 64-bit and 32-bit versions of libgcc with the same > export rule (there is another patch in

Re: [Mingw-w64-public] building GCC myself from MSYS

2010-09-13 Thread John E. / TDM
On 9/13/2010 11:34 AM, Ruben Van Boxem wrote: M:/Development/msys/gcc-libs/lib/libmpfr.a(div.o):div.c:(.text+0xe75): more undefined references to `__chkstk' follow collect2: ld returned 1 exit status How do i fix this? I'm doing a "make profiledbootstrap" in gcc, it has used mpf

Re: [Mingw-w64-public] building GCC myself from MSYS

2010-09-12 Thread Ruben Van Boxem
> > 2010/9/11 John E. / TDM > On 9/11/2010 12:19 PM, Kai Tietz wrote: > > > , but nevertheless libelf (which > > isn't an elf OS specific library btw) is required so that LTO works as > > it should. > > Trust me, it isn't! I have never installed libelf on my build machine, >> but LTO is enabled a

Re: [Mingw-w64-public] building GCC myself from MSYS

2010-09-11 Thread John E. / TDM
On 9/11/2010 12:19 PM, Kai Tietz wrote: > , but nevertheless libelf (which > isn't an elf OS specific library btw) is required so that LTO works as > it should. Trust me, it isn't! I have never installed libelf on my build machine, but LTO is enabled and I see dramatic improvements when I use i

Re: [Mingw-w64-public] building GCC myself from MSYS

2010-09-11 Thread Kai Tietz
2010/9/11 John E. / TDM : >  On 9/11/2010 11:50 AM, Kai Tietz wrote: >> Well, lto normally needs not to be explicit enabled. You just need to >> have the libelf library installed on you host environment. > > Actually, libelf is not required to enable LTO for PE-COFF targets (i.e. > Windows), since

Re: [Mingw-w64-public] building GCC myself from MSYS

2010-09-11 Thread John E. / TDM
On 9/11/2010 11:50 AM, Kai Tietz wrote: > Well, lto normally needs not to be explicit enabled. You just need to > have the libelf library installed on you host environment. Actually, libelf is not required to enable LTO for PE-COFF targets (i.e. Windows), since PE-COFF and ELF are two different

Re: [Mingw-w64-public] building GCC myself from MSYS

2010-09-11 Thread Kai Tietz
2010/9/11 Ruben Van Boxem : >> Hmm, I don't get this failure on cygwin as host. Have you installed >> >> lto on msys for native compiler before proper? >> >> Kai > > I'm using TDM64 GCC 4.5.1 with lto enabled, and it works for eg building Qt > without error. I have also built and installed libelf f

Re: [Mingw-w64-public] building GCC myself from MSYS

2010-09-11 Thread Ruben Van Boxem
> > Hmm, I don't get this failure on cygwin as host. Have you installed > lto on msys for native compiler before proper? > > Kai > I'm using TDM64 GCC 4.5.1 with lto enabled, and it works for eg building Qt without error. I have also built and installed libelf for TDM64 GCC (it's installed in the

Re: [Mingw-w64-public] building GCC myself from MSYS

2010-09-11 Thread Kai Tietz
2010/9/11 Ruben Van Boxem : > 2010/9/11 Ruben Van Boxem >> >> Hi, >> >> Recently I started messing around with GCC and attempted to build it many >> times. I first had lots of trouble with the 4.5 snapshots, but have now >> moved to 4.6 and all seems well. I put all the instructions in a single fi

Re: [Mingw-w64-public] building GCC myself from MSYS

2010-09-11 Thread Ruben Van Boxem
2010/9/11 Ruben Van Boxem > Hi, > > Recently I started messing around with GCC and attempted to build it many > times. I first had lots of trouble with the 4.5 snapshots, but have now > moved to 4.6 and all seems well. I put all the instructions in a single file > (not quite a script, but almost,

[Mingw-w64-public] building GCC myself from MSYS

2010-09-11 Thread Ruben Van Boxem
Hi, Recently I started messing around with GCC and attempted to build it many times. I first had lots of trouble with the 4.5 snapshots, but have now moved to 4.6 and all seems well. I put all the instructions in a single file (not quite a script, but almost, if you're willing to call a file with