Skip to main content

Building cldc fails

1 reply [Last post]
thehog
Offline
Joined: 2009-03-15
Points: 0

Hi,

I try to build cldc, but it fails on OS_linux.cpp. The folowing is the output of make. Note that this is for an linux_arm_926 target, but the same happens when I try to build cldc for a linux_i386 target.

What is going wrong here?

Thanks,
theHog

eddy@Wodan:~/work/phoneme/cldc/build/linux_arm_926$ make
==================================
JVMBuildSpace = /home/eddy/work/phoneme/build_output/cldc
JVMWorkSpace = /home/eddy/work/phoneme/cldc
ROMIZING = true
SHELL = /bin/sh
ENABLE_ISOLATES =
ENABLE_MONET =
==================================
created /home/eddy/work/phoneme/build_output/cldc/linux_arm_926/tools/Makefile
==============================
creating build tools...
==============================
make[1]: Entering directory `/home/eddy/work/phoneme/build_output/cldc/linux_arm_926/tools'
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
created jcc.jar
created buildtool.jar
make[1]: Leaving directory `/home/eddy/work/phoneme/build_output/cldc/linux_arm_926/tools'
done
Finding .java files ...
done
created /home/eddy/work/phoneme/build_output/cldc/linux_arm_926/loopgen/app/Makefile
==============================
creating ASM loop generator in debug mode
build flags: NO_DEBUG_SYMBOLS=true
==============================
make[1]: Entering directory `/home/eddy/work/phoneme/build_output/cldc/linux_arm_926/loopgen/app'
generating ../generated/Dependencies ...
reading database: /home/eddy/work/phoneme/cldc/src/vm/includeDB
merging source files, limit = 35
excluded from merging: JarFileUncommon.cpp
excluded from merging: OsFile.cpp
excluded from merging: OsFile_linux.cpp
excluded from merging: OsMemory.cpp
excluded from merging: OsMemory_linux.cpp
excluded from merging: OsMisc_linux.cpp
excluded from merging: OsSocket_linux.cpp
excluded from merging: OS_linux.cpp
excluded from merging: KniUncommon.cpp
excluded from merging: NativesTable.cpp
excluded from merging: FloatSupport_arm.cpp
excluded from merging: ROMImage.cpp
excluded from merging: jvmspi.cpp
excluded from merging: Main_linux.cpp
excluded from merging: BSDSocket.cpp
excluded from merging: PCSLSocket.cpp
excluded from merging: HotRoutines0.cpp
excluded from merging: HotRoutines1.cpp
excluded from merging: ReflectNatives.cpp
writing individual include files ... done (25 files.)
writing grand include file

writing dependencies file

make[1]: Leaving directory `/home/eddy/work/phoneme/build_output/cldc/linux_arm_926/loopgen/app'
make[1]: Entering directory `/home/eddy/work/phoneme/build_output/cldc/linux_arm_926/loopgen/app'
mkdir -p ../bin
mkdir -p ../../dist/bin
mkdir -p ../../dist/lib
mkdir -p ../../dist/include
==============================
compiling cldc1.1 classes (98 files)...
preverifying classes...
make[2]: Entering directory `/home/eddy/work/phoneme/build_output/cldc/linux_arm_926/loopgen/app'
installed ../../dist/bin/preverify
make[2]: Leaving directory `/home/eddy/work/phoneme/build_output/cldc/linux_arm_926/loopgen/app'
rm -rf /home/eddy/work/phoneme/build_output/cldc/classes.zip /home/eddy/work/phoneme/build_output/cldc/tmpclasses
==============================
generating ../generated/NativesTable.cpp ...
... BSDSocket.cpp
... FloatSupport_arm.cpp
... HotRoutines0.cpp
... HotRoutines1.cpp
... JarFileUncommon.cpp
... KniUncommon.cpp
... Main_linux.cpp
... NativesTable.cpp
... OS_linux.cpp
cc1plus: warnings being treated as errors
/home/eddy/work/phoneme/cldc/src/vm/os/linux/OS_linux.cpp: In function ‘void handle_other_signals(int)’:
/home/eddy/work/phoneme/cldc/src/vm/os/linux/OS_linux.cpp:376: warning: deprecated conversion from string constant to ‘char*’
/home/eddy/work/phoneme/cldc/src/vm/os/linux/OS_linux.cpp:379: warning: deprecated conversion from string constant to ‘char*’
/home/eddy/work/phoneme/cldc/src/vm/os/linux/OS_linux.cpp:382: warning: deprecated conversion from string constant to ‘char*’
/home/eddy/work/phoneme/cldc/src/vm/os/linux/OS_linux.cpp:385: warning: deprecated conversion from string constant to ‘char*’
/home/eddy/work/phoneme/cldc/src/vm/os/linux/OS_linux.cpp:388: warning: deprecated conversion from string constant to ‘char*’
make[1]: *** [OS_linux.o] Error 1
make[1]: Leaving directory `/home/eddy/work/phoneme/build_output/cldc/linux_arm_926/loopgen/app'
make: *** [_loopgen] Error 2

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
thehog
Offline
Joined: 2009-03-15
Points: 0

I came one step further by setting the flag ENABLE_COMPILATION_WARNINGS. But, the compilation still fails further on, when building the DEBUG build. Any idea's why this happens?

The following are my environment settings;

export MEHOME=$HOME/work/phoneme
export BUILD_OUTPUT_DIR=$MEHOME/build_output
export JVMWorkSpace=$MEHOME/cldc
export JVMBuildSpace=$MEHOME/build_output/cldc
export JDK_DIR=$HOME/work/j2sdk-1.4.2
export PATH=$JDK_DIR/bin:$PATH
export GNU_TOOLS_DIR=$HOME/work/toolchains/sysbas/arm-linux
export CROSS_COMPILE=arm-linux-
export ENABLE_COMPILATION_WARNINGS=true

This is the output of make:

==============================
starting DEBUG build
==============================
make[1]: Entering directory `/home/eddy/work/phoneme_feature_mr2/build_output/cldc/linux_arm_926/target/debug'
make[1]: Nothing to be done for `dependencies'.
make[1]: Leaving directory `/home/eddy/work/phoneme_feature_mr2/build_output/cldc/linux_arm_926/target/debug'
make[1]: Entering directory `/home/eddy/work/phoneme_feature_mr2/build_output/cldc/linux_arm_926/target/debug'
==================================================
GNU_TOOLS_DIR = /home/eddy/work/toolchains/sysbas/arm-linux
==================================================
... FloatSupport_arm.cpp
g++: error trying to exec 'cc1plus': execvp: No such file or directory
as: unrecognized option `-mfloat-abi=soft'
make[1]: *** [FloatSupport_arm.o] Error 1
make[1]: Leaving directory `/home/eddy/work/phoneme_feature_mr2/build_output/cldc/linux_arm_926/target/debug'
make: *** [_debug] Error 2