Git Product home page Git Product logo

Comments (11)

natevw avatar natevw commented on September 24, 2024

Cross reference: @benoitc has managed to get CouchDB running on Raspberry Pi.

from build-couchdb.

davidoccam avatar davidoccam commented on September 24, 2024

by davidoccam » Mon Aug 27, 2012 7:03 pm
quote from talking on #refuge.io about this thread

https://friendpaste.com/6GW1BpWK2UNCAcuCexF1kM at 928 is the cause of problems
configure: error: Your compiler does not follow the C++ specification for temporary object destruction order.
needed for some soap issue in spidermonkey (I think)
Linux raspberrypi 3.2.27+ #66 PREEMPT Fri Aug 24 23:52:42 BST 2012 armv6l GNU/Linux I think armv6l is the issue

this I found instructive
/viewtopic.php?f=36&t=7268&p=156159 by widelord » Wed Jul 18, 2012 11:42 pm
Yes, just libmozjs, I extracted the tar and edited js/src/configure - check here tomorrow and I'll put a link up which contains the edited file. Here's a link to the libmozjs archive that I made changes to - worked for me but no guarantees!
http://raspberrypi.widelord.org.uk/down ... bmozjs.tgz Fri Jul 20, 2012 10:56 am
hmmm - now this is strange.
I've downloaded the new Raspian image and created a new SD card, now using my previously modified libmozjs archive fails once more with the "Your compiler does not follow the C++ specification for temporary object destruction order" error.
Back to the drawing board?
cant we just install packages libmozjs*[-dev] from the apt-repositories? Has soneone tried this? That's what I ended up doing. I installed libmozjs185-dev

I think widelord made the changes to configure and not to configure.in and his working configure gets overwritten in next build causing second failure.

This is a widespread issue and I wish to get to the real cause.

You are nearly there Widelord - I think

from build-couchdb.

natevw avatar natevw commented on September 24, 2024

Sounds like @snej was able to get an almost-working copy of CouchDB 1.2 installed simply via apt-get: http://mail-archives.apache.org/mod_mbox/couchdb-user/201207.mbox/%[email protected]%3e

The only problem he ran into was a permissions issue. So maybe a little poking into who/how that package is being maintained would answer some questions?

from build-couchdb.

snej avatar snej commented on September 24, 2024

FYI, I'm running the Raspbian distro. This is almost certainly not the same distro that the OP was trying to install on, as Raspbian was only released in July (a week or so before I did my install.) As Raspbian is now the recommended Linux to install on RPi, the OP's error might be moot by now...

from build-couchdb.

ussjoin avatar ussjoin commented on September 24, 2024

I'm running the newest Raspbian image (2012-10-28-wheezy-raspbian) and have precisely the same issue: "checking for correct temporary object destruction order" fails, and then the build terminates with failure. I need to be able to use the development versions of Couch, not the package version, so the apt-get doesn't work for me; any more ideas what might be causing this issue?

from build-couchdb.

benoitc avatar benoitc commented on September 24, 2024

spidemonkey still need a patch?
On Oct 31, 2012 6:59 AM, "ussjoin" [email protected] wrote:

I'm running the newest Raspbian image (2012-10-28-wheezy-raspbian) and
have precisely the same issue: "checking for correct temporary object
destruction order" fails, and then the build terminates with failure. I
need to be able to use the development versions of Couch, not the package
version, so the apt-get doesn't work for me; any more ideas what might be
causing this issue?


Reply to this email directly or view it on GitHubhttps://github.com//issues/58#issuecomment-9934094.

from build-couchdb.

davidoccam avatar davidoccam commented on September 24, 2024

Yes Spidermonkey will not compile without patch,
I used the following with success

CFLAGS="-O2 -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard"
CXXFLAGS="${CFLAGS}"
CHOST="armv6j-hardfloat-linux-gnueabi"

see http://www.raspberrypi.org/phpBB3/viewtopic.php?t=17983&p=191171

for chapter and verse and benchmarks on various combinations

On 31/10/12 06:21, Benoit Chesneau wrote:

spidemonkey still need a patch?
On Oct 31, 2012 6:59 AM, "ussjoin" [email protected] wrote:

I'm running the newest Raspbian image (2012-10-28-wheezy-raspbian) and
have precisely the same issue: "checking for correct temporary object
destruction order" fails, and then the build terminates with failure. I
need to be able to use the development versions of Couch, not the package
version, so the apt-get doesn't work for me; any more ideas what might be
causing this issue?


Reply to this email directly or view it on GitHubhttps://github.com//issues/58#issuecomment-9934094.


Reply to this email directly or view it on GitHub #58 (comment).

from build-couchdb.

ussjoin avatar ussjoin commented on September 24, 2024

How do you put in those flags, in the context of a rake task? I tried just setting them locally, and it didn't seem to help.

from build-couchdb.

ussjoin avatar ussjoin commented on September 24, 2024

If I run

$ CFLAGS="-O2 -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard" ./configure

Then I get the same error.

However, if I run

$ ./configure CFLAGS="-O2 -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard"

I get a few errors at the beginning of the configure, but then it completes successfully, and I can run the make.

The make crashes later, however, with a bunch of undefined references.

from build-couchdb.

ussjoin avatar ussjoin commented on September 24, 2024

Any updates on this?

from build-couchdb.

rdsqc22 avatar rdsqc22 commented on September 24, 2024

I was having this problem as well. It turns out, in the end, I didn't need to compile from source- SpiderMonkey is installable from the repository via:
sudo apt-get install libmozjs-dev
or
sudo apt-get install libmozjs185-dev
depending on which version you need.

(For me it was the latter, but I was trying to install to get JS support for elinks, not couchDB. This worked to build elinks from source with native JS support, for anyone looking to do the same)

from build-couchdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.