Building GDC

Steve Teale steve.teale at britseyeview.com
Thu Oct 31 03:31:16 PDT 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



More information about the D.gnu mailing list