This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Got errors when compiling libffi under HPUX, Please help me!
- From: Jason Sun <professional dot jason dot sun at gmail dot com>
- To: libffi-discuss at sources dot redhat dot com
- Date: Thu, 14 Jul 2011 15:41:53 +0800
- Subject: Got errors when compiling libffi under HPUX, Please help me!
I got a lot errors when I compiled libffi , but I can't fix it.
Any one has meet these errors or knows how to make it,please reply me!
Anything helpful is appreciated.
My compiler is HP C/aC++ Version A.06.20 under is ia64-hp-hpux11.31.
My making log says as follow:
/bin/sh ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I.
-I. -I./include -Iinclude -I./src -g -g -c -o src/ia64/ffi.lo
src/ia64/ffi.c
libtool: compile: cc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude
-I./src -g -g -c +Maked src/ia64/ffi.c -DPIC -o src/ia64/.libs/ffi.o
"src/ia64/ffi.c", line 40: error #3088: an attribute specifies a mode
incompatible with "void *"
typedef void *PTR64 __attribute__((mode(DI)));
^
"src/ia64/ffi.c", line 57: error #2070: incomplete type is not allowed
UINT64 other_args[]; /* Arguments passed on stack, variable size. */
^
"src/ia64/ffi.c", line 63: warning #4347-D: "inline" is a keyword in the C99 C
Standard, and its usage as an identifier will cause an error in C99
mode
static inline void *
^
"src/ia64/ffi.c", line 63: warning #2260-D: explicit type is missing ("int"
assumed)
static inline void *
^
"src/ia64/ffi.c", line 63: error #2065: expected a ";"
static inline void *
^
"src/ia64/ffi.c", line 154: warning #2012-D: parsing restarts here after
previous syntax error
*(__float80 *) addr = result;
^
"src/ia64/ffi.c", line 155: error #2169: expected a declaration
break;
^
"src/ia64/ffi.c", line 156: error #2169: expected a declaration
}
^
"src/ia64/ffi.c", line 159: error #2169: expected a declaration
}
^
"src/ia64/ffi.c", line 191: warning #2012-D: parsing restarts here after
previous syntax error
element = FFI_IA64_TYPE_HFA_LDOUBLE;
^
"src/ia64/ffi.c", line 192: error #2169: expected a declaration
break;
^
"src/ia64/ffi.c", line 194: error #2169: expected a declaration
case FFI_TYPE_STRUCT:
^
"src/ia64/ffi.c", line 210: warning #2012-D: parsing restarts here after
previous syntax error
break;
^
"src/ia64/ffi.c", line 212: error #2169: expected a declaration
default:
^
"src/ia64/ffi.c", line 214: error #2169: expected a declaration
}
^
"src/ia64/ffi.c", line 217: error #2169: expected a declaration
}
^
"src/ia64/ffi.c", line 263: warning #2012-D: parsing restarts here after
previous syntax error
break;
^
"src/ia64/ffi.c", line 265: error #2169: expected a declaration
default:
^
"src/ia64/ffi.c", line 267: error #2169: expected a declaration
}
^
"src/ia64/ffi.c", line 270: error #2169: expected a declaration
return FFI_OK;
^
"src/ia64/ffi.c", line 271: error #2169: expected a declaration
}
^
"src/ia64/ffi.c", line 326: error #2018: expected a ")"
stf_spill (&stack->fp_regs[fpcount++], *(float *)avalue[i]);
^
"src/ia64/ffi.c", line 332: error #2018: expected a ")"
stf_spill (&stack->fp_regs[fpcount++], *(double *)avalue[i]);
^
"src/ia64/ffi.c", line 340: error #2018: expected a ")"
stf_spill (&stack->fp_regs[fpcount++], *(__float80 *)avalue[i]);
^
"src/ia64/ffi.c", line 366: error #3143: arithmetic on pointer to void or
function type
avalue[i] + offset);
^
"src/ia64/ffi.c", line 469: warning #2513-D: a value of type "int" cannot be
assigned to an entity of type "void *"
avalue[i] = endian_adjust(&stack->gp_regs[gpcount++], 1);
^
"src/ia64/ffi.c", line 473: warning #2513-D: a value of type "int" cannot be
assigned to an entity of type "void *"
avalue[i] = endian_adjust(&stack->gp_regs[gpcount++], 2);
^
"src/ia64/ffi.c", line 477: warning #2513-D: a value of type "int" cannot be
assigned to an entity of type "void *"
avalue[i] = endian_adjust(&stack->gp_regs[gpcount++], 4);
^
"src/ia64/ffi.c", line 484: warning #2513-D: a value of type "int" cannot be
assigned to an entity of type "void *"
avalue[i] = endian_adjust(&stack->gp_regs[gpcount++], sizeof(void*));
^
"src/ia64/ffi.c", line 493: error #2018: expected a ")"
ldf_fill (result, addr);
^
"src/ia64/ffi.c", line 494: warning #2549-D: variable "result" is used before
its value is set
*(float *)addr = result;
^
"src/ia64/ffi.c", line 497: warning #2513-D: a value of type "int" cannot be
assigned to an entity of type "void *"
avalue[i] = endian_adjust(&stack->gp_regs[gpcount], 4);
^
"src/ia64/ffi.c", line 507: error #2018: expected a ")"
ldf_fill (result, addr);
^
"src/ia64/ffi.c", line 508: warning #2549-D: variable "result" is used before
its value is set
*(double *)addr = result;
^
"src/ia64/ffi.c", line 523: error #2018: expected a ")"
ldf_fill (result, addr);
^
"src/ia64/ffi.c", line 524: warning #2549-D: variable "result" is used before
its value is set
*(__float80 *)addr = result;
^
"src/ia64/ffi.c", line 554: error #3143: arithmetic on pointer to void or
function type
hfa_type_store (hfa_type, addr + offset,
^
"src/ia64/ffi.c", line 562: error #3143: arithmetic on pointer to void or
function type
memcpy (addr + offset, (char *)stack->gp_regs + gp_offset,
^
24 errors detected in the compilation of "src/ia64/ffi.c".
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.