<div dir="ltr">Dear Sebastian,<div><br></div><div>I tested cxx_throw.exe. in my case, I successed to build cxx_throw.exe.</div><div>After run cxx_throw.exe, my problem is occurred.</div><div><br></div><div>Best Regards,</div><div>Thomas Kim</div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-01 16:45 GMT+09:00 Sebastian Huber <span dir="ltr"><<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
what is the name of the failing test? Is this cxx_throw.exe?<br>
<br>
There seems to be also a build problem for the examples-v2:<br>
<br>
Waf: Entering directory
`/home/sh/git-rtems-examples-v2/build/arm-rtems4.11-realview_pbx_a9_qemu'<br>
[ 4/116] FilesystemImage: -> file_io/crc/FilesystemImage<br>
[ 5/116] bin2c: file_io/crc/FilesystemImage ->
file_io/crc/FilesystemImage.c file_io/crc/FilesystemImage.h<br>
[ 22/116] c: file_io/crc/FilesystemImage.c ->
build/arm-rtems4.11-realview_pbx_a9_qemu/file_io/crc/FilesystemImage.c.2.o<br>
[115/116] rtrace:
build/arm-rtems4.11-realview_pbx_a9_qemu/hello/both_hello/test.c.2.o
->
build/arm-rtems4.11-realview_pbx_a9_qemu/hello/both_hello/hello-deep.texe<br>
[115/116] cprogram:
build/arm-rtems4.11-realview_pbx_a9_qemu/file_io/crc/init.c.2.o
build/arm-rtems4.11-realview_pbx_a9_qemu/file_io/crc/crc_32.c.2.o
build/arm-rtems4.11-realview_pbx_a9_qemu/file_io/crc/FilesystemImage.c.2.o
-> build/arm-rtems4.11-realview_pbx_a9_qemu/file_io/crc/crc.exe<br>
[116/116] rtrace:
build/arm-rtems4.11-realview_pbx_a9_qemu/hello/both_hello/test.c.1.o
->
build/arm-rtems4.11-realview_pbx_a9_qemu/hello/both_hello/both_hello.texe<br>
/opt/rtems-4.11/bin/arm-rtems4.11-gcc: hello-test.o: In function
`__wrap_Init':<br>
/opt/rtems-4.11/bin/arm-rtems4.11-gcc:
/home/sh/git-rtems-examples-v2/build/arm-rtems4.11-realview_pbx_a9_qemu/
hello-test.c:70: undefined reference to `Init'<br>
/opt/rtems-4.11/bin/arm-rtems4.11-gcc: collect2: error: ld returned
1 exit status<br>
error: linking: Linker error<br>
/opt/rtems-4.11/bin/arm-rtems4.11-gcc: hello-deep.o: In function
`__wrap_Init':<br>
/opt/rtems-4.11/bin/arm-rtems4.11-gcc:
/home/sh/git-rtems-examples-v2/build/arm-rtems4.11-realview_pbx_a9_qemu/
hello-deep.c:78: undefined reference to `Init'<br>
/opt/rtems-4.11/bin/arm-rtems4.11-gcc: collect2: error: ld returned
1 exit status<br>
error: linking: Linker error<br>
Waf: Leaving directory
`/home/sh/git-rtems-examples-v2/build/arm-rtems4.11-realview_pbx_a9_qemu'<br>
Build failed<br>
-> task in 'both_hello.texe' failed (exit status 10): <br>
{task 17773776: rtrace test.c.1.o -> both_hello.texe}<br>
['/opt/rtems-4.11/bin/rtems-tld', '-W hello-test', '-C',
'../../hello/both_hello/hello.ini', '-r', '/opt/rtems-4.11', '-B',
'arm/realview_pbx_a9_qemu', '-c',
'/opt/rtems-4.11/bin/arm-rtems4.11-gcc', '-l',
'/opt/rtems-4.11/bin/arm-rtems4.11-gcc', '--',
'hello/both_hello/test.c.1.o', '-qrtems',
'-B/opt/rtems-4.11/arm-rtems4.11/lib/',
'-B/opt/rtems-4.11/arm-rtems4.11/realview_pbx_a9_qemu/lib/',
'--specs', 'bsp_specs', '-march=armv7-a', '-march=armv7-a',
'-mthumb', '-mthumb', '-mfpu=neon', '-mfpu=neon',
'-mfloat-abi=hard', '-mfloat-abi=hard', '-mtune=cortex-a9',
'-mtune=cortex-a9', '-o',
'/home/sh/git-rtems-examples-v2/build/arm-rtems4.11-realview_pbx_a9_qemu/hello/both_hello/both_hello.texe',
'-Wl,-Bstatic']<br>
-> task in 'hello-deep.texe' failed (exit status 10): <br>
{task 17774032: rtrace test.c.2.o -> hello-deep.texe}<br>
['/opt/rtems-4.11/bin/rtems-tld', '-W hello-deep', '-C',
'../../hello/both_hello/hello-deep.ini', '-r', '/opt/rtems-4.11',
'-B', 'arm/realview_pbx_a9_qemu', '-c',
'/opt/rtems-4.11/bin/arm-rtems4.11-gcc', '-l',
'/opt/rtems-4.11/bin/arm-rtems4.11-gcc', '--',
'hello/both_hello/test.c.2.o', '-qrtems',
'-B/opt/rtems-4.11/arm-rtems4.11/lib/',
'-B/opt/rtems-4.11/arm-rtems4.11/realview_pbx_a9_qemu/lib/',
'--specs', 'bsp_specs', '-march=armv7-a', '-march=armv7-a',
'-mthumb', '-mthumb', '-mfpu=neon', '-mfpu=neon',
'-mfloat-abi=hard', '-mfloat-abi=hard', '-mtune=cortex-a9',
'-mtune=cortex-a9', '-o',
'/home/sh/git-rtems-examples-v2/build/arm-rtems4.11-realview_pbx_a9_qemu/hello/both_hello/hello-deep.texe',
'-Wl,-Bstatic']<br>
<br>
<div>On 01/12/14 05:26, Thomas Kim wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Dear Sir,
<div><br>
</div>
<div>I am testing cxx example including C++ global constructor
in example-v2 on Cortex-A8 based board.</div>
<div><br>
</div>
<div>As I remembered in csae of using cxx example on Sparc SIS,
I resolved this after removing below options according to your
comment.</div>
<div>
<div> CFLAGS_OPTIMIZE_V += -ffunction-sections
-fdata-sections</div>
<div> LDFLAGS = -Wl,--gc-sections<br>
</div>
</div>
<div><br>
</div>
<div>But, when I test same cxx example on ARM Cortex-A8 board, I
have similar problem as like below;</div>
<div>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div>
<div>
<div>terminate called after throwing an instance of
'__gnu_cxx::__concurrence_lock_error'</div>
<div> what(): __gnu_cxx::__concurrence_lock_error</div>
</div>
<div>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
</div>
<div><br>
</div>
<div>At this time, I used below config options for Cortex-A8.</div>
<div>
<div>CPU_CFLAGS = -march=armv7-a -mtune=cortex-a8 -mfpu=neon
-mfloat-abi=softfp</div>
<div>CFLAGS_OPTIMIZE_V ?= -O2 -g<br>
</div>
</div>
<div><br>
</div>
<div>also, I am using RSB GCC 4.8.2 as like below;</div>
<div>
<div><br>
</div>
<div>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
</div>
<div>Target: arm-rtems4.11</div>
<div>Configured with: ../gcc-4.8.2/configure
--prefix=/opt/rtems-4.11 --bindir=/opt/rtems-4.11/bin
--exec_prefix=/opt/rtems-4.11
--includedir=/opt/rtems-4.11/include
--libdir=/opt/rtems-4.11/lib
--libexecdir=/opt/rtems-4.11/libexec
--mandir=/opt/rtems-4.11/share/man
--infodir=/opt/rtems-4.11/share/info
--datadir=/opt/rtems-4.11/share --build=i686-linux-gnu
--host=i686-linux-gnu --target=arm-rtems4.11
--disable-libstdcxx-pch --with-gnu-as --with-gnu-ld
--verbose --with-newlib --with-system-zlib --disable-nls
--without-included-gettext --disable-win32-registry
--enable-version-specific-runtime-libs --disable-lto
--enable-newlib-io-c99-formats --enable-newlib-iconv
--enable-newlib-iconv-encodings=big5,cp775,cp850,cp852,cp855,cp866,euc_jp,euc_kr,euc_tw,iso_8859_1,iso_8859_10,iso_8859_11,iso_8859_13,iso_8859_14,iso_8859_15,iso_8859_2,iso_8859_3,iso_8859_4,iso_8859_5,iso_8859_6,iso_8859_7,iso_8859_8,iso_8859_9,iso_ir_111,koi8_r,koi8_ru,koi8_u,koi8_uni,ucs_2,ucs_2_internal,ucs_2be,ucs_2le,ucs_4,ucs_4_internal,ucs_4be,ucs_4le,us_ascii,utf_16,utf_16be,utf_16le,utf_8,win_1250,win_1251,win_1252,win_1253,win_1254,win_1255,win_1256,win_1257,win_1258
--enable-threads --disable-plugin --enable-obsolete
--enable-languages=c,c++</div>
<div>Thread model: posix</div>
<div>gcc version 4.8.2 20131016 (RTEMS
4.11-RSB-40d25dc8fe6da6b93b295d9b42632c1d3338a97a-1,gcc-4.8.2/newlib-2.1.0)
(GCC)</div>
</div>
<div>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
</div>
<div><br>
</div>
<div>Please let me know how to resolve this problem ?</div>
<div><br>
</div>
<div>Thomas Kim</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
users mailing list
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a>
<a href="http://lists.rtems.org/mailman/listinfo/users" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<pre cols="72">--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
</pre>
</font></span></div>
</blockquote></div><br></div>