<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>T-Series中的主题 NodeJS on linux-ppc64be (T1040D4RDB)</title>
    <link>https://community.nxp.com/t5/T-Series/NodeJS-on-linux-ppc64be-T1040D4RDB/m-p/787600#M2644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to get a working copy of node 8 on the T1040. I am using the Qoriq SDK v2.0 and have tried meta-node but&amp;nbsp;the binary produced crashes on start. Cross compiling does not really work, but compiling&amp;nbsp; from source on the T1040 and executing gets a little farther, but crashes in the V8 engine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The team that supports the nodejs ppc port is from IBM, and they do not support Freescale/NXP ppc64 hardware. The support is almost there as they support linux-ppc64le and AIX-ppc64be, so I hope to add support for a linux-ppc64be target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building the node 8.11.4 release binary succeeds and node starts, but it crashes after any input (like enter).&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;$ ./configure --without-intl --without-snapshot --gdb --without-inspector
$ make -j4 node
./node
&amp;gt;
unhandled signal 4 at 000000bb709be26c nip 000000bb709be26c lr 000000bb708b39f0 code 30001
# .... ENDS IN SIG 4 (illegal instruction).....‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building with the debug configuration and running with gdb shows that the initial crash is in the native macro assembly module:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;$ ./configure --without-intl --without-snapshot --gdb --without-inspector
$ make -j4 -C ./out BUILDTYPE=Debug node
$ gdb ./out/Debug/node
&amp;gt; 
# Fatal error in ../deps/v8/src/ppc/assembler-ppc.h, line 776
# Debug check failed: !ra.is(r0).
Program received signal SIGTRAP, Trace/breakpoint trap.
v8::base::OS::Abort () at ../deps/v8/src/base/platform/platform-posix.cc:248
248 V8_IMMEDIATE_CRASH();
#0 v8::base::OS::Abort () at ../deps/v8/src/base/platform/platform-posix.cc:248
#1 0x00000000127bdf24 in V8_Fatal (file=0x12dac720 "../deps/v8/src/ppc/assembler-ppc.h", line=776, 
 format=0x12dac510 "Debug check failed: %s.") at ../deps/v8/src/base/logging.cc:126
#2 0x00000000124ff7c8 in v8::internal::Assembler::lhbrx&amp;lt;v8::internal::Register&amp;gt; (this=0x132be6e0, 
 rt=..., ra=..., rb=..., rc=v8::internal::LeaveRC) at ../deps/v8/src/ppc/assembler-ppc.h:776
#3 0x00000000124ff5f0 in v8::internal::Assembler::lhbrx&amp;lt;v8::internal::Register&amp;gt; (this=0x132be6e0, 
 dst=..., src=...) at ../deps/v8/src/ppc/assembler-ppc.h:776
#4 0x00000000124ff088 in v8::internal::RegExpMacroAssemblerPPC::LoadCurrentCharacterUnchecked (
 this=0x3fffffffcc38, cp_offset=0, characters=2)
 at ../deps/v8/src/regexp/ppc/regexp-macro-assembler-ppc.cc:1306
#5 0x00000000124fce7c in v8::internal::RegExpMacroAssemblerPPC::LoadCurrentCharacter (
 this=0x3fffffffcc38, cp_offset=0, on_end_of_input=0x0, check_bounds=true, characters=2)
 at ../deps/v8/src/regexp/ppc/regexp-macro-assembler-ppc.cc:988
#6 0x00000000121c93f0 in v8::internal::RegExpNode::EmitQuickCheck (this=0x132baaf8, 
 compiler=0x3fffffffc7e0, bounds_check_trace=0x3fffffffc668, trace=0x3fffffffbf30, 
 preload_has_checked_bounds=false, on_possible_success=0x3fffffffc078, details=0x3fffffffc08c, 
 fall_through_on_failure=true) at ../deps/v8/src/regexp/jsregexp.cc:2430‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This crash is from a debug assertion in some template code that is removed in later versions of v8, I am removing the assertion and recompiling to see if the&amp;nbsp;crash still happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any assistance or direction with this problem. I do not have much experience&amp;nbsp;with porting and can use&amp;nbsp;some suggestions for tools or techniques.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Sep 2018 21:04:18 GMT</pubDate>
    <dc:creator>patrickb-iss</dc:creator>
    <dc:date>2018-09-21T21:04:18Z</dc:date>
    <item>
      <title>NodeJS on linux-ppc64be (T1040D4RDB)</title>
      <link>https://community.nxp.com/t5/T-Series/NodeJS-on-linux-ppc64be-T1040D4RDB/m-p/787600#M2644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to get a working copy of node 8 on the T1040. I am using the Qoriq SDK v2.0 and have tried meta-node but&amp;nbsp;the binary produced crashes on start. Cross compiling does not really work, but compiling&amp;nbsp; from source on the T1040 and executing gets a little farther, but crashes in the V8 engine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The team that supports the nodejs ppc port is from IBM, and they do not support Freescale/NXP ppc64 hardware. The support is almost there as they support linux-ppc64le and AIX-ppc64be, so I hope to add support for a linux-ppc64be target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building the node 8.11.4 release binary succeeds and node starts, but it crashes after any input (like enter).&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;$ ./configure --without-intl --without-snapshot --gdb --without-inspector
$ make -j4 node
./node
&amp;gt;
unhandled signal 4 at 000000bb709be26c nip 000000bb709be26c lr 000000bb708b39f0 code 30001
# .... ENDS IN SIG 4 (illegal instruction).....‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building with the debug configuration and running with gdb shows that the initial crash is in the native macro assembly module:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;$ ./configure --without-intl --without-snapshot --gdb --without-inspector
$ make -j4 -C ./out BUILDTYPE=Debug node
$ gdb ./out/Debug/node
&amp;gt; 
# Fatal error in ../deps/v8/src/ppc/assembler-ppc.h, line 776
# Debug check failed: !ra.is(r0).
Program received signal SIGTRAP, Trace/breakpoint trap.
v8::base::OS::Abort () at ../deps/v8/src/base/platform/platform-posix.cc:248
248 V8_IMMEDIATE_CRASH();
#0 v8::base::OS::Abort () at ../deps/v8/src/base/platform/platform-posix.cc:248
#1 0x00000000127bdf24 in V8_Fatal (file=0x12dac720 "../deps/v8/src/ppc/assembler-ppc.h", line=776, 
 format=0x12dac510 "Debug check failed: %s.") at ../deps/v8/src/base/logging.cc:126
#2 0x00000000124ff7c8 in v8::internal::Assembler::lhbrx&amp;lt;v8::internal::Register&amp;gt; (this=0x132be6e0, 
 rt=..., ra=..., rb=..., rc=v8::internal::LeaveRC) at ../deps/v8/src/ppc/assembler-ppc.h:776
#3 0x00000000124ff5f0 in v8::internal::Assembler::lhbrx&amp;lt;v8::internal::Register&amp;gt; (this=0x132be6e0, 
 dst=..., src=...) at ../deps/v8/src/ppc/assembler-ppc.h:776
#4 0x00000000124ff088 in v8::internal::RegExpMacroAssemblerPPC::LoadCurrentCharacterUnchecked (
 this=0x3fffffffcc38, cp_offset=0, characters=2)
 at ../deps/v8/src/regexp/ppc/regexp-macro-assembler-ppc.cc:1306
#5 0x00000000124fce7c in v8::internal::RegExpMacroAssemblerPPC::LoadCurrentCharacter (
 this=0x3fffffffcc38, cp_offset=0, on_end_of_input=0x0, check_bounds=true, characters=2)
 at ../deps/v8/src/regexp/ppc/regexp-macro-assembler-ppc.cc:988
#6 0x00000000121c93f0 in v8::internal::RegExpNode::EmitQuickCheck (this=0x132baaf8, 
 compiler=0x3fffffffc7e0, bounds_check_trace=0x3fffffffc668, trace=0x3fffffffbf30, 
 preload_has_checked_bounds=false, on_possible_success=0x3fffffffc078, details=0x3fffffffc08c, 
 fall_through_on_failure=true) at ../deps/v8/src/regexp/jsregexp.cc:2430‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This crash is from a debug assertion in some template code that is removed in later versions of v8, I am removing the assertion and recompiling to see if the&amp;nbsp;crash still happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any assistance or direction with this problem. I do not have much experience&amp;nbsp;with porting and can use&amp;nbsp;some suggestions for tools or techniques.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2018 21:04:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/NodeJS-on-linux-ppc64be-T1040D4RDB/m-p/787600#M2644</guid>
      <dc:creator>patrickb-iss</dc:creator>
      <dc:date>2018-09-21T21:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: NodeJS on linux-ppc64be (T1040D4RDB)</title>
      <link>https://community.nxp.com/t5/T-Series/NodeJS-on-linux-ppc64be-T1040D4RDB/m-p/787601#M2645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="309323" data-username="patrickb-iss" href="https://community.nxp.com/people/patrickb-iss"&gt;Patrick Brown&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please download the latest &lt;A href="https://layers.openembedded.org/layerindex/recipe/56454/"&gt;nodejs&lt;/A&gt; 7.10.0 recipe from &lt;A class="link-titled" href="https://layers.openembedded.org/layerindex/branch/master/layer/meta-nodejs/" title="https://layers.openembedded.org/layerindex/branch/master/layer/meta-nodejs/"&gt;OpenEmbedded Layer Index - meta-nodejs&lt;/A&gt;, then put these recipes in the folder meta-openembedded/meta-oe/recipes-devtools/nodejs, and execute "bitbake nodejs".&lt;/P&gt;&lt;P&gt;Please add "nodejs" in variable IMAGE_INSTALL_append in meta-freescale/recipes-fsl/images/fsl-image-core.bb, execute "bitbake fsl-image-core" to build nodejs to the rootfs filesystem.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Oct 2018 13:40:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/NodeJS-on-linux-ppc64be-T1040D4RDB/m-p/787601#M2645</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2018-10-21T13:40:56Z</dc:date>
    </item>
  </channel>
</rss>

