Magic Lantern Forum

Developing Magic Lantern => General Development => Topic started by: RenatoPhoto on January 31, 2013, 01:49:18 AM

Title: [Fixed] Error 2 Compiling 5D3 Today
Post by: RenatoPhoto on January 31, 2013, 01:49:18 AM
Unable to compile due to the following errors:

../../src/flexinfo.c: In function 'info_load_config':
../../src/flexinfo.c:621:5: warning: passing argument 2 of 'FIO_GetFileSize' from incompatible pointer type [enabled by default]
../../src/dryos.h:523:1: note: expected 'unsigned int *' but argument is of type 'uint32_t *'
../../src/flexinfo.c: In function 'info_resolve_color':
../../src/flexinfo.c:1422:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
../../src/flexinfo.c:1426:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
../../src/flexinfo.c: In function 'info_print_icon':
../../src/flexinfo.c:1539:13: warning: unused variable 'fgcolor' [-Wunused-variable]
../../src/flexinfo.c:1538:13: warning: unused variable 'bgcolor' [-Wunused-variable]
[ CC       ]   ico.o
[ CC       ]   console.o
[ CC       ]   clibrary.o
[ CC       ]   expression.o
[ CC       ]   heap.o
[ CC       ]   include.o
[ CC       ]   lex.o
[ CC       ]   parse.o
[ CC       ]   platform.o
[ CC       ]   table.o
[ CC       ]   type.o
[ CC       ]   variable.o
[ CC       ]   library_ml.o
[ CC       ]   platform_ml.o
[ CC       ]   picoc.o
[ CC       ]   chdk-gui_script.o
[ AR       ]   lib_a-setjmp.o
[ AR       ]   libstdio.a
[ LD       ]   magiclantern
tskmon.o: In function `tskmon_init':
tskmon.c:(.text+0x458): undefined reference to `pre_isr_hook'
tskmon.c:(.text+0x460): undefined reference to `post_isr_hook'
collect2: ld returned 1 exit status
../../Makefile.inc:330: recipe for target `magiclantern' failed
make[1]: *** [magiclantern] Error 1
make[1]: se sale del directorio `/home/PH/magic-lantern/platform/5D3.113'
Makefile:70: recipe for target `5D3' failed
make: *** [5D3] Error 2
Title: Re: Error 2 Compiling 5D3 Today
Post by: 1% on January 31, 2013, 03:57:04 AM
may be fixed in new commits but you could just turn off taskmon

add #undef CONFIG_TSKMON from features.h in the platform/5d3 and maybe remove the module in the makefile in that same folder
Title: Re: Error 2 Compiling 5D3 Today
Post by: g3gg0 on February 01, 2013, 12:37:26 AM
should be fixed
Title: Re: [Fixed] Error 2 Compiling 5D3 Today
Post by: RenatoPhoto on February 01, 2013, 10:04:03 PM
It is fixed.  Thank you!