Build failures under clang and g++ #738

Closed
jkeenan opened this Issue Mar 18, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@jkeenan
Contributor

jkeenan commented Mar 18, 2012

On IRC #parrot earlier today, dukeleto mentioned that he was seeing build failures when building with clang and optimizing.

I am experiencing build failures (linux i386) when I try an "all g++" build, i.e., perl Configure.pl --cc=g++ --link=g++ --ld=g++. These failures occur whether or not I configure with --optimize. Typical messages from my build log:

20120317.26902c1.master.gppopt.txt:589:frontend/parrot2/main.c:170: 
    error: invalid conversion from 'const void*' to 'const unsigned char*'
20120317.26902c1.master.gppopt.txt:590:frontend/parrot2/main.c:170: 
    error:   initializing argument 2 of 'Parrot_Int Parrot_api_load_bytecode_bytes(PMC*, const unsigned char*, Parrot_Int, PMC**)'
20120317.26902c1.master.gppopt.txt:591:make: *** [frontend/parrot2/main.o] Error 1

My more frequent "all gcc" builds are succeeding and testing correctly with and without --optimize.

This is disquieting so soon before a monthly release and needs more investigation.

Thank you very much.
Jim Keenan

@jkeenan

This comment has been minimized.

Show comment Hide comment
@jkeenan

jkeenan Mar 18, 2012

Contributor

Here's the section of frontend/parrot/main.c cited in the error message above:

160 int
161 main(int argc, const char *argv[])
162 {
163     Parrot_PMC   interp;
164     Parrot_PMC   bytecodepmc;
165     Parrot_PMC   argsarray;
166     int          pir_argc;
167     const char **pir_argv;
168     Parrot_Init_Args *initargs;
169     struct init_args_t parsed_flags;
170     Parrot_String source_str;
171     Parrot_String output_str;
172 
173     GET_INIT_STRUCT(initargs);

However, this code has not changed since Sept 29 2011, so it is probably not the direct source of the error.

Contributor

jkeenan commented Mar 18, 2012

Here's the section of frontend/parrot/main.c cited in the error message above:

160 int
161 main(int argc, const char *argv[])
162 {
163     Parrot_PMC   interp;
164     Parrot_PMC   bytecodepmc;
165     Parrot_PMC   argsarray;
166     int          pir_argc;
167     const char **pir_argv;
168     Parrot_Init_Args *initargs;
169     struct init_args_t parsed_flags;
170     Parrot_String source_str;
171     Parrot_String output_str;
172 
173     GET_INIT_STRUCT(initargs);

However, this code has not changed since Sept 29 2011, so it is probably not the direct source of the error.

@petdance

This comment has been minimized.

Show comment Hide comment
@petdance

petdance Mar 18, 2012

Contributor

Fixed with 6fac2cd

Contributor

petdance commented Mar 18, 2012

Fixed with 6fac2cd

@petdance petdance closed this Mar 18, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment