I am experimenting a bit with the compilation of Parrot

perl Configure.pl --gc=malloc-trace
make
stopped with:

src/malloc.c:4719: warning: function call has aggregate value
make: *** [src/malloc-trace.o] Error 1

below is the stderr

  Gabor

print_newline             1211       experimental, not in ops.num
print_newline_p           1211       experimental, not in ops.num
gcd_i_n_n                 1212       experimental, not in ops.num
gcd_i_nc_n                1213       experimental, not in ops.num
gcd_i_n_nc                1214       experimental, not in ops.num
gcd_i_nc_nc               1215       experimental, not in ops.num
gcd_i_i_i_i_i             1216       experimental, not in ops.num
gcd_i_i_i_ic_i            1217       experimental, not in ops.num
gcd_i_i_i_i_ic            1218       experimental, not in ops.num
gcd_i_i_i_ic_ic           1219       experimental, not in ops.num
splice_p_p_i_i            1220       experimental, not in ops.num
splice_p_p_ic_i           1221       experimental, not in ops.num
splice_p_p_i_ic           1222       experimental, not in ops.num
splice_p_p_ic_ic          1223       experimental, not in ops.num
slice_p_p_k               1224       experimental, not in ops.num
slice_p_p_kc              1225       experimental, not in ops.num
slice_p_p_k_ic            1226       experimental, not in ops.num
slice_p_p_kc_ic           1227       experimental, not in ops.num
iter_p_p                  1228       experimental, not in ops.num
morph_p_i                 1229       experimental, not in ops.num
morph_p_ic                1230       experimental, not in ops.num
exec_s                    1231       experimental, not in ops.num
exec_sc                   1232       experimental, not in ops.num
classname_p_p             1233       experimental, not in ops.num
trap                      1234       experimental, not in ops.num
pow_n_n_i                 1235       experimental, not in ops.num
pow_n_nc_i                1236       experimental, not in ops.num
pow_n_n_ic                1237       experimental, not in ops.num
pow_n_nc_ic               1238       experimental, not in ops.num
getclass_p_i              1239       experimental, not in ops.num
getclass_p_ic             1240       experimental, not in ops.num
new_p_i_s                 1241       experimental, not in ops.num
new_p_ic_s                1242       experimental, not in ops.num
new_p_i_sc                1243       experimental, not in ops.num
new_p_ic_sc               1244       experimental, not in ops.num
instantiate_p             1245       experimental, not in ops.num
pmcinfo_i_p_ic            1246       experimental, not in ops.num
new_p_p                   1247       experimental, not in ops.num
new_p_p_p                 1248       experimental, not in ops.num
new_p_p_pc                1249       experimental, not in ops.num
add_io_event_p_p_p_ic     1250       experimental, not in ops.num
need_finalize_p           1251       experimental, not in ops.num
runinterp_p_p             1252       experimental, not in ops.num
runinterp_p_pc            1253       experimental, not in ops.num
newpdd15class_p_s         1254       experimental, not in ops.num
newpdd15class_p_sc        1255       experimental, not in ops.num
newpdd15class_p_p         1256       experimental, not in ops.num
newpdd15class_p_pc        1257       experimental, not in ops.num
setstdout_p                          SKIPPED: not in ops.num nor ops.skip
setstderr_p                          SKIPPED: not in ops.num nor ops.skip
hash_i_p                             SKIPPED: not in ops.num nor ops.skip
src/exceptions.c: In function ‘do_panic’:
src/exceptions.c:152: warning: ‘noreturn’ function does return
src/gc/dod.c: In function ‘clear_cow’:
src/gc/dod.c:471: warning: request for implicit conversion from
‘void *’ to ‘struct Buffer *’ not permitted in C++
src/gc/dod.c: In function ‘used_cow’:
src/gc/dod.c:512: warning: request for implicit conversion from
‘void *’ to ‘const struct Buffer *’ not permitted in C++
src/gc/dod.c:530: warning: cast discards qualifiers from pointer target type
src/library.c: In function ‘Parrot_locate_runtime_file_str’:
src/library.c:442: warning: ignoring return value of
‘Parrot_get_runtime_prefix’, declared with attribute
warn_unused_result
src/packfile.c: In function ‘Parrot_load_bytecode’:
src/packfile.c:3388: warning: ignoring return value of
‘PackFile_append_pbc’, declared with attribute warn_unused_result
src/pmc_freeze.c: In function ‘push_opcode_number’:
src/pmc_freeze.c:627: warning: ignoring return value of
‘PF_store_number’, declared with attribute warn_unused_result
src/pmc_freeze.c: In function ‘push_opcode_string’:
src/pmc_freeze.c:648: warning: ignoring return value of
‘PF_store_string’, declared with attribute warn_unused_result
src/spf_render.c: In function ‘handle_flags’:
src/spf_render.c:179: warning: ignoring return value of
‘string_substr’, declared with attribute warn_unused_result
src/spf_render.c: In function ‘Parrot_sprintf_format’:
src/spf_render.c:294: warning: ignoring return value of
‘string_substr’, declared with attribute warn_unused_result
src/spf_render.c:807: warning: ignoring return value of
‘string_substr’, declared with attribute warn_unused_result
src/stack_common.c: In function ‘register_new_stack’:
src/stack_common.c:57: warning: ignoring return value of
‘make_bufferlike_pool’, declared with attribute warn_unused_result
src/stm/backend.c: In function ‘Parrot_STM_alloc’:
src/stm/backend.c:216: warning: ignoring return value of
‘make_bufferlike_pool’, declared with attribute warn_unused_result
In file included from src/exec.c:26:
src/jit_emit.h: In function ‘div_rr_n’:
src/jit_emit.h:1720: warning: cast discards qualifiers from pointer target type
src/jit_emit.h: In function ‘mod_rr_n’:
src/jit_emit.h:1759: warning: cast discards qualifiers from pointer target type
src/jit_emit.h: In function ‘opt_div_rr’:
src/jit_emit.h:1953: warning: cast discards qualifiers from pointer target type
src/jit_emit.h: In function ‘Parrot_emit_jump_to_eax’:
src/jit_emit.h:2202: warning: cast from function call of type ‘int
*’ to non-matching type ‘long int’
In file included from src/exec_cpu.c:51:
src/jit_emit.h: In function ‘div_rr_n’:
src/jit_emit.h:1720: warning: cast discards qualifiers from pointer target type
src/jit_emit.h: In function ‘mod_rr_n’:
src/jit_emit.h:1759: warning: cast discards qualifiers from pointer target type
src/jit_emit.h: In function ‘opt_div_rr’:
src/jit_emit.h:1953: warning: cast discards qualifiers from pointer target type
src/jit_emit.h: In function ‘Parrot_emit_jump_to_eax’:
src/jit_emit.h:2202: warning: cast from function call of type ‘int
*’ to non-matching type ‘long int’
In file included from src/jit.c:35:
src/jit_emit.h: In function ‘div_rr_n’:
src/jit_emit.h:1720: warning: cast discards qualifiers from pointer target type
src/jit_emit.h: In function ‘mod_rr_n’:
src/jit_emit.h:1759: warning: cast discards qualifiers from pointer target type
src/jit_emit.h: In function ‘opt_div_rr’:
src/jit_emit.h:1953: warning: cast discards qualifiers from pointer target type
src/jit_emit.h: In function ‘Parrot_emit_jump_to_eax’:
src/jit_emit.h:2202: warning: cast from function call of type ‘int
*’ to non-matching type ‘long int’
In file included from src/jit_cpu.c:51:
src/jit_emit.h: In function ‘div_rr_n’:
src/jit_emit.h:1720: warning: cast discards qualifiers from pointer target type
src/jit_emit.h: In function ‘mod_rr_n’:
src/jit_emit.h:1759: warning: cast discards qualifiers from pointer target type
src/jit_emit.h: In function ‘opt_div_rr’:
src/jit_emit.h:1953: warning: cast discards qualifiers from pointer target type
src/jit_emit.h: In function ‘Parrot_emit_jump_to_eax’:
src/jit_emit.h:2202: warning: cast from function call of type ‘int
*’ to non-matching type ‘long int’
In file included from /usr/include/asm-i386/signal.h:5,
                 from /usr/include/asm/signal.h:7,
                 from src/malloc-trace.c:14:
/usr/include/linux/time.h:9: error: redefinition of ‘struct timespec’
/usr/include/linux/time.h:15: error: redefinition of ‘struct timeval’
/usr/include/linux/time.h:20: error: redefinition of ‘struct timezone’
/usr/include/linux/time.h:47: error: redefinition of ‘struct itimerval’
In file included from /usr/include/asm/signal.h:7,
                 from src/malloc-trace.c:14:
/usr/include/asm-i386/signal.h:13: error: conflicting types for ‘sigset_t’
/usr/include/sys/select.h:38: error: previous declaration of
‘sigset_t’ was here
In file included from /usr/include/asm/signal.h:7,
                 from src/malloc-trace.c:14:
/usr/include/asm-i386/signal.h:97: error: redefinition of ‘struct sigaction’
/usr/include/asm-i386/signal.h:111: error: redefinition of ‘struct
sigaltstack’
src/malloc-trace.c:17:26: error: malloc-trace.h: No such file or directory
src/malloc-trace.c:25: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘buffer’
src/malloc-trace.c:34: warning: function declaration isn’t a prototype
src/malloc-trace.c: In function ‘open_log_file’:
src/malloc-trace.c:34: warning: old-style function definition
src/malloc-trace.c:36: error: ‘MTRACE_VERSION’ undeclared (first
use in this function)
src/malloc-trace.c:36: error: (Each undeclared identifier is reported only once
src/malloc-trace.c:36: error: for each function it appears in.)
src/malloc-trace.c: In function ‘malloc_trace_destructor’:
src/malloc-trace.c:76: error: ‘buffer’ undeclared (first use in
this function)
src/malloc-trace.c:76: error: ‘CODE_TIMESTAMP’ undeclared (first
use in this function)
src/malloc-trace.c:86: error: ‘ACTION’ undeclared (first use in
this function)
src/malloc-trace.c: In function ‘malloc_record’:
src/malloc-trace.c:116: error: ‘buffer’ undeclared (first use in
this function)
src/malloc-trace.c:116: error: ‘CODE_TIMESTAMP’ undeclared (first
use in this function)
src/malloc-trace.c:132: error: ‘ACTION’ undeclared (first use in
this function)
src/malloc-trace.c: In function ‘malloc’:
src/malloc-trace.c:143: warning: request for implicit conversion from
‘void *’ to ‘char *’ not permitted in C++
src/malloc-trace.c:147: error: ‘CODE_MALLOC’ undeclared (first use
in this function)
src/malloc-trace.c: In function ‘free’:
src/malloc-trace.c:155: error: ‘CODE_FREE’ undeclared (first use
in this function)
src/malloc-trace.c: In function ‘realloc’:
src/malloc-trace.c:166: error: ‘CODE_REALLOC’ undeclared (first
use in this function)
src/malloc-trace.c: At top level:
src/malloc-trace.c:173: warning: no previous prototype for ‘memalign’
src/malloc-trace.c: In function ‘memalign’:
src/malloc-trace.c:177: warning: request for implicit conversion from
‘void *’ to ‘char *’ not permitted in C++
src/malloc-trace.c:181: error: ‘CODE_MEMALIGN’ undeclared (first
use in this function)
src/malloc-trace.c: In function ‘calloc’:
src/malloc-trace.c:192: warning: request for implicit conversion from
‘void *’ to ‘char *’ not permitted in C++
src/malloc-trace.c:196: error: ‘CODE_CALLOC’ undeclared (first use
in this function)
src/malloc-trace.c: In function ‘cfree’:
src/malloc-trace.c:204: error: ‘CODE_CFREE’ undeclared (first use
in this function)
In file included from src/malloc-trace.c:209:
src/malloc.c:363:5: warning: "DEBUG" is not defined
In file included from src/malloc-trace.c:209:
src/malloc.c: At top level:
src/malloc.c:1274: warning: function declaration isn’t a prototype
src/malloc.c:2532:7: warning: "DEBUG" is not defined
src/malloc.c:4552:5: warning: "DEBUG" is not defined
In file included from src/malloc-trace.c:209:
src/malloc.c: In function ‘mallinfo’:
src/malloc.c:4657: warning: old-style function definition
src/malloc.c:4682: warning: comparison between signed and unsigned
src/malloc.c:4657: warning: function returns an aggregate
src/malloc.c: At top level:
src/malloc.c:4718: warning: function declaration isn’t a prototype
src/malloc.c: In function ‘malloc_stats’:
src/malloc.c:4718: warning: old-style function definition
src/malloc.c:4735: warning: implicit declaration of function ‘PIO_eprintf’
src/malloc.c:4735: warning: nested extern declaration of ‘PIO_eprintf’
src/malloc.c:4719: warning: function call has aggregate value
make: *** [src/malloc-trace.o] Error 1

Reply via email to