# Cross compiling make error within OpenEmbedded SDK

**URL:** <https://www.ruby-forum.com/t/cross-compiling-make-error-within-openembedded-sdk/237257>\
**Category:** GNU Radio\
**Created:** [November 1, 2013, 4:07pm UTC](https://www.ruby-forum.com/t/cross-compiling-make-error-within-openembedded-sdk/237257 "2013-11-01T16:07:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [November 1, 2013, 4:07pm UTC](https://www.ruby-forum.com/t/cross-compiling-make-error-within-openembedded-sdk/237257/1 "2013-11-01T16:07:28Z")

</div>

I’m trying to cross compile gnuradio for arm within an OpenEmbedded SDK  
using  
bitbake 1.18  
meta-openembedded Dylan  
openembedded-core Dylan  
&  
meta-ettus e100-updates

After generating and setting up the SDK, I have downloaded the gnuradio  
source and am trying to build it from there.

When I run make I am given the error:

make[2]: \*\*\* No rule to make target `../gr-atsc/src/lib/atsci_ viterbi_gen', needed by`gr-atsc/src/lib/atsci\_viterbi\_mux.cc’. Stop.  
make[1]: \*\*\* [gr-atsc/src/lib/CMakeFiles/gnuradio-atsc.dir/all] Error 2  
make: \*\*\* [all] Error 2

It wants to build atsci\_viterbi\_gen, a dependency for  
atsci\_viterbi\_mux.cc  
but it can’t find the rules for it.

To try and debug this I followed the same steps to build gnuradio within  
the sdk and in my home directory and compared the differences.

Initially after downloading a fresh version of the gnuradio source in  
each  
directory I ran a grep for the string “atsci\_viterbi\_gen” and receive  
the  
same output, as expected.

gr-atsc/lib/CMakeLists.txt: add\_executable(atsci\_viterbi\_gen  
atsci\_viterbi\_gen.cc)  
gr-atsc/lib/CMakeLists.txt: export(TARGETS atsci\_viterbi\_gen APPEND  
FILE  
${EXPORT\_FILE})  
gr-atsc/lib/CMakeLists.txt: DEPENDS atsci\_viterbi\_gen  
gr-atsc/lib/CMakeLists.txt: COMMAND atsci\_viterbi\_gen -o  
${atsci\_viterbi\_mux\_cc}

However, after running cmake on both gnuradio’s and then grepping for  
the  
same string I notice a huge difference.

The output from the grep in my home directory is very verbose with tons  
of  
additional files created that reference atsci\_viterbi\_gen as well as its  
own directory  
build/gr-atsc/lib/CMakeFiles/atsci\_viterbi\_gen.dir/

Contrarily only two additional references were made to  
“atsci\_viterbi\_gen”  
after running cmake within the sdk, both occur when it was referred to  
as a  
dependency for atsci\_viterbi\_mux

build/gr-atsc/lib/CMakeFiles/gnuradio-atsc.dir/build.make:gr-atsc/lib/atsci\_viterbi\_mux.cc:  
…/gr-atsc/lib/atsci\_viterbi\_gen  
build/gr-atsc/lib/CMakeFiles/gnuradio-atsc.dir/build.make: cd  
/usr/local/e100.3/gnuradio/build/gr-atsc/lib && atsci\_viterbi\_gen -o  
/usr/local/e100.3/gnuradio/build/gr-atsc/lib/atsci\_viterbi\_mux.cc

gnuradio make’s flawlessly within my home directory.

Why doesn’t cmake generate the same files within the SDK that it does  
natively?  
How can I get it to?  
Am I looking in the right place to get to the bottom of this error?

Any tips or additional direction would help. Thanks a ton,

Taylor

---

<div class="post-metadata">

**Author:** ![Taylor\_Centers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/74df32/32.png) [@Taylor\_Centers](https://www.ruby-forum.com/u/Taylor_Centers)\
**Post date:** [November 1, 2013, 4:12pm UTC](https://www.ruby-forum.com/t/cross-compiling-make-error-within-openembedded-sdk/237257/2 "2013-11-01T16:12:43Z")

</div>

On Fri, Nov 1, 2013 at 11:06 AM, Taylor Centers  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> To try and debug this I followed the same steps to build gnuradio within the  
> gr-atsc/lib/CMakeLists.txt: DEPENDS atsci\_viterbi\_gen
> 
> gnuradio make’s flawlessly within my home directory.
> 
> Why doesn’t cmake generate the same files within the SDK that it does  
> natively?  
> How can I get it to?  
> Am I looking in the right place to get to the bottom of this error?
> 
> Any tips or additional direction would help. Thanks a ton,
> 
> Taylor

I’m sure Philip or some of the other OE people on the list can help  
you more than I can. But unless you are trying to do ATSC stuff, I  
would recommend just disabling it for now. There’s work going on to  
update the ATSC code, and it’s unlikely that you’ll be able to do too  
much with what’s in gr-atsc right now on an e100 (unless someone can  
verify they’ve got it to work there?). So you can pass  
-DENABLE\_GR\_ATSC=False to the cmake command to remove it from the  
build.

Tom

---

<div class="post-metadata">

**Author:** ![Taylor\_Centers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/74df32/32.png) [@Taylor\_Centers](https://www.ruby-forum.com/u/Taylor_Centers)\
**Post date:** [November 1, 2013, 9:02pm UTC](https://www.ruby-forum.com/t/cross-compiling-make-error-within-openembedded-sdk/237257/3 "2013-11-01T21:02:34Z")

</div>

I replied, if anyone is interested ping me and I’ll resend to the list.
