linux build

31 views
Skip to first unread message

august black

unread,
Jan 18, 2010, 9:07:32 PM1/18/10
to jsl...@googlegroups.com
Hi there,

I'm very interested in the jslibs project, but am having difficulty getting it to build on my 64bit ubuntu linux
Do you happen to have a simple makefile for just the basic stuff?

I change the current Makefile so that BITS = 64 and type "make all",  then I get this:

make -w -C ../host/ -f Makefile all _opt/
make[2]: Entering directory `/home/august/down/jslibs-read-only/src/host'
gcc -c -I../common -I../../libs/js/Linux_opt_64/ -I../../libs/js/src -Wall -Wno-unused-parameter -Wno-unused-value -Wno-unused-function -Wno-multichar -g0 -O3 -s -funroll-loops -m64 -fPIC   -fno-exceptions -fno-rtti -felide-constructors -o Linux_opt_64/host.o host.cpp
In file included from ../common/jlhelper.h:19,
                 from stdafx.h:17,
                 from host.cpp:15:
../common/jlplatform.h: In function ‘void* memalign(size_t, size_t)’:
../common/jlplatform.h:255: warning: ignoring return value of ‘int posix_memalign(void**, size_t, size_t)’, declared with attribute warn_unused_result
In file included from ../common/jlhelper.h:19,
                 from stdafx.h:17,
                 from host.cpp:15:
../common/jlplatform.h: In function ‘void fpipe(FILE**, FILE**)’:
../common/jlplatform.h:402: warning: ignoring return value of ‘int pipe(int*)’, declared with attribute warn_unused_result
In file included from ../common/jlhelper.h:19,
                 from stdafx.h:17,
                 from host.cpp:15:
../common/jlplatform.h: In function ‘void JLGetAbsoluteModulePath(char*, size_t, char*)’:
../common/jlplatform.h:424: warning: ignoring return value of ‘char* getcwd(char*, size_t)’, declared with attribute warn_unused_result
../common/jlplatform.h:431: warning: ignoring return value of ‘char* getcwd(char*, size_t)’, declared with attribute warn_unused_result
../common/jlplatform.h:439: warning: ignoring return value of ‘char* getcwd(char*, size_t)’, declared with attribute warn_unused_result
In file included from ../common/jlhelper.h:45,
                 from stdafx.h:17,
                 from host.cpp:15:
../../libs/js/src/jscntxt.h: In function ‘JSContext* js_ContextFromLinkField(JSCList*)’:
../../libs/js/src/jscntxt.h:1689: warning: invalid access to non-static data member ‘JSContext::link’  of NULL object
../../libs/js/src/jscntxt.h:1689: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
host.cpp: In function ‘JSBool JSDefaultStdoutFunction(JSContext*, uintN, jsval*)’:
host.cpp:60: error: cannot convert ‘size_t*’ to ‘unsigned int*’ for argument ‘4’ to ‘JSBool JsvalToStringAndLength(JSContext*, jsval*, const char**, unsigned int*)’
host.cpp: In function ‘JSBool JSDefaultStderrFunction(JSContext*, uintN, jsval*)’:
host.cpp:79: error: cannot convert ‘size_t*’ to ‘unsigned int*’ for argument ‘4’ to ‘JSBool JsvalToStringAndLength(JSContext*, jsval*, const char**, unsigned int*)’
host.cpp: In function ‘void* WatchDogThreadProc(void*)’:
host.cpp:249: warning: no return statement in function returning non-void
host.cpp: In function ‘void* MemoryFreeThreadProc(void*)’:
host.cpp:925: warning: no return statement in function returning non-void
make[2]: *** [Linux_opt_64/host.o] Error 1
make[2]: Leaving directory `/home/august/down/jslibs-read-only/src/host'
make[1]: *** [../host/Makefile] Error 2
make[1]: Leaving directory `/home/august/down/jslibs-read-only/src/jshost'
make: *** [src/jshost] Error 2

soubok

unread,
Jan 23, 2010, 10:31:12 AM1/23/10
to jsl...@googlegroups.com
Hi,

Currently jslibs does not properly supports 64-bit Linux.
I am already working on this but I do not have enough time to complete
this task.

Franck.

> --
> Group jslibs - http://groups.google.com/group/jslibs -
> jsl...@googlegroups.com
> Unsubscribe: jslibs-un...@googlegroups.com
>

Reply all
Reply to author
Forward
0 new messages