# Comple fails for Rosetta Code Task "Bernoulli numbers"; gmp.ads not found

**URL:** https://forum.ada-lang.io/t/comple-fails-for-rosetta-code-task-bernoulli-numbers-gmp-ads-not-found/1091
**Category:** General
**Created:** [August 16, 2024, 11:48pm UTC](https://forum.ada-lang.io/t/comple-fails-for-rosetta-code-task-bernoulli-numbers-gmp-ads-not-found/1091 "2024-08-16T23:48:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Ret\_Build\_Engineer](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/r/ccd318/32.png) [@Ret\_Build\_Engineer](https://forum.ada-lang.io/u/Ret_Build_Engineer)
#### Post date: [August 16, 2024, 11:48pm UTC](https://forum.ada-lang.io/t/comple-fails-for-rosetta-code-task-bernoulli-numbers-gmp-ads-not-found/1091/1 "2024-08-16T23:48:48Z")

</div>

Hi;

Regarding the Rosetta Code task “Bernoulli numbers”…

> **[Bernoulli numbers - Rosetta Code](https://rosettacode.org/wiki/Bernoulli_numbers)**

I am unable to compile the code.

The first clue is the the broken web link to a thick Ada binding of GMP specified above the Ada code.

So gmp.ads is not found, would make sense if there’s no reference to the thick GMP binding…

So, is this code broken entirely or can it be easily fixed?

Of course this fails with gnatmake directly because I have no library to specify with when using “-I”.

Using Alire doesn’t help because the thick binding is not found there either.

The web link “[http://www.codeforge.com/article/422541](http://www.codeforge.com/article/422541)” is broken.

I will continue to try using what is available from gnatcoll when using Alire, just haven’t figured it out yet.

Thanks,  
Retired Build Engineer

---

<div class="post-metadata">

### Author: ![jere](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/jere/32/87_2.png) [@jere](https://forum.ada-lang.io/u/jere)
#### Post date: [August 17, 2024, 2:50am UTC](https://forum.ada-lang.io/t/comple-fails-for-rosetta-code-task-bernoulli-numbers-gmp-ads-not-found/1091/2 "2024-08-17T02:50:10Z")

</div>

If I had to guess, it probably used to point to this one: [GitHub - ytomino/gmp-ada: GMP, MPFR and MPC interface library for gcc-Ada (GNAT)](https://github.com/ytomino/gmp-ada)

It’s been around for a long time. Probably moved locations from codeforge. I didn’t take time to read through and match it to the rosetta code though to see for sure.

---

<div class="post-metadata">

### Author: ![simonjwright](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/simonjwright/32/11_2.png) [@simonjwright](https://forum.ada-lang.io/u/simonjwright)
#### Post date: [August 17, 2024, 1:23pm UTC](https://forum.ada-lang.io/t/comple-fails-for-rosetta-code-task-bernoulli-numbers-gmp-ads-not-found/1091/3 "2024-08-17T13:23:13Z")

</div>

I think it’s `adabindinggmpmpfr`, which I found in the [Google Code archive](https://code.google.com/archive/p/adabindinggmpmpfr/source/default/source). That depends on `Fractions`, which I can’t find.

I thought to try `GNATCOLL.GMP`, but it quickly got ugly (`Rational` is limited), so not the sort of advertisement of Ada that we want on Rosetta.

---

<div class="post-metadata">

### Author: ![mgrojo](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/mgrojo/32/15_2.png) [@mgrojo](https://forum.ada-lang.io/u/mgrojo)
#### Post date: [August 17, 2024, 4:29pm UTC](https://forum.ada-lang.io/t/comple-fails-for-rosetta-code-task-bernoulli-numbers-gmp-ads-not-found/1091/4 "2024-08-17T16:29:27Z")

</div>

The “Downloads” section has two snapshots containing `fractions.ad[sb]` files. I haven’t tried to compile anything, though.

[https://code.google.com/archive/p/adabindinggmpmpfr/downloads](https://code.google.com/archive/p/adabindinggmpmpfr/downloads)
