APE on ARM

212 views
Skip to first unread message

Jeremy Mitts

unread,
Aug 28, 2011, 2:25:39 AM8/28/11
to ape-p...@googlegroups.com
So, I'm trying to get APE running on a DreamPlug with an ARM processor. I've installed the prereqs, and I have the linux headers (though I'm not sure where to put them) and I'm getting an error about spidermonkey not being able to find a file that I can see plain as day is right there in /deps/js/src.  (jsapi.h)

Any help would be appreciated. Here's stuff you probably want to know:

# uname -a
Linux dreamplug-debian 2.6.33.6 #1 PREEMPT Tue Feb 8 03:18:41 EST 2011 armv5tel GNU/Linux

dpkg stuff:

compiler/linker/etc
ii  g++-4.4               4.4.5-8      The GNU C++ compiler
ii  g++                   4:4.4.5-1    The GNU C++ compiler
ii  libcwidget3           0.5.16-3     high-level terminal interface library for C++ (runtime files)
ii  libsigc++-2.0-0c2a    2.2.4.2-1    type-safe Signal Framework for C++ - runtime
ii  libstdc++6            4.4.5-8      The GNU Standard C++ Library v3
ii  libstdc++6-4.4-dev    4.4.5-8      The GNU Standard C++ Library v3 (development files)
ii  cpp-4.4               4.4.5-8      The GNU C preprocessor
ii  cpp                   4:4.4.5-1    The GNU C preprocessor (cpp)
ii  g++-4.4               4.4.5-8      The GNU C++ compiler
ii  g++                   4:4.4.5-1    The GNU C++ compiler
ii  gcc-4.2-base          4.2.4-6      The GNU Compiler Collection (base package)
ii  gcc-4.3-base          4.3.5-4      The GNU Compiler Collection (base package)
ii  gcc-4.4               4.4.5-8      The GNU C compiler
ii  gcc                   4:4.4.5-1    The GNU C compiler
ii  gcc-4.4-base          4.4.5-8      The GNU Compiler Collection (base package)
ii  libc6                 2.11.2-10    Embedded GNU C Library: Shared libraries
ii  libc6-dev             2.11.2-10    Embedded GNU C Library: Development Libraries and Header Files
ii  libc-bin              2.11.2-10    Embedded GNU C Library: Binaries
ii  libc-dev-bin          2.11.2-10    Embedded GNU C Library: Development binaries
ii  libstdc++6            4.4.5-8      The GNU Standard C++ Library v3
ii  libstdc++6-4.4-dev    4.4.5-8      The GNU Standard C++ Library v3 (development files)

python stuff
ii  python2.5             2.5.5-11            An interactive high-level object-oriented language (version 2.5)
ii  python2.5-minimal     2.5.5-11            A minimal subset of the Python language (version 2.5)
ii  python2.6             2.6.6-8+b1          An interactive high-level object-oriented language (version 2.6)
ii  python                2.6.6-3+squeeze6    interactive high-level object-oriented language (default version)
ii  python2.6-minimal     2.6.6-8+b1          A minimal subset of the Python language (version 2.6)
ii  python-apt            0.7.100.1+squeeze1  Python interface to libapt-pkg
ii  python-apt-common     0.7.100.1+squeeze1  Python interface to libapt-pkg (locales)
ii  python-bluez          0.18-1+b1           Python wrappers around BlueZ for rapid bluetooth development
ii  python-central        0.6.16+nmu1         register and build utility for Python packages
ii  python-chardet        2.0.1-1             universal character encoding detector
ii  python-dbus           0.83.1-1            simple interprocess messaging system (Python interface)
ii  python-debian         0.1.18              Python modules to work with Debian-related data formats
ii  python-gobject        2.21.4+is.2.21.3-1  Python bindings for the GObject library
ii  python-minimal        2.6.6-3+squeeze6    minimal subset of the Python language (default version)
ii  python-support        1.0.10              automated rebuilding support for Python modules
ii  python-xapian         1.2.3-3             Xapian search engine interface for Python

mysql stuff
ii  libmysqlclient16      5.1.49-3    MySQL database client library
ii  libmysqlclient-dev    5.1.49-3    MySQL database development files





Log of output from ./build.sh > log 2>>log


make lib
make[1]: Entering directory `/root/APE-Source/APE-Project-APE_Server-7368a9c/modules/deps/mysac'
make[1]: Nothing to be done for `lib'.
make[1]: Leaving directory `/root/APE-Source/APE-Project-APE_Server-7368a9c/modules/deps/mysac'
rm -f udns_dn.o udns_dntosp.o udns_parse.o udns_resolver.o udns_init.o udns_misc.o udns_XtoX.o udns_rr_a.o udns_rr_ptr.o udns_rr_mx.o udns_rr_txt.o udns_bl.o udns_rr_srv.o udns_rr_naptr.o udns_codes.o 
rm -f udns_dn.lo udns_dntosp.lo udns_parse.lo udns_resolver.lo udns_init.lo udns_misc.lo udns_XtoX.lo udns_rr_a.lo udns_rr_ptr.lo udns_rr_mx.lo udns_rr_txt.lo udns_bl.lo udns_rr_srv.lo udns_rr_naptr.lo udns_codes.lo
rm -f dnsget.o rblcheck.o ex-rdns.o
rm -f build-stamp config.log
configure... udns package
checking for C compiler... gcc
checking whenever C compiler (gcc) is GNU CC... yes
checking whenever the C compiler (gcc -Wall -W -O2 -pipe)
           can produce executables... yes
checking for ranlib... ranlib
checking for getopt()... yes
checking for inet_pton() && inet_ntop()... yes
checking for socklen_t... yes
checking for libraries needed for socket and connect... ok (none needed)
checking for IPv6... yes
checking for poll()... yes
creating config.h... unchanged
creating Makefile... ok
creating config.status... ok
all done.
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_dn.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_dntosp.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_parse.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_resolver.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_init.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_misc.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_XtoX.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_rr_a.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_rr_ptr.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_rr_mx.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_rr_txt.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_bl.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_rr_srv.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_rr_naptr.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_codes.c
rm -f libudns.a
ar rv libudns.a udns_dn.o udns_dntosp.o udns_parse.o udns_resolver.o udns_init.o udns_misc.o udns_XtoX.o udns_rr_a.o udns_rr_ptr.o udns_rr_mx.o udns_rr_txt.o udns_bl.o udns_rr_srv.o udns_rr_naptr.o udns_codes.o 
a - udns_dn.o
a - udns_dntosp.o
a - udns_parse.o
a - udns_resolver.o
a - udns_init.o
a - udns_misc.o
a - udns_XtoX.o
a - udns_rr_a.o
a - udns_rr_ptr.o
a - udns_rr_mx.o
a - udns_rr_txt.o
a - udns_bl.o
a - udns_rr_srv.o
a - udns_rr_naptr.o
a - udns_codes.o
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c dnsget.c
gcc -Wall -W -O2 -pipe -o dnsget dnsget.o -L. -ludns
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c rblcheck.c
gcc -Wall -W -O2 -pipe -o rblcheck rblcheck.o -L. -ludns
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c ex-rdns.c
gcc -Wall -W -O2 -pipe -o ex-rdns ex-rdns.o -L. -ludns
loading cache ./config.cache
checking host system type... armv5tel-unknown-linux-gnueabi
checking target system type... armv5tel-unknown-linux-gnueabi
checking build system type... armv5tel-unknown-linux-gnueabi
checking for mawk... (cached) mawk
checking for perl5... (cached) /usr/bin/perl
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for c++... (cached) c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for as... (cached) /usr/bin/as
checking for ar... (cached) ar
checking for ld... (cached) ld
checking for strip... (cached) strip
checking for windres... no
checking whether gcc and cc understand -c and -o together... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking how to run the C++ preprocessor... (cached) c++ -E
checking for sb-conf... no
checking for ve... no
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln -s works... (cached) yes
checking for minimum required perl version >= 5.006... 5.010001
checking for full perl installation... yes
checking for python2.7... (cached) /usr/bin/python2.6
checking for doxygen... (cached) :
checking for autoconf... (cached) :
checking for unzip... (cached) /usr/bin/unzip
checking for zip... (cached) /usr/bin/zip
checking for makedepend... no
checking for xargs... (cached) /usr/bin/xargs
checking for gmake... (cached) /usr/bin/make
checking for X... (cached) no
checking whether the compiler supports -Wno-invalid-offsetof... yes
checking whether the compiler supports -Wno-variadic-macros... yes
checking whether the compiler supports -Werror=return-type... yes
checking whether ld has archive extraction flags... (cached) yes
checking that static assertion macros used in autoconf tests work... (cached) yes
checking for 64-bit OS... no
checking for Python version >= 2.5 but not 3.x... yes
checking for ANSI C header files... (cached) yes
checking for working const... (cached) yes
checking for mode_t... (cached) yes
checking for off_t... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking for __stdcall... (cached) no
checking for ssize_t... (cached) yes
checking for st_blksize in struct stat... (cached) yes
>>  NOTE: Somewhere in here it should check "C++ specification for temporary object     <<
>>  destruction order" which my setup fails. I commented that check out just to see what the  <<
>>  next sticking point would be. If you have any idea how I can fix that, it'd be great! :)  <<
checking for siginfo_t... (cached) yes
checking for stdint.h... (cached) yes
checking for the size of void*... (cached) 4
checking for the alignment of void*... (cached) 4
checking for the size of double... (cached) 8
checking for int16_t... (cached) yes
checking for int32_t... (cached) yes
checking for int64_t... (cached) yes
checking for int64... (cached) no
checking for uint... (cached) yes
checking for uint_t... (cached) no
checking for uint16_t... (cached) no
checking for uname.domainname... (cached) yes
checking for uname.__domainname... (cached) no
checking for visibility(hidden) attribute... (cached) yes
checking for visibility(default) attribute... (cached) yes
checking for visibility pragma support... (cached) yes
checking For gcc visibility bug with class-level attributes (GCC bug 26905)... (cached) yes
checking For x86_64 gcc visibility bug with builtins (GCC bug 20297)... (cached) no
checking for __force_align_arg_pointer__ attribute... (cached) no
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking for sys/byteorder.h... (cached) no
checking for compat.h... (cached) no
checking for getopt.h... (cached) yes
checking for sys/bitypes.h... (cached) yes
checking for memory.h... (cached) yes
checking for unistd.h... (cached) yes
checking for gnu/libc-version.h... (cached) yes
checking for nl_types.h... (cached) yes
checking for malloc.h... (cached) yes
checking for X11/XKBlib.h... (cached) no
checking for io.h... (cached) no
checking for sys/statvfs.h... (cached) yes
checking for sys/statfs.h... (cached) yes
checking for sys/vfs.h... (cached) yes
checking for sys/mount.h... (cached) yes
checking for sys/quota.h... (cached) yes
checking for linux/quota.h... (cached) yes
checking for mmintrin.h... (cached) yes
checking for new... (cached) yes
checking for sys/cdefs.h... (cached) yes
checking for linux/perf_event.h... (cached) yes
checking for gethostbyname_r in -lc_r... (cached) no
checking for library containing dlopen... (cached) -ldl
checking for dlfcn.h... (cached) yes
checking for dladdr... (cached) yes
checking for socket in -lsocket... (cached) no
checking for ARM SIMD support in compiler... no
checking for ARM NEON support in compiler... yes
checking for pthread_create in -lpthreads... no
checking for pthread_create in -lpthread... yes
checking whether gcc accepts -pthread... yes
checking whether mmap() sees write()s... yes
checking whether gcc needs -traditional... (cached) no
checking for 8-bit clean memcmp... (cached) yes
checking for fchmod... (cached) yes
checking for flockfile... (cached) yes
checking for getc_unlocked... (cached) yes
checking for _getc_nolock... (cached) no
checking for getpagesize... (cached) yes
checking for lchown... (cached) yes
checking for localtime_r... (cached) yes
checking for lstat64... (cached) yes
checking for memmove... (cached) yes
checking for random... (cached) yes
checking for rint... (cached) no
checking for sbrk... (cached) yes
checking for snprintf... (cached) yes
checking for stat64... (cached) yes
checking for statvfs... (cached) yes
checking for statvfs64... (cached) yes
checking for strerror... (cached) yes
checking for strtok_r... (cached) yes
checking for truncate64... (cached) yes
checking for clock_gettime(CLOCK_MONOTONIC) and -lrt... (cached) yes
checking for wcrtomb... (cached) yes
checking for mbrtowc... (cached) yes
checking for res_ninit()... (cached) yes
checking for gnu_get_libc_version()... (cached) yes
checking for iconv in -lc... (cached) yes
checking for iconv()... (cached) yes
checking for iconv() with const input... (cached) no
checking for an implementation of va_copy()... (cached) yes
checking for an implementation of __va_copy()... (cached) yes
checking whether va_lists can be copied by value... (cached) yes
checking for ARM EABI... (cached) yes
checking for gcc 3.0 ABI... (cached) yes
checking for C++ "explicit" keyword... (cached) yes
checking for C++ "typename" keyword... (cached) yes
checking for modern C++ template specialization syntax support... (cached) yes
checking whether partial template specialization works... (cached) yes
checking whether operators must be re-defined for templates derived from templates... (cached) no
checking whether we need to cast a derived template to pass as its base class... (cached) no
checking whether the compiler can resolve const ambiguities for templates... (cached) yes
checking whether the C++ "using" keyword can change access... (cached) yes
checking whether the C++ "using" keyword resolves ambiguity... (cached) yes
checking for "std::" namespace... (cached) yes
checking whether standard template operator!=() is ambiguous... (cached) unambiguous
checking for C++ reinterpret_cast... (cached) yes
checking for C++ dynamic_cast to void*... (cached) yes
checking whether C++ requires implementation of unused virtual methods... (cached) yes
checking for trouble comparing to zero near std::operator!=()... (cached) no
checking for __thread keyword for TLS variables... (cached) yes
checking for malloc.h... (cached) yes
checking for strndup... (cached) yes
checking for posix_memalign... (cached) yes
checking for memalign... (cached) yes
checking for valloc... (cached) yes
checking for __attribute__((always_inline))... (cached) yes
checking for __attribute__((malloc))... (cached) yes
checking for __attribute__((warn_unused_result))... (cached) yes
checking for __attribute__((noreturn))... (cached) yes
checking for LC_MESSAGES... (cached) yes
checking for localeconv... (cached) yes
checking for valid optimization flags... yes
checking for __cxa_demangle... (cached) yes
checking for unwind.h... (cached) yes
checking for _Unwind_Backtrace... (cached) yes
checking for gcc -pipe support... yes
checking whether C compiler supports -fprofile-generate... yes
checking whether C++ compiler has -pedantic long long bug... no
checking for correct overload resolution with const and templates... no
checking for tm_zone tm_gmtoff in struct tm... (cached) yes
checking for posix_fallocate... yes
checking for setlocale... (cached) yes
checking for localeconv... (cached) yes
creating ./config.status
creating config/autoconf.mk
creating js-config.h
js-config.h is unchanged
invoking make to create js-config script
rm -f js-config.tmp
sed < js-config.in > js-config.tmp \
-e 's|@prefix@|/usr/local|' \
-e 's|@exec_prefix@|/usr/local|' \
-e 's|@includedir@|/usr/local/include|' \
-e 's|@libdir@|/usr/local/lib|' \
-e 's|@MOZILLA_VERSION@||' \
-e 's|@LIBRARY_NAME@|mozjs185|' \
-e 's|@NSPR_CFLAGS@||' \
-e 's|@JS_CONFIG_LIBS@| -ldl  -lm -ldl |' \
-e 's|@MOZ_JS_LIBS@|-L/usr/local/lib -lmozjs185|' \
&& mv js-config.tmp js-config && chmod +x js-config
make export
make[1]: Entering directory `/root/APE-Source/APE-Project-APE_Server-7368a9c/deps/js/src'
./jscpucfg > jsautocfg.tmp
jskwgen.cpp
make[2]: Entering directory `/root/APE-Source/APE-Project-APE_Server-7368a9c/deps/js/src/config'
nsinstall.c
gcc -o host_nsinstall.o -c  -Wall -W -Wno-unused -Wpointer-arith -W -pedantic -Wno-long-long -fno-strict-aliasing -pthread -march=armv7-a -marm -mfloat-abi=softfp -pipe  -DNDEBUG -DTRIMMED -O3 -DXP_UNIX -O3  -DUNICODE -D_UNICODE  -I. -I. -I../dist/include -I../dist/include/nsprpub      nsinstall.c
pathsub.c
gcc -o host_pathsub.o -c  -Wall -W -Wno-unused -Wpointer-arith -W -pedantic -Wno-long-long -fno-strict-aliasing -pthread -march=armv7-a -marm -mfloat-abi=softfp -pipe  -DNDEBUG -DTRIMMED -O3 -DXP_UNIX -O3  -DUNICODE -D_UNICODE  -I. -I. -I../dist/include -I../dist/include/nsprpub      pathsub.c
c++ -DMDCPUCFG=\"md/_linux.cfg\" -o host_jskwgen.o -c -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -pedantic -Wno-long-long -fno-strict-aliasing -pthread -march=armv7-a -marm -mfloat-abi=softfp -pipe -DNDEBUG -DTRIMMED -O3 -fstrict-aliasing -fomit-frame-pointer  -I. -I. -I./dist/include -I./dist/include/nsprpub     -I. -I./assembler -I./yarr  jskwgen.cpp
gcc -o nsinstall  -Wall -W -Wno-unused -Wpointer-arith -W -pedantic -Wno-long-long -fno-strict-aliasing -pthread -march=armv7-a -marm -mfloat-abi=softfp -pipe  -DNDEBUG -DTRIMMED -O3 -DXP_UNIX -O3  -DUNICODE -D_UNICODE -lpthread   -Wl,-rpath-link,/bin -Wl,-rpath-link,/usr/local/lib  host_nsinstall.o host_pathsub.o  
/root/APE-Source/APE-Project-APE_Server-7368a9c/deps/js/src/config/nsinstall -R nsinstall ../dist/bin
make[2]: Leaving directory `/root/APE-Source/APE-Project-APE_Server-7368a9c/deps/js/src/config'
make[1]: Leaving directory `/root/APE-Source/APE-Project-APE_Server-7368a9c/deps/js/src'
gcc -D_GNU_SOURCE -Wall -g -minline-all-stringops -rdynamic -I ./deps/udns-0.0.9/ src/entry.c src/sock.c src/hash.c src/handle_http.c src/cmd.c src/users.c src/channel.c src/config.c src/json.c src/json_parser.c src/plugins.c src/http.c src/extend.c src/utils.c src/ticks.c src/base64.c src/pipe.c src/raw.c src/events.c src/event_kqueue.c src/event_epoll.c src/event_select.c src/transports.c src/servers.c src/dns.c src/sha1.c src/log.c src/parser.c src/md5.c -o bin/aped -ldl -lm -lpthread ./deps/udns-0.0.9/libudns.a -I ./deps/udns-0.0.9/
gcc -D_GNU_SOURCE -Wall -g -shared -fPIC -rdynamic -Wl,-soname,libmod_spidermonkey.so -o lib/libmod_spidermonkey.so libape-spidermonkey.c -I../deps/js/src/dist/include/ -L../deps/js/src/ -ljs_static -lstdc++ -L./deps/mysac/ -I./deps/mysac/ -lmysac -lmysqlclient_r
-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
make: *** [aped] Error 1
libape-spidermonkey.c:28:19: error: jsapi.h: No such file or directory
libape-spidermonkey.c:48: error: expected declaration specifiers or ‘...’ before ‘JSObject’
libape-spidermonkey.c:48: error: expected declaration specifiers or ‘...’ before ‘JSObject’
libape-spidermonkey.c:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
libape-spidermonkey.c:63: error: expected ‘)’ before ‘*’ token
libape-spidermonkey.c:66: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ape_sm_stub’
libape-spidermonkey.c:82: error: expected specifier-qualifier-list before ‘jsval’
libape-spidermonkey.c:87: error: expected declaration specifiers or ‘...’ before ‘JSObject’
libape-spidermonkey.c:87: error: expected declaration specifiers or ‘...’ before ‘JSObject’
libape-spidermonkey.c:93: error: expected specifier-qualifier-list before ‘JSObject’

... ... the reset are probably caused by "No such file or directory" above. ... ...


Thanks,

Jeremy

"Vah! Denuone Latine loquebar? Me ineptum. Interdum modo elabitur."

Jeremy

unread,
Aug 28, 2011, 2:59:26 AM8/28/11
to ape-p...@googlegroups.com
Here's a bit of an update, but might not be helpful. I tried make from modules, and it looked like it was expecting jsapi.h to be under src in dist/inculde (ie: deps/js/src/dist/include/) so I copied  it there. Then it complained about what looked like linux kernel headers not being in the right place, so I copied those into include. Then it seemed to say that it wanted "compiler.h" in a "linux" folder underneath/inside include/ (ie: deps/js/src/dist/inculde/linux) so I stuck the linux header files in there. Now I'm getting this kind of error instead of "can't find the jsapi.h file":

I assume the weird characters are something my KiTTY just doesn't understand, ansi colors or something. You probably knew that already. :)

make: *** [aped] Error 1
In file included from ./deps/mysac/mysac.h:24,
                 from libape-spidermonkey.c:26:
/usr/include/stdlib.h:140: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__ctype_get_mb_cur_maxâ
In file included from /usr/include/sys/select.h:46,
                 from /usr/include/sys/types.h:220,
                 from /usr/include/stdlib.h:320,
                 from ./deps/mysac/mysac.h:24,
                 from libape-spidermonkey.c:26:
/usr/include/bits/time.h:70: error: redefinition of âstruct timevalâ
In file included from ./deps/mysac/mysac.h:24,
                 from libape-spidermonkey.c:26:
/usr/include/stdlib.h:337: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:367: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:369: error: nonnull argument with out-of-range
           operand number (argument 1, operand 4)
/usr/include/stdlib.h:471: error: expected â)â before â__sizeâ
/usr/include/stdlib.h:473: error: expected â)â before â__nmembâ
/usr/include/stdlib.h:485: error: expected declaration specifiers or â...â before âsize_tâ
... more errors on just about every line ...


Thanks again,


Jeremy

Wes Garland

unread,
Aug 28, 2011, 10:32:21 AM8/28/11
to ape-p...@googlegroups.com
Are you compiling on ARM, or cross-compiling?  Compiling native is much easier, as APE has no support at all for cross-compilation built into it (but it should be possible to add without major pain).

My recommendation is to build SpiderMonkey yourself, not under the control of the APE build system.  This will allow you to specify whatever --options you need to js/src/configure in order to get it building right on ARM.

ARM, BTW, *is* supported for SpiderMonkey, and I would expect APE to work on ARM as well.  Check the docs on developer.mozilla.org for more info.

This will mean hacking up the build system for APE, I hope you are comfortable with library linking, GNU make, etc.  My not-ready-for-primetime-but-stable APE fork (which adds CommonJS modules, ability to use C libs including full POSIX from script, etc) also builds APE and SpiderMonkey separately.  You might be able steal ideas from how I build: https://github.com/wesgarland/APE_Server

Wes

--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to ape-p...@googlegroups.com
To unsubscribe from this group, send email to
ape-project...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/



--
Wesley W. Garland
Director, Product Development
PageMail, Inc.
+1 613 542 2787 x 102

Jeremy Mitts

unread,
Aug 28, 2011, 1:34:07 PM8/28/11
to ape-p...@googlegroups.com
Are you compiling on ARM, or cross-compiling?

Compiling on ARM. Not cross-compiling. I've got SSH and tty access to the dreamplug. It runs on an ARM processor.

I hope you are comfortable with library linking, GNU make, etc.

Ha! I guess I'll get comfortable. I think I was trying to build spider-monkey by itself there at the end but it just wasn't working out.

Let's go back to the beginning. I'm supposed to "install linux-headers" but when I "apt-get install linux-headers" I get back a list of 30 versions I'm supposed to pick from, and none of them are for my kernel (2.6.33). What's the manual, non-apt procedure for "installing" them? I think I have the files (downloaded from full source to 2.6.33 at kernel.org) but I don't know where they go, or where to specify where I've put them, or if I've even got the right .h files.

Does anyone have experience with getting linux-header files in the right places?

Thanks...

Jeremy

"Vah! Denuone Latine loquebar? Me ineptum. Interdum modo elabitur."



Wes Garland

unread,
Aug 28, 2011, 1:49:54 PM8/28/11
to ape-p...@googlegroups.com
On 28 August 2011 13:34, Jeremy Mitts <jerm...@gmail.com> wrote:
Does anyone have experience with getting linux-header files in the right places?

I can't help you there -- I'm not really a Linux user -- but if you have the source code for your kernel, you have the kernel headers you need.  You just need to install them somehow. :)

You should consult the support channel for your Linux distro, though. APE and SpiderMonkey don't have any odd ball dependencies. This is basic "how do I compile programs" stuff.

Wes

Jeremy Mitts

unread,
Aug 28, 2011, 2:00:59 PM8/28/11
to ape-p...@googlegroups.com
I'm not really a Linux user

Me either... :)  Okay-- that makes sense. I'll find a group about linux to sort out the headers thing. But then I'll be back!! 

Thank you again,

Jeremy

"Vah! Denuone Latine loquebar? Me ineptum. Interdum modo elabitur."



--

L O

unread,
Dec 2, 2014, 7:07:56 PM12/2/14
to ape-p...@googlegroups.com, jerm...@gmail.com
What was the outcome of this? I'm currently attempting to compile APE on a Panda Board (armhf) and am running into precisely the same issue.

Any assistance would be appreciated.
Reply all
Reply to author
Forward
0 new messages