title: Issues Installing Intel's Decimal Floating-Point Math Library on Mac OS Monterey
body: <p>I'm trying to install <a href="https://www.intel.com/content/www/us/en/developer/articles/tool/intel-decimal-floating-point-math-library.html" rel="nofollow noreferrer">Intel's Decimal Floating-Point Math Library</a> both on my Apple M1 Mac mini and an older MacBook Pro with an intel CPU both running Mac OS Monterey. In trying to run the recommended <code>RUNOSX</code> bash script from the <code>LIBRARY</code> subfolder I begin encountering several errors. The first of which are</p>
  <pre><code>src/bid64_pow.c:183:17: error: implicitly declaring library function 'abs' with type 'int (int)' [-Werror,-Wimplicit-function-declaration]
        exact_y = abs(exact_y);
  src/bid64_pow.c:183:17: note: include the header &lt;stdlib.h&gt; or explicitly provide a declaration for 'abs'
        1 error generated.
  </code></pre>
  <p>but which are easily fixed by adding the suggested <code>#include &lt;stdlib.h&gt;</code> to the offending files (in this case, <code>src/bid64_pow.c</code>).</p>
  <p>After fixing the above, I get the following errors,</p>
  <pre><code>float128/dpml_exception.c:186:13: error: implicit declaration of function 'raise' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
              DPML_SIGNAL(p);
              ^
  float128/dpml_exception.c:135:28: note: expanded from macro 'DPML_SIGNAL'
  #   define DPML_SIGNAL(p)        raise(SIGFPE)
                                   ^
  1 error generated.
  </code></pre>
  <p>which I'm unable to fix.</p>
  <p>Since the library claims to support Mac OSX, I'm a bit surprised that it wouldn't install right off the bat even on my intel laptop without having to edit the source code. Perhaps then I'm missing something else. In any case, please help!</p>