[Users] Build of Win32 Installer fails on gmp-6.2.1

Rosemary Lockie wishful99 at btinternet.com
Mon Jul 4 14:19:09 UTC 2022


On Sun, 3 Jul 2022 12:33:36 -0700.
Jonathan Boeing <jonathan at claws-mail.org> wrote: 

> On Sun, 3 Jul 2022 15:35:54 +0100
> Wishful Thinking via Users <users at lists.claws-mail.org> wrote:
> 
> > > > The error reported is:
> > > > 
> > > > [snip]
> > > > checking for build system executable sufix... configure: error:
> > > > Cannot determine executable suffix
> > > > [snip]
> > > > 
...
> > > The package-specific build arguments are in src/Makefile.am.  To set
> > > CC and CC_FOR_BUILD explicitly for gmp's configure, change
> > > cm_pkg_gmp_configure from:
> > > 
> > > cm_pkg_gmp_configure = \
> > >         --disable-static \
> > >         --enable-shared \
> > >         --disable-cxx
> > > 
> > > to:
> > > 
> > > cm_pkg_gmp_configure = \
> > >         --disable-static \
> > >         --enable-shared \
> > >         --disable-cxx \
> > >         CC=$(CC) \
> > >         CC_FOR_BUILD=$(CC)    
> > 
> > Jonathan,
> > 
> > Thank you. It's really helpful for me to learn more about where to
> > tweak things. :)
> > 
> > I made the necessary modifications to ~/src/Makefile.am, and judging
> > from gmp's config.log the values do appear to have been transmitted
> > to the build AOK.
> > 
> > But (after running build-aux/pkg.sh, and autogen.sh) MAKE still
> > reports the same issue.
> > 
> > Should CC and CC_FOR_BUILD have identical values? They are different
> > in the example given in the gmplib list:
> >  
> > https://gmplib.org/list-archives/gmp-bugs/2020-January/004714.html
> > 
> > CC_FOR_BUILD is set to x86_64-linux-gnu-gcc though that might be
> > because of other reasons?  
> 
> Ah, it looks like CC_FOR_BUILD should be set to your native compiler,
> not the cross compiler:
> 
> http://www.gnu.org/software/autoconf-archive/ax_prog_cc_for_build.html
> 
> You can try changing the cm_pkg_gmp_configure line to
> CC_FOR_BUILD=$(BUILD_CC).  If that doesn't work, try setting it to
> 'gcc' or your triplet-prefixed native system compiler.
 
Jonathan,

I am very happy to say that CC_FOR_BUILD=$(BUILD_CC) worked!

Thank you very much again for all your help! :)

Kind Regards,
Rosemary Lockie



More information about the Users mailing list