Skip to content

Missing simple_module_test_bytecode_module.h simple_compute_test_module.h in Samples #90

Closed

Description

@powderluv

Samples fail to build with
....
-Wno-shadow -Wno-missing-noreturn -std=gnu++14 -MD -MT iree/samples/hal/CMakeFiles/iree_samples_hal_simple_compute_test.dir/simple_compute_test.cc.o -MF iree/samples/hal/CMakeFiles/iree_samples_hal_simple_compute_test.dir/simple_compute_test.cc.o.d -o iree/samples/hal/CMakeFiles/iree_samples_hal_simple_compute_test.dir/simple_compute_test.cc.o -c ../iree/samples/hal/simple_compute_test.cc
../iree/samples/hal/simple_compute_test.cc:38:10: fatal error: 'iree/samples/hal/simple_compute_test_module.h' file not found
#include "iree/samples/hal/simple_compute_test_module.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
.....
[2/4] Building CXX object iree/samples/rt/CMakeFiles/iree_samples_rt_bytecode_module_test.dir/bytecode_module_test.cc.o -MF iree/samples/rt/CMakeFiles/iree_samples_rt_bytecode_module_test.dir/bytecode_module_test.cc.o.d -o iree/samples/rt/CMakeFiles/iree_samples_rt_bytecode_module_test.dir/bytecode_module_test.cc.o -c ../iree/samples/rt/bytecode_module_test.cc
../iree/samples/rt/bytecode_module_test.cc:40:10: fatal error: 'iree/samples/rt/simple_module_test_bytecode_module.h' file not found
#include "iree/samples/rt/simple_module_test_bytecode_module.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.

Activity

  1. stellaraccident commented on Oct 23, 2019

    @stellaraccident
    Collaborator

    I believe this is due to the cc_embed_data rule not having been ported yet to cmake. I had to implement a version of it for oss that worked like our upstream version and got that in on the Basel side last week. It shouldn't be too hard to do on cmake but just hadn't been done yet.

  2. powderluv commented on Oct 23, 2019

    @powderluv
    ContributorAuthor

    I can add the cmake rule but where to get the file

  3. marbre commented on Nov 15, 2019

    @marbre
    Member

    I already wrote a CMakeLists.txt to compile generate_cc_embed_data. Hence, only the cmake rules to call iree-translate and generate_cc_embed_data are missing in order to generate the required source and header files. I can send a PR next week if you are interested.

  4. GMNGeoffrey commented on Nov 15, 2019

    @GMNGeoffrey
    Member

    Yes please send PRs :-)

  5. GMNGeoffrey commented on Nov 21, 2019

    @GMNGeoffrey
    Member

    FYI we now have a cmake CI, although it excludes the samples because of this issue. When we do get them working, I can change the option to add these to the CI, so a PR would be welcome :-)

  6. added a commit that references this issue on Dec 10, 2019
  7. marbre commented on Dec 19, 2019

    @marbre
    Member

    I missed to add a parable comment in my latest PR, but this issue is finally fixed within the master and can be closed.

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