H8300 Multilib Questions

Joel Sherrill joel.sherrill at oarcorp.com
Fri Aug 11 13:46:50 UTC 2006


Hi,

I am trying to resolve compilation issues with the multilib
builds of the RTEMS CPUKIT.  On the H8300 port, one of the
multilibs is "-mh" which gcc documentation describes as:

`-mh'
     Generate code for the H8/300H.

After fixing another issue, the multilib build now fails with

../../../lib/include/sys/buf.h:108: warning: integer overflow in expression
../../../lib/include/sys/buf.h:108: error: size of array 'b_pages' is 
too large


rtems/cpukit/libnetworking/sys/buf.h has this at line 108

        struct  vm_page *b_pages[btoc(MAXPHYS)];

newlib -- machine/param.h has

#define MAXPHYS         (64 * 1024)     /* max raw I/O transfer size */

Since __INT_MAX__ is 32767, I am assuming that array needs to be MUCH
smaller.

Any suggestions or thoughts would be appreciated.

--joel



More information about the users mailing list