Open anonymouse64 opened 5 years ago
Do you understand why this fails though?
@sergiusens I believe it fails because somewhere in the stage directory of the kong
part are include files which somehow conflict with the declarations of snapcraft-preload. I don't know which specific include files are the source of the errors.
For example, take this snapcraft.yaml (slightly modified from what's in this repo):
some of the other parts about building kong aren't important, but basically during the build of kong, a lot of random C/C++ dependencies are compiled, and the inclusion of those libraries into $SNAPCRAFT_STAGE (and/or something else) results in snapcraft adding include paths to the compile options for snapcraft-preload and it fails in a very ugly way like this:
The solution I found was just to ensure that
snapcraft-preload
is always built before all the other C/C++ parts withafter
but I spent quite a while trying to understand why this failed, so it would be great if: