Skip to main content

MIDP on a Linux_i386 build: warning causes failure

3 replies [Last post]
omone
Offline
Joined: 2007-07-25

I'm having troubles in compiling for ARM (made another post) and decided to build first for Linux_i386.

Both PCSL and CLDC builds correctly (and cldc_vm runs), but when I try to compile MIDP with the option suggested in the guide, I obtain these errors:

-------------------------------------------------
Starting free heap = 78573 KB
Loading classes...Done! in 0.362 seconds
... reading system property: microedition.encoding
Categorizing objects ...
Calculating offsets ...
Writing TEXT block 0 ...
Writing TEXT block 1 ...
Writing TEXT block 2 ...
Writing TEXT block 3 ...
Writing TEXT block 4 ...
Writing TEXT block 5 ...
Writing TEXT block 6 ...
Writing TEXT block 7 ...
Writing TEXT block 8 ...
Writing TEXT block 9 ...
Writing DATA block ...
Writing HEAP block ...
Writing TASK MIRRORS block ...
Writing text_klass_table ...
Writing ROMStructs.h ...
-----------------------------------------------------------------------------
TEXT: 14211 objects = 684202 bytes = 92.1%
DATA: 710 objects = 35260 bytes = 4.7%
HEAP: 435 objects = 23488 bytes = 3.2%
DATA+HEAP: 1145 objects = 58748 bytes = 7.9%
Total: 15356 objects = 742950 bytes
-----------------------------------------------------------------------------
ROM image generated in 3.56 seconds
... /home/user/phoneme_feature/build_output/midp/obj/i386/midp_link.o
cc1: warnings being treated as errors
/home/user/phoneme_feature/midp/build/linux_fb_gcc/../../src/links/native/share/midp_link.c: In function

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
strim
Offline
Joined: 2006-10-20

Hi Omone,

I suppose your problem can be in different versions of GCC compiler used
to build CLDC, PCSL & MIDP. Please check that you really use the same
one, and I recommend to check all with GCC 3.x, x >= 4. Thoough, the project
should support 4.x also.

Regards,
Strim

mcchiang21
Offline
Joined: 2008-03-04

Hi Strim & Omone,

I have the same problem about Omone mentioned. And my PCSL, CLDC and MIDP all compiled in the gcc 4.0.2. Would you help me how could I resolve this compile problem ? Should I change gcc version down to 3.X ?

Regards.

singlly
Offline
Joined: 2008-03-18

you can grep 'Werror' and comment the line