* [Buildroot] init segfaults when compiled with glibc
@ 2010-03-30 12:27 Sasha Sirotkin
2010-03-30 13:11 ` [Buildroot] QT embedded working with Xorg? Damien Borie
2010-03-30 13:20 ` [Buildroot] init segfaults when compiled with glibc Yann E. MORIN
0 siblings, 2 replies; 30+ messages in thread
From: Sasha Sirotkin @ 2010-03-30 12:27 UTC (permalink / raw)
To: buildroot
I compiled an external toolchain with glibc support using crosstools-ng
as recommended. I managed to compile buildroot without any issues.
However, when I try to use the resulting image /sbin/init segfaults.
With uclibc there are no such issues. I'm using the latest versions of
everything on ARM with EABI.
Any suggestions ?
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] QT embedded working with Xorg?
2010-03-30 12:27 [Buildroot] init segfaults when compiled with glibc Sasha Sirotkin
@ 2010-03-30 13:11 ` Damien Borie
2010-03-30 13:18 ` William Wagner
2010-03-30 13:20 ` [Buildroot] init segfaults when compiled with glibc Yann E. MORIN
1 sibling, 1 reply; 30+ messages in thread
From: Damien Borie @ 2010-03-30 13:11 UTC (permalink / raw)
To: buildroot
Hello,
I have a simple question : is Qt Embedded compatible with Xorg?
I have an application made for Qt Embedded with Framebuffer, and I had
to change my distribution to use the server X Xorg, but now the
application isn't working.
Of what I see when searching, I'm afraid I must use QT and not QT
Embedded, and as it's not included in Buildroot, I'm a bit reticent...
Is there any option I don't know which allows to use X server?
Thanks,
Damien Borie
TERAWATT / AENERGIA S.A.S.
ZA DUBOSCOA
64990 Villefranque
FRANCE
tel : +33 (0)5 59 44 26 08
fax : +33 (0)5 59 31 15 11
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] QT embedded working with Xorg?
2010-03-30 13:11 ` [Buildroot] QT embedded working with Xorg? Damien Borie
@ 2010-03-30 13:18 ` William Wagner
2010-03-30 13:48 ` Damien Borie
0 siblings, 1 reply; 30+ messages in thread
From: William Wagner @ 2010-03-30 13:18 UTC (permalink / raw)
To: buildroot
On 30/03/2010 14:11, Damien Borie wrote:
> Hello,
>
> I have a simple question : is Qt Embedded compatible with Xorg?
> I have an application made for Qt Embedded with Framebuffer, and I had
> to change my distribution to use the server X Xorg, but now the
> application isn't working.
> Of what I see when searching, I'm afraid I must use QT and not QT
> Embedded, and as it's not included in Buildroot, I'm a bit reticent...
> Is there any option I don't know which allows to use X server?
You need to use Qt compile for X11 for it to work with XOrg. I have
modified Qt in my tree to make it an option to build for X. Give me a
couple of days and I'll calean it up and send it to the list.
Will
--
------------------------------------------------------------------------
Will Wagner will_wagner at carallon.com
Development Manager Office Tel: +44 (0)20 7371 2032
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] QT embedded working with Xorg?
2010-03-30 13:18 ` William Wagner
@ 2010-03-30 13:48 ` Damien Borie
2010-04-01 14:42 ` Will Wagner
0 siblings, 1 reply; 30+ messages in thread
From: Damien Borie @ 2010-03-30 13:48 UTC (permalink / raw)
To: buildroot
Hi,
Thank you for your answer.
If you can send it it's great. But maybe you can first say me what the
modifications are?
Modifying some line in configure file may be sufficient for some test? I
noticed an option PLATFORM_X11...
I could always make it cleaner when you send your clean patch but if
there is only a few things to change I can do it dirtily for now and
continue working.
Thanks.
Damien Borie
TERAWATT / AENERGIA S.A.S.
ZA DUBOSCOA
64990 Villefranque
FRANCE
tel : +33 (0)5 59 44 26 08
fax : +33 (0)5 59 31 15 11
William Wagner a ?crit :
> On 30/03/2010 14:11, Damien Borie wrote:
>> Hello,
>>
>> I have a simple question : is Qt Embedded compatible with Xorg?
>> I have an application made for Qt Embedded with Framebuffer, and I
>> had to change my distribution to use the server X Xorg, but now the
>> application isn't working.
>> Of what I see when searching, I'm afraid I must use QT and not QT
>> Embedded, and as it's not included in Buildroot, I'm a bit reticent...
>> Is there any option I don't know which allows to use X server?
>
> You need to use Qt compile for X11 for it to work with XOrg. I have
> modified Qt in my tree to make it an option to build for X. Give me a
> couple of days and I'll calean it up and send it to the list.
>
> Will
>
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] QT embedded working with Xorg?
2010-03-30 13:48 ` Damien Borie
@ 2010-04-01 14:42 ` Will Wagner
2010-04-01 15:21 ` Damien Borie
0 siblings, 1 reply; 30+ messages in thread
From: Will Wagner @ 2010-04-01 14:42 UTC (permalink / raw)
To: buildroot
On 30/03/2010 14:48, Damien Borie wrote:
> Hi,
>
> Thank you for your answer.
> If you can send it it's great. But maybe you can first say me what the
> modifications are?
> Modifying some line in configure file may be sufficient for some test?
> I noticed an option PLATFORM_X11...
> I could always make it cleaner when you send your clean patch but if
> there is only a few things to change I can do it dirtily for now and
> continue working.
Damien,
Attached is my patch to get this working. he main thing to do is to
trick the build into thinking it is doing a cross compile even though it
is building for XOrg. Although not officially support the Trolltech guys
confirmed that it should work.
There are various bits i the patch you may not like, not least that it
is setup for a commercial Qt license.
Will.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: qt-x11.patch
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100401/60f79536/attachment-0001.diff>
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] QT embedded working with Xorg?
2010-04-01 14:42 ` Will Wagner
@ 2010-04-01 15:21 ` Damien Borie
2010-04-02 11:49 ` Damien Borie
0 siblings, 1 reply; 30+ messages in thread
From: Damien Borie @ 2010-04-01 15:21 UTC (permalink / raw)
To: buildroot
Hi,
Thanks a lot. I'll look at it now and tomorrow and see what I need to
change (to use open source QT for example).
Thank you for your help.
Damien Borie
TERAWATT / AENERGIA S.A.S.
ZA DUBOSCOA
64990 Villefranque
FRANCE
tel : +33 (0)5 59 44 26 08
fax : +33 (0)5 59 31 15 11
Will Wagner a ?crit :
> On 30/03/2010 14:48, Damien Borie wrote:
>> Hi,
>>
>> Thank you for your answer.
>> If you can send it it's great. But maybe you can first say me what
>> the modifications are?
>> Modifying some line in configure file may be sufficient for some
>> test? I noticed an option PLATFORM_X11...
>> I could always make it cleaner when you send your clean patch but if
>> there is only a few things to change I can do it dirtily for now and
>> continue working.
> Damien,
>
> Attached is my patch to get this working. he main thing to do is to
> trick the build into thinking it is doing a cross compile even though
> it is building for XOrg. Although not officially support the Trolltech
> guys confirmed that it should work.
>
> There are various bits i the patch you may not like, not least that it
> is setup for a commercial Qt license.
>
> Will.
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] QT embedded working with Xorg?
2010-04-01 15:21 ` Damien Borie
@ 2010-04-02 11:49 ` Damien Borie
2010-04-03 14:30 ` Allan Clark
2010-04-05 10:33 ` Paul Jones
0 siblings, 2 replies; 30+ messages in thread
From: Damien Borie @ 2010-04-02 11:49 UTC (permalink / raw)
To: buildroot
Hi,
It's working fine! I only changed X11-commercial to X11-opensource and
it's ok. I got problems with font or encoding but it will be cleared
soon I think.
Thank you, your patch was very useful.
Regards,
Damien Borie
TERAWATT / AENERGIA S.A.S.
ZA DUBOSCOA
64990 Villefranque
FRANCE
tel : +33 (0)5 59 44 26 08
fax : +33 (0)5 59 31 15 11
Damien Borie a ?crit :
> Hi,
>
> Thanks a lot. I'll look at it now and tomorrow and see what I need to
> change (to use open source QT for example).
>
> Thank you for your help.
>
> Damien Borie
>
> TERAWATT / AENERGIA S.A.S.
> ZA DUBOSCOA
> 64990 Villefranque
> FRANCE
> tel : +33 (0)5 59 44 26 08
> fax : +33 (0)5 59 31 15 11
>
>
> Will Wagner a ?crit :
>> On 30/03/2010 14:48, Damien Borie wrote:
>>> Hi,
>>>
>>> Thank you for your answer.
>>> If you can send it it's great. But maybe you can first say me what
>>> the modifications are?
>>> Modifying some line in configure file may be sufficient for some
>>> test? I noticed an option PLATFORM_X11...
>>> I could always make it cleaner when you send your clean patch but if
>>> there is only a few things to change I can do it dirtily for now and
>>> continue working.
>> Damien,
>>
>> Attached is my patch to get this working. he main thing to do is to
>> trick the build into thinking it is doing a cross compile even though
>> it is building for XOrg. Although not officially support the
>> Trolltech guys confirmed that it should work.
>>
>> There are various bits i the patch you may not like, not least that
>> it is setup for a commercial Qt license.
>>
>> Will.
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
>
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] QT embedded working with Xorg?
2010-04-02 11:49 ` Damien Borie
@ 2010-04-03 14:30 ` Allan Clark
2010-04-05 10:33 ` Paul Jones
1 sibling, 0 replies; 30+ messages in thread
From: Allan Clark @ 2010-04-03 14:30 UTC (permalink / raw)
To: buildroot
On Fri, Apr 2, 2010 at 12:49, Damien Borie <dbe@terawatt.fr> wrote:
> Hi,
>
> It's working fine! I only changed X11-commercial to X11-opensource and it's
> ok. I got problems with font or encoding but it will be cleared soon I
> think.
> Thank you, your patch was very useful.
>
Years ago, that was one of the selectable options for QT. Why did it go
away? Too complex?
--
allanc at chickenandporn.com "??" http://linkedin.com/in/goldfish
please, no proprietary attachments (http://tinyurl.com/cbgq)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100403/35c717a3/attachment.htm>
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] QT embedded working with Xorg?
2010-04-02 11:49 ` Damien Borie
2010-04-03 14:30 ` Allan Clark
@ 2010-04-05 10:33 ` Paul Jones
2010-04-05 18:15 ` Will Wagner
1 sibling, 1 reply; 30+ messages in thread
From: Paul Jones @ 2010-04-05 10:33 UTC (permalink / raw)
To: buildroot
On 04/02/10 22:49, Damien Borie wrote:
> Hi,
>
> It's working fine! I only changed X11-commercial to X11-opensource and
> it's ok. I got problems with font or encoding but it will be cleared
> soon I think.
> Thank you, your patch was very useful.
What arch are you building for? I'm building for ARM and I'm getting
build errors.
compiling io/qabstractfileengine.cpp
../../include/QtCore/../../src/corelib/arch/qatomic_i386.h: In function
'char* HB_TextCodec_ConvertFromUnicode(void*, const HB_UChar16*,
hb_uint32, hb_uint32*)':
../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:132: error:
impossible constraint in 'asm'
../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:132: error:
impossible constraint in 'asm'
compiling io/qbuffer.cpp
make[2]: *** [.obj/release-shared/qharfbuzz.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from io/qbuffer.cpp:473:
../../include/QtCore/../../src/corelib/arch/qatomic_i386.h: In member
function 'virtual bool QBuffer::seek(qint64)':
../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:132: error:
impossible constraint in 'asm'
../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:132: error:
impossible constraint in 'asm'
make[2]: *** [.obj/release-shared/qbuffer.o] Error 1
../../include/QtCore/../../src/corelib/arch/qatomic_i386.h: In member
function 'virtual QString
QAbstractFileEngine::fileName(QAbstractFileEngine::FileName) const':
../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:120: error:
impossible constraint in 'asm'
make[2]: *** [.obj/release-shared/qabstractfileengine.o] Error 1
make[2]: Leaving directory
`/media/stuff/buildroot/output/build/qt-everywhere-opensource-src-4.6.2/src/corelib'
make[1]: *** [sub-corelib-make_default-ordered] Error 2
make[1]: Leaving directory
`/media/stuff/buildroot/output/build/qt-everywhere-opensource-src-4.6.2'
make: ***
[/media/stuff/buildroot/output/build/qt-everywhere-opensource-src-4.6.2/.compiled]
Error 2
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] QT embedded working with Xorg?
2010-04-05 10:33 ` Paul Jones
@ 2010-04-05 18:15 ` Will Wagner
2010-04-05 21:34 ` Paul Jones
0 siblings, 1 reply; 30+ messages in thread
From: Will Wagner @ 2010-04-05 18:15 UTC (permalink / raw)
To: buildroot
On 05/04/2010 11:33, Paul Jones wrote:
> On 04/02/10 22:49, Damien Borie wrote:
>
>> Hi,
>>
>> It's working fine! I only changed X11-commercial to X11-opensource and
>> it's ok. I got problems with font or encoding but it will be cleared
>> soon I think.
>> Thank you, your patch was very useful.
>>
> What arch are you building for? I'm building for ARM and I'm getting
> build errors.
>
>
If you are using the patch I submitted to the list without modification
then i don't think it will work. I had hard coded into that patch that
Qt was being built for x86 (also being built on x64 machine). The patch
was not meant to be for the general case and would need more work for
that. If there is interest I will look at doing a better patch for
submission.
Will
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] QT embedded working with Xorg?
2010-04-05 18:15 ` Will Wagner
@ 2010-04-05 21:34 ` Paul Jones
0 siblings, 0 replies; 30+ messages in thread
From: Paul Jones @ 2010-04-05 21:34 UTC (permalink / raw)
To: buildroot
On 6/04/2010 4:15 AM, Will Wagner wrote:
> On 05/04/2010 11:33, Paul Jones wrote:
>> On 04/02/10 22:49, Damien Borie wrote:
>>> Hi,
>>>
>>> It's working fine! I only changed X11-commercial to X11-opensource and
>>> it's ok. I got problems with font or encoding but it will be cleared
>>> soon I think.
>>> Thank you, your patch was very useful.
>> What arch are you building for? I'm building for ARM and I'm getting
>> build errors.
>>
> If you are using the patch I submitted to the list without
> modification then i don't think it will work. I had hard coded into
> that patch that Qt was being built for x86 (also being built on x64
> machine). The patch was not meant to be for the general case and would
> need more work for that. If there is interest I will look at doing a
> better patch for submission.
>
> Will
>
Ahh ok. I saw that i386 in there but I wasn't sure what it was for. I'll
have a fiddle with it and see if I can get it to work.
Paul.
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] init segfaults when compiled with glibc
2010-03-30 12:27 [Buildroot] init segfaults when compiled with glibc Sasha Sirotkin
2010-03-30 13:11 ` [Buildroot] QT embedded working with Xorg? Damien Borie
@ 2010-03-30 13:20 ` Yann E. MORIN
1 sibling, 0 replies; 30+ messages in thread
From: Yann E. MORIN @ 2010-03-30 13:20 UTC (permalink / raw)
To: buildroot
Sasha, All,
On Tuesday 30 March 2010 142701 Sasha Sirotkin wrote:
> I compiled an external toolchain with glibc support using crosstools-ng
> as recommended. I managed to compile buildroot without any issues.
> However, when I try to use the resulting image /sbin/init segfaults.
> With uclibc there are no such issues. I'm using the latest versions of
> everything on ARM with EABI.
By default, gcc will emit armv5t instructions. What's your target CPU?
init segfaulting can be a symptom of using a bad instruction set, so if
your CPU is armv4, and you did not tell gcc to default to armv4, then
you will hit this segfault issue.
regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software Designer | \ / CAMPAIGN | ^ |
| --==< O_o >==-- '------------.-------: X AGAINST | /e\ There is no |
| http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL | """ conspiracy. |
'------------------------------'-------'------------------'--------------------'
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] init segfaults when compiled with glibc
@ 2010-03-30 14:26 Sasha Sirotkin
2010-03-30 16:58 ` Yann E. MORIN
2010-03-30 22:20 ` Eric BENARD
0 siblings, 2 replies; 30+ messages in thread
From: Sasha Sirotkin @ 2010-03-30 14:26 UTC (permalink / raw)
To: buildroot
On Tue, Mar 30, 2010 at 4:20 PM, Yann E. MORIN
<yann.morin.1998@anciens.enib.fr> wrote:
Sasha, All,
On Tuesday 30 March 2010 142701 Sasha Sirotkin wrote:
> I compiled an external toolchain with glibc support using
crosstools-ng
> as recommended. I managed to compile buildroot without any issues.
> However, when I try to use the resulting image /sbin/init segfaults.
> With uclibc there are no such issues. I'm using the latest
versions of
> everything on ARM with EABI.
By default, gcc will emit armv5t instructions. What's your target CPU?
init segfaulting can be a symptom of using a bad instruction set, so if
your CPU is armv4, and you did not tell gcc to default to armv4, then
you will hit this segfault issue.
As I already mentioned, it works fine with uClibc, so it is definitely
not a CPU instructions issue. At any rate, my CPU is AT91, i.e. armvte
instruction set.
^ permalink raw reply [flat|nested] 30+ messages in thread* [Buildroot] init segfaults when compiled with glibc
2010-03-30 14:26 Sasha Sirotkin
@ 2010-03-30 16:58 ` Yann E. MORIN
2010-03-30 22:20 ` Eric BENARD
1 sibling, 0 replies; 30+ messages in thread
From: Yann E. MORIN @ 2010-03-30 16:58 UTC (permalink / raw)
To: buildroot
Sasha, All,
On Tuesday 30 March 2010 16:26:14 Sasha Sirotkin wrote:
> On Tue, Mar 30, 2010 at 4:20 PM, Yann E. MORIN
> <yann.morin.1998@anciens.enib.fr> wrote:
> On Tuesday 30 March 2010 142701 Sasha Sirotkin wrote:
> > I compiled an external toolchain with glibc support using
> crosstools-ng
> > as recommended. I managed to compile buildroot without any issues.
> > However, when I try to use the resulting image /sbin/init segfaults.
Standard init, or busybox' ?
> > With uclibc there are no such issues. I'm using the latest
> versions of
> > everything on ARM with EABI.
In crosstool-NG, there's a sample that is quite up-to-date and that builds
an arm-unknown-linux-gnueabi:
# ct-ng show-arm-unknown-linux-gnueabi
arm-unknown-linux-gnueabi [l ]
OS : linux-2.6.31.12
Companion libs : gmp-4.3.1 mpfr-2.4.2 libelf-0.8.12
binutils : binutils-2.19.1
C compiler : gcc-4.3.2 (C,C++,Fortran,Java)
C library : glibc-2.9
Tools : sstrip dmalloc-5.5.2 duma-2_5_15 gdb-6.8 ltrace-0.5.3 strace-4.5.19
> By default, gcc will emit armv5t instructions. What's your target CPU?
> init segfaulting can be a symptom of using a bad instruction set, so if
> your CPU is armv4, and you did not tell gcc to default to armv4, then
> you will hit this segfault issue.
> As I already mentioned, it works fine with uClibc, so it is definitely
> not a CPU instructions issue. At any rate, my CPU is AT91, i.e. armvte
> instruction set.
Ahem. Right, sorry.
I'll read you back on crossgcc... :-)
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] 30+ messages in thread* [Buildroot] init segfaults when compiled with glibc
2010-03-30 14:26 Sasha Sirotkin
2010-03-30 16:58 ` Yann E. MORIN
@ 2010-03-30 22:20 ` Eric BENARD
2010-03-31 14:18 ` Alexander Sirotkin
1 sibling, 1 reply; 30+ messages in thread
From: Eric BENARD @ 2010-03-30 22:20 UTC (permalink / raw)
To: buildroot
Le 30/03/2010 16:26, Sasha Sirotkin a ?crit :
> As I already mentioned, it works fine with uClibc, so it is definitely
> not a CPU instructions issue. At any rate, my CPU is AT91, i.e. armvte
> instruction set.
>
AT91RM9200 is armv4
Eric
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] init segfaults when compiled with glibc
2010-03-30 22:20 ` Eric BENARD
@ 2010-03-31 14:18 ` Alexander Sirotkin
2010-03-31 14:37 ` Javier Viguera
0 siblings, 1 reply; 30+ messages in thread
From: Alexander Sirotkin @ 2010-03-31 14:18 UTC (permalink / raw)
To: buildroot
On Wed, Mar 31, 2010 at 1:20 AM, Eric BENARD <ebenard@free.fr> wrote:
> Le 30/03/2010 16:26, Sasha Sirotkin a ?crit :
>
> As I already mentioned, it works fine with uClibc, so it is definitely
>> not a CPU instructions issue. At any rate, my CPU is AT91, i.e. armvte
>> instruction set.
>>
>> AT91RM9200 is armv4
>
You are right, nevertheless the isssue, i.e. init sudden death is not
related to the instruction set - as I already mentioned, it works just fine
with uClibc. The problem appears only when I use external glibc based
toolchain.
>
> Eric
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100331/689a90b7/attachment.htm>
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] init segfaults when compiled with glibc
2010-03-31 14:18 ` Alexander Sirotkin
@ 2010-03-31 14:37 ` Javier Viguera
2010-03-31 15:48 ` Alexander Sirotkin
2010-04-01 7:48 ` Alexander Sirotkin
0 siblings, 2 replies; 30+ messages in thread
From: Javier Viguera @ 2010-03-31 14:37 UTC (permalink / raw)
To: buildroot
Alexander (Sasha) Sirotkin wrote:
>
> You are right, nevertheless the isssue, i.e. init sudden death is not
> related to the instruction set - as I already mentioned, it works just
> fine with uClibc. The problem appears only when I use external glibc
> based toolchain.
I had the same problem a month ago more or less. With a glibc toolchain
built with crosstool-NG the init process was dying and the kernel
panic'ing as a result because init (pid=1) was not supposed to die.
Unfortunately i could not manage to find what the problem was. All i
found is that it was happening with some versions of glibc while it was
working with other versions: glibc-2.9 was failing, so my workaround was
finally to select EGLIBC-2.10 to build the toolchain. With that version
it worked for me.
Give it a try to a newer version of glibc/eglibc (starting with 2.10)
and let us know if it works.
--
Regards,
Javier Viguera
Software Engineer
Digi International Spain, S.A.
http://www.digi.com
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] init segfaults when compiled with glibc
2010-03-31 14:37 ` Javier Viguera
@ 2010-03-31 15:48 ` Alexander Sirotkin
2010-03-31 18:11 ` Peter Korsgaard
2010-04-01 7:48 ` Alexander Sirotkin
1 sibling, 1 reply; 30+ messages in thread
From: Alexander Sirotkin @ 2010-03-31 15:48 UTC (permalink / raw)
To: buildroot
On Wed, Mar 31, 2010 at 5:37 PM, Javier Viguera <javier.viguera@digi.com>wrote:
> Alexander (Sasha) Sirotkin wrote:
>
>>
>> You are right, nevertheless the isssue, i.e. init sudden death is not
>> related to the instruction set - as I already mentioned, it works just fine
>> with uClibc. The problem appears only when I use external glibc based
>> toolchain.
>>
>
> I had the same problem a month ago more or less. With a glibc toolchain
> built with crosstool-NG the init process was dying and the kernel panic'ing
> as a result because init (pid=1) was not supposed to die.
>
> Unfortunately i could not manage to find what the problem was. All i found
> is that it was happening with some versions of glibc while it was working
> with other versions: glibc-2.9 was failing, so my workaround was finally to
> select EGLIBC-2.10 to build the toolchain. With that version it worked for
> me.
>
I did not manage to compile crosstoll-ng with eglibc yet. It looks like
eglibc support is broken in crosstool-ng and glibc support is broken in
buildroot.
Dead end...
>
> Give it a try to a newer version of glibc/eglibc (starting with 2.10) and
> let us know if it works.
>
> --
> Regards,
>
> Javier Viguera
> Software Engineer
>
> Digi International Spain, S.A.
> http://www.digi.com
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100331/6c65079c/attachment-0001.htm>
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] init segfaults when compiled with glibc
2010-03-31 15:48 ` Alexander Sirotkin
@ 2010-03-31 18:11 ` Peter Korsgaard
2010-03-31 18:28 ` Sasha Sirotkin
0 siblings, 1 reply; 30+ messages in thread
From: Peter Korsgaard @ 2010-03-31 18:11 UTC (permalink / raw)
To: buildroot
>>>>> "Alexander" == Alexander (Sasha) Sirotkin <buildroot@browserseal.com> writes:
Alexander> I did not manage to compile crosstoll-ng with eglibc yet. It
Alexander> looks like eglibc support is broken in crosstool-ng and
Alexander> glibc support is broken in buildroot.
uClibc? We don't have glibc support (except for external toolchains), so
it cannot really be broken ;)
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] init segfaults when compiled with glibc
2010-03-31 18:11 ` Peter Korsgaard
@ 2010-03-31 18:28 ` Sasha Sirotkin
2010-03-31 18:58 ` H Hartley Sweeten
2010-03-31 19:16 ` Thomas Petazzoni
0 siblings, 2 replies; 30+ messages in thread
From: Sasha Sirotkin @ 2010-03-31 18:28 UTC (permalink / raw)
To: buildroot
Peter Korsgaard wrote:
>>>>>> "Alexander" == Alexander (Sasha) Sirotkin <buildroot@browserseal.com> writes:
>>>>>>
>
> Alexander> I did not manage to compile crosstoll-ng with eglibc yet. It
> Alexander> looks like eglibc support is broken in crosstool-ng and
> Alexander> glibc support is broken in buildroot.
>
> uClibc? We don't have glibc support (except for external toolchains), so
> it cannot really be broken ;)
>
>
Well... it is broken in a sense that buildroot does not work with an
external toolchain based on glibc. Please see above.
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] init segfaults when compiled with glibc
2010-03-31 18:28 ` Sasha Sirotkin
@ 2010-03-31 18:58 ` H Hartley Sweeten
2010-03-31 19:02 ` Sasha Sirotkin
2010-03-31 19:16 ` Thomas Petazzoni
1 sibling, 1 reply; 30+ messages in thread
From: H Hartley Sweeten @ 2010-03-31 18:58 UTC (permalink / raw)
To: buildroot
On Wednesday, March 31, 2010 11:28 AM, Sasha Sirotkin wrote:
> Peter Korsgaard wrote:
>>>>>>> "Alexander" == Alexander (Sasha) Sirotkin <buildroot@browserseal.com> writes:
>>>>>>>
>>
>> Alexander> I did not manage to compile crosstoll-ng with eglibc yet. It
>> Alexander> looks like eglibc support is broken in crosstool-ng and
>> Alexander> glibc support is broken in buildroot.
>>
>> uClibc? We don't have glibc support (except for external toolchains), so
>> it cannot really be broken ;)
>>
>>
> Well... it is broken in a sense that buildroot does not work with an
> external toolchain based on glibc. Please see above.
FWIW, I'm using an external glibc toolchain (created with crosstoo-NG)
with no problems.
Regards,
Hartley
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] init segfaults when compiled with glibc
2010-03-31 18:58 ` H Hartley Sweeten
@ 2010-03-31 19:02 ` Sasha Sirotkin
0 siblings, 0 replies; 30+ messages in thread
From: Sasha Sirotkin @ 2010-03-31 19:02 UTC (permalink / raw)
To: buildroot
H Hartley Sweeten wrote:
> On Wednesday, March 31, 2010 11:28 AM, Sasha Sirotkin wrote:
>
>> Peter Korsgaard wrote:
>>
>>>>>>>> "Alexander" == Alexander (Sasha) Sirotkin <buildroot@browserseal.com> writes:
>>>>>>>>
>>>>>>>>
>>> Alexander> I did not manage to compile crosstoll-ng with eglibc yet. It
>>> Alexander> looks like eglibc support is broken in crosstool-ng and
>>> Alexander> glibc support is broken in buildroot.
>>>
>>> uClibc? We don't have glibc support (except for external toolchains), so
>>> it cannot really be broken ;)
>>>
>>>
>>>
>> Well... it is broken in a sense that buildroot does not work with an
>> external toolchain based on glibc. Please see above.
>>
>
> FWIW, I'm using an external glibc toolchain (created with crosstoo-NG)
> with no problems.
>
> Regards,
> Hartley
I'd be extremely grateful to know how you managed to do this. As you can
see above I could not compile crosstool-ng with eglibc and when I used
glibc version created with crosstool-ng I ran into this "init death"
problem that at least one other person could reproduce.
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] init segfaults when compiled with glibc
2010-03-31 18:28 ` Sasha Sirotkin
2010-03-31 18:58 ` H Hartley Sweeten
@ 2010-03-31 19:16 ` Thomas Petazzoni
2010-03-31 20:21 ` Alexander Sirotkin
1 sibling, 1 reply; 30+ messages in thread
From: Thomas Petazzoni @ 2010-03-31 19:16 UTC (permalink / raw)
To: buildroot
On Wed, 31 Mar 2010 21:28:29 +0300
Sasha Sirotkin <buildroot@browserseal.com> wrote:
> Well... it is broken in a sense that buildroot does not work with an
> external toolchain based on glibc. Please see above.
Could you please stop making false assertions, and start being nice so
that we can have some interest in helping you ?
The fact that using Buildroot, with glibc external toolchain, does not
work in *your* *particular* configuration, does not mean at all that
Buildroot does not support glibc external toolchains. Just like
Hartley, I successfully build and run systems generated by Buildroot,
and that used a glibc external toolchain.
It is quite possible that the configuration mistake is on your side, so
instead of being offensive about the status of Buildroot, could you
just be nice and help us to constructively solve the problem you're
having ?
Thanks!
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] 30+ messages in thread
* [Buildroot] init segfaults when compiled with glibc
2010-03-31 19:16 ` Thomas Petazzoni
@ 2010-03-31 20:21 ` Alexander Sirotkin
0 siblings, 0 replies; 30+ messages in thread
From: Alexander Sirotkin @ 2010-03-31 20:21 UTC (permalink / raw)
To: buildroot
On Wed, Mar 31, 2010 at 10:16 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> On Wed, 31 Mar 2010 21:28:29 +0300
> Sasha Sirotkin <buildroot@browserseal.com> wrote:
>
>> Well... it is broken in a sense that buildroot does not work with an
>> external toolchain based on glibc. Please see above.
>
> Could you please stop making false assertions, and start being nice so
> that we can have some interest in helping you ?
Sorry about that, it is simply a frustration of somebody who's been
trying to compile buildroot with glibc for a few weeks already.
>
> The fact that using Buildroot, with glibc external toolchain, does not
> work in *your* *particular* configuration, does not mean at all that
> Buildroot does not support glibc external toolchains. Just like
> Hartley, I successfully build and run systems generated by Buildroot,
> and that used a glibc external toolchain.
>
> It is quite possible that the configuration mistake is on your side, so
> instead of being offensive about the status of Buildroot, could you
> just be nice and help us to constructively solve the problem you're
> having ?
>
> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] init segfaults when compiled with glibc
2010-03-31 14:37 ` Javier Viguera
2010-03-31 15:48 ` Alexander Sirotkin
@ 2010-04-01 7:48 ` Alexander Sirotkin
1 sibling, 0 replies; 30+ messages in thread
From: Alexander Sirotkin @ 2010-04-01 7:48 UTC (permalink / raw)
To: buildroot
On Wed, Mar 31, 2010 at 5:37 PM, Javier Viguera <javier.viguera@digi.com> wrote:
> Alexander (Sasha) Sirotkin wrote:
>>
>> You are right, nevertheless the isssue, i.e. init sudden death is not
>> related to the instruction set - as I already mentioned, it works just fine
>> with uClibc. The problem appears only when I use external glibc based
>> toolchain.
>
> I had the same problem a month ago more or less. With a glibc toolchain
> built with crosstool-NG the init process was dying and the kernel panic'ing
> as a result because init (pid=1) was not supposed to die.
>
> Unfortunately i could not manage to find what the problem was. All i found
> is that it was happening with some versions of glibc while it was working
> with other versions: glibc-2.9 was failing, so my workaround was finally to
> select EGLIBC-2.10 to build the toolchain. With that version it worked for
> me.
>
> Give it a try to a newer version of glibc/eglibc (starting with 2.10) and
> let us know if it works.
Eventually I managed to compile crosstool-ng with eglibc 2.10 after
downgrading the compiler to 4.3.2 from 4.4.1 and binutils to 2.19 from
2.20. This one seems to work OK with buildroot.
>
> --
> Regards,
>
> Javier Viguera
> Software Engineer
>
> Digi International Spain, S.A.
> http://www.digi.com
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Buildroot] init segfaults when compiled with glibc
@ 2010-03-30 20:03 Sasha Sirotkin
2010-03-30 20:34 ` Thomas Petazzoni
0 siblings, 1 reply; 30+ messages in thread
From: Sasha Sirotkin @ 2010-03-30 20:03 UTC (permalink / raw)
To: buildroot
On Tue, Mar 30, 2010 at 7:58 PM, Yann E. MORIN
<yann.morin.1998@anciens.enib.fr> wrote:
Sasha, All,
On Tuesday 30 March 2010 16:26:14 Sasha Sirotkin wrote:
> On Tue, Mar 30, 2010 at 4:20 PM, Yann E. MORIN
> <yann.morin.1998 at anciens.enib.fr
<mailto:yann.morin.1998@anciens.enib.fr>> wrote:
> On Tuesday 30 March 2010 142701 Sasha Sirotkin wrote:
> > I compiled an external toolchain with glibc support using
> crosstools-ng
> > as recommended. I managed to compile buildroot without any
issues.
> > However, when I try to use the resulting image /sbin/init
segfaults.
Standard init, or busybox' ?
> > With uclibc there are no such issues. I'm using the latest
> versions of
> > everything on ARM with EABI.
In crosstool-NG, there's a sample that is quite up-to-date and that
builds
an arm-unknown-linux-gnueabi:
# ct-ng show-arm-unknown-linux-gnueabi
arm-unknown-linux-gnueabi [l ]
OS : linux-2.6.31.12
Companion libs : gmp-4.3.1 mpfr-2.4.2 libelf-0.8.12
binutils : binutils-2.19.1
C compiler : gcc-4.3.2 (C,C++,Fortran,Java)
C library : glibc-2.9
Tools : sstrip dmalloc-5.5.2 duma-2_5_15 gdb-6.8
ltrace-0.5.3 strace-4.5.19
> By default, gcc will emit armv5t instructions. What's your
target CPU?
> init segfaulting can be a symptom of using a bad instruction
set, so if
> your CPU is armv4, and you did not tell gcc to default to
armv4, then
> you will hit this segfault issue.
> As I already mentioned, it works fine with uClibc, so it is
definitely
> not a CPU instructions issue. At any rate, my CPU is AT91, i.e.
armvte
> instruction set.
Ahem. Right, sorry.
I'll read you back on crossgcc... :-)
It happens with both busybox and standard init.
Compilation of crossgcc with EABI work OK, but than I got this
segmentation fault issue...
It looks like glibc does not work at all with buildroot right now.
Should I open a bug ticket or something?
^ permalink raw reply [flat|nested] 30+ messages in thread* [Buildroot] init segfaults when compiled with glibc
2010-03-30 20:03 Sasha Sirotkin
@ 2010-03-30 20:34 ` Thomas Petazzoni
0 siblings, 0 replies; 30+ messages in thread
From: Thomas Petazzoni @ 2010-03-30 20:34 UTC (permalink / raw)
To: buildroot
Hi Sasha,
On Tue, 30 Mar 2010 23:03:55 +0300
Sasha Sirotkin <buildroot@browserseal.com> wrote:
> It looks like glibc does not work at all with buildroot right now.
> Should I open a bug ticket or something?
Unfortunately, without more details, a bug report would be fairly
useless. Can you send your Buildroot .config and kernel .config so that
I can try to reproduce your problem on my AT91 systems ?
Thanks,
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] 30+ messages in thread
* [Buildroot] init segfaults when compiled with glibc
@ 2010-03-31 10:47 Sasha Sirotkin
2010-03-31 18:52 ` Thomas Petazzoni
0 siblings, 1 reply; 30+ messages in thread
From: Sasha Sirotkin @ 2010-03-31 10:47 UTC (permalink / raw)
To: buildroot
On Tue, Mar 30, 2010 at 11:34 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
Hi Sasha,
On Tue, 30 Mar 2010 23:03:55 +0300
Sasha Sirotkin <buildroot@browserseal.com> wrote:
> It looks like glibc does not work at all with buildroot right now.
> Should I open a bug ticket or something?
Unfortunately, without more details, a bug report would be fairly
useless. Can you send your Buildroot .config and kernel .config so that
I can try to reproduce your problem on my AT91 systems ?
Attached please find both config files.
Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: buildroot.config.bz2
Type: application/x-bzip
Size: 3643 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100331/a0cc21e1/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kernel.config.bz2
Type: application/x-bzip
Size: 7096 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100331/a0cc21e1/attachment-0003.bin>
^ permalink raw reply [flat|nested] 30+ messages in thread* [Buildroot] init segfaults when compiled with glibc
2010-03-31 10:47 Sasha Sirotkin
@ 2010-03-31 18:52 ` Thomas Petazzoni
2010-03-31 20:05 ` Alexander Sirotkin
0 siblings, 1 reply; 30+ messages in thread
From: Thomas Petazzoni @ 2010-03-31 18:52 UTC (permalink / raw)
To: buildroot
On Wed, 31 Mar 2010 13:47:13 +0300
Sasha Sirotkin <buildroot@browserseal.com> wrote:
> Attached please find both config files.
Which exact AT91 CPU are you using ?
Your Buildroot .config specifies an ARM926 core, which is ARMv5.
However, if you use AT91RM9200, as ?ric B?nard noted, you have an
ARM920 core, which is ARMv4. Therefore, if you have an AT91RM9200 CPU,
it is normal that the Buildroot configuration you sent does not work.
Select BR2_arm920t instead of BR2_arm926t.
Your .config also states that you're using a crosstool-NG external
toolchain. Can you send the .config you used in Crosstool-NG to
generate the toolchain ?
In other words:
* Give us more details about your hardware
* Give us your Crosstool-NG configuration file
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] 30+ messages in thread
* [Buildroot] init segfaults when compiled with glibc
2010-03-31 18:52 ` Thomas Petazzoni
@ 2010-03-31 20:05 ` Alexander Sirotkin
0 siblings, 0 replies; 30+ messages in thread
From: Alexander Sirotkin @ 2010-03-31 20:05 UTC (permalink / raw)
To: buildroot
On Wed, Mar 31, 2010 at 9:52 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> On Wed, 31 Mar 2010 13:47:13 +0300
> Sasha Sirotkin <buildroot@browserseal.com> wrote:
>
>> Attached please find both config files.
>
> Which exact AT91 CPU are you using ?
AT91SAM9260
>
> Your Buildroot .config specifies an ARM926 core, which is ARMv5.
> However, if you use AT91RM9200, as ?ric B?nard noted, you have an
> ARM920 core, which is ARMv4. Therefore, if you have an AT91RM9200 CPU,
> it is normal that the Buildroot configuration you sent does not work.
> Select BR2_arm920t instead of BR2_arm926t.
>
> Your .config also states that you're using a crosstool-NG external
> toolchain. Can you send the .config you used in Crosstool-NG to
> generate the toolchain ?
Attached.
>
> In other words:
> ?* Give us more details about your hardware
> ?* Give us your Crosstool-NG configuration file
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.bz2
Type: application/x-bzip2
Size: 2299 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100331/f1db35fd/attachment.bin>
^ permalink raw reply [flat|nested] 30+ messages in thread
end of thread, other threads:[~2010-04-05 21:34 UTC | newest]
Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-30 12:27 [Buildroot] init segfaults when compiled with glibc Sasha Sirotkin
2010-03-30 13:11 ` [Buildroot] QT embedded working with Xorg? Damien Borie
2010-03-30 13:18 ` William Wagner
2010-03-30 13:48 ` Damien Borie
2010-04-01 14:42 ` Will Wagner
2010-04-01 15:21 ` Damien Borie
2010-04-02 11:49 ` Damien Borie
2010-04-03 14:30 ` Allan Clark
2010-04-05 10:33 ` Paul Jones
2010-04-05 18:15 ` Will Wagner
2010-04-05 21:34 ` Paul Jones
2010-03-30 13:20 ` [Buildroot] init segfaults when compiled with glibc Yann E. MORIN
-- strict thread matches above, loose matches on Subject: below --
2010-03-30 14:26 Sasha Sirotkin
2010-03-30 16:58 ` Yann E. MORIN
2010-03-30 22:20 ` Eric BENARD
2010-03-31 14:18 ` Alexander Sirotkin
2010-03-31 14:37 ` Javier Viguera
2010-03-31 15:48 ` Alexander Sirotkin
2010-03-31 18:11 ` Peter Korsgaard
2010-03-31 18:28 ` Sasha Sirotkin
2010-03-31 18:58 ` H Hartley Sweeten
2010-03-31 19:02 ` Sasha Sirotkin
2010-03-31 19:16 ` Thomas Petazzoni
2010-03-31 20:21 ` Alexander Sirotkin
2010-04-01 7:48 ` Alexander Sirotkin
2010-03-30 20:03 Sasha Sirotkin
2010-03-30 20:34 ` Thomas Petazzoni
2010-03-31 10:47 Sasha Sirotkin
2010-03-31 18:52 ` Thomas Petazzoni
2010-03-31 20:05 ` Alexander Sirotkin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox