Hi Bishnu,

It looks like the culprit is progska - which is a c program included in the
library for programming the SKARAB boards. You could manually remove the
dependency (you won't need it for rfsoc work) but it may be easier to
install the required os packages.

You will almost certainly need Kaj's suggested fix for running the
toolflow, but I think for installing casperfpga you will need to install
python3-dev and build-essential.

I do not unfortunately have a clean install to test on, but I think they
are the only two you should need:

$sudo apt install python3-dev
$sudo apt install build-essential

Cheers,
Jonathon


On Wed, 22 Nov 2023 at 00:58, Kaj Wiik <[email protected]> wrote:

> Hi Bishnu,
>
> I vaguely remember stumbling into this, the problem was a broken Linux
> release of Matlab. I found this from my notes:
>
> Ubuntu 20 comes with gcc 7.x to 9.x versions by default; you need to
> either install gcc 6.x manually or create a symbolic link using the
> following sudo commands:
> sudo ln -s /usr/include/asm-generic /usr/include/asm
> sudo ln -s /usr/include/x86_64-linux-gnu/sys /usr/include/sys
> sudo ln -s /usr/include/x86_64-linux-gnu/bits /usr/include/bits
> sudo ln -s /usr/include/x86_64-linux-gnu/gnu /usr/include/gnu
> Ubuntu 20 by default comes with dash shell. To avoid any issue that you
> may encounter while running the downstream AI Engine flows, it is
> recommended to change the shell from dash to bash using the following sudo
> command:
> sudo dpkg-reconfigure dash
>
> I found that installing gcc 6.x was difficult if not almost impossible
> (and possibilities to break your whole system), so I just created those
> links.
>
> There is a preinstalled Ubuntu virtual machine image made by Andrew
> Martens that works very well. If you are interested I can send you a
> download link.
>
> Cheers,
> Kaj
>
> On Wed, 22 Nov 2023 at 10:36, Bishnu Kumar Sharma <
> [email protected]> wrote:
>
>> Dear Community member,
>> I tried to install casperfpga from CASPER FPGA tutorial "
>> https://casper-toolflow.readthedocs.io/en/latest/src/Installing-the-Toolflow.html#";.
>> I am using Ubuntu 20.04 and python version is 3.8. While installing
>> casperfpga, i am getting error and it says
>> ---------------------------------------------------------------------
>> /usr/include/features.h:461:12: fatal error: sys/cdefs.h: No such file or
>> directory
>>         461 | #  include <sys/cdefs.h>
>>             |            ^~~~~~~~~~~~~
>>       compilation terminated.
>>       error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit
>> code 1
>>       [end of output]
>>
>>   note: This error originates from a subprocess, and is likely not a
>> problem with pip.
>>   ERROR: Failed building wheel for casperfpga
>>   Running setup.py clean for casperfpga
>> Failed to build casperfpga
>> ERROR: Could not build wheels for casperfpga, which is required to
>> install pyproject.toml-based projects
>> ------------------------------------------------- I am attaching the
>> screenshot of it as well. I hope somebody can help me from here.
>> Thank you all.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "[email protected]" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/0d2621fd-9501-457f-a1e4-262806851cfdn%40lists.berkeley.edu
>> <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/0d2621fd-9501-457f-a1e4-262806851cfdn%40lists.berkeley.edu?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups "
> [email protected]" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CADpJ3s3pqnf8J04dLuHu5heyYsmuPgtgWb%2B0BTDKsTH9iPCMeQ%40mail.gmail.com
> <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CADpJ3s3pqnf8J04dLuHu5heyYsmuPgtgWb%2B0BTDKsTH9iPCMeQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAPU71P_yob01ODvXHwP%2Bmj%2BNLacuKrPQRUMMo1O51opEnyDeeA%40mail.gmail.com.

Reply via email to