Beautiful! You are right.
________________________________
From: Nicolas Cuervo <[email protected]>
Sent: Saturday, March 31, 2018 2:45:40 PM
To: Xingjian Chen
Cc: [email protected]
Subject: Re: [USRP-users] make noc_block_gain_tb error

Hello Chen,

what is the output of this command?:

   $ ls -l /bin/sh

The commands "echo $0" and "ls -l /bin/sh" are not fundamentally 
interchangeable. "echo $0" will return the process $0, which, when run in a 
shell, will tell you the name of the shell. However, if you run this command 
inside a script, then it will return the name of the script.

On the other hand, "ls -l /bin/sh" returns the *default* shell that the system 
uses. It will show as a symlink and should point to bash for the testbenches to 
work. This is what you modify when running "sudo dpkg-reconfigure dash" and 
choose "no" in order to have "bash" as default.

As an additional example, when I run "echo $0" in my shell it returns "zsh", 
because that is the shell that I'm am running in my terminal, and the 
testbenches run just fine, because my default shell is bash (as seen with ls -l 
/bin/sh).

Cheers,
- Nicolas



On Fri, Mar 30, 2018 at 10:28 PM, Xingjian Chen via USRP-users 
<[email protected]<mailto:[email protected]>> wrote:

Hi,

When I follow the instruction from "Getting Started with RFNoC Development" web 
and youtube video "RFNoC Getting Started Video Tutorial", everything was smooth 
until making the gain block testbench. Here is the error I got after the step 
"make noc_block_gain_tb":


"/bin/sh: 1: source: not found
CMakeFiles/noc_block_gain_tb.dir/build.make:57: recipe for target 
'CMakeFiles/noc_block_gain_tb' failed
make[3]: *** [CMakeFiles/noc_block_gain_tb] Error 127
CMakeFiles/Makefile2:131: recipe for target 
'CMakeFiles/noc_block_gain_tb.dir/all' failed
make[2]: *** [CMakeFiles/noc_block_gain_tb.dir/all] Error 2
CMakeFiles/Makefile2:138: recipe for target 
'CMakeFiles/noc_block_gain_tb.dir/rule' failed
make[1]: *** [CMakeFiles/noc_block_gain_tb.dir/rule] Error 2
Makefile:201: recipe for target 'noc_block_gain_tb' failed
make: *** [noc_block_gain_tb] Error 2"

I know I am using bash as my default shell by "echo $0"
I have added the block gain.
I think there might be something wrong with cmake. I see some warning when I do 
"cmake ../" in the ~/rfnoc/src/rfnoc-tutorial/build directory. It shows this:
"...
Checking for GNU Radio Module: RUNTIME
-- Checking for module 'gnuradio-runtime'
--   Found gnuradio-runtime, version 3.7.12git
 * INCLUDES=/root/rfnoc/include
 * 
LIBS=/root/rfnoc/lib/libgnuradio-runtime.so;/root/rfnoc/lib/libgnuradio-pmt.so;/usr/lib/liblog4cpp.so
-- Found GNURADIO_RUNTIME: 
/root/rfnoc/lib/libgnuradio-runtime.so;/root/rfnoc/lib/libgnuradio-pmt.so;/usr/lib/liblog4cpp.so
GNURADIO_RUNTIME_FOUND = TRUE
-- Checking for module 'ettus'
--   No package 'ettus' found
-- Found ETTUS: /root/rfnoc/lib/libgnuradio-ettus.so
 * INCLUDES = /root/rfnoc/include
 * LIBS = /root/rfnoc/lib/libgnuradio-ettus.so
-- Checking for module 'fpga'
--   No package 'fpga' found
-- Found FPGA: /root/rfnoc/src/uhd-fpga
CMake Warning (dev) at cmake/Modules/GrTest.cmake:45 (get_target_property):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target "test-tutorial".  Use
  the target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  lib/CMakeLists.txt:85 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.
..."

I find that there is another uhd-fpga folder in 
/~/rfnoc/src/rfnoc-tutorial/rfnoc. Is this the actual location I should provide 
for the fpga repository? Please give me some ideas. Thank you in advance!

Chen







_______________________________________________
USRP-users mailing list
[email protected]<mailto:[email protected]>
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com


_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to