https://toitlang.org/ logo
Cant build jaguar after pulling latest master, Cou...
# help
a
Copy code
~/dev/github/toitlang/jaguar (main) make
rm -f /home/adam/dev/github/toitlang/jaguar/build/sdk.build
make -C /home/adam/dev/github/toitlang/jaguar/../toit version-file esp32
make[1]: Entering directory '/home/adam/dev/github/toitlang/toit'
make rebuild-cmake
make[2]: Entering directory '/home/adam/dev/github/toitlang/toit'
mkdir -p build/host
(cd build/host && cmake /home/adam/dev/github/toitlang/toit -G Ninja -DHOST_TOIT=/home/adam/dev/github/toitlang/toit/build/host/sdk/bin/toit -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/home/adam/dev/github/toitlang/toit/toolchains/host.cmake --no-warn-unused-cli)
Not searching for unused variables given on the command line.
CMake Error at tools/gitversion.cmake:135 (message):
  Couldn't determine merge-base for upstream/release-v1.6 and origin/master
Call Stack (most recent call first):
  tools/gitversion.cmake:155 (common_ancestor)
  CMakeLists.txt:57 (compute_git_version)


-- Configuring incomplete, errors occurred!
See also "/home/adam/dev/github/toitlang/toit/build/host/CMakeFiles/CMakeOutput.log".
make[2]: *** [Makefile:138: rebuild-cmake] Error 1
make[2]: Leaving directory '/home/adam/dev/github/toitlang/toit'
make[1]: *** [Makefile:114: build/host/CMakeCache.txt] Error 2
make[1]: Leaving directory '/home/adam/dev/github/toitlang/toit'
make: *** [Makefile:87: /home/adam/dev/github/toitlang/jaguar/build/sdk.build] Error 2
Every other time its worked right away 😉
k
Can you dig out CMakeOutput.log? Maybe try deleting build/ after that.
55% of the time it works every time.
a
toitlang/toit/build/host/CMakeFiles/CMakeOutput.log is https://termbin.com/2xta ust tried deleting build from toit and jag, and it still fails 😮
aah right, i need a tag checked out specifically? it builds if i checkout
v2.0.0-alpha.177
rather than
master
k
Should not matter. I build from master all the time. Did you update submodules?
git submodule update --init --recursive
It is possible that changing branches did the submodule update for you.
Ah. Wait.
It is our version determining that fails.
You may need to fetch all tags or something.
Copy code
CMake Error at tools/gitversion.cmake:135 (message):
  Couldn't determine merge-base for upstream/release-v1.6 and origin/master
Call Stack (most recent call first):
  tools/gitversion.cmake:155 (common_ancestor)
  CMakeLists.txt:57 (compute_git_version)
Not entirely sure what to make of that. Maybe @floitsch knows?
f
gitversion sometimes doesn't work if the depth isn't high enough.
So a shallow checkout might not work.
I think that if you have a tag checked out, then the gitversion just uses that and doesn't try to do fancy stuff.
In that case a shallow checkout might work. (But I would need to check that).
a
afaik i have full depth, but maybe something is up with my tags
Interesting too that now that I have built new jag and toit, I can't flash my espc6
Error: Firmware is too big to fit in designated partition (1711264 > 1703936)
Re the git issue, it looks like as I have a fork too, I needed to make sure I fetched both remotes, (I have an
origin
which is my fork and an
upstream
which is the toitlang one,
f
Strange. In the toit-repository we have an environment variable we can set to avoid calling gitversion. Maybe we should add something similar to Jaguar.
We might have changed some sdkconfigs.
I'm not sure when, but at some point in the last few weeks we added error messages (from the esp-idf).
If the default Jaguar esp32c6 doesn't fit into the standard partition anymore, then we should do something about it.
a
Yup, its the standard one 🙂
jagdev flash --chip esp32c6
f
ok. Will look into it. Thanks for reporting.
a
I ended up creating https://github.com/toitlang/envelopes/issues/77 for this one, just so i have something to link to