usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

UHD build problems (was: Re: dicuss-gnuradio ...)

SS
Svante Signell
Tue, Nov 1, 2011 9:41 PM

On Tue, 2011-11-01 at 14:22 -0700, Ben Hilburn wrote:

Svante -

You say "see below", but I'm not seeing any error messages or attached
files in your e-mail.  Tell me if they are there and I'm just not
seeing them, as it might be my mail client.

When compiling from git the following happens:
git clone git://code.ettus.com/ettus/uhd.git
cd uhd/images
make clean
make images
[compiler output]
find /.../uhd/images/images -type f | xargs chmod -x
find /.../uhd/images/../fpga -name "*.twr" | xargs grep constraint |
grep met
make: *** [images] Error 1
ls images/
bit  usrp1_fpga.rbf  usrp1_fpga_4rx.rbf  usrp1_fw.ihx  usrp_b100_fw.ihx
(the bit directory is empty)

Regardless, yes, please join the USRP-Users list, and post your
questions there.  We will be happy to field any issues you may have
while using UHD.  I think we have de-railed Johnathan's 3.5.0 RC
announcement enough at this point ;)

I'm now subscribed to usrp-user mailing list, and the CC. is going there
now, not discuss-gnuradio.

On Tue, 2011-11-01 at 14:22 -0700, Ben Hilburn wrote: > Svante - > > > You say "see below", but I'm not seeing any error messages or attached > files in your e-mail. Tell me if they are there and I'm just not > seeing them, as it might be my mail client. When compiling from git the following happens: git clone git://code.ettus.com/ettus/uhd.git cd uhd/images make clean make images [compiler output] find /.../uhd/images/images -type f | xargs chmod -x find /.../uhd/images/../fpga -name "*.twr" | xargs grep constraint | grep met make: *** [images] Error 1 ls images/ bit usrp1_fpga.rbf usrp1_fpga_4rx.rbf usrp1_fw.ihx usrp_b100_fw.ihx (the bit directory is empty) > Regardless, yes, please join the USRP-Users list, and post your > questions there. We will be happy to field any issues you may have > while using UHD. I think we have de-railed Johnathan's 3.5.0 RC > announcement enough at this point ;) I'm now subscribed to usrp-user mailing list, and the CC. is going there now, not discuss-gnuradio.
JB
Josh Blum
Tue, Nov 1, 2011 10:06 PM

On 11/01/2011 02:41 PM, Svante Signell wrote:

On Tue, 2011-11-01 at 14:22 -0700, Ben Hilburn wrote:

Svante -

You say "see below", but I'm not seeing any error messages or attached
files in your e-mail.  Tell me if they are there and I'm just not
seeing them, as it might be my mail client.

When compiling from git the following happens:
git clone git://code.ettus.com/ettus/uhd.git
cd uhd/images
make clean
make images
[compiler output]
find /.../uhd/images/images -type f | xargs chmod -x
find /.../uhd/images/../fpga -name "*.twr" | xargs grep constraint |
grep met
make: *** [images] Error 1
ls images/
bit  usrp1_fpga.rbf  usrp1_fpga_4rx.rbf  usrp1_fw.ihx  usrp_b100_fw.ihx
(the bit directory is empty)

Looks like an ISE build failed. FYI, I usually build on 12.1

I recommend picking the FPGA image that you are interested in, find the
commands in the images/Makefile, and build just that image. See where
the command fails.

prebuilt images are here:
http://code.ettus.com/redmine/ettus/projects/uhd/wiki#Binary-downloads

-Josh

On 11/01/2011 02:41 PM, Svante Signell wrote: > On Tue, 2011-11-01 at 14:22 -0700, Ben Hilburn wrote: >> Svante - >> >> >> You say "see below", but I'm not seeing any error messages or attached >> files in your e-mail. Tell me if they are there and I'm just not >> seeing them, as it might be my mail client. > > When compiling from git the following happens: > git clone git://code.ettus.com/ettus/uhd.git > cd uhd/images > make clean > make images > [compiler output] > find /.../uhd/images/images -type f | xargs chmod -x > find /.../uhd/images/../fpga -name "*.twr" | xargs grep constraint | > grep met > make: *** [images] Error 1 > ls images/ > bit usrp1_fpga.rbf usrp1_fpga_4rx.rbf usrp1_fw.ihx usrp_b100_fw.ihx > (the bit directory is empty) > Looks like an ISE build failed. FYI, I usually build on 12.1 I recommend picking the FPGA image that you are interested in, find the commands in the images/Makefile, and build just that image. See where the command fails. prebuilt images are here: http://code.ettus.com/redmine/ettus/projects/uhd/wiki#Binary-downloads -Josh
NF
Nick Foster
Tue, Nov 1, 2011 10:09 PM

You don't need to build the images package. Use the images here:

http://files.ettus.com/uhd_releases/master_images/

--n

On Tue, Nov 1, 2011 at 2:41 PM, Svante Signell srs@kth.se wrote:

On Tue, 2011-11-01 at 14:22 -0700, Ben Hilburn wrote:

Svante -

You say "see below", but I'm not seeing any error messages or attached
files in your e-mail.  Tell me if they are there and I'm just not
seeing them, as it might be my mail client.

When compiling from git the following happens:
git clone git://code.ettus.com/ettus/uhd.git
cd uhd/images
make clean
make images
[compiler output]
find /.../uhd/images/images -type f | xargs chmod -x
find /.../uhd/images/../fpga -name "*.twr" | xargs grep constraint |
grep met
make: *** [images] Error 1
ls images/
bit  usrp1_fpga.rbf  usrp1_fpga_4rx.rbf  usrp1_fw.ihx  usrp_b100_fw.ihx
(the bit directory is empty)

Regardless, yes, please join the USRP-Users list, and post your
questions there.  We will be happy to field any issues you may have
while using UHD.  I think we have de-railed Johnathan's 3.5.0 RC
announcement enough at this point ;)

I'm now subscribed to usrp-user mailing list, and the CC. is going there
now, not discuss-gnuradio.


USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

You don't need to build the images package. Use the images here: http://files.ettus.com/uhd_releases/master_images/ --n On Tue, Nov 1, 2011 at 2:41 PM, Svante Signell <srs@kth.se> wrote: > On Tue, 2011-11-01 at 14:22 -0700, Ben Hilburn wrote: >> Svante - >> >> >> You say "see below", but I'm not seeing any error messages or attached >> files in your e-mail.  Tell me if they are there and I'm just not >> seeing them, as it might be my mail client. > > When compiling from git the following happens: > git clone git://code.ettus.com/ettus/uhd.git > cd uhd/images > make clean > make images > [compiler output] > find /.../uhd/images/images -type f | xargs chmod -x > find /.../uhd/images/../fpga -name "*.twr" | xargs grep constraint | > grep met > make: *** [images] Error 1 > ls images/ > bit  usrp1_fpga.rbf  usrp1_fpga_4rx.rbf  usrp1_fw.ihx  usrp_b100_fw.ihx > (the bit directory is empty) > >> Regardless, yes, please join the USRP-Users list, and post your >> questions there.  We will be happy to field any issues you may have >> while using UHD.  I think we have de-railed Johnathan's 3.5.0 RC >> announcement enough at this point ;) > > I'm now subscribed to usrp-user mailing list, and the CC. is going there > now, not discuss-gnuradio. > > > > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >
JB
Josh Blum
Tue, Nov 1, 2011 11:08 PM

On 11/01/2011 02:41 PM, Svante Signell wrote:

On Tue, 2011-11-01 at 14:22 -0700, Ben Hilburn wrote:

Svante -

You say "see below", but I'm not seeing any error messages or attached
files in your e-mail.  Tell me if they are there and I'm just not
seeing them, as it might be my mail client.

When compiling from git the following happens:
git clone git://code.ettus.com/ettus/uhd.git
cd uhd/images
make clean
make images
[compiler output]
find /.../uhd/images/images -type f | xargs chmod -x
find /.../uhd/images/../fpga -name "*.twr" | xargs grep constraint |
grep met
make: *** [images] Error 1
ls images/
bit  usrp1_fpga.rbf  usrp1_fpga_4rx.rbf  usrp1_fw.ihx  usrp_b100_fw.ihx
(the bit directory is empty)

Regardless, yes, please join the USRP-Users list, and post your
questions there.  We will be happy to field any issues you may have
while using UHD.  I think we have de-railed Johnathan's 3.5.0 RC
announcement enough at this point ;)

I'm now subscribed to usrp-user mailing list, and the CC. is going there
now, not discuss-gnuradio.

If you are just trying to build the driver, see:
http://files.ettus.com/uhd_docs/manual/html/build.html

-josh

On 11/01/2011 02:41 PM, Svante Signell wrote: > On Tue, 2011-11-01 at 14:22 -0700, Ben Hilburn wrote: >> Svante - >> >> >> You say "see below", but I'm not seeing any error messages or attached >> files in your e-mail. Tell me if they are there and I'm just not >> seeing them, as it might be my mail client. > > When compiling from git the following happens: > git clone git://code.ettus.com/ettus/uhd.git > cd uhd/images > make clean > make images > [compiler output] > find /.../uhd/images/images -type f | xargs chmod -x > find /.../uhd/images/../fpga -name "*.twr" | xargs grep constraint | > grep met > make: *** [images] Error 1 > ls images/ > bit usrp1_fpga.rbf usrp1_fpga_4rx.rbf usrp1_fw.ihx usrp_b100_fw.ihx > (the bit directory is empty) > >> Regardless, yes, please join the USRP-Users list, and post your >> questions there. We will be happy to field any issues you may have >> while using UHD. I think we have de-railed Johnathan's 3.5.0 RC >> announcement enough at this point ;) > > I'm now subscribed to usrp-user mailing list, and the CC. is going there > now, not discuss-gnuradio. > > If you are just trying to build the driver, see: http://files.ettus.com/uhd_docs/manual/html/build.html -josh
SS
Svante Signell
Tue, Nov 1, 2011 11:46 PM

On Tue, 2011-11-01 at 16:08 -0700, Josh Blum wrote:
...

If you are just trying to build the driver, see:
http://files.ettus.com/uhd_docs/manual/html/build.html

Thanks, that link helped a lot. However, boost is not found even if it
is installed: Dependency Boost_FOUND = FALSE

Where is cmake looking for the boost libraries?

cmake -DCMAKE_INSTALL_PREFIX=/usr ../

-- Configuring the python interpreter...
-- Python interpreter: /usr/bin/python2.7
-- Override with: -DPYTHON_EXECUTABLE=<path-to-python>
-- Build type not specified: defaulting to release.

-- Configuring Boost C++ Libraries...
-- Could NOT find Boost
-- Boost include directories: /usr/include
-- Boost library directories: /usr/lib
-- Boost libraries:

-- Python checking for Python version 2.6 or greater
-- Python checking for Python version 2.6 or greater - found

-- Python checking for Cheetah templates 2.0.0 or greater
-- Python checking for Cheetah templates 2.0.0 or greater - found

-- Configuring LibUHD support...
--  Dependency Boost_FOUND = FALSE
--  Dependency HAVE_PYTHON_PLAT_MIN_VERSION = TRUE
--  Dependency HAVE_PYTHON_MODULE_CHEETAH = TRUE
--  Disabling LibUHD support.
--  Override with -DENABLE_LIBUHD=ON/OFF

-- Configuring Examples support...
--  Dependency ENABLE_LIBUHD = OFF
--  Disabling Examples support.
--  Override with -DENABLE_EXAMPLES=ON/OFF

-- Configuring Utils support...
--  Dependency ENABLE_LIBUHD = OFF
--  Disabling Utils support.
--  Override with -DENABLE_UTILS=ON/OFF

-- Configuring Tests support...
--  Dependency ENABLE_LIBUHD = OFF
--  Disabling Tests support.
--  Override with -DENABLE_TESTS=ON/OFF

-- Could NOT find Docutils (missing:  RST2HTML_EXECUTABLE)

-- Configuring Manual support...
--  Dependency DOCUTILS_FOUND = FALSE
--  Disabling Manual support.
--  Override with -DENABLE_MANUAL=ON/OFF

--
-- Configuring Doxygen support...
--  Dependency DOXYGEN_FOUND = YES
--  Enabling Doxygen support.
--  Override with -DENABLE_DOXYGEN=ON/OFF

-- Configuring USRP-E Utils support...
--  Dependency LINUX = TRUE
--  Disabling USRP-E Utils support.
--  Override with -DENABLE_USRP_E_UTILS=ON/OFF

-- ######################################################
-- # UHD enabled components
-- ######################################################
--  * Doxygen

-- ######################################################
-- # UHD disabled components
-- ######################################################
--  * LibUHD
--  * Examples
--  * Utils
--  * Tests
--  * Manual
--  * USRP-E Utils

-- Building version: 003.003.001-59f407f
-- Using install prefix: /usr
-- Configuring done
-- Generating done
-- Build files have been written to: /.../uhd/host/build

On Tue, 2011-11-01 at 16:08 -0700, Josh Blum wrote: ... > If you are just trying to build the driver, see: > http://files.ettus.com/uhd_docs/manual/html/build.html Thanks, that link helped a lot. However, boost is not found even if it is installed: Dependency Boost_FOUND = FALSE Where is cmake looking for the boost libraries? cmake -DCMAKE_INSTALL_PREFIX=/usr ../ -- -- Configuring the python interpreter... -- Python interpreter: /usr/bin/python2.7 -- Override with: -DPYTHON_EXECUTABLE=<path-to-python> -- Build type not specified: defaulting to release. -- -- Configuring Boost C++ Libraries... -- Could NOT find Boost -- Boost include directories: /usr/include -- Boost library directories: /usr/lib -- Boost libraries: -- -- Python checking for Python version 2.6 or greater -- Python checking for Python version 2.6 or greater - found -- -- Python checking for Cheetah templates 2.0.0 or greater -- Python checking for Cheetah templates 2.0.0 or greater - found -- -- Configuring LibUHD support... -- Dependency Boost_FOUND = FALSE -- Dependency HAVE_PYTHON_PLAT_MIN_VERSION = TRUE -- Dependency HAVE_PYTHON_MODULE_CHEETAH = TRUE -- Disabling LibUHD support. -- Override with -DENABLE_LIBUHD=ON/OFF -- -- Configuring Examples support... -- Dependency ENABLE_LIBUHD = OFF -- Disabling Examples support. -- Override with -DENABLE_EXAMPLES=ON/OFF -- -- Configuring Utils support... -- Dependency ENABLE_LIBUHD = OFF -- Disabling Utils support. -- Override with -DENABLE_UTILS=ON/OFF -- -- Configuring Tests support... -- Dependency ENABLE_LIBUHD = OFF -- Disabling Tests support. -- Override with -DENABLE_TESTS=ON/OFF -- -- Could NOT find Docutils (missing: RST2HTML_EXECUTABLE) -- -- Configuring Manual support... -- Dependency DOCUTILS_FOUND = FALSE -- Disabling Manual support. -- Override with -DENABLE_MANUAL=ON/OFF -- -- -- Configuring Doxygen support... -- Dependency DOXYGEN_FOUND = YES -- Enabling Doxygen support. -- Override with -DENABLE_DOXYGEN=ON/OFF -- -- Configuring USRP-E Utils support... -- Dependency LINUX = TRUE -- Disabling USRP-E Utils support. -- Override with -DENABLE_USRP_E_UTILS=ON/OFF -- -- ###################################################### -- # UHD enabled components -- ###################################################### -- * Doxygen -- -- ###################################################### -- # UHD disabled components -- ###################################################### -- * LibUHD -- * Examples -- * Utils -- * Tests -- * Manual -- * USRP-E Utils -- -- Building version: 003.003.001-59f407f -- Using install prefix: /usr -- Configuring done -- Generating done -- Build files have been written to: /.../uhd/host/build
JB
Josh Blum
Tue, Nov 1, 2011 11:59 PM

On 11/01/2011 04:46 PM, Svante Signell wrote:

On Tue, 2011-11-01 at 16:08 -0700, Josh Blum wrote:
...

If you are just trying to build the driver, see:
http://files.ettus.com/uhd_docs/manual/html/build.html

Thanks, that link helped a lot. However, boost is not found even if it
is installed: Dependency Boost_FOUND = FALSE

Where is cmake looking for the boost libraries?

I would expect that it looks in /usr/lib, where are boost libraries
installed in debian?

You may try to add -DBOOST_LIBRARYDIR=<path>

http://www.cmake.org/cmake/help/cmake-2-8-docs.html#module:FindBoost

cmake -DCMAKE_INSTALL_PREFIX=/usr ../

On 11/01/2011 04:46 PM, Svante Signell wrote: > On Tue, 2011-11-01 at 16:08 -0700, Josh Blum wrote: > ... >> If you are just trying to build the driver, see: >> http://files.ettus.com/uhd_docs/manual/html/build.html > > Thanks, that link helped a lot. However, boost is not found even if it > is installed: Dependency Boost_FOUND = FALSE > > Where is cmake looking for the boost libraries? > I would expect that it looks in /usr/lib, where are boost libraries installed in debian? You may try to add -DBOOST_LIBRARYDIR=<path> http://www.cmake.org/cmake/help/cmake-2-8-docs.html#module:FindBoost > cmake -DCMAKE_INSTALL_PREFIX=/usr ../
SS
Svante Signell
Wed, Nov 2, 2011 6:10 AM

On Tue, 2011-11-01 at 16:59 -0700, Josh Blum wrote:

On 11/01/2011 04:46 PM, Svante Signell wrote:

On Tue, 2011-11-01 at 16:08 -0700, Josh Blum wrote:

Where is cmake looking for the boost libraries?

I would expect that it looks in /usr/lib, where are boost libraries
installed in debian?

You may try to add -DBOOST_LIBRARYDIR=<path>

http://www.cmake.org/cmake/help/cmake-2-8-docs.html#module:FindBoost

There are many boost libraries, which one(s) specifically is cmake
looking for? Maybe I have not installed the correct one(s).

Thanks!

On Tue, 2011-11-01 at 16:59 -0700, Josh Blum wrote: > > On 11/01/2011 04:46 PM, Svante Signell wrote: > > On Tue, 2011-11-01 at 16:08 -0700, Josh Blum wrote: > > Where is cmake looking for the boost libraries? > > > > I would expect that it looks in /usr/lib, where are boost libraries > installed in debian? > > You may try to add -DBOOST_LIBRARYDIR=<path> > > http://www.cmake.org/cmake/help/cmake-2-8-docs.html#module:FindBoost There are many boost libraries, which one(s) specifically is cmake looking for? Maybe I have not installed the correct one(s). Thanks!
SS
Svante Signell
Wed, Nov 2, 2011 7:09 AM

On Wed, 2011-11-02 at 07:10 +0100, Svante Signell wrote:

On Tue, 2011-11-01 at 16:59 -0700, Josh Blum wrote:

On 11/01/2011 04:46 PM, Svante Signell wrote:

On Tue, 2011-11-01 at 16:08 -0700, Josh Blum wrote:

Where is cmake looking for the boost libraries?

I would expect that it looks in /usr/lib, where are boost libraries
installed in debian?

You may try to add -DBOOST_LIBRARYDIR=<path>

http://www.cmake.org/cmake/help/cmake-2-8-docs.html#module:FindBoost

There are many boost libraries, which one(s) specifically is cmake
looking for? Maybe I have not installed the correct one(s).

More info:
I get the following error when cmake tries to find the boost libraries:

-- Configuring Boost C++ Libraries...
CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:836 (file):
file FILE([TO_CMAKE_PATH|TO_NATIVE_PATH] path result) must be called
with exactly three arguments.
Call Stack (most recent call first):
CMakeLists.txt:141 (FIND_PACKAGE)

uhd/host/CMakeLists.txt:141:

FIND_PACKAGE(Boost 1.36 COMPONENTS ${BOOST_REQUIRED_COMPONENTS})

Installed version of boost is 1.46

On Wed, 2011-11-02 at 07:10 +0100, Svante Signell wrote: > On Tue, 2011-11-01 at 16:59 -0700, Josh Blum wrote: > > > > On 11/01/2011 04:46 PM, Svante Signell wrote: > > > On Tue, 2011-11-01 at 16:08 -0700, Josh Blum wrote: > > > > Where is cmake looking for the boost libraries? > > > > > > > I would expect that it looks in /usr/lib, where are boost libraries > > installed in debian? > > > > You may try to add -DBOOST_LIBRARYDIR=<path> > > > > http://www.cmake.org/cmake/help/cmake-2-8-docs.html#module:FindBoost > > There are many boost libraries, which one(s) specifically is cmake > looking for? Maybe I have not installed the correct one(s). More info: I get the following error when cmake tries to find the boost libraries: -- Configuring Boost C++ Libraries... CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:836 (file): file FILE([TO_CMAKE_PATH|TO_NATIVE_PATH] path result) must be called with exactly three arguments. Call Stack (most recent call first): CMakeLists.txt:141 (FIND_PACKAGE) uhd/host/CMakeLists.txt:141: FIND_PACKAGE(Boost 1.36 COMPONENTS ${BOOST_REQUIRED_COMPONENTS}) Installed version of boost is 1.46
SS
Svante Signell
Wed, Nov 2, 2011 7:33 AM

On Wed, 2011-11-02 at 08:09 +0100, Svante Signell wrote:

On Wed, 2011-11-02 at 07:10 +0100, Svante Signell wrote:

On Tue, 2011-11-01 at 16:59 -0700, Josh Blum wrote:

There are many boost libraries, which one(s) specifically is cmake
looking for? Maybe I have not installed the correct one(s).

I found the problem, of the list in CMakeList.txt below

SET(BOOST_REQUIRED_COMPONENTS
date_time
filesystem
program_options
regex
system
thread
unit_test_framework
)

I had missed to install libboost-regex*

Now it builds,
Thanks!

On Wed, 2011-11-02 at 08:09 +0100, Svante Signell wrote: > On Wed, 2011-11-02 at 07:10 +0100, Svante Signell wrote: > > On Tue, 2011-11-01 at 16:59 -0700, Josh Blum wrote: > > > > There are many boost libraries, which one(s) specifically is cmake > > looking for? Maybe I have not installed the correct one(s). > I found the problem, of the list in CMakeList.txt below SET(BOOST_REQUIRED_COMPONENTS date_time filesystem program_options regex system thread unit_test_framework ) I had missed to install libboost-regex* Now it builds, Thanks!
BH
Ben Hilburn
Wed, Nov 2, 2011 8:38 PM

Great!  We are glad you got it working =)

Cheers,
Ben

On Wed, Nov 2, 2011 at 12:33 AM, Svante Signell srs@kth.se wrote:

On Wed, 2011-11-02 at 08:09 +0100, Svante Signell wrote:

On Wed, 2011-11-02 at 07:10 +0100, Svante Signell wrote:

On Tue, 2011-11-01 at 16:59 -0700, Josh Blum wrote:

There are many boost libraries, which one(s) specifically is cmake
looking for? Maybe I have not installed the correct one(s).

I found the problem, of the list in CMakeList.txt below

SET(BOOST_REQUIRED_COMPONENTS
date_time
filesystem
program_options
regex
system
thread
unit_test_framework
)

I had missed to install libboost-regex*

Now it builds,
Thanks!


USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Great! We are glad you got it working =) Cheers, Ben On Wed, Nov 2, 2011 at 12:33 AM, Svante Signell <srs@kth.se> wrote: > On Wed, 2011-11-02 at 08:09 +0100, Svante Signell wrote: > > On Wed, 2011-11-02 at 07:10 +0100, Svante Signell wrote: > > > On Tue, 2011-11-01 at 16:59 -0700, Josh Blum wrote: > > > > > > There are many boost libraries, which one(s) specifically is cmake > > > looking for? Maybe I have not installed the correct one(s). > > > > I found the problem, of the list in CMakeList.txt below > > SET(BOOST_REQUIRED_COMPONENTS > date_time > filesystem > program_options > regex > system > thread > unit_test_framework > ) > > I had missed to install libboost-regex* > > Now it builds, > Thanks! > > > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >