Skip to content

Instantly share code, notes, and snippets.

@teburd
Created July 7, 2011 17:16
Show Gist options
  • Save teburd/1070027 to your computer and use it in GitHub Desktop.
Save teburd/1070027 to your computer and use it in GitHub Desktop.
Build Failure
Compiling c_src/spidermonkey_drv.c
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prtpd.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prmem.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(pratom.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prerror.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prinit.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prinrval.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prnetdb.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prtime.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(ptsynch.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(ptio.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(ptthread.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(ptmisc.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(unix.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(unix_errors.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(uxproces.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(linux.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(os_Linux_x86.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prfdcach.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prmwait.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prmapopt.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(priometh.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(pripv6.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prlayer.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prlog.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prmmap.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prprf.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prscanf.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prstdio.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prcmon.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prrwlock.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prlink.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prosdep.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prseg.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prdtoa.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prenv.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prerr.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(prerrortable.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `c_src/system/lib/libnspr4.a(pripc.o)' is incompatible with i386:x86-64 output
c_src/system/lib/libnspr4.a(ptthread.o): In function `_PR_Fini':
ptthread.c:(.text.exit+0x2a): undefined reference to `pthread_getspecific'
ptthread.c:(.text.exit+0x4b): undefined reference to `pthread_setspecific'
c_src/system/lib/libnspr4.a(prmem.o): In function `_PR_InitZones':
prmem.c:(.text+0x372): undefined reference to `dlopen'
prmem.c:(.text+0x38e): undefined reference to `dlsym'
prmem.c:(.text+0x398): undefined reference to `dlclose'
c_src/system/lib/libnspr4.a(prinrval.o): In function `PR_MillisecondsToInterval':
prinrval.c:(.text+0xc8): undefined reference to `__udivdi3'
c_src/system/lib/libnspr4.a(prinrval.o): In function `PR_MicrosecondsToInterval':
prinrval.c:(.text+0x118): undefined reference to `__udivdi3'
c_src/system/lib/libnspr4.a(prinrval.o): In function `PR_IntervalToMilliseconds':
prinrval.c:(.text+0x1c8): undefined reference to `__udivdi3'
c_src/system/lib/libnspr4.a(prinrval.o): In function `PR_IntervalToMicroseconds':
prinrval.c:(.text+0x238): undefined reference to `__udivdi3'
c_src/system/lib/libnspr4.a(prtime.o): In function `PR_ExplodeTime':
prtime.c:(.text+0x45e): undefined reference to `__divdi3'
prtime.c:(.text+0x486): undefined reference to `__moddi3'
prtime.c:(.text+0x4ad): undefined reference to `__divdi3'
prtime.c:(.text+0x4cd): undefined reference to `__moddi3'
c_src/system/lib/libnspr4.a(prtime.o): In function `PR_LocalTimeParameters':
prtime.c:(.text+0xecd): undefined reference to `__divdi3'
prtime.c:(.text+0xf40): undefined reference to `__divdi3'
c_src/system/lib/libnspr4.a(ptsynch.o): In function `_PR_InitLocks':
ptsynch.c:(.text+0x1d0): undefined reference to `pthread_mutexattr_init'
ptsynch.c:(.text+0x1e0): undefined reference to `pthread_mutexattr_settype'
c_src/system/lib/libnspr4.a(ptsynch.o): In function `PRP_TryLock':
ptsynch.c:(.text+0x119e): undefined reference to `pthread_mutex_trylock'
c_src/system/lib/libnspr4.a(ptthread.o): In function `_pt_root':
ptthread.c:(.text+0x207): undefined reference to `pthread_setspecific'
ptthread.c:(.text+0x2f1): undefined reference to `pthread_setspecific'
c_src/system/lib/libnspr4.a(ptthread.o): In function `_PR_CreateThread':
ptthread.c:(.text+0x568): undefined reference to `pthread_create'
ptthread.c:(.text+0x607): undefined reference to `pthread_attr_setstacksize'
ptthread.c:(.text+0x674): undefined reference to `pthread_create'
c_src/system/lib/libnspr4.a(ptthread.o): In function `PR_JoinThread':
ptthread.c:(.text+0x967): undefined reference to `pthread_join'
c_src/system/lib/libnspr4.a(ptthread.o): In function `PR_DetachThread':
ptthread.c:(.text+0x9d9): undefined reference to `pthread_getspecific'
ptthread.c:(.text+0x9fb): undefined reference to `pthread_setspecific'
c_src/system/lib/libnspr4.a(ptthread.o): In function `PR_GetCurrentThread':
ptthread.c:(.text+0xa40): undefined reference to `pthread_getspecific'
ptthread.c:(.text+0xaa9): undefined reference to `pthread_setspecific'
c_src/system/lib/libnspr4.a(ptthread.o): In function `_PR_InitThreads':
ptthread.c:(.text+0x106d): undefined reference to `pthread_key_create'
ptthread.c:(.text+0x107f): undefined reference to `pthread_setspecific'
c_src/system/lib/libnspr4.a(ptthread.o): In function `PR_Cleanup':
ptthread.c:(.text+0x11cd): undefined reference to `pthread_setspecific'
c_src/system/lib/libnspr4.a(ptthread.o): In function `PR_SuspendAll':
ptthread.c:(.text+0x1495): undefined reference to `pthread_once'
ptthread.c:(.text+0x14df): undefined reference to `pthread_kill'
c_src/system/lib/libnspr4.a(ptthread.o): In function `PR_ResumeAll':
ptthread.c:(.text+0x16b3): undefined reference to `pthread_kill'
c_src/system/lib/libnspr4.a(prprf.o): In function `dosprintf':
prprf.c:(.text+0x117b): undefined reference to `__udivdi3'
prprf.c:(.text+0x11a3): undefined reference to `__umoddi3'
c_src/system/lib/libnspr4.a(prlink.o): In function `DLLErrorInternal.isra.0':
prlink.c:(.text+0xc7): undefined reference to `dlerror'
c_src/system/lib/libnspr4.a(prlink.o): In function `pr_FindSymbolInLib.isra.1':
prlink.c:(.text+0x179): undefined reference to `dlsym'
c_src/system/lib/libnspr4.a(prlink.o): In function `_PR_InitLinker':
prlink.c:(.text+0x1f0): undefined reference to `dlopen'
c_src/system/lib/libnspr4.a(prlink.o): In function `PR_LoadLibraryWithFlags':
prlink.c:(.text+0x719): undefined reference to `dlopen'
c_src/system/lib/libnspr4.a(prlink.o): In function `PR_UnloadLibrary':
prlink.c:(.text+0x8bf): undefined reference to `dlclose'
c_src/system/lib/libnspr4.a(prlink.o): In function `PR_GetLibraryFilePathname':
prlink.c:(.text+0xca0): undefined reference to `dladdr'
collect2: ld returned 1 exit status
ERROR: $CC c_src/driver_comm.o c_src/spidermonkey.o c_src/spidermonkey_drv.o $LDFLAGS $DRV_LDFLAGS -o priv/erlang_js_drv.so failed with error: 1
make: *** [compile] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment