Error when attempting to make project in Ubuntu

dedicated to the FPGA topics for all Red Pitaya programmers
sslerose
Posts: 34
Joined: Sat Nov 26, 2022 12:43 am

Error when attempting to make project in Ubuntu

Post by sslerose » Tue Apr 11, 2023 8:56 pm

I am currently following the instructions here under 3.2.2.3.4 and I keep getting the following error both in Ubuntu and in the Vivado TCL console:

Code: Select all

sslerose@Sams-PC:~/RedPitaya/fpga$ make project PRJ=v0.94 MODEL=Z10
make: *** No rule to make target 'project'.  Stop.
I have already completed the build process for the Red Pitaya ecosystem found here, using the automatic build scripts in the /RedPitaya/build_scripts folder (this is all under 3.2.2.4.2). My source and PATH variable are set correctly and done automatically in my bashrc file.


Also, if I try to run

Code: Select all

sudo make -f Makefile.x86 devicetree MODEL=Z10
I get a long string of actions that are littered with Warning (avoid_default_addr_size) and fatal: destination path '.' already exists and is not an empty directory.

I am not using the most recent OS or GitHub repository as I started my project before the Red Pitaya team began their update. Any advice would be greatly appreciated.

juretrn
Posts: 104
Joined: Tue Nov 16, 2021 11:38 am

Re: Error when attempting to make project in Ubuntu

Post by juretrn » Thu Apr 13, 2023 9:54 am

Hi,
a while back we have moved the FPGA files to a separate repository:
https://github.com/RedPitaya/RedPitaya-FPGA

you can run make project ... from the root directory of that. I believe the automated scripts checkout the FPGA repo and then build it.

sslerose
Posts: 34
Joined: Sat Nov 26, 2022 12:43 am

Re: Error when attempting to make project in Ubuntu

Post by sslerose » Tue Apr 25, 2023 7:59 pm

juretrn,

This worked thank you. However, when I ran the synthesis, implementation, and bitstream generation for the sample project it gives (making the 0th led blink), I run into an "Abnormal program termination" with the following full error:

Code: Select all

Abnormal program termination (11)
Please check '/home/sslerose/RedPitaya-FPGA/prj/v0.94/hs_err_pid3444.log' for details
segfault in /opt/Xilinx/Vivado/2020.1/bin/unwrapped/lnx64.o/vivado -exec vivado -source red_pitaya_vivado_project_Z10.tcl -tclargs v0.94 , exiting...
make: *** [Makefile:47: project] Error 139
The error log is as follows:

Code: Select all

#
# An unexpected error has occurred (11)
#
Stack:
/opt/Xilinx/Vivado/2020.1/tps/lnx64/jre9.0.4/lib//server/libjvm.so(+0xb6aadb) [0x7fe6b2f6aadb]
/opt/Xilinx/Vivado/2020.1/tps/lnx64/jre9.0.4/lib//server/libjvm.so(JVM_handle_linux_signal+0xbb) [0x7fe6b2f6fe1b]
/opt/Xilinx/Vivado/2020.1/tps/lnx64/jre9.0.4/lib//server/libjvm.so(+0xb647b8) [0x7fe6b2f647b8]
/lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7fe70b21a520]
/opt/Xilinx/Vivado/2020.1/tps/lnx64/jre9.0.4/lib/libawt_xawt.so(+0x47f79) [0x7fe68e047f79]
/opt/Xilinx/Vivado/2020.1/tps/lnx64/jre9.0.4/lib/libawt_xawt.so(+0x485b2) [0x7fe68e0485b2]
/opt/Xilinx/Vivado/2020.1/tps/lnx64/jre9.0.4/lib/libawt_xawt.so(Java_sun_awt_X11_XRobotPeer_getRGBPixelsImpl+0x30d) [0x7fe68e038fdd]
[0x7fe69ad2591e]
Any advice on fixing this issue would be much appreciated!

juretrn
Posts: 104
Joined: Tue Nov 16, 2021 11:38 am

Re: Error when attempting to make project in Ubuntu

Post by juretrn » Wed Apr 26, 2023 7:37 am

Hi,
please check if your PC has run out of memory during build. Small FPGA designs like RP need somewhere in the range of 4 GB RAM.
Otherwise, Vivado just might fail on its own, it would not be unheard of.

sslerose
Posts: 34
Joined: Sat Nov 26, 2022 12:43 am

Re: Error when attempting to make project in Ubuntu

Post by sslerose » Mon May 15, 2023 4:07 pm

Apologies for the late reply,

I have 32GB RAM on my Win10 machine with 16GB dedicated to WSL2.

If Vivado is failing on its own, then it's always dying with the same error: the string of issues with jre9.0.4. I do not have any version of Java installed on Ubuntu, but these errors are occurring within the Vivado files under /opt/, so do I need to install jre9.0.4?

Thank you in advance.

juretrn
Posts: 104
Joined: Tue Nov 16, 2021 11:38 am

Re: Error when attempting to make project in Ubuntu

Post by juretrn » Tue May 16, 2023 7:52 am

You shouldn't have to install JRE, it must be included in the Vivado installation.
Check if you have installed the following packages:

Code: Select all

libncurses5 libtinfo5 libncurses5-dev libncursesw5-dev 
If installing these doesn't help, then I suggest to download and install Vivado again.

sslerose
Posts: 34
Joined: Sat Nov 26, 2022 12:43 am

Re: Error when attempting to make project in Ubuntu

Post by sslerose » Tue May 16, 2023 4:49 pm

After sending the reply I found that even when Vivado crashed, it would still generate a .bit file that I could send to my Red Pitaya and it performed as expected. This is at least the case for the 1.3.2 Project.

I performed the simple LED blinker FPGA lesson and the first extension, and it finished without any errors, so I am not quite sure what happened.

I installed the packages you mentioned, and the errors remained the same, again only for the 1.3.2 project. I am attempted more of the FPGA walkthrough projects and will see if I have any issues with those.

sslerose
Posts: 34
Joined: Sat Nov 26, 2022 12:43 am

Re: Error when attempting to make project in Ubuntu

Post by sslerose » Fri May 19, 2023 5:34 pm

Small update.

I have found that if Vivado crashes when generating the bitstream, I can simply reopen the project and it will resume the generation successfully. Still not exactly sure what is happening, but at the very least there is a temporary solution.

TheGeri
Posts: 12
Joined: Wed Sep 13, 2023 12:46 pm

Re: Error when attempting to make project in Ubuntu

Post by TheGeri » Tue Oct 24, 2023 2:55 pm

sslerose wrote:
Tue Apr 25, 2023 7:59 pm
juretrn,

This worked thank you. However, when I ran the synthesis, implementation, and bitstream generation for the sample project it gives (making the 0th led blink), I run into an "Abnormal program termination" with the following full error:

Code: Select all

Abnormal program termination (11)
Please check '/home/sslerose/RedPitaya-FPGA/prj/v0.94/hs_err_pid3444.log' for details
segfault in /opt/Xilinx/Vivado/2020.1/bin/unwrapped/lnx64.o/vivado -exec vivado -source red_pitaya_vivado_project_Z10.tcl -tclargs v0.94 , exiting...
make: *** [Makefile:47: project] Error 139
The error log is as follows:

Code: Select all

#
# An unexpected error has occurred (11)
#
Stack:
/opt/Xilinx/Vivado/2020.1/tps/lnx64/jre9.0.4/lib//server/libjvm.so(+0xb6aadb) [0x7fe6b2f6aadb]
/opt/Xilinx/Vivado/2020.1/tps/lnx64/jre9.0.4/lib//server/libjvm.so(JVM_handle_linux_signal+0xbb) [0x7fe6b2f6fe1b]
/opt/Xilinx/Vivado/2020.1/tps/lnx64/jre9.0.4/lib//server/libjvm.so(+0xb647b8) [0x7fe6b2f647b8]
/lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7fe70b21a520]
/opt/Xilinx/Vivado/2020.1/tps/lnx64/jre9.0.4/lib/libawt_xawt.so(+0x47f79) [0x7fe68e047f79]
/opt/Xilinx/Vivado/2020.1/tps/lnx64/jre9.0.4/lib/libawt_xawt.so(+0x485b2) [0x7fe68e0485b2]
/opt/Xilinx/Vivado/2020.1/tps/lnx64/jre9.0.4/lib/libawt_xawt.so(Java_sun_awt_X11_XRobotPeer_getRGBPixelsImpl+0x30d) [0x7fe68e038fdd]
[0x7fe69ad2591e]
Any advice on fixing this issue would be much appreciated!
Good afternoon,

I am reopening this post because I have the same error. Were you able to fix it? I really appreciate any kind of help or advice. Thanks you in advance!

sslerose
Posts: 34
Joined: Sat Nov 26, 2022 12:43 am

Re: Error when attempting to make project in Ubuntu

Post by sslerose » Thu Oct 26, 2023 3:30 pm

TheGeri wrote:
Tue Oct 24, 2023 2:55 pm
I am reopening this post because I have the same error. Were you able to fix it? I really appreciate any kind of help or advice. Thanks you in advance!
Geri,

I never found a true solution to avoiding the crash and errors, I always just relaunched Vivado with

Code: Select all

vivado
and then opened the project I was working on. The bitstream should still write without issues.

If you eventually move on to creating your own projects that are based on the general ZYNQ7000 architecture, then you can upgrade to Vivado 2023. I haven't ran into this error using said version.

It is likely possible to utilize Red Pitaya's build scripts and everything using 2023, as I wouldn't imagine the TCL commands not working anymore. However, I do not have a definitive answer on that specifically.

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 2 guests