Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - StephenD

#1
Quote from: jamespero on July 03, 2014, 04:11:22 AM
Ok I've got the repo cloned and the tool chain setup and I'm ready to rock and roll. I'm trying to do a build right now, but I'm running into some issues. Here's my console output:

make -C  /Users/James/documents/repositories/magic-lantern/platform/100D.100
[ VERSION  ]   ../../platform/100D.100/version.bin
[ VERSION  ]   ../../platform/100D.100/version.c
[ CC       ]   version.o
[ CC       ]   boot-hack.o
../../src/boot-hack.c: In function 'my_task_dispatch_hook':
../../src/boot-hack.c:302:5: error: implicit declaration of function 'qprintf' [-Werror=implicit-function-declaration]
     qprintf("dispatch context->pc=0x%08X entry=0x%08X\n", context->pc, task->entry);
     ^
cc1: some warnings being treated as errors
make[1]: *** [boot-hack.o] Error 1
make: *** [100D] Error 2


I'm not very familiar with C, but I know enough to be dangerous and I can usually figure things out as I go; however, this one is trying me. I can comment out the qprintf line and it moves on just fine but I'm not sure if that specifically actually needs to be there... Any advice??? Is this just print out for visual purposes or is this something more important? Also to note, if I comment it out, the next time qprintf comes up, the same issue happens for that one as well.

Hi James,
I am new to the ML project, but do have the 100D, so was interested to see what is going on here.

The line "Implicit declaration of qprintf" is telling us that it met this function call before the function was defined. This explains why all qprintf calls will be a problem.

Being new to things here I have not yet seen what this line is trying to do, but just wanted to give you a bit of feedback to encourage you in your efforts.

Stephen