Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 36C99E00E6B; Thu, 17 Sep 2015 08:55:55 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [65.126.90.13 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message X-Greylist: delayed 213 seconds by postgrey-1.32 at yocto-www; Thu, 17 Sep 2015 08:55:50 PDT Received: from mail3.multitech.com (mail3.multitech.com [65.126.90.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id D96C3E00CA0 for ; Thu, 17 Sep 2015 08:55:50 -0700 (PDT) Received: from mail3.multitech.com (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id 6FB3D84518_5FAE1B1B for ; Thu, 17 Sep 2015 15:52:17 +0000 (GMT) Received: from SVMVVWPEXCH10.dc.multitech.prv (unknown [192.168.11.10]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client CN "", Issuer "MultiTech Systems Intermediate CA 01" (not verified)) by mail3.multitech.com (Sophos Email Appliance) with ESMTPS id C0B7A8509C_5FAE1B0F for ; Thu, 17 Sep 2015 15:52:16 +0000 (GMT) Received: from [192.168.52.75] (192.168.52.75) by SVMVVWPEXCH10.dc.multitech.prv (192.168.11.10) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 17 Sep 2015 10:52:16 -0500 Message-ID: <1442505133.5509.57.camel@hatchville> From: Jeff Hatch To: Date: Thu, 17 Sep 2015 10:52:13 -0500 X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-Originating-IP: [192.168.52.75] Subject: Cross-compiling Node-RED 0.10.10 on Openembedded Yocto project LINUX X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Sep 2015 15:55:55 -0000 X-Groupsio-MsgNum: 26424 Content-Type: multipart/related; type="multipart/alternative"; boundary="=-z2K5z2oheWoQ1++UTfZA" --=-z2K5z2oheWoQ1++UTfZA Content-Type: multipart/alternative; boundary="=-5V7SV7rBrDrumQsI1wx2" --=-5V7SV7rBrDrumQsI1wx2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit I'm running into some difficulty building Node-RED 0.10.10 for an ARM architecture project. I am trying to build using the Openembedded Yocto core to cross-compile the firmware for the project I am working on. There are some custom modifications that we have made to Node-RED, primarily adding our own nodes integrated for our hardware. These changes have been integrated using diffs applied to the code from GitHub. Due to these changes, I need to follow the development procedure: # git clone https://github.com/node-red/node-red.git # cd node-red # npm install # sudo npm install -g grunt-cli # grunt build # node red Previously the build was using "npm install --production" and built successfully, and Node-RED would run just fine on our ARM based product. This is no longer sufficient for building and running Node-RED 0.10.10 in the manner we wish to build and install it because it appears that the build is now generating files that don't get created with "npm install --production". I am presuming that Node-RED 0.11.1 will have the same requirement(s). There is a command in the Yocto project bitbake recipes called oe_runnpm that allows the running of npm commands in the build with the appropriate environment all set up. This is not working with the "grunt build" command. Whether grunt is installed locally or globally the following error indicating that, from what I can tell, grunt is using the build server architecture instead of the cross-compile ARM architecture occurs: ERROR: QA Issue: Architecture did not match (40 to 62) on /work/arm926ejste-mlinux-linux-gnueabi/node-red/0.10.4-r47/packages-split/node-red/opt/node-red/node_modules/grunt-sass/node_modules/node-sass/vendor/linux-x64-11/binding.node The following is what my bitbake recipe looks like: DESCRIPTION = "Node-RED" HOMEPAGE = "http://nodered.org" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93" DEPENDS = "nodejs nodejs-native" PR = "r47" inherit npm inherit update-rc.d . . . S = "${WORKDIR}/git" INITSCRIPT_NAME = "node-red" INITSCRIPT_PARAMS = "defaults 99 21" do_install() { # npm install dependencies oe_runnpm install # npm install more stuff oe_runnpm install grunt-cli ./node_modules/grunt-cli/bin/grunt build oe_runnpm install serialport nodemailer # remove dupe deps oe_runnpm dedupe # install node-red install -d ${D}/opt/node-red cp -r * ${D}/opt/node-red/ # install -d -p ${D}/opt/node-red/nodes/mts # cp -r ${WORKDIR}/apps/lora ${D}/opt/node-red/nodes/mts/ install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/node-red.init ${D}${sysconfdir}/init.d/node-red install -d ${D}${bindir} install -m 0755 ${WORKDIR}/update-flows ${D}${bindir}/ } I am not very familiar with this grunt utility. Is there any guidance or an alternative that you could give me that might work to get this build to succeed? This error is related to grunt-sass which requires node-sass, which requires libsass. The version of node-js being integrated with this is 0.10.40. Thank You, -- Jeff Hatch Senior Software Engineer 1 (763) 717 - 5574 DIRECT 1 (763) 228 - 3603 MOBILE 2205 Woodale Drive Mounds View, MN 55112 www.multitech.com --=-5V7SV7rBrDrumQsI1wx2 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit I'm running into some difficulty building Node-RED 0.10.10 for an ARM
architecture project.  I am trying to build using the Openembedded Yocto core
to cross-compile the firmware for the project I am working on.  There are some
custom modifications that we have made to Node-RED, primarily adding our own
nodes integrated for our hardware.  These changes have been integrated using
diffs applied to the code from GitHub.  Due to these changes, I need to follow
the development procedure:

# git clone https://github.com/node-red/node-red.git

# cd node-red

# npm install

# sudo npm install -g grunt-cli

# grunt build

# node red

Previously the build was using "npm install --production" and built
successfully, and Node-RED would run just fine on our ARM based product.  This
is no longer sufficient for building and running Node-RED 0.10.10 in the manner
we wish to build and install it because it appears that the build is now
generating files that don't get created with "npm install --production".  I am
presuming that Node-RED 0.11.1 will have the same requirement(s).

There is a command in the Yocto project bitbake recipes called oe_runnpm that
allows the running of npm commands in the build with the appropriate
environment all set up.  This is not working with the "grunt build" command. 
Whether grunt is installed locally or globally the following error indicating that,
from what I can tell, grunt is using the build server architecture instead of
the cross-compile ARM architecture occurs:

ERROR: QA Issue: Architecture did not match (40 to 62) on /work/arm926ejste-mlinux-linux-gnueabi/node-red/0.10.4-r47/packages-split/node-red/opt/node-red/node_modules/grunt-sass/node_modules/node-sass/vendor/linux-x64-11/binding.node

The following is what my bitbake recipe looks like:


DESCRIPTION = "Node-RED"
HOMEPAGE = "http://nodered.org"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
DEPENDS = "nodejs nodejs-native"
PR = "r47"

inherit npm
inherit update-rc.d

.
.
.

S = "${WORKDIR}/git"

INITSCRIPT_NAME = "node-red"
INITSCRIPT_PARAMS = "defaults 99 21"

do_install() {
    # npm install dependencies
    oe_runnpm install
    # npm install more stuff
    oe_runnpm install grunt-cli
    ./node_modules/grunt-cli/bin/grunt build
  
    oe_runnpm install serialport nodemailer

    # remove dupe deps
    oe_runnpm dedupe

    # install node-red
    install -d ${D}/opt/node-red
    cp -r * ${D}/opt/node-red/

    # install -d -p ${D}/opt/node-red/nodes/mts
    # cp -r ${WORKDIR}/apps/lora ${D}/opt/node-red/nodes/mts/

    install -d ${D}${sysconfdir}/init.d
    install -m 0755 ${WORKDIR}/node-red.init ${D}${sysconfdir}/init.d/node-red

    install -d ${D}${bindir}
    install -m 0755 ${WORKDIR}/update-flows ${D}${bindir}/
}


I am not very familiar with this grunt utility.  Is there any guidance or an
alternative that you could give me that might work to get this build to
succeed?  This error is related to grunt-sass which requires node-sass, which
requires libsass.  The version of node-js being integrated with this is 0.10.40.

Thank You,

--
Jeff Hatch
Senior Software Engineer


1 (763) 717 - 5574   DIRECT
1 (763) 228 - 3603   MOBILE

2205 Woodale Drive 
Mounds View, MN 55112

www.multitech.com



--=-5V7SV7rBrDrumQsI1wx2-- --=-z2K5z2oheWoQ1++UTfZA Content-ID: <1442504354.5509.48.camel@hatchville> Content-Disposition: attachment; filename="Mulitech.jpg" Content-Type: image/jpeg; name="Mulitech.jpg" Content-Transfer-Encoding: base64 /9j/4AAQSkZJRgABAQAAZABkAAD/7AARRHVja3kAAQAEAAAAPAAA/9sAQwAEAwMEAwMEBAQEBQUE BQcLBwcGBgcOCgoICxAOEREQDhAPEhQaFhITGBMPEBYfFxgbGx0dHREWICIfHCIaHB0c/9sAQwEF BQUHBgcNBwcNHBIQEhwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwc HBwcHBwc/8AAEQgAIQCrAwERAAIRAQMRAf/EAB0AAAEFAQEBAQAAAAAAAAAAAAADBQYHCAQCAQn/ xABDEAABAwMCBAIGBAkNAQAAAAABAgMEBQYRAAcSEyExCEEUIjJRYXF0gbGyFRY2NzhSdZShFzRC VVZyc3aRs8LD0dL/xAAbAQEAAwEBAQEAAAAAAAAAAAAAAgQGBQMBB//EADcRAAAFAgIGCAUDBQAA AAAAAAABAgMEBRESEwYUITFxsTI0NUFRcpHBIjNh0fBSoeEjJIGi8f/aAAwDAQACEQMRAD8A3ZHr lMlSAxHqMR185w228lSvj0B1M2nEpxKSY8ieQo8KVEOiVNjwGS9KfaYZGAVuqCU5+Z1EkmroialE lOJQQTW6aqKqUKhFMVJ4S8Hk8APuJzjOpZTl8OE7iOa3hxYisFYU+LPaLsSS1IaBxxtLCxn5g6ip Jl0h9QtKuidwkis05yUYqJ8VUoHHJS8krz7sZzr7gXbFh2CJPN3w4iuBmt01+QYzVQiuSeo5SHkl eR8M519NpxKcWE7ATrZnhxFcEutU2nr5cuoRY7hGQl15KTj5E6IbWvalJgp5COkoiCH4zUX+t6f+ 9I/91LV3v0n6COsM/rL1HtVfpTbLb6qlDSw6SEOF9ISsjvg56489RynL4cJiee3hxYisEpd00Knp ZMys06OH08bZelIRzE/rDJ6j4jUTJS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