Skip to main content

Build Error using arm-linux 3.3.2 toolchain

1 reply [Last post]
pkesseli
Offline
Joined: 2010-04-09

Hi everyone

I tried compiling Phone ME using the following command:

cdc/build/linux-arm-generic# make JDK_HOME=/opt/java/jdk1.6.0_19 CVM_TARGET_TOOLS_PREFIX=/opt/toolchains/UC-7112+/arm-linux/bin/arm-linux- J2ME_CLASSLIB=foundation

receiving this error:

cc /home/beo/Downloads/phoneme_advanced_mr2/cdc/src/linux/native/java/net/net_util_md.c
In file included from /opt/toolchains/UC-7112+/arm-linux/arm-linux/sys-include/net/route.h:28,
from ../../src/linux/native/java/net/net_util_md.c:41:
/opt/toolchains/UC-7112+/arm-linux/arm-linux/sys-include/net/dst.h:30: error: parse error before "atomic_t"
/opt/toolchains/UC-7112+/arm-linux/arm-linux/sys-include/net/dst.h:61: error: parse error before "tclassid"

When adding these lines to my config.h:

#include
#include
struct kmem_cache_s;
typedef struct kmem_cache_s kmem_cache_t;

The build continues somewhat further and then crashes with this message:

cc /home/beo/Downloads/phoneme_advanced_mr2/cdc/src/linux/native/java/net/net_util_md.c
In file included from /opt/toolchains/UC-7112+/arm-linux/arm-linux/sys-include/linux/sched.h:18,
from /opt/toolchains/UC-7112+/arm-linux/arm-linux/sys-include/net/inetpeer.h:14,
from /opt/toolchains/UC-7112+/arm-linux/arm-linux/sys-include/net/route.h:29,
from ../../src/linux/native/java/net/net_util_md.c:41:
/opt/toolchains/UC-7112+/arm-linux/arm-linux/sys-include/asm/semaphore.h:18: error: parse error before "wait_queue_head_t"

I am taking it that I might receive dozens of these errors, which I cannot safely debug all myself. What might be the problem behind these issues? Is my toolchain misconfigured?

My target system is a MOXA UC-7112+, and I am using its 1.2 toolchain.
http://www.moxa.com/product/UC-7112_Plus.htm

Thanks for any suggestions and best regards

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pkesseli
Offline
Joined: 2010-04-09

Pardon me, the headers I added to config.h look somewhat truncated:

Here's the list again:
#include
#include
struct kmem_cache_s;
typedef struct kmem_cache_s kmem_cache_t;

I used backslashes instead of slashes to avoid truncation.