{"action":"closed","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/4473","labels_url":"https://api.github.com/repos/nodejs/node/issues/4473/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/4473/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/4473/events","html_url":"https://github.com/nodejs/node/issues/4473","id":124288960,"number":4473,"title":"Raspberry Pi armv6 build error: MemoryBarrier() is not implemented on this platform.","user":{"login":"linkn3echo","id":16481311,"avatar_url":"https://avatars.githubusercontent.com/u/16481311?v=3","gravatar_id":"","url":"https://api.github.com/users/linkn3echo","html_url":"https://github.com/linkn3echo","followers_url":"https://api.github.com/users/linkn3echo/followers","following_url":"https://api.github.com/users/linkn3echo/following{/other_user}","gists_url":"https://api.github.com/users/linkn3echo/gists{/gist_id}","starred_url":"https://api.github.com/users/linkn3echo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linkn3echo/subscriptions","organizations_url":"https://api.github.com/users/linkn3echo/orgs","repos_url":"https://api.github.com/users/linkn3echo/repos","events_url":"https://api.github.com/users/linkn3echo/events{/privacy}","received_events_url":"https://api.github.com/users/linkn3echo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/arm","name":"arm","color":"9944dd"},{"url":"https://api.github.com/repos/nodejs/node/labels/freebsd","name":"freebsd","color":"9944dd"},{"url":"https://api.github.com/repos/nodejs/node/labels/v8","name":"v8","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-30T00:56:46Z","updated_at":"2015-12-30T10:18:13Z","closed_at":"2015-12-30T10:18:12Z","body":"# Overview\r\nI am attempting to build node from source on my raspberry pi (2011) running FreeBSD 11 Current.  The current ports only support two architectures as noted in the [Makefile - Line 25](http://svnweb.freebsd.org/ports/head/www/node/Makefile?view=markup&pathrev=404617)\r\n\r\n> ONLY_FOR_ARCHS= i386 amd64\r\n\r\nThe end goals is to be able to serve up a dashing dashboard from the Raspberry Pi.\r\n\r\n# Troubleshooting\r\n\r\nI have performed the following steps which have all resulted in the error below:\r\n\r\n>../deps/v8/src/base/atomicops_internals_arm_gcc.h:54:2: error: MemoryBarrier() is not implemented on this platform.\r\n>#error MemoryBarrier() is not implemented on this platform.\r\n\r\n## Node-v4.2.4\r\n\r\n1. Downloaded [node-v4.2.4.tar.gz](https://nodejs.org/download/release/v4.2.4/node-v4.2.4.tar.gz)\r\n2. Unzipped / un-tarred the file.\r\n3. Cd'd into node-v4.2.4\r\n4. Ran configure \r\n\r\n>./configure --dest-os=freebsd --dest-cpu=arm\r\n\r\n5. Ran make, and recieved the following error after a few minutes\r\n\r\n>In file included from ../deps/v8/src/base/atomicops.h:150:\r\n>../deps/v8/src/base/atomicops_internals_arm_gcc.h:54:2: error: MemoryBarrier() is not implemented on >this platform.\r\n>#error MemoryBarrier() is not implemented on this platform.\r\n> ^\r\n>1 error generated.\r\n>deps/v8/tools/gyp/v8_base.target.mk:395: recipe for target '/data/pkg_src/node->v4.2.4/out/Release/obj.target/v8_base/deps/v8/src/accessors.o' failed\r\n>gmake[2]: *** [/data/pkg_src/node-v4.2.4/out/Release/obj.target/v8_base/deps/v8/src/accessors.o] Error >1\r\n>gmake[2]: Leaving directory '/data/pkg_src/node-v4.2.4/out'\r\n>Makefile:45: recipe for target 'node' failed\r\n>gmake[1]: *** [node] Error 2\r\n>gmake[1]: Leaving directory '/data/pkg_src/node-v4.2.4'\r\n>*** Error code 2\r\n\r\n## Node-v5.3.0\r\n\r\nSame steps as v4.2.4 but with the 5.3.0 package.  Produces the same error message.\r\n\r\n>In file included from ../deps/v8/src/base/atomicops.h:150:\r\n../deps/v8/src/base/atomicops_internals_arm_gcc.h:54:2: error: MemoryBarrier() is not implemented on this platform.\r\n#error MemoryBarrier() is not implemented on this platform.\r\n ^\r\n1 error generated.\r\ndeps/v8/tools/gyp/v8_base.target.mk:411: recipe for target '/data/pkg_src/node-v5.3.0/out/Release/obj.target/v8_base/deps/v8/src/accessors.o' failed\r\ngmake[2]: *** [/data/pkg_src/node-v5.3.0/out/Release/obj.target/v8_base/deps/v8/src/accessors.o] Error 1\r\ngmake[2]: Leaving directory '/data/pkg_src/node-v5.3.0/out'\r\nMakefile:45: recipe for target 'node' failed\r\ngmake[1]: *** [node] Error 2\r\ngmake[1]: Leaving directory '/data/pkg_src/node-v5.3.0'\r\n*** Error code 2\r\n\r\n\r\n## Node - Master Branch\r\n\r\nOnly difference here is I had to clone the repo verse downloading the source tarball.\r\n\r\n>In file included from ../deps/v8/src/base/atomicops.h:150:\r\n../deps/v8/src/base/atomicops_internals_arm_gcc.h:54:2: error: MemoryBarrier() is not implemented on this platform.\r\n#error MemoryBarrier() is not implemented on this platform.\r\n ^\r\n1 error generated.\r\ndeps/v8/tools/gyp/v8_base.target.mk:424: recipe for target '/data/pkg_src/node/out/Release/obj.target/v8_base/deps/v8/src/accessors.o' failed\r\ngmake[2]: *** [/data/pkg_src/node/out/Release/obj.target/v8_base/deps/v8/src/accessors.o] Error 1\r\ngmake[2]: Leaving directory '/data/pkg_src/node/out'\r\nMakefile:45: recipe for target 'node' failed\r\ngmake[1]: *** [node] Error 2\r\ngmake[1]: Leaving directory '/data/pkg_src/node'\r\n*** Error code 2\r\n\r\n## FreeBSD Info\r\n\r\n* Uname output : uname -a\r\n\r\n> FreeBSD status_board 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r291824: Fri Dec  4 16:01:07 MST 2015     brd@hive.raspbsd.org:/usr/local/raspbsd/obj/RPI-B/obj/arm.armv6/usr/local/raspbsd/src/common/sys/RPI-B  arm\r\n\r\n* Installed ports / packages\r\n\r\n===>>> Root ports (No dependencies, not depended on)\r\n===>>> dialog4ports-0.1.5_2\r\n===>>> gmake-lite-4.1_1\r\n===>>> libexecinfo-1.1_3\r\n===>>> pkg-1.6.2\r\n===>>> pkgconf-0.9.12_1\r\n===>>> portmaster-3.17.8_1\r\n===>>> 6 root ports\r\n\r\n===>>> Trunk ports (No dependencies, are depended on)\r\n===>>> autoconf-wrapper-20131203\r\n===>>> automake-wrapper-20131203\r\n===>>> ca_root_nss-3.20.1\r\n===>>> cmake-modules-3.4.1\r\n===>>> compositeproto-0.4.2\r\n===>>> cscope-15.8b\r\n===>>> ctags-5.8\r\n===>>> cvsps-2.1_1\r\n===>>> damageproto-1.2.1\r\n===>>> dri2proto-2.8\r\n===>>> expat-2.1.0_3\r\n===>>> fixesproto-5.0\r\n===>>> font-util-1.3.1\r\n===>>> freetype2-2.6_1\r\n===>>> glproto-1.4.17\r\n===>>> graphite2-1.3.3\r\n===>>> hicolor-icon-theme-0.15\r\n===>>> icu-55.1\r\n===>>> indexinfo-0.2.4\r\n===>>> inputproto-2.3.1\r\n===>>> jbigkit-2.1_1\r\n===>>> jpeg-turbo-1.4.2\r\n===>>> jsoncpp-0.6.0.r2_2\r\n===>>> kbproto-1.0.7\r\n===>>> libdevq-0.0.2_1\r\n===>>> libedit-3.1.20150325_1\r\n===>>> libevent2-2.0.22_1\r\n===>>> libiconv-1.14_9\r\n===>>> libpthread-stubs-0.3_6\r\n===>>> libxml2-2.9.3\r\n===>>> libyaml-0.1.6_2\r\n===>>> lzo2-2.09\r\n===>>> mDNSResponder-576.30.4\r\n===>>> pciids-20151205\r\n===>>> pcre-8.37_4\r\n===>>> perl5-5.20.3_8\r\n===>>> pixman-0.32.8\r\n===>>> png-1.6.20\r\n===>>> randrproto-1.5.0\r\n===>>> renderproto-0.11.1\r\n===>>> tcl86-8.6.4\r\n===>>> trousers-tddl-0.3.10_7\r\n===>>> videoproto-2.3.2\r\n===>>> xextproto-7.3.0\r\n===>>> xf86vidmodeproto-2.3.1\r\n===>>> xineramaproto-1.2.1\r\n===>>> xproto-7.0.28\r\n===>>> 47 trunk ports\r\n\r\n===>>> Branch ports (Have dependencies, are depended on)\r\n===>>> atk-2.16.0\r\n===>>> autoconf-2.69\r\n===>>> binutils-2.25.1\r\n===>>> cairo-1.14.2_1,2\r\n===>>> cups-client-2.0.3_2\r\n===>>> curl-7.46.0_1\r\n===>>> dejavu-2.35\r\n===>>> encodings-1.0.4_3,1\r\n===>>> font-bh-ttf-1.0.3_3\r\n===>>> font-misc-ethiopic-1.0.3_3\r\n===>>> font-misc-meltho-1.0.3_3\r\n===>>> fontconfig-2.11.1_1,1\r\n===>>> gbm-11.0.6\r\n===>>> gdk-pixbuf2-2.32.1\r\n===>>> gettext-runtime-0.19.6\r\n===>>> glib-2.44.1_2\r\n===>>> gmp-5.1.3_2\r\n===>>> gnutls-3.3.17.1\r\n===>>> gtk-update-icon-cache-2.24.28\r\n===>>> gtk2-2.24.28_1\r\n===>>> harfbuzz-1.0.6\r\n===>>> jasper-1.900.1_15\r\n===>>> libEGL-11.0.6\r\n===>>> libGL-11.0.6\r\n===>>> libICE-1.0.9_1,1\r\n===>>> libSM-1.2.2_3,1\r\n===>>> libX11-1.6.3,1\r\n===>>> libXau-1.0.8_3\r\n===>>> libXcomposite-0.4.4_3,1\r\n===>>> libXcursor-1.1.14_3\r\n===>>> libXdamage-1.1.4_3\r\n===>>> libXdmcp-1.1.2\r\n===>>> libXext-1.3.3_1,1\r\n===>>> libXfixes-5.0.1_3\r\n===>>> libXft-2.3.2_1\r\n===>>> libXi-1.7.5,1\r\n===>>> libXinerama-1.1.3_3,1\r\n===>>> libXpm-3.5.11_4\r\n===>>> libXrandr-1.5.0\r\n===>>> libXrender-0.9.9\r\n===>>> libXt-1.1.5,1\r\n===>>> libXv-1.0.10_3,1\r\n===>>> libXvMC-1.0.9\r\n===>>> libXxf86vm-1.1.4_1\r\n===>>> libarchive-3.1.2_4,1\r\n===>>> libdrm-2.4.65_1,1\r\n===>>> libffi-3.2.1\r\n===>>> libfontenc-1.1.3\r\n===>>> libgcrypt-1.6.4_2\r\n===>>> libglapi-11.0.6\r\n===>>> libgpg-error-1.20_1\r\n===>>> libidn-1.31\r\n===>>> libpciaccess-0.13.4\r\n===>>> libtasn1-4.7\r\n===>>> libxcb-1.11.1\r\n===>>> libxshmfence-1.2\r\n===>>> llvm36-3.6.2_2\r\n===>>> lua52-5.2.4\r\n===>>> m4-1.4.17_1,1\r\n===>>> mkfontdir-1.0.7\r\n===>>> mkfontscale-1.1.2\r\n===>>> mpc-1.0.3\r\n===>>> mpfr-3.1.3\r\n===>>> nettle-2.7.1\r\n===>>> p11-kit-0.23.1_1\r\n===>>> p5-Authen-SASL-2.16_1\r\n===>>> p5-Digest-HMAC-1.03_1\r\n===>>> p5-Error-0.17024\r\n===>>> p5-GSSAPI-0.28_1\r\n===>>> p5-IO-Socket-IP-0.37\r\n===>>> p5-IO-Socket-SSL-2.021\r\n===>>> p5-Locale-gettext-1.06\r\n===>>> p5-Mozilla-CA-20141217\r\n===>>> p5-Net-SMTP-SSL-1.03\r\n===>>> p5-Net-SSLeay-1.72\r\n===>>> p5-Socket-2.021\r\n===>>> pango-1.36.8_2\r\n===>>> python-2.7_2,2\r\n===>>> python2-2_3\r\n===>>> python27-2.7.10_1\r\n===>>> python34-3.4.3_2\r\n===>>> readline-6.3.8\r\n===>>> ruby-2.1.7,1\r\n===>>> ruby21-gems-2.5.0\r\n===>>> shared-mime-info-1.4\r\n===>>> tiff-4.0.6\r\n===>>> xcb-util-0.4.0_1,1\r\n===>>> xcb-util-renderutil-0.3.9_1\r\n===>>> xorg-fonts-truetype-7.7_1\r\n===>>> 89 branch ports\r\n\r\n===>>> Leaf ports (Have dependencies, not depended on)\r\n===>>> automake-1.15_1\r\n===>>> bash-4.3.42_1\r\n===>>> cmake-3.4.1\r\n===>>> gcc-4.8.5_2\r\n===>>> gettext-tools-0.19.6\r\n===>>> git-2.6.3\r\n===>>> gmake-4.1_2\r\n===>>> help2man-1.43.3_1\r\n===>>> nmap-7.00\r\n===>>> python3-3_3\r\n===>>> rubygem-bundler-1.11.2\r\n===>>> rubygem-rake-10.4.2\r\n===>>> sudo-1.8.15\r\n===>>> tmux-2.1\r\n===>>> vim-7.4.960\r\n\r\n# Request\r\n\r\nSo I'm not really sure where to go from here on troubleshooting.  If you need me to run other compile options you can point me in the direction and I'll report back with status. "}}