* [Buildroot] bug report: c++ programs built by toolchain crash by seg fault
@ 2013-02-05 6:24 hayate
2013-02-05 7:45 ` Thomas Petazzoni
0 siblings, 1 reply; 8+ messages in thread
From: hayate @ 2013-02-05 6:24 UTC (permalink / raw)
To: buildroot
menuconfig:
arm little endian; generic arm; OABI; gcc 4.6.3 with c++ support;
uclibc 0.9.31.1
others are unchanged
building is successful
test c++ program
int main()
{
delete new int(2);
}
# arm-buildroot-linux-uclibc-g++ -static test.cpp
# qemu-arm ./a.out
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
noted that some other programs not involved new and delete run correctly
I'm not sure if this is gcc upstream problem, but post it here for
confirmation
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130205/6ce89536/attachment.html>
^ permalink raw reply [flat|nested] 8+ messages in thread* [Buildroot] bug report: c++ programs built by toolchain crash by seg fault 2013-02-05 6:24 [Buildroot] bug report: c++ programs built by toolchain crash by seg fault hayate @ 2013-02-05 7:45 ` Thomas Petazzoni [not found] ` <CAJXWAwzg3iPu6qW+E560nw=fQZ6=UMhNAkTGhbaoCnFbcfQdzQ@mail.gmail.com> ` (2 more replies) 0 siblings, 3 replies; 8+ messages in thread From: Thomas Petazzoni @ 2013-02-05 7:45 UTC (permalink / raw) To: buildroot Dear hayate, On Tue, 5 Feb 2013 14:24:55 +0800, hayate wrote: > arm little endian; generic arm; OABI; gcc 4.6.3 with c++ support; > uclibc 0.9.31.1 Can you test with EABI? Really OABI is deprecated. It would not be surprising at all that there are issues with OABI. Do you have a compelling reason to stick with OABI if you are making a new toolchain? Best regards, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <CAJXWAwzg3iPu6qW+E560nw=fQZ6=UMhNAkTGhbaoCnFbcfQdzQ@mail.gmail.com>]
* [Buildroot] Fwd: bug report: c++ programs built by toolchain crash by seg fault [not found] ` <CAJXWAwzg3iPu6qW+E560nw=fQZ6=UMhNAkTGhbaoCnFbcfQdzQ@mail.gmail.com> @ 2013-02-05 10:15 ` hayate 2013-02-06 23:48 ` Arnout Vandecappelle 0 siblings, 1 reply; 8+ messages in thread From: hayate @ 2013-02-05 10:15 UTC (permalink / raw) To: buildroot Forgot to mention maillist ---------- Forwarded message ---------- From: hayate <hayatelee@gmail.com> Date: Tue, Feb 5, 2013 at 6:14 PM Subject: Re: [Buildroot] bug report: c++ programs built by toolchain crash by seg fault I'll test it later. It's a personal reason, because I have an old system that I cannot upgrade. But since it's an explicit option there in buildroot still, I think it may be a defect. Regards, On Tue, Feb 5, 2013 at 3:45 PM, Thomas Petazzoni < thomas.petazzoni@free-electrons.com> wrote: > Dear hayate, > > On Tue, 5 Feb 2013 14:24:55 +0800, hayate wrote: > > > arm little endian; generic arm; OABI; gcc 4.6.3 with c++ support; > > uclibc 0.9.31.1 > > Can you test with EABI? > > Really OABI is deprecated. It would not be surprising at all that there > are issues with OABI. > > Do you have a compelling reason to stick with OABI if you are making a > new toolchain? > > Best regards, > > Thomas > -- > Thomas Petazzoni, Free Electrons > Kernel, drivers, real-time and embedded Linux > development, consulting, training and support. > http://free-electrons.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130205/02b2d694/attachment-0001.html> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] Fwd: bug report: c++ programs built by toolchain crash by seg fault 2013-02-05 10:15 ` [Buildroot] Fwd: " hayate @ 2013-02-06 23:48 ` Arnout Vandecappelle 2013-02-08 4:57 ` hayate 0 siblings, 1 reply; 8+ messages in thread From: Arnout Vandecappelle @ 2013-02-06 23:48 UTC (permalink / raw) To: buildroot On 05/02/13 11:15, hayate wrote: > It's a personal reason, because I have an old system that I cannot > upgrade. If you're using buildroot, you're basically upgrading your system, right? Or are you just using buildroot to create a compiler? > But since it's an explicit option there in buildroot still, I > think it may be a defect. True. We should deprecate OABI. Regards, Arnout -- Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] Fwd: bug report: c++ programs built by toolchain crash by seg fault 2013-02-06 23:48 ` Arnout Vandecappelle @ 2013-02-08 4:57 ` hayate 0 siblings, 0 replies; 8+ messages in thread From: hayate @ 2013-02-08 4:57 UTC (permalink / raw) To: buildroot On Thu, Feb 7, 2013 at 7:48 AM, Arnout Vandecappelle <arnout@mind.be> wrote: > On 05/02/13 11:15, hayate wrote: > >> It's a personal reason, because I have an old system that I cannot >> upgrade. >> > > If you're using buildroot, you're basically upgrading your system, right? > Or are you just using buildroot to create a compiler? I meant my embedded device is running an old linux system that I cannot upgrade because some kernel modules were provided by vendors and private. Hence I actually want to use buildroot to create a cross compiler for that, not whole root filesystem > > > But since it's an explicit option there in buildroot still, I >> think it may be a defect. >> > > True. We should deprecate OABI. 4.7.x is disabled explicitly, 4.6.x is not. So if buildroot cannot build a working compiler for OABI, it is fine to disable 4.6.x too. Just need somebody to confirm it. > Regards, > Arnout > > -- > Arnout Vandecappelle arnout at mind be > Senior Embedded Software Architect +32-16-286500 > Essensium/Mind http://www.mind.be > G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven > LinkedIn profile: http://www.linkedin.com/in/**arnoutvandecappelle<http://www.linkedin.com/in/arnoutvandecappelle> > GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130208/a25f2b58/attachment.html> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] bug report: c++ programs built by toolchain crash by seg fault 2013-02-05 7:45 ` Thomas Petazzoni [not found] ` <CAJXWAwzg3iPu6qW+E560nw=fQZ6=UMhNAkTGhbaoCnFbcfQdzQ@mail.gmail.com> @ 2013-02-05 13:39 ` hayate 2013-02-06 22:15 ` Yann E. MORIN 2 siblings, 0 replies; 8+ messages in thread From: hayate @ 2013-02-05 13:39 UTC (permalink / raw) To: buildroot gcc 4.6.3 with EABI is fine (as expected) On Tue, Feb 5, 2013 at 3:45 PM, Thomas Petazzoni < thomas.petazzoni@free-electrons.com> wrote: > Dear hayate, > > On Tue, 5 Feb 2013 14:24:55 +0800, hayate wrote: > > > arm little endian; generic arm; OABI; gcc 4.6.3 with c++ support; > > uclibc 0.9.31.1 > > Can you test with EABI? > > Really OABI is deprecated. It would not be surprising at all that there > are issues with OABI. > > Do you have a compelling reason to stick with OABI if you are making a > new toolchain? > > Best regards, > > Thomas > -- > Thomas Petazzoni, Free Electrons > Kernel, drivers, real-time and embedded Linux > development, consulting, training and support. > http://free-electrons.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130205/ff7437d3/attachment.html> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] bug report: c++ programs built by toolchain crash by seg fault 2013-02-05 7:45 ` Thomas Petazzoni [not found] ` <CAJXWAwzg3iPu6qW+E560nw=fQZ6=UMhNAkTGhbaoCnFbcfQdzQ@mail.gmail.com> 2013-02-05 13:39 ` [Buildroot] " hayate @ 2013-02-06 22:15 ` Yann E. MORIN 2013-02-08 5:04 ` hayate 2 siblings, 1 reply; 8+ messages in thread From: Yann E. MORIN @ 2013-02-06 22:15 UTC (permalink / raw) To: buildroot Hayate, All, On Tuesday 05 February 2013 Thomas Petazzoni wrote: > On Tue, 5 Feb 2013 14:24:55 +0800, hayate wrote: > > arm little endian; generic arm; OABI; gcc 4.6.3 with c++ support; > > uclibc 0.9.31.1 > > Can you test with EABI? > > Really OABI is deprecated. It would not be surprising at all that there > are issues with OABI. What I would suggest when using technologies of the previous millenium, is to use tools dating from the same era. Use a combo of {binutils,gcc,libc} that were current at that time to build your toolchain. Then, use that toolchain as an external toolchain for Buildroot. Note however that, using too old components might not be possible either, as Buildroot expects a toolchain with a sysroot, which is not something that was available with now-very-old components. YMMV, as they say. Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] bug report: c++ programs built by toolchain crash by seg fault 2013-02-06 22:15 ` Yann E. MORIN @ 2013-02-08 5:04 ` hayate 0 siblings, 0 replies; 8+ messages in thread From: hayate @ 2013-02-08 5:04 UTC (permalink / raw) To: buildroot On Thu, Feb 7, 2013 at 6:15 AM, Yann E. MORIN <yann.morin.1998@free.fr>wrote: > Hayate, All, > > On Tuesday 05 February 2013 Thomas Petazzoni wrote: > > On Tue, 5 Feb 2013 14:24:55 +0800, hayate wrote: > > > arm little endian; generic arm; OABI; gcc 4.6.3 with c++ support; > > > uclibc 0.9.31.1 > > > > Can you test with EABI? > > > > Really OABI is deprecated. It would not be surprising at all that there > > are issues with OABI. > > What I would suggest when using technologies of the previous millenium, is > to use tools dating from the same era. Use a combo of {binutils,gcc,libc} > that were current at that time to build your toolchain. > > Then, use that toolchain as an external toolchain for Buildroot. Actually I can build an old toolchain for my system, but I just really want to use new gcc features (especially C++), if not 4.7, 4.6 is fine. BTW, I tried crosstool-NG, but there are some building errors I cannot solve in building glibc or uclibc. > Note however that, using too old components might not be possible either, > as Buildroot expects a toolchain with a sysroot, which is not something > that was available with now-very-old components. > > YMMV, as they say. > > Regards, > Yann E. MORIN. > > -- > > .-----------------.--------------------.------------------.--------------------. > | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' > conspiracy: | > | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ > | > | +33 223 225 172 `------------.-------: X AGAINST | \e/ There > is no | > | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v > conspiracy. | > > '------------------------------^-------^------------------^--------------------' > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130208/5f95daa6/attachment-0001.html> ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-02-08 5:04 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-05 6:24 [Buildroot] bug report: c++ programs built by toolchain crash by seg fault hayate
2013-02-05 7:45 ` Thomas Petazzoni
[not found] ` <CAJXWAwzg3iPu6qW+E560nw=fQZ6=UMhNAkTGhbaoCnFbcfQdzQ@mail.gmail.com>
2013-02-05 10:15 ` [Buildroot] Fwd: " hayate
2013-02-06 23:48 ` Arnout Vandecappelle
2013-02-08 4:57 ` hayate
2013-02-05 13:39 ` [Buildroot] " hayate
2013-02-06 22:15 ` Yann E. MORIN
2013-02-08 5:04 ` hayate
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox