Failure building on HP-UX with more than 2 threads (internal bug #4308)

Torbjörn Granlund tg at gmplib.org
Wed Dec 6 14:25:26 UTC 2017


Mișu Moldovan <misu.moldovan at proatria.com> writes:

  On HP-UX, we run into a failure in building GMP.  Probably not a fault
  of your library, but I suppose you would like to know of this anyway,
  as per https://gmplib.org/manual/Reporting-Bugs.html.
  
  In short, when using more than 2 threads for compiling GMP, the
  building fails.  In the attached bug report I've tried to follow the
  indications in the above link.  Do let me know if there's anything
  more we can do to document the issue.  And please let us know your
  thoughts on this.  Thanks!
  
  How to reproduce
  ================

  You have to use "parallelization" with HP-UX's make:

  export MAKE="make -P"
  export PARALLEL=3



  Configure log
  =============

[snip]


  Build error output
  ==================

  Making target"mpn/mp_bases.c"
          ./gen-bases table 64 0 >mpn/mp_bases.c || (rm -f mpn/mp_bases.c; exit 1)
  Making target"mpn/mp_bases.lo"
          /bin/sh ./libtool  --tag=CC    --mode=compile /opt/aCC/bin/cc -w -DHAVE_CONFIG_H  -I.  -D__GMP_WITHIN_GMP    +O2 -c -o mpn/mp_bases.lo mpn/mp_bases.c
  libtool: compile:  /opt/aCC/bin/cc -w -DHAVE_CONFIG_H -I. -D__GMP_WITHIN_GMP +O2 -c mpn/mp_bases.c -o mpn/mp_bases.o
  Making target"config.h"
  At end of source: error #2018: expected a ")"

  "mpn/mp_bases.c", line 127: error #2274: improperly terminated macro invocation
      /* 115 */ { 9, CNST_LIMB(0x25659a3711bc827d), CNST_LIMB(0xdb0e4126bcc86bd7), CNST_LIMB(0x30
                                                                                   ^

IIUC, you here somewhere issue a command "make" which reads the MAKE and
PARALLEL environment variables, then that command fails.

Unfortunately, we do not support parallel builds except with GNU make.
I will check to so that this is properly documented in our manual.


-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-bugs mailing list