Skip to main content

Missing ROMImage.cpp in build_output/linux_i386/target/generated

3 replies [Last post]
chukmunnlee
Offline
Joined: 2004-01-14

Hi

I'm learning how to build phoneme Feature. I've checkout the latest from SVN a few days ago. I compiled and build PCSL without problem.

Now I'm currently building CLDC for linux_i386. Everything was okay unitl I after romgen

../../romgen/app/romgen -cp /home/homebrew/src/pmef/build_output/classes.zip +GenerateGNUCode =HeapCapacity16M -romconfig /home/homebrew/src/pmef/cldc/src/vm/cldctest_rom.cfg -romincludepath /home/homebrew/src/pmef/cldc/src/vm +RewriteROMConstantPool +EnableAllROMOptimizations -romize

If romizer fails, increase your heap size.
E.g., =HeapCapacity80M

Starting free heap = 13016 KB
Loading classes...Done! in 0.30 seconds
... reading system property: microedition.encoding
Fatal signal SIGSEGV: errno=0; code=1; addr=0x1000206
[Dumping all threads]
Current thread = 0x40001000

[Thread: 0x40001000 *** CURRENT ***]
task ID 0x1
Stack Trace (id=0) [make: *** [../generated/ROMImage.cpp] Segmentation fault

After looking around the make files, I found that the offending line in the file Dependencies in linux_i386/target/generated

ROMImage.o: \
$(GEN_DIR)/jvmconfig.h ../generated/ROMImage.cpp /home/homebrew/src/pmef/cldc/src/vm/share/ROM/ROMImage.hpp $(Precompiled_Headers)

ROMImage.cpp is missing from the generated directory. I then copied the file from romgen/generated seeing how the ROMImage.cpp is the same in loopgen and romgen. The compilation was able to continue.

My question is
1. Have I misconfigured something like setting the CLDC build to debug

2. Is it okay to copy the ROMImage.cpp to use in debug target?

TIA

Regards
Chuk

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
digidealer
Offline
Joined: 2004-03-24

Hello Chuck,

I've got the same problem building feature-mr2-rel-b23 on Debian lenny with gcc 4.3.1. However, copying ROMImage.cpp from romgen/generated to /target/generated did not solve the build error:

Starting free heap = 65466 KB
Loading classes...Done! in 0.77 seconds
... reading system property: microedition.encoding
Fatal signal SIGSEGV: errno=0; code=1; addr=0x1000206
[Dumping all threads]
Current thread = 0x40001000

[Thread: 0x40001000 *** CURRENT ***]
task ID 0x1
Stack Trace (id=0) [
make[1]: *** [../generated/ROMImage.cpp] Segmentation fault

Please keep us posted if you discover the fix.

Thanks.

chukmunnlee
Offline
Joined: 2004-01-14

digidealer,

I managed to solve the problem by setting

export USE_DEBUG_ROMGEN=true
export USE_DEBUG_ROMGEN_SYMBOLS=true

Do a clean build after this. I got this from my other post (http://forums.java.net/jive/thread.jspa?threadID=44316&tstart=0) Looks like there might be some issues with gcc 4.3.1.

HTH

Regards
Chuk

digidealer
Offline
Joined: 2004-03-24

It worked. Thanks.