On Tue, 2 Sep 2014 07:46:49 -0400 Michael MacIsaac <mike99...@gmail.com> wrote:
> Has anyone built node.js on zLinux? > > I can't find an RPM on RHEL 6.5 nor a s390x prebuilt package, so I > assume it has to be built manually. AFAIK node.js requires v8 JavaScript engine, which hasn't been ported to s390 yet > I untar it and invoke make, but get an error early on: > > lab141:~/node-v0.10.31 # make > ... > cc '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' > '-D_FILE_OFFSET_BITS=64' '-D_GNU_SOURCE' '-DHAVE_CONFIG_H' > '-DCARES_STATICLIB' -I../deps/cares/include -I../deps/cares/src > -I../deps/cares/config/linux -Wall -Wextra -Wno-unused-parameter > -pthread -m32 -g --std=gnu89 -pedantic -Wall -Wextra > -Wno-unused-parameter -O2 -fno-strict-aliasing -fno-tree-vrp > -fno-tree-sink -fno-omit-frame-pointer -MMD -MF > /root/node-v0.10.31/out/Release/.deps//root/node-v0.10.31/out/Release/obj.target/cares/deps/cares/src/ares_cancel.o.d.raw > -c -o > /root/node-v0.10.31/out/Release/obj.target/cares/deps/cares/src/ares_cancel.o > ../deps/cares/src/ares_cancel.c > cc1: error: unrecognized command line option "-m32" > > I don't see a man page on cc, but there is a -m32 described in the > gcc man page (???). supported options on s390(x) are -m64 and -m31, ideally projects shouldn't use them at all, the distro compilers (or distro wide options) are pre-set correctly > -m32-bit > -m16-bit > -m8-bit > Similar to the stack- data- and const-align options above, > these options > arrange for stack-frame, writable data and constants to > all be 32-bit, 16-bit > or 8-bit aligned. The default is 32-bit alignment. Dan ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/