You are correct that the SDK3.0.2 has to be used with Creator 3.3 DP1. There will not compiling error will be pop-up. This error show up for Build error: error: lto-wrapper failed is because the gcc compiler is changed from 3.3 to 4.1, and CCGx 3.0.2 is released before Creator 4.1. I am checking if there is anyway to link the compiler of Creator 3.3 DP1 to Creator 4.1 to help out this issue.
For other errors, you could update all of components to latest one will fix it.
Is this still the case in PSoC Creator 4.2?
I'm trying to compile the CCG4M project for CYPD4155-96BZXI, I'm getting a similar set of errors:
lto1.exe: fatal error: bytecode stream generated with LTO version 3.0 instead of the expected 4.1
lto-wrapper.exe: fatal error: arm-none-eabi-gcc.exe returned 1 exit status
ERROR: error: lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
The command 'arm-none-eabi-gcc.exe' failed with exit code '1'.
Compiling works in Creator 3.3
I guess you are referring Build CCG4M Project Using CCG4 Project in SDK 3.0.1 and Later Versions – KBA219845 .
CCG4M project for CYPD4155-96BZXI is based on CYPD4226-40LQXIT/CYPD4126-40LQXIT. If you need use PSoC Creator 4.2, feel free to new customize it as per KBA. Otherwise, you have to link old gcc compiler to PSoC Creator 4.2 to support this project in PSoC Creator 4.2.