Comment 6 for bug 1556257

Revision history for this message
Miroslav Scaldov (scaldov-s) wrote : Re: [Bug 1556257] Re: on ubuntu 14.04 and debian jessie arm-none-eabi-g++ produces different binary

I use arm-none-eabi-gcc 5-2015-q4-major
unpacked into /opt/
I have instaled libc6-i386 because arm-none-eabi-gcc 5-2015-q4-major
which I get from here is for i386 while my debian and ubuntu are x64.

dpkg-query -S /opt/gcc-arm-none-eabi/bin/arm-none-eabi-gcc | cut -d ":" -f 1
dpkg-query: no path found matching pattern /opt/gcc-arm-none-eabi/bin/arm-none-eabi-gcc
(because it is not installed via apt system)

14.03.2016, 12:41, "Thomas Preud'homme" <email address hidden>:
> For Debian, do you use the Ubuntu toolchain or the one in the Debian
> archive? If you are unsure, please show us the output of:
>
> apt-cache policy $(dpkg-query -S /usr/bin/arm-none-eabi-gcc | cut -d ':'
> -f 1)
>
> Best regards
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1556257
>
> Title:
>   on ubuntu 14.04 and debian jessie arm-none-eabi-g++ produces
>   different binary
>
> Status in GCC ARM Embedded:
>   New
>
> Bug description:
>   I have installed 5-2015-q4-major on both ubuntu 14.04 and debian jessie.
>   Both systems are 64 bit with i386 support.
>   On ubuntu I can compile c++ file which uses std::list into binary that runs on stm32f103c8t6 as expected.
>   If I compile exactly the same project on debian jessie, the binary hangs in WWDG_IRQHandler just inside std::list object initialization.
>
>   #0 0x08001898 in WWDG_IRQHandler ()
>   #1 <signal handler called>
>   #2 std::__cxx11::_List_base<lk::led*, std::allocator<lk::led*> >::_M_inc_size (this=<optimized out>, __n=1)
>       at /opt/gcc-arm-none-eabi-5_2-2015q4/arm-none-eabi/include/c++/5.2.1/bits/stl_list.h:363
>   #3 std::__cxx11::list<lk::led*, std::allocator<lk::led*> >::_M_insert<lk::led*>(std::_List_iterator<lk::led*>, lk::led*&&) (__position=..., this=<optimized out>)
>       at /opt/gcc-arm-none-eabi-5_2-2015q4/arm-none-eabi/include/c++/5.2.1/bits/stl_list.h:1765
>   #4 std::__cxx11::list<lk::led*, std::allocator<lk::led*> >::push_back(lk::led*&&) (__x=<optimized out>, this=<optimized out>)
>       at /opt/gcc-arm-none-eabi-5_2-2015q4/arm-none-eabi/include/c++/5.2.1/bits/stl_list.h:1094
>   #5 lk::led::led (pin_num=13, port=<optimized out>, this=0x20000a1c <led0>) at ./src/led.hh:31
>   #6 __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at ./src/main.cc:16
>   #7 _GLOBAL__sub_I_thread_led () at ./src/main.cc:60
>   #8 0x08002d2a in __libc_init_array ()
>   #9 0x08000266 in _start ()
>
>   I compile with Makefile.
>   I figured out that binaries have the same size but different content.
>   If I compile another project in pure C, the binaries are identical.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/gcc-arm-embedded/+bug/1556257/+subscriptions