Jump to page: 1 2 3
Thread overview
Building GDC
Oct 30, 2013
Steve Teale
Oct 30, 2013
Alexandr Druzhinin
Oct 31, 2013
Steve Teale
Oct 31, 2013
Iain Buclaw
Oct 31, 2013
Steve Teale
Oct 31, 2013
Steve Teale
Oct 31, 2013
Alexandr Druzhinin
Oct 31, 2013
John Colvin
Oct 31, 2013
Steve Teale
Oct 31, 2013
Steve Teale
Oct 31, 2013
Steve Teale
Oct 31, 2013
Steve Teale
Oct 31, 2013
H. S. Teoh
Oct 31, 2013
Steve Teale
Nov 01, 2013
Iain Buclaw
Oct 31, 2013
Steve Teale
October 30, 2013
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 ;=)
October 30, 2013
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/Installation/General to build from source. Binary exists, but it's better to build from source.
October 31, 2013
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/Installation/General to build from source. Binary exists, but it's better to build from source.

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

Help? Out of my depth.
October 31, 2013
On 31 October 2013 08:34, Steve Teale <steve.teale@britseyeview.com> 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 available, or even a binary ;=)
>>>
>> http://gdcproject.org/wiki/**Installation/General<http://gdcproject.org/wiki/Installation/General>to build from source. Binary exists, but it's better to build from source.
>>
>
> 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
>
> Help? Out of my depth.
>


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 error you are getting, you would have to check the 'config.log' file in the directory '/home/steve/gdc/objdir/i686-pc-linux-gnu/libgcc'.  There might be several test programs that failed during the configuration, but some of these failures are non-critical.  Check for the last error entry in the file.

However a common cause is that the tequired libraries for the GCC build are missing, specifically MPFR, GMP and MPC.

In Ubuntu, even if these packages are installed, they are put into multiarch directories which vanilla GCC isn't aware of.

Can you export the following two environment variables, and see if it continues to fail.

export CPATH=/usr/include/i686-linux-gnu
export LIBRARY_PATH=/usr/lib/i686-linux-gnu


-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


October 31, 2013
>> 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
>>
>> Help? Out of my depth.
>>
>
>
> 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 error you
> are getting, you would have to check the 'config.log' file in the directory
> '/home/steve/gdc/objdir/i686-pc-linux-gnu/libgcc'.  There might be several
> test programs that failed during the configuration, but some of these
> failures are non-critical.  Check for the last error entry in the file.
>
> However a common cause is that the tequired libraries for the GCC build are
> missing, specifically MPFR, GMP and MPC.
>
> In Ubuntu, even if these packages are installed, they are put into
> multiarch directories which vanilla GCC isn't aware of.
>
> Can you export the following two environment variables, and see if it
> continues to fail.
>
> export CPATH=/usr/include/i686-linux-gnu
> export LIBRARY_PATH=/usr/lib/i686-linux-gnu

Ian, It would not start the build at all until I installed the latest versions of GMO, MPFR, and MPC

With the export commands I got the same error.

The last error in config.log was
configure:3605: error: in `/home/steve/gdc/objdir/i686-pc-linux-gnu/libgcc':
configure:3608: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

However there is an error before that
/home/steve/gdc/objdir/./gcc/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory

so possibly the MPFR install put it in the wrong place. I will look for it. Where is the right place?

Thanks Steve

October 31, 2013
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.
October 31, 2013
> 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 error you
> are getting, you would have to check the 'config.log' file in the directory
> '/home/steve/gdc/objdir/i686-pc-linux-gnu/libgcc'.  There might be several
> test programs that failed during the configuration, but some of these
> failures are non-critical.  Check for the last error entry in the file.
>
> However a common cause is that the tequired libraries for the GCC build are
> missing, specifically MPFR, GMP and MPC.
>
> In Ubuntu, even if these packages are installed, they are put into
> multiarch directories which vanilla GCC isn't aware of.
>
> Can you export the following two environment variables, and see if it
> continues to fail.
>
> export CPATH=/usr/include/i686-linux-gnu
> export LIBRARY_PATH=/usr/lib/i686-linux-gnu

I have libmpfr.so.4, so what do I need to change to make the build look for that instead - shall I just rename the link?
October 31, 2013
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?

October 31, 2013
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

October 31, 2013
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
>
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/
« First   ‹ Prev
1 2 3