arm-*-pe target error

Frodo Looijaard frodol@dds.nl
Fri May 5 05:56:00 GMT 2000


Hi folks,

Build system: i586-pc-linux-gnu
Build compiler: gcc-2.8.1
Host system: i686-pc-linux-gnu
Target system: arm-psion-pe
Compiler version trying to create: egcs-20000501 snapshot

./configure --target=arm-psion-pe 
[...]
make
[...]
gcc -c -DCROSS_COMPILE -DIN_GCC    -g -O2  -DHAVE_CONFIG_H    -I. -I. -I./config -I./../include ./config/arm/pe.c
./config/arm/pe.c: In function `arm_dllexport_name_p':
./config/arm/pe.c:169: argument `symbol' doesn't match prototype
config/arm/arm-protos.h:181: prototype declaration
./config/arm/pe.c: In function `arm_dllimport_name_p':
./config/arm/pe.c:178: argument `symbol' doesn't match prototype
config/arm/arm-protos.h:182: prototype declaration
./config/arm/pe.c: In function `arm_mark_dllexport':
./config/arm/pe.c:202: warning: passing arg 1 of `arm_dllimport_name_p' discards `const' from pointer target type
./config/arm/pe.c:204: warning: passing arg 1 of `arm_dllexport_name_p' discards `const' from pointer target type
./config/arm/pe.c: In function `arm_mark_dllimport':
./config/arm/pe.c:242: warning: passing arg 1 of `arm_dllexport_name_p' discards `const' from pointer target type
./config/arm/pe.c:244: warning: passing arg 1 of `arm_dllimport_name_p' discards `const' from pointer target type
./config/arm/pe.c: In function `arm_pe_encode_section_info':
./config/arm/pe.c:324: warning: passing arg 1 of `arm_dllimport_name_p' discards `const' from pointer target type
make[1]: *** [pe.o] Error 1
make[1]: Leaving directory `/var/tmp/egcs-20000501/gcc'
make: *** [all-gcc] Error 2


Temporary solution:

---cut here---
--- gcc/config/arm/pe.c.old     Fri May  5 14:43:01 2000
+++ gcc/config/arm/pe.c Fri May  5 14:43:36 2000
@@ -166,5 +166,5 @@
 int
 arm_dllexport_name_p (symbol)
-     const char * symbol;
+     char * symbol;
 {
   return symbol[0] == ARM_PE_FLAG_CHAR && symbol[1] == 'e' && symbol[2] == '.';
@@ -175,5 +175,5 @@
 int
 arm_dllimport_name_p (symbol)
-     const char * symbol;
+     char * symbol;
 {
   return symbol[0] == ARM_PE_FLAG_CHAR && symbol[1] == 'i' && symbol[2] == '.';
---cut here---

Keep up the good work,
  Frodo

-- 
Frodo Looijaard <frodol@dds.nl>  PGP key and more: http://huizen.dds.nl/~frodol
Defenestration n. (formal or joc.):
  The act of removing Windows from your computer in disgust, usually followed
  by the installation of Linux or some other Unix-like operating system.



More information about the Gcc-bugs mailing list