4 years, 10 months ago.

Error: "/tmp/ri5vjg", line 39: Warning: #47-D: incompatible redefinition of macro "MBED_RAM_SIZE"

Suddenly (minor code change), Compiler won't compile, STOP with this message: Error: Warning: L9931W: Your license for feature compiler5 will expire in 26 days

Similar question was answered with "You can safely ignore this warning. We're due to renew this license in the next few days."

That was 3 days ago.

The Warning has a warning in the text, but throws up as Error, and blocks further compilation.

I cannot ignore an error that stops compiler from producing useable output?

Thanks in advance for any solution provided to this blocking issue,

Tarek

3 Answers

4 years, 10 months ago.

From what I can tell that error is a real error, but has a glitch which displays the whole "L9931W" text instead of the real error message. So you likely have some issue with your program that's causing it to not compile, you just don't get to know exactly what it is. Look over your minor changes for anything that could be causing an error.

From the time I'm posting this mbed seems to have fixed the issue anyways. If it's not fixed for you then you'll just have to wait for mbed to renew the license hopefully soon before you can see the real error messages.

Hi Boyd, thanks a lot for your feedback. In the mean time, it seems that the licence error has been fixed. Without changing the source code I now get a new error message:

Warning: Incompatible redefinition of macro "MBED_RAM_SIZE" in "tmp/ri5vjg", Line: 39, Col: 10 Error: "/tmp/ri5vjg", line 39: Warning: #47-D: incompatible redefinition of macro "MBED_RAM_SIZE"

Means now another type of "true " error message, that still points to a bug inside the MBED library. At least /tmp/rj5vjg is not a file I now anything about :(

Will try to find the errors by hand now. Reminds me of the 1960s, where compilers were also not able to find errors by themselves :o

posted by Tarek Lule 13 Jun 2019
4 years, 9 months ago.

Please describe what version of Mbed OS release/board/tool(seems to be ARMCC)/program you're building so that I can reproduce this issue.

Thanks, Lin, team Mbed

4 years, 9 months ago.

Hi,

I got a same error for me, too.

Here is compiler message: Warning: Incompatible redefinition of macro "MBED_RAM_SIZE" in "tmp/UvAOpX", Line: 39, Col: 10 Error: "/tmp/UvAOpX", line 39: Warning: #47-D: incompatible redefinition of macro "MBED_RAM_SIZE"

Board:NUCLEO-L476RG OS:Mbed OS2 MBED Online Environment.

Does anyone who fixed it?

Yasu