Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Travis build occasionally fails for generated resources #232

Closed

Description

@kkaefer

For some reason, some, but not all of the builds fail like here. The same job could complete successfully later on. This error seems to only happen sometimes.

ar: ../Release/obj.target/llmr-x86/src/style/resources.o: No such file or directory
make[1]: *** [../Release/obj.target/libllmr-x86.a] Error 1
make[1]: Leaving directory `/home/travis/build/mapbox/llmr-native/build/llmr'

Activity

  1. springmeyer commented on May 22, 2014

    @springmeyer
    Contributor

    Thanks for flagging. I'll take a look.

    On May 22, 2014, at 5:34 AM, Konstantin Käfer [email protected] wrote:

    For some reason, some, but not all of the builds fail like here. The same job could complete successfully later on. This error seems to only happen sometimes.

    —
    Reply to this email directly or view it on GitHub.

  2. springmeyer commented on May 23, 2014

    @springmeyer
    Contributor

    It looks like the problem is that resources.o is being compiled first, then a clean is being done that wipes it away, and then later on the linking of libllmr-x86.a fails because its no longer around.

    g++-4.8 '-DNDEBUG' -I../../include -I/home/travis/build/mapbox/llmr-native/mapnik-packaging/osx/out/build-cpp11-libstdcpp-gcc-x86_64/include/libpng16 -I/home/travis/build/mapbox/llmr-native/mapnik-packaging/osx/out/build-cpp11-libstdcpp-gcc-x86_64/include -O3 -std=c++11 -MMD -MF ../Release/.deps/../Release/obj.target/llmr-x86/src/style/resources.o.d.raw -c -o ../Release/obj.target/llmr-x86/src/style/resources.o ../../src/style/resources.cpp
    rm -f ../Release/obj.target/libllmr-x86.a && ar crsT ../Release/obj.target/libllmr-x86.a ../Release/obj.target/llmr-x86/src/style/layer_description.o ../Release/obj.target/llmr-x86/src/style/properties.o ../Release/obj.target/llmr-x86/src/style/style_parser.o ../Release/obj.target/llmr-x86/src/style/style.o ../Release/obj.target/llmr-x86/src/style/bucket_description.o ../Release/obj.target/llmr-x86/src/style/resources.o

  3. springmeyer commented on May 23, 2014

    @springmeyer
    Contributor

    pretty sure the solution to this is #151, so let's track there.

  4. added a commit that references this issue on May 23, 2014
    13d3905
  5. springmeyer commented on May 23, 2014

    @springmeyer
    Contributor

    actually, I think the solution is as simple as 13d3905, which avoids src/style/resources.cpp from being included in both targets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions