You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Pieter van der Eems <p....@interactiveblueprints.nl> on 2013/08/07 14:34:09 UTC

Compiling couchdb on a armhf machine.

Hello.

I'm trying to compile couchdb on a arm machine with hardfloat (cpu:
RK3066, ARMv7).
OS: Debian jessie/sid.

When I compile with rake I always get an error like this:
-----------------------
/bin/bash /media/hitachi/couchdb/dependencies/icu4c-4_4/source/mkinstalldirs
uconvmsg
mkdir uconvmsg
LD_LIBRARY_PATH=../../lib:../../stubdata:../../tools/ctestfw:$LD_LIBRARY_PATH
 ../../bin/genrb -e UTF-8
-s /media/hitachi/couchdb/dependencies/icu4c-4_4/source/extra/uconv/resources
-d uconvmsg root.txt
/bin/bash /media/hitachi/couchdb/dependencies/icu4c-4_4/source/mkinstalldirs
uconvmsg
LD_LIBRARY_PATH=../../lib:../../stubdata:../../tools/ctestfw:$LD_LIBRARY_PATH
 ../../bin/genrb -e UTF-8
-s /media/hitachi/couchdb/dependencies/icu4c-4_4/source/extra/uconv/resources
-d uconvmsg fr.txt
make -f pkgdataMakefile
make[3]: Entering directory `/tmp/icu_build20130807-21270-1u7mine/extra/uconv'
rm -rf pkgdata.inc
make[3]: Leaving directory `/tmp/icu_build20130807-21270-1u7mine/extra/uconv'
LD_LIBRARY_PATH=../../lib:../../stubdata:../../tools/ctestfw:$LD_LIBRARY_PATH
 MAKEFLAGS= ../../bin/pkgdata -p uconvmsg -O pkgdata.inc -m static -s
uconvmsg -d uconvmsg -T uconvmsg uconvmsg/uconvmsg.lst
uconvmsg/uconvmsg_dat.s: Assembler messages:
uconvmsg/uconvmsg_dat.s:2: Error: junk at end of line, first
unrecognized character is `,'
uconvmsg/uconvmsg_dat.s:5: Error: unrecognized symbol type ""
Error generating assembly code for data.
pkgdata: gcc -D_REENTRANT  -g -O2 -Wall -ansi -pedantic -Wshadow
-Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long
-c -I/media/hitachi/couchdb/dependencies/icu4c-4_4/source/common
-I../../common -DPIC -fPIC -o uconvmsg/uconvmsg_dat.o
uconvmsg/uconvmsg_dat.s
-- return status = 256
g++ -g -O2 -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings
-Wno-long-long   -o ../../bin/uconv uconv.o uwmsg.o -L../../lib
-licui18n -L../../lib -licuuc -L../../lib -L../../stubdata -licudata
-lpthread -ldl -lm   uconvmsg/libuconvmsg.a
g++: error: uconvmsg/libuconvmsg.a: No such file or directory
make[2]: Leaving directory `/tmp/icu_build20130807-21270-1u7mine/extra/uconv'
make[2]: *** [../../bin/uconv] Error 1
make[1]: *** [all-recursive] Error 2
make[1]: Leaving directory `/tmp/icu_build20130807-21270-1u7mine/extra'
make: *** [all-recursive] Error 2
rake aborted!
Command failed with status (2): [make ...]
------------------------

Looks like something went wrong with the assembler.

Anyone any idea what I did wrong or how I can compile couchdb on armhf?

Greetz,
Pieter.

Re: Compiling couchdb on a armhf machine.

Posted by Joan Touzet <wo...@apache.org>.
On Wed, Aug 07, 2013 at 02:34:09PM +0200, Pieter van der Eems wrote:
> Hello.
> 
> I'm trying to compile couchdb on a arm machine with hardfloat (cpu:
> RK3066, ARMv7).
> OS: Debian jessie/sid.
> 
> When I compile with rake I always get an error like this:
> -----------------------
[snip]
> /bin/bash /media/hitachi/couchdb/dependencies/icu4c-4_4/source/mkinstalldirs

This looks like a failing of building libicu, not CouchDB itself. Have
you tried looking for a prebuilt liblicu? If you insist on compiling it
yourself, you might be best off asking on their mailing list:
  http://site.icu-project.org/contacts

-- 
Joan Touzet | joant@atypical.net | wohali everywhere else

Re: Compiling couchdb on a armhf machine.

Posted by Pieter van der Eems <p....@interactiveblueprints.nl>.
Thanks for the sugestions for compiling couchdb on an armhf machine.
I "fixed" the icu4 problem by using the latest icu version (5.2 I think).
However, after that I ran into a automake 1.11 problem (something
about the doc directory). In the end I just installed couchdb 1.2.0
from the debian repo.

Will need to revisit this later.

Greetings,
Pieter.

Re: Compiling couchdb on a armhf machine.

Posted by Peter Lemenkov <le...@gmail.com>.
2013/8/7 Pieter van der Eems <p....@interactiveblueprints.nl>:
> Hello.
>
> I'm trying to compile couchdb on a arm machine with hardfloat (cpu:
> RK3066, ARMv7).
> OS: Debian jessie/sid.

> Anyone any idea what I did wrong or how I can compile couchdb on armhf?

Proper way is to reuse system-wide prebuilt  libraries from your
distribution, as we do in Fedora:

* http://arm.koji.fedoraproject.org/koji/packageinfo?packageID=1125

Here are all necessary patches (and few Fedora-specific which you
probably won't need):

* http://pkgs.fedoraproject.org/cgit/couchdb.git/tree/

-- 
With best regards, Peter Lemenkov.