Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAS DS-213+, qoriq arch #1353

Closed
NightFalcon650 opened this issue Nov 23, 2014 · 8 comments
Closed

NAS DS-213+, qoriq arch #1353

NightFalcon650 opened this issue Nov 23, 2014 · 8 comments

Comments

@NightFalcon650
Copy link

Ubuntu 14.10 and spksrc installed
NAS: DS-213+
Arch: Qoriq

I'm trying to cross compile node.js for my nas but i get the message that it's not supported.

Why isn't my nas supported?
And when would it be supported or could someone make a work around so it's possible to install on my nas???

Hereś the readout:

markv@AcerLinux-PC:$ git clone http://github.com/SynoCommunity/spksrc.git
Cloning into 'spksrc'...
remote: Counting objects: 15750, done.
remote: Compressing objects: 100% (97/97), done.
remote: Total 15750 (delta 42), reused 123 (delta 39)
Receiving objects: 100% (15750/15750), 5.76 MiB | 1.85 MiB/s, done.
Resolving deltas: 100% (8269/8269), done.
Checking connectivity... done.
markv@AcerLinux-PC:
$ cd spksrc/
markv@AcerLinux-PC:/spksrc$ make setup
Creating local configuration "local.mk"...
Setting default toolchain version to DSM-4.3
markv@AcerLinux-PC:
/spksrc$ cd spk/node
markv@AcerLinux-PC:/spksrc/spk/node$ make arch-qoriq-5.0
===> Building package for arch qoriq-5.0
make[1]: Map '/home/markv/spksrc/spk/node' wordt binnengegaan
===> Set up toolchain
===> Downloading files for syno-qoriq
wget http://sourceforge.net/projects/dsgpl/files/DSM%205.0%20Tool%20Chains/PowerPC%20QorIQ%20Linux%202.6.32/gcc4374_eglibc2874_qoriq-GPL.tgz
2014-11-23 18:20:11 URL:http://netcologne.dl.sourceforge.net/project/dsgpl/DSM%205.0%20Tool%20Chains/PowerPC%20QorIQ%20Linux%202.6.32/gcc4374_eglibc2874_qoriq-GPL.tgz [187703061/187703061] -> "gcc4374_eglibc2874_qoriq-GPL.tgz.part" [1]
===> Verifying files for syno-qoriq
===> Checking sha1sum of file gcc4374_eglibc2874_qoriq-GPL.tgz
===> Checking sha256sum of file gcc4374_eglibc2874_qoriq-GPL.tgz
===> Checking md5sum of file gcc4374_eglibc2874_qoriq-GPL.tgz
/home/markv/spksrc/toolchains/syno-qoriq-5.0/../../distrib/gcc4374_eglibc2874_qoriq-GPL.tgz
===> Extracting for syno-qoriq
tar -xzpf /home/markv/spksrc/toolchains/syno-qoriq-5.0/../../distrib/gcc4374_eglibc2874_qoriq-GPL.tgz -C /home/markv/spksrc/toolchains/syno-qoriq-5.0/work
===> Patching for syno-qoriq
===> Fixing libtool files for syno-qoriq
===> Processing dependencies of node
make[2]: Map '/home/markv/spksrc/cross/node' wordt binnengegaan
Makefile:19: *** qoriq is not a supported architecture. Gestopt.
make[2]: Map '/home/markv/spksrc/cross/node' wordt verlaten
../../mk/spksrc.depend.mk:44: recept voor doel 'depend_target' is mislukt
make[1]: *** [depend_target] Fout 2
make[1]: Map '/home/markv/spksrc/spk/node' wordt verlaten
../../mk/spksrc.spk.mk:333: recept voor doel 'arch-qoriq-5.0' is mislukt
make: [arch-qoriq-5.0] Fout 2 (genegeerd)
markv@AcerLinux-PC:
/spksrc/spk/node$

@NightFalcon650
Copy link
Author

I made a noarch spk and installed it on my DS-213+, but can't say if it works like it's supose to do, how can i check this???

I also see in the makefile that qoriq arch isn't mentioned, why is this?

@Diaoul
Copy link
Member

Diaoul commented Nov 23, 2014

Node.js isn't supported for qoriq: https://github.com/SynoCommunity/spksrc/blob/develop/cross/node/Makefile#L19

@NightFalcon650
Copy link
Author

I've seen that but why isn't it supported??
Is this support planned for the feature???

@Dr-Bean
Copy link
Contributor

Dr-Bean commented Nov 24, 2014

Qoriq (Freescale PowerPC e500 series) doesn't have all the instructions necessary to compile Node/V8. Because it's a limitation in the CPU architecture, I don't think this will be solved anytime soon.

@knut-forkalsrud
Copy link

There is an in depth discussion about the shortcomings of the CPU here:
ibmruntimes/v8ppc#100

@Dr-Bean
Copy link
Contributor

Dr-Bean commented Nov 27, 2014

Right. Seeing as there's not much we can do from here, let's close this. Keep an eye on the progress over there, maybe it'll be fixed one day.

@Dr-Bean Dr-Bean closed this as completed Nov 27, 2014
@buttonsrtoys
Copy link

This is an old thread, but I'm trying to install Node.js on my qoriq DS413 and desperately need advice. I had thought it was just going to be a bit of work, but after reading this thread -- is it not possible to compiled Node.js on a qoriq device? The route I was taking was trying to install gcc 4.8 or later (which nodejs requires) and then doing a native complie of Node.js. Am I wasting my time? E.g., I'm currently stuck on getting gcc 4.8 installed. (ipkg will only install 3.4.6).

@knut-forkalsrud
Copy link

If you refer to the V8 issue I referred to above you'll find that "there are 117 locations in the code that need to be changed to make this work (if we disable crankshaft)". This is to work around missing instructions in the CPU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants