Unable to compile gdc with gcc 4.8.2 on OSX 10.8.5

2013-10-31 Thread kahuna
I've been unable to compile gcc patches to gcc-4.8 on OSX, I get an error in thread.d, an assert "Not implemented", it seems that it is not getting the right version while compiling initStack() and fiber_entryPoint(), if I comment out both asserts, as expected it breaks the library and whenever

Re: Building GDC

2013-10-31 Thread Steve Teale
On Thursday, 31 October 2013 at 17:33:52 UTC, Steve Teale wrote: Mea Culpa. In attempting to install the prerequisites libmpc-dev libmpfr-dev libgmp3-dev I ended up building from the source code for these projects. Later, back to square one, I simply installed them using apt-get. Then the

Re: Building GDC

2013-10-31 Thread H. S. Teoh
On Thu, Oct 31, 2013 at 06:33:50PM +0100, Steve Teale wrote: > Mea Culpa. > > In attempting to install the prerequisites > > libmpc-dev > libmpfr-dev > libgmp3-dev > > I ended up building from the source code for these projects. > > Later, back to square one, I simply installed them using apt-g

Re: Building GDC

2013-10-31 Thread Joseph Rushton Wakeling
On 31/10/13 18:33, Steve Teale wrote: Mea Culpa. Don't worry about it. It's always good to know how builds can go wrong for people, because that helps the next person who runs into difficulty. Glad you finally got it built! :-)

Re: Building GDC

2013-10-31 Thread Steve Teale
Mea Culpa. In attempting to install the prerequisites libmpc-dev libmpfr-dev libgmp3-dev I ended up building from the source code for these projects. Later, back to square one, I simply installed them using apt-get. Then the build worked. Grovel, grovel, my apologies to those whose time I wa

Re: Building GDC

2013-10-31 Thread Joseph Rushton Wakeling
On 31/10/13 13:45, Steve Teale wrote: There are xgcc errors, and a shared library for MPFR that can't be found. This is a guess, but ... as it looks like the build process might be being incorrectly configured, are there any warnings in the log about needing different versions of automake, et

Re: Building GDC

2013-10-31 Thread Steve Teale
On Thursday, 31 October 2013 at 12:49:38 UTC, Joseph Rushton Wakeling wrote: On 31/10/13 13:07, Steve Teale wrote: $CPATH and $LIBRARY_PATH were initially empty, and the build failed as decribed. I set them to the paths above, and the build failed in the same way. Did you try my detailed list

Re: Building GDC

2013-10-31 Thread Steve Teale
Supposing that you're using $SOMEDIR/gdc to store everything, a rough description of the procedure would be: * Clone GDC master into gdc/dev * Unzip the GCC source into gdc, which will give you a subdirectory called gcc-$VERSION (currently gcc-4.8.2) * cd into gdc/dev and

Re: Building GDC

2013-10-31 Thread Joseph Rushton Wakeling
On 31/10/13 13:07, Steve Teale wrote: $CPATH and $LIBRARY_PATH were initially empty, and the build failed as decribed. I set them to the paths above, and the build failed in the same way. Did you try my detailed list of instructions for building using GCC 4.8 sources?

Re: Building GDC

2013-10-31 Thread John Colvin
On Thursday, 31 October 2013 at 11:54:14 UTC, Joseph Rushton Wakeling wrote: On 31/10/13 12:46, Alexandr Druzhinin wrote: Ubuntu 12.04 x86_64 user here, I build gdc 4.8.1 following instructions I link above without issues, so I don't know what to do - but I'm sure it's possible :) P.S. I have

Re: Building GDC

2013-10-31 Thread Steve Teale
On Thursday, 31 October 2013 at 11:46:25 UTC, Alexandr Druzhinin wrote: 31.10.2013 18:36, Steve Teale пишет: On Thursday, 31 October 2013 at 10:45:05 UTC, Joseph Rushton Wakeling wrote: On 31/10/13 11:31, Steve Teale wrote: so possibly the MPFR install put it in the wrong place. I will look

Re: Building GDC

2013-10-31 Thread Joseph Rushton Wakeling
On 31/10/13 12:46, Alexandr Druzhinin wrote: Ubuntu 12.04 x86_64 user here, I build gdc 4.8.1 following instructions I link above without issues, so I don't know what to do - but I'm sure it's possible :) P.S. I have mpfr in /usr/lib/x86_64-linux-gnu/ In my case the 12.04 build platform was 64

Re: Building GDC

2013-10-31 Thread Joseph Rushton Wakeling
On 31/10/13 12:36, Steve Teale wrote: On Thursday, 31 October 2013 at 10:45:05 UTC, Joseph Rushton Wakeling wrote: On 31/10/13 11:31, Steve Teale wrote: so possibly the MPFR install put it in the wrong place. I will look for it. Where is the right place? What OS are you running? Ubuntu 12.0

Re: Building GDC

2013-10-31 Thread Alexandr Druzhinin
31.10.2013 18:36, Steve Teale пишет: On Thursday, 31 October 2013 at 10:45:05 UTC, Joseph Rushton Wakeling wrote: On 31/10/13 11:31, Steve Teale wrote: so possibly the MPFR install put it in the wrong place. I will look for it. Where is the right place? What OS are you running? Ubuntu 12.04

Re: Building GDC

2013-10-31 Thread Steve Teale
On Thursday, 31 October 2013 at 10:45:05 UTC, Joseph Rushton Wakeling wrote: On 31/10/13 11:31, Steve Teale wrote: so possibly the MPFR install put it in the wrong place. I will look for it. Where is the right place? What OS are you running? Ubuntu 12.04

Re: Building GDC

2013-10-31 Thread Steve Teale
Hello Steve, It's been a while since you've poked your head round here. ;-) This error message you are getting is quite misleading and frequently the problem has nothing to do with the message. You have to check the file 'config.log' in the directory where the error occurred. In the erro

Re: Building GDC

2013-10-31 Thread Joseph Rushton Wakeling
On 31/10/13 11:31, Steve Teale wrote: so possibly the MPFR install put it in the wrong place. I will look for it. Where is the right place? What OS are you running?

Re: Building GDC

2013-10-31 Thread Joseph Rushton Wakeling
On 31/10/13 09:59, Iain Buclaw wrote: In Ubuntu, even if these packages are installed, they are put into multiarch directories which vanilla GCC isn't aware of. Has not been my experience for GCC 4.8+. I don't think I have any custom CPATH or LPATH settings on my Ubuntu 13.10 system.

Re: Building GDC

2013-10-31 Thread Steve Teale
OK, got all the tools installed and the build for GDC went on for some time, but eventually bombed out with: checking for suffix of object files... configure: error: in `/home/steve/gdc/objdir/i686-**pc-linux-gnu/libgcc': configure: error: cannot compute suffix of object files: cannot compile

Re: Building GDC

2013-10-31 Thread Iain Buclaw
On 31 October 2013 08:34, Steve Teale wrote: > On Wednesday, 30 October 2013 at 06:18:02 UTC, Alexandr Druzhinin wrote: > >> 30.10.2013 11:58, Steve Teale пишет: >> >>> I want to build gtkD. For that I need a version 2 GDC. Ubuntu is still >>> on V2. >>> >>> Are there any clear build instructions

Re: Building GDC

2013-10-31 Thread Steve Teale
On Wednesday, 30 October 2013 at 06:18:02 UTC, Alexandr Druzhinin wrote: 30.10.2013 11:58, Steve Teale пишет: I want to build gtkD. For that I need a version 2 GDC. Ubuntu is still on V2. Are there any clear build instructions available, or even a binary ;=) http://gdcproject.org/wiki/Install