[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: g++-4.6-arm-linux-gnueabihf broken dependencies



Hello Neil,

thanks for your help.

On Wed, Jun 12, 2013 at 12:09 PM, Neil Williams <codehelp@debian.org> wrote:
> On Wed, 12 Jun 2013 11:55:58 +0200
> Yegor Yefremov <yegorslists@googlemail.com> wrote:
>
>> As mentioned in this post
>> http://lists.debian.org/debian-embedded/2013/05/msg00034.html there is
>> still a problem with dependencies, that prevent g++ from being
>> installed:
>
> The solution is the same - use xapt to put the -cross dependencies into place.
>
>>  g++-4.6-arm-linux-gnueabihf : Depends: libstdc++6-4.6-dev-armhf-cross
>> (= 4.6.3-14) but it is not going to be installed
>
> $ sudo xapt -a armhf -m libstdc++6-4.6-dev

after executing xapt I could download g++

ii  binutils-arm-linux-gnueabihf                 2.22-7.1
    amd64        GNU binary utilities, for arm-linux-gnueabihf target
ii  cpp-4.6-arm-linux-gnueabihf                  4.6.3-14
    amd64        GNU C preprocessor
ii  g++-4.6-arm-linux-gnueabihf                  4.6.3-14
    amd64        GNU C++ compiler
ii  gcc-4.6-arm-linux-gnueabihf                  4.6.3-14
    amd64        GNU C compiler
ii  gcc-4.6-arm-linux-gnueabihf-base             4.6.3-14
    amd64        GCC, the GNU Compiler Collection (base package)
ii  libstdc++6-4.4-dev-armhf-cross               4.4.7-2
    all          GNU Standard C++ Library v3 (development files) (for
cross-compiling)
ii  libstdc++6-4.6-dev-armhf-cross               4.6.3-14
    all          GNU Standard C++ Library v3 (development files) (for
cross-compiling)
ii  libstdc++6-4.7-dev                           4.7.2-5
    amd64        GNU Standard C++ Library v3 (development files)
ii  libstdc++6-armhf-cross                       4.7.2-5
    all          GNU Standard C++ Library v3 (for cross-compiling)

If I try to compile Qt stuff (http://www.emdebian.org/qmake.conf.html)
or anything with g++ I get following error:

arm-linux-gnueabihf-g++ -Wl,-O1 -o simple main.o
-L/usr/arm-linux-gnueabihf/lib/ -lQtGui -lQtCore -lpthread
/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../../arm-linux-gnueabihf/bin/ld:
cannot find -lstdc++

I can find following libstdc++:

lrwxrwxrwx 1 root root     19 Jun 12 00:52
/usr/arm-linux-gnueabihf/lib/libstdc++.so.6 -> libstdc++.so.6.0.17
-rw-r--r-- 1 root root 641216 Jan  8 15:04
/usr/arm-linux-gnueabihf/lib/libstdc++.so.6.0.17

How can I install libstdc++6-armhf-cross for 4.6.3, if it is the root
of the problem?

Yegor


Reply to: