Note that there are some explanatory texts on larger screens.

plurals
  1. POboost on arm (gumstix) -> unresolved symbol
    text
    copied!<p>Performed the following steps:</p> <p>I have a working cross development system for gumstix overo (arm) running on Ubuntu 9.04. Now I want to use boost. So I tried to crosscompile boost like follows:</p> <p>1.) Download boost 1.49</p> <p>2.) build boost build system with: tools/build/v2/ bootstrap.sh</p> <p>3.) Modified user-config.jam to: # Configure gcc (default version). using gcc : arm : /opt/Gumstix.Toolchain/overo-oe/bin/arm-angstrom-linux-gnueabi-gcc ;</p> <p>4.) Compile boost by calling: ~/boost_1_49_0$ ./tools/build/v2/b2 toolset=gcc-arm stage</p> <p>5.) Resulting in: ...failed updating 56 targets... ...skipped 6 targets... ...updated 783 targets...</p> <p>-> I do not know what failed but within stage/libs all libs are existing.</p> <p>Setup simple C project:</p> <pre><code>#include &lt;boost/asio.hpp&gt; boost::asio::io_service io_service; ... No other boost stuff here. </code></pre> <p>Now link against created libboost_system.a library.</p> <p>Results in:</p> <pre><code>make all Building target: ChecksumTest_arm-omap3503 Invoking: GCC C++ Linker arm-angstrom-linux-gnuabi-g++ -L../../../../../../../Binary/Lib -L/home/Workspace /Projekte/boost/boost_1_49_0/stage/lib -o "ChecksumTest_arm-omap3503" ./src/ChecksumTest.o -lTools_arm-omap3503 -lboost_system -lrt ./src/ChecksumTest.o: In function `global constructors keyed to _Z8checkCrcRKN5Tools8Checksum4TypeERKj': ChecksumTest.cpp:(.text+0x20): undefined reference to `boost::system::get_system_category()' ChecksumTest.cpp:(.text+0x2c): undefined reference to `boost::system::get_generic_category()' ChecksumTest.cpp:(.text+0x38): undefined reference to `boost::system::get_generic_category()' ChecksumTest.cpp:(.text+0x44): undefined reference to `boost::system::get_generic_category()' ChecksumTest.cpp:(.text+0x50): undefined reference to `boost::system::get_system_category()' ChecksumTest.cpp:(.text+0x5c): undefined reference to `boost::system::get_system_category()' ChecksumTest.cpp:(.text+0x110): undefined reference to `boost::system::get_system_category()' ChecksumTest.cpp:(.text+0x19c): undefined reference to `boost::system::get_system_category()' ./src/ChecksumTest.o: In function `checkCrc(Tools::Checksum::Type const&amp;, unsigned int const&amp;)': ChecksumTest.cpp:(.text+0x460): undefined reference to `boost::system::get_system_category()' ./src/ChecksumTest.o:ChecksumTest.cpp:(.text+0x6fc): more undefined references to `boost::system::get_system_category()' follow collect2: ld returned 1 exit status make: *** [ChecksumTest_arm-omap3503] Error 1 </code></pre> <p>Same project (even without crosscompiled boost) does link on windows host. So there is something wrong with the generated lib. I spent multiple hours to find my fault without success.</p> <p>Any hints ?!</p> <p>Edit: I now tried to build only the sytem lib by calling: ~/boost/boost_1_49_0$ ./tools/build/v2/b2 toolset=gcc-arm variant=release link=static runtime-link=static stage --with-system</p> <p>Resulting in: ...updated 8 targets...</p> <p>without any further build error. But linking fails also.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload