This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Cross compile - cygwin to VxWorks


I have tried to build a cross compiler using snapshot 20000605 hosted on
cygwin and targeted to vxWorks. I get a compilation error for file
intl/localealias.c using memcpy (lines 337/342).

The problem is that the result from memcpy is assigned to a variable but
memcpy has been #DEFINED to bcopy which does not have a result. This is due
to HAVE_STRING_H not being defined and then line 61

#include <strings.h>
# ifndef memcpy
#  define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num)
# endif


I worked around the problem by removing these lines and then casting the
result from the memcpy to a char*


I have previously managed to build a cross compiler using snapshots prior to
20000403.


I will try and determine why HAVE_STRING_H is not defined



Kevin
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]