Skip to contentSkip to conversation

Known toolchain bug?

DISCUSSION Wolfgang Denk 3 participants 3 messages Feb 14, 2014 – Feb 15, 2014

lore
Share & tools
lore
#0 lore raw

Hello,

in message [1] on the Linaro mailing list, Koen Kooi reported a toolchain problem. I can reproduce the same problem both in Yocto 1.5.1 and witht he current top-of-tree; for example, using the latest autobuilder result core-image-sato-sdk-imx53qsb-20140213124023.rootfs.tar.bz2 I get this [source of Koen's test program attached]:

root@imx53qsb:/tmp# g++ -Wall -std=c++11 -o b -lpthread b.cpp 
root@imx53qsb:/tmp# ./b
pure virtual method called
terminate called without an active exception
Aborted

Is this a (known?) tool chain issue, or am I missing something?

[1] http://article.gmane.org/gmane.linux.linaro.toolchain/3925

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
"And they told us, what they wanted... Was a sound  that  could  kill
some-one, from a distance."                               - Kate Bush
#1 lore raw
Quoted 8 lines · Wolfgang Denk

Hello,

in message [1] on the Linaro mailing list, Koen Kooi reported a toolchain problem. I can reproduce the same problem both in Yocto 1.5.1 and witht he current top-of-tree; for example, using the latest autobuilder result core-image-sato-sdk-imx53qsb-20140213124023.rootfs.tar.bz2 I get this [source of Koen's test program attached]:

Source code attachment missing?

Quoted 17 lines
root@imx53qsb:/tmp# g++ -Wall -std=c++11 -o b -lpthread b.cpp 
root@imx53qsb:/tmp# ./b
pure virtual method called
terminate called without an active exception
Aborted

Is this a (known?) tool chain issue, or am I missing something?

[1] http://article.gmane.org/gmane.linux.linaro.toolchain/3925

Best regards,

Wolfgang Denk

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#2 lore raw

Hello Wolfgang

Quoted 21 lines · Gary Thomas
Quoted 8 lines · Wolfgang Denk

Hello,

in message [1] on the Linaro mailing list, Koen Kooi reported a toolchain problem. I can reproduce the same problem both in Yocto 1.5.1 and witht he current top-of-tree; for example, using the latest autobuilder result core-image-sato-sdk-imx53qsb-20140213124023.rootfs.tar.bz2 I get this [source of Koen's test program attached]:

Source code attachment missing?

Quoted 9 lines
root@imx53qsb:/tmp# g++ -Wall -std=c++11 -o b -lpthread b.cpp 
root@imx53qsb:/tmp# ./b
pure virtual method called
terminate called without an active exception
Aborted

Is this a (known?) tool chain issue, or am I missing something?

as you can see this was a problem reported by your truly :)

infact, its an issue seen for gcc4.8 and arm architecture thus far seems to work fine for x86. It also works ok with gcc 4.7 on arm but given that c++11 is new there is something to fix there for arm. I hope linaro toolchain group has taken a note of this issue. as you can see its not only seen in Linaro toolchain which was my initial thought. but its also prevalent in upstream 4.8 gcc. I haven’t tested gcc 4.9 may be its fixed there.

Quoted 18 lines
Quoted 8 lines

[1] http://article.gmane.org/gmane.linux.linaro.toolchain/3925

Best regards,

Wolfgang Denk

Signature · 8 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto