Riak on 64bit ubuntu

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Riak on 64bit ubuntu

Amit Ambardekar
I can't get to build riak on my 64bit ubuntu.

Is it a common problem? I can find some tweets about it. Following this did not help.

First, I got following error

gcc -m32 -o now.o -c      -Wall -O2 -fPIC  -UDEBUG  -DNDEBUG=1 -DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 -DHAVE_VISIBILITY_PRAGMA=1 -DXP_UNIX=1 -D_GNU_SOURCE=1 -DHAVE_FCNTL_FILE_LOCKING=1 -DLINUX=1 -Di386=1 -D_REENTRANT=1  -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM   ../../mozilla/nsprpub/config/now.c
In file included from /usr/include/features.h:378,
                 from /usr/include/stdio.h:28,
                 from ../../mozilla/nsprpub/config/now.c:38:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make[2]: *** [now.o] Error 1

After getting following package

sudo apt-get install libc6-dev-i386

it gave following error

Compiling c_src/spidermonkey_drv.c
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prtpd.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prmem.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(pratom.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prerror.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prinit.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prinrval.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prnetdb.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prtime.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(ptsynch.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(ptio.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(ptthread.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(ptmisc.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(unix.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(unix_errors.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(uxproces.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(linux.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(os_Linux_x86.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prfdcach.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prmwait.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prmapopt.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(priometh.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(pripv6.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prlayer.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prlog.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prmmap.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prprf.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prscanf.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prstdio.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prcmon.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prrwlock.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prlink.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prosdep.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prseg.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prdtoa.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prenv.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prerr.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prerrortable.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(pripc.o)' is incompatible with i386:x86-64 output
c_src/libnspr4.a(prmem.o): In function `_PR_InitZones':
prmem.c:(.text+0x7b4): undefined reference to `dlopen'
prmem.c:(.text+0x7d0): undefined reference to `dlsym'
prmem.c:(.text+0x7da): undefined reference to `dlclose'
c_src/libnspr4.a(prinrval.o): In function `PR_IntervalToMicroseconds':
prinrval.c:(.text+0x93): undefined reference to `__udivdi3'
c_src/libnspr4.a(prinrval.o): In function `PR_IntervalToMilliseconds':
prinrval.c:(.text+0x103): undefined reference to `__udivdi3'
c_src/libnspr4.a(prinrval.o): In function `PR_MicrosecondsToInterval':
prinrval.c:(.text+0x19a): undefined reference to `__udivdi3'
c_src/libnspr4.a(prinrval.o): In function `PR_MillisecondsToInterval':
prinrval.c:(.text+0x1ea): undefined reference to `__udivdi3'
c_src/libnspr4.a(prtime.o): In function `PR_ExplodeTime':
prtime.c:(.text+0x28e): undefined reference to `__divdi3'
prtime.c:(.text+0x2b4): undefined reference to `__moddi3'
prtime.c:(.text+0x2e0): undefined reference to `__divdi3'
prtime.c:(.text+0x2ff): undefined reference to `__moddi3'
c_src/libnspr4.a(prtime.o): In function `PR_LocalTimeParameters':
prtime.c:(.text+0x30f5): undefined reference to `__divdi3'
prtime.c:(.text+0x31e7): undefined reference to `__divdi3'
c_src/libnspr4.a(ptsynch.o): In function `PRP_TryLock':
ptsynch.c:(.text+0x30e): undefined reference to `pthread_mutex_trylock'
c_src/libnspr4.a(ptsynch.o): In function `_PR_InitLocks':
ptsynch.c:(.text+0x12d1): undefined reference to `pthread_mutexattr_init'
ptsynch.c:(.text+0x12e1): undefined reference to `pthread_mutexattr_settype'
c_src/libnspr4.a(ptthread.o): In function `_PR_Fini':
ptthread.c:(.text+0x432): undefined reference to `pthread_getspecific'
ptthread.c:(.text+0x453): undefined reference to `pthread_setspecific'
c_src/libnspr4.a(ptthread.o): In function `PR_DetachThread':
ptthread.c:(.text+0x47c): undefined reference to `pthread_getspecific'
ptthread.c:(.text+0x49e): undefined reference to `pthread_setspecific'
c_src/libnspr4.a(ptthread.o): In function `PR_GetCurrentThread':
ptthread.c:(.text+0x4e0): undefined reference to `pthread_getspecific'
ptthread.c:(.text+0x549): undefined reference to `pthread_setspecific'
c_src/libnspr4.a(ptthread.o): In function `PR_ResumeAll':
ptthread.c:(.text+0x60b): undefined reference to `pthread_kill'
c_src/libnspr4.a(ptthread.o): In function `PR_SuspendAll':
ptthread.c:(.text+0x796): undefined reference to `pthread_once'make: *** [compile] Error 1


Thanks,
Amit
_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: Riak on 64bit ubuntu

Robert O'Brien-2
NSPR needs to be told to build for 64bit. Kevin answered this a couple
of days ago here.

http://lists.basho.com/pipermail/riak-users_lists.basho.com/2010-February/000436.html

Cheers.
Robert.

On 10 February 2010 13:00, Amit Ambardekar <[hidden email]> wrote:
> I can't get to build riak on my 64bit ubuntu.

> /usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prtpd.o)' is
> incompatible with i386:x86-64 output

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: Riak on 64bit ubuntu

Kevin Smith-5
This appears to only happen on AMD64 platforms :(

FWIW, I am very aware of just how painful the erlang_js build is for people right now and I appreciate everyone's patience and perserverance getting riak & erlang_js built. I'll be taking steps to improve the situation soon, hopefully in time for the next release.

--Kevin
On Feb 9, 2010, at 7:14 PM, Robert O'Brien wrote:

> NSPR needs to be told to build for 64bit. Kevin answered this a couple
> of days ago here.
>
> http://lists.basho.com/pipermail/riak-users_lists.basho.com/2010-February/000436.html
>
> Cheers.
> Robert.
>
> On 10 February 2010 13:00, Amit Ambardekar <[hidden email]> wrote:
>> I can't get to build riak on my 64bit ubuntu.
>
>> /usr/bin/ld: i386 architecture of input file `c_src/libnspr4.a(prtpd.o)' is
>> incompatible with i386:x86-64 output
>
> _______________________________________________
> riak-users mailing list
> [hidden email]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: Riak on 64bit ubuntu

Ryan Tilder
Robert,

A fresh pull from the tip has fixed these build problems

--Ryan


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com