[Solved] Reporting compilation failed errors

On trying to validate and compile a Genuino 101 program that I have used successfully many times I am now getting repeated compilation failed messages with a request to report them on the forum. Can anyone confirm if this is a general problem with compilation at present or is it likely to be a local issue at my end?

Simple standard examples like 'LED' compile successfully but more complex standard examples like Madgwick 'Visualise 101' have the same compilation error. I have tried this with several devices and programs and get the same error. In the past I have not had this problem with these example programs.

The operating system I am using is Windows 7 on a Dell XPS laptop and the Genuino is connected through a standard USB port.

Thanks for any advice.

It is always good to include the actual error messages etc.

Just want to confirm that this is what you see

Sketch uses 60020 bytes (38%) of program storage space. Maximum is 155648 bytes.
/home/admin/builder/arduino-builder/latest/Madgwick-1.2.0/src/MadgwickAHRS.cpp: In static member function ‘static float Madgwick::invSqrt(float)’:
/home/admin/builder/arduino-builder/latest/Madgwick-1.2.0/src/MadgwickAHRS.cpp:234:20: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
long i = *(long*)&y;
^
/home/admin/builder/arduino-builder/latest/Madgwick-1.2.0/src/MadgwickAHRS.cpp:236:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
y = *(float*)&i;
^

Just want to thank you for bringing this up.

The sketch will compile (but with warnings) on the desktop IDE and will upload just fine.

H Thanks for the response. I've copied below the error messages/warnings that occurred with the Madgwick demonstration program. I don't believe they account for the failure to compile though. And many people have compiled the Madgwick program successfully in the past.

I think I'm understanding you to say that the Cloud Arduino editor may no longer be working and that I should install the desktop compiler and stop using the cloud editor??

COPY OF ERRORS BELOW

Sketch uses 98336 bytes (63%) of program storage space. Maximum is 155648 bytes.

/tmp/750258283/Orientation_Genuino101_BLE1/Orientation_Genuino101_BLE1.ino: In function ‘void updateImuData()’:

/tmp/750258283/Orientation_Genuino101_BLE1/Orientation_Genuino101_BLE1.ino:92:9: warning: unused variable ‘roll’ [-Wunused-variable]

float roll, pitch, heading;

^

/tmp/750258283/Orientation_Genuino101_BLE1/Orientation_Genuino101_BLE1.ino:92:15: warning: unused variable ‘pitch’ [-Wunused-variable]

float roll, pitch, heading;

^

/home/admin/builder/arduino-builder/latest/Madgwick-1.2.0/src/MadgwickAHRS.cpp: In static member function ‘static float Madgwick::invSqrt(float)’:

/home/admin/builder/arduino-builder/latest/Madgwick-1.2.0/src/MadgwickAHRS.cpp:234:20: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

long i = (long)&y;

^

/home/admin/builder/arduino-builder/latest/Madgwick-1.2.0/src/MadgwickAHRS.cpp:236:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

y = (float)&i;

^

Please use the code tags for posting errors and sketches ( </> ) as the forum doesnt often like raw code etc and is known to change characters.

See my post above for how it should look like.

Not saying that CREATE is broken in fact far from it.

It seems this one example has an issue.

But to get around this one the desktop IDE will give you another method of uploading it.
There is no reason to uninstall CREATE.

Hi @Rebyl1,
it should compile now, can you try again?

Works with no problem now on the web editor, as do several ofthe other key examples I was having trouble with, though I haven't had time to test all the examples that were problematic. But it looks as if the problem is solved.

I couldn't find this post when I looked for it before but I mentioned in another post that the compilation worked well on the desktop IDE but that I'd found 43 other 101 examples that didn't compile.

As with my other post many thanks for the excellent software, feedback and support.

Peter