guild icon
Toit
#Cant build jaguar after pulling latest master, Couldn't determine merge-base for upstream/release-v1
Thread channel in help
addshore
addshore 03/26/2025 03:06 PM
~/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
addshore
addshore 03/26/2025 03:09 PM
Every other time its worked right away :๐Ÿ˜‰:
bitphlipphar
bitphlipphar 03/26/2025 03:09 PM
Can you dig out CMakeOutput.log? Maybe try deleting build/ after that.
bitphlipphar
bitphlipphar 03/26/2025 03:10 PM
55% of the time it works every time.
addshore
addshore 03/26/2025 03:12 PM
toitlang/toit/build/host/CMakeFiles/CMakeOutput.log is https://termbin.com/2xta
ust tried deleting build from toit and jag, and it still fails :๐Ÿ˜ฎ:
addshore
addshore 03/26/2025 03:28 PM
aah right, i need a tag checked out specifically? it builds if i checkout v2.0.0-alpha.177 rather than master
bitphlipphar
bitphlipphar 03/26/2025 03:35 PM
Should not matter. I build from master all the time. Did you update submodules?
bitphlipphar
bitphlipphar 03/26/2025 03:36 PM
git submodule update --init --recursive(edited)
bitphlipphar
bitphlipphar 03/26/2025 03:37 PM
It is possible that changing branches did the submodule update for you.
bitphlipphar
bitphlipphar 03/26/2025 03:38 PM
Ah. Wait.
bitphlipphar
bitphlipphar 03/26/2025 03:38 PM
It is our version determining that fails.
bitphlipphar
bitphlipphar 03/26/2025 03:38 PM
You may need to fetch all tags or something.
bitphlipphar
bitphlipphar 03/26/2025 03:39 PM
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)
bitphlipphar
bitphlipphar 03/26/2025 03:39 PM
Not entirely sure what to make of that. Maybe @floitsch knows?
floitsch
floitsch 03/26/2025 03:41 PM
gitversion sometimes doesn't work if the depth isn't high enough.
floitsch
floitsch 03/26/2025 03:41 PM
So a shallow checkout might not work.
floitsch
floitsch 03/26/2025 03:42 PM
I think that if you have a tag checked out, then the gitversion just uses that and doesn't try to do fancy stuff.
๐Ÿ‘1
floitsch
floitsch 03/26/2025 03:42 PM
In that case a shallow checkout might work. (But I would need to check that).
floitschfloitsch
So a shallow checkout might not work.
addshore
addshore 03/26/2025 04:30 PM
afaik i have full depth, but maybe something is up with my tags(edited)
addshore
addshore 03/26/2025 04:30 PM
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)
addshore
addshore 03/26/2025 04:34 PM
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,
floitsch
floitsch 03/26/2025 04:35 PM
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.
addshoreOPaddshore
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)
floitsch
floitsch 03/26/2025 04:35 PM
We might have changed some sdkconfigs.
floitsch
floitsch 03/26/2025 04:36 PM
I'm not sure when, but at some point in the last few weeks we added error messages (from the esp-idf).
floitsch
floitsch 03/26/2025 04:36 PM
If the default Jaguar esp32c6 doesn't fit into the standard partition anymore, then we should do something about it.
๐Ÿš…1
addshore
addshore 03/26/2025 04:37 PM
Yup, its the standard one :๐Ÿ™‚: jagdev flash --chip esp32c6
floitsch
floitsch 03/26/2025 04:37 PM
ok. Will look into it. Thanks for reporting.
๐Ÿ’Ÿ1
floitschfloitsch
If the default Jaguar esp32c6 doesn't fit into the standard partition anymore, then we should do something about it.
addshore
addshore 03/28/2025 12:04 PM
I ended up creating https://github.com/toitlang/envelopes/issues/77 for this one, just so i have something to link to
Mentioned on discord, but written here to track it! esp32c6 envelope doesnt work on the latest jag / toit Error: Firmware is too big to fit in designated partition (1711264 > 1703936) `` From di...
28 messages in total