Azure / iot-edge-v1

Azure IoT Edge
http://azure.github.io/iot-edge/
Other
525 stars 258 forks source link

Build failing - submodules? #399

Closed iizotov closed 7 years ago

iizotov commented 7 years ago

Hi all,

Build is failing with the following error:

./build.sh --enable-nodejs-binding

... (lines skipped)
-- Building ctest...
fatal: reference is not a tree: 037e318716e37eba358424380659dd1cd6d0554e
Unable to checkout '037e318716e37eba358424380659dd1cd6d0554e' in submodule path                                                                                                                                                              'deps/ctest'

Similar git errors with recursive cloning:

git clone --recursive https://github.com/Azure/iot-edge.git

... (lines skipped)
Cloning into 'testtools/testrunner'...
remote: Counting objects: 208, done.
remote: Total 208 (delta 3), reused 3 (delta 3), pack-reused 204
Receiving objects: 100% (208/208), 836.48 KiB | 350.00 KiB/s, done.
Resolving deltas: 100% (100/100), done.
Checking connectivity... done.
fatal: reference is not a tree: ee279c8b72d64d9ee8ca917ce00c17e0b522461d
villepalo commented 7 years ago

Same problem here! git submodule update --init --recursive fails also: ... fatal: reference is not a tree: ee279c8b72d64d9ee8ca917ce00c17e0b522461d Unable to checkout '037e318716e37eba358424380659dd1cd6d0554e' in submodule path 'deps/umqtt/c-utility/testtools/umock-c/deps/ctest' Unable to checkout 'ee279c8b72d64d9ee8ca917ce00c17e0b522461d' in submodule path 'deps/umqtt/c-utility/testtools/umock-c/deps/testrunner' Unable to checkout '037e318716e37eba358424380659dd1cd6d0554e' in submodule path 'deps/umqtt/c-utility/testtools/ctest' Unable to checkout 'ee279c8b72d64d9ee8ca917ce00c17e0b522461d' in submodule path 'deps/umqtt/c-utility/testtools/testrunner' Failed to recurse into submodule path 'deps/umqtt/c-utility/testtools/umock-c' Failed to recurse into submodule path 'deps/umqtt/c-utility' Failed to recurse into submodule path 'deps/c-utility' Unable to checkout '037e318716e37eba358424380659dd1cd6d0554e' in submodule path 'deps/ctest' Failed to recurse into submodule path 'deps/iot-sdk-c' Unable to checkout 'ee279c8b72d64d9ee8ca917ce00c17e0b522461d' in submodule path 'deps/testrunner' Failed to recurse into submodule path 'deps/uamqp' Failed to recurse into submodule path 'deps/umock-c' Failed to recurse into submodule path 'deps/umqtt'

villepalo commented 7 years ago

A bug similar to this is reported on iot-sdk-c (https://github.com/Azure/azure-iot-sdk-c/issues/250).

darobs commented 7 years ago

It looks like the commit used in the release tag was on a branch, and the branch was removed. I pushed up a branch which contains the commit we use, and I think that put a band aid on the problem. Please let me know if you're able to build now.

I'm predicting we'll have to pull the latest C Devices SDK release for a long term solution.

ETA: I think this was also a problem on the "testrunner" submodule. I did the same for this repo. Same long term solution.... we've confirmed that the next SDK release will link to a commit on master.

man2nainwal commented 7 years ago

Now it is showing unable to checkout deps/unmock-c.

fatal: reference is not a tree: f41aa23712d82a27998d6918d3533d150e636ae8 Unable to checkout 'f41aa23712d82a27998d6918d3533d150e636ae8' in submodule path 'deps/umock-c' CMake Error at gatewayFunctions.cmake:122 (message): Error pulling submodules: 1 Call Stack (most recent call first): dependencies-test.cmake:19 (findAndInstall) CMakeLists.txt:207 (include)

darobs commented 7 years ago

OK, so I did the same band aid for umock-c, and I did a fresh clone to check to see I could successfully initialize all the submodules, and was successful.

It should be back to normal for now. long term solution is still the same.