Hey Bishnu, I back Jonathon's suggestion - although I'm fairly sure that I got away with installing python3-dev and then just gcc, not the entire build-essentials package, when I recently did a clean install. I also vaguely recall having to manually install Cython too:
$python3 -m pip install cython This should probably be added to the casperfpga installation docs if we plan on keeping progska, shall make a note to do so. On Wed, 22 Nov 2023, 18:39 Jonathon Kocz, <jxk...@gmail.com> wrote: > 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 > almos > > > > > > > > > > > > > > > > > > > > > > > > > > > <https://za.report.cybergraph.mimecast.com/alert-details/?dep=H64JH2gJBQk0m8uD%2F8ER5g%3D%3DWksxugwUVSPVkkyPBm6dhhheveMo6dZ4ZCKBAuY%2Bdq%2BzWMe9CCBzzaoUdGffQVrcAiatMVI8jwLNtANDOpLTXSYvqfrKA4rwq2rAcZdY3zzfRXdU3Sv5Vwii%2BzFdjeTU%2B1HvB%2FR7NJIKJguuqBmzBO9abnrIsqV7FTU4NkhnPYQutHvxefaC4XbpABTP0FOFdcNGaZLn12g8jgZJ5oBxNU887OT05meZD9zk5dRUtvfnoTOAFyqPELRTCwdy0wxjcqRMoXLRqABLoiMMDYemBWHWb0iMZ9IaFmnOty8DW9x3kzrRCN%2FVpO7SSxPohQizGSFuhYnhhsw8XKsVQ0DmYbIm3CEUtoyzhQ3BSUh4vJAPdcEzOvB1xXDrIadFR%2FN2Qe%2BskcljzDFpV6cAeqTP14UkVV66fUVqMu2G5bnHp9UyT18ai8rzQs3FCaZoSwlH4Wsp7Vg4DHrT6nT2%2Bm178Y9NiPw5dMUT%2B0ascu%2BfjU%2BkI0A%2FNsrSdu6%2FTf1F5bwaeGPoe4EQdidtkolBQghrBYGrGlS%2F17yZ6BYbH6oowzHcso4ZlG7Vj4UbwQLEnG%2F2rPAK9ZV8zaHS4S1fcMB1WS6yGZFBOwmjBEDYVLmcb0R73eiTjcXomgcJS%2BEEnVCgzfK6e815FHVB4f717smmXTXb%2BsdbxiYgz9zRwUXhsHI%3D> > 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 <kaj.w...@iki.fi> 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 < >> bksha...@asiaa.sinica.edu.tw> 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# >>> <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 "casper@lists.berkeley.edu" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to casper+unsubscr...@lists.berkeley.edu. >>> 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 >> "casper@lists.berkeley.edu" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to casper+unsubscr...@lists.berkeley.edu. >> 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 " > casper@lists.berkeley.edu" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to casper+unsubscr...@lists.berkeley.edu. > 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 > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAPU71P_yob01ODvXHwP%2Bmj%2BNLacuKrPQRUMMo1O51opEnyDeeA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > Disclaimer The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful. -- You received this message because you are subscribed to the Google Groups "casper@lists.berkeley.edu" group. To unsubscribe from this group and stop receiving emails from it, send an email to casper+unsubscr...@lists.berkeley.edu. To view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAGH-0TfpKSP2an%3DO0N5Vm1Pvx%2BS%2Brj8HXjRwkpdf%3DimJPMjT%3DQ%40mail.gmail.com.