-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Build failure with musl 1.2.4 #1164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This version includes support for Go 1.20 (specifically 1.20.5), and a workaround for musl 1.2.4 compatibility in mattn/go-sqlite3[1]. This also updates the package license; the project was relicensed in 3.13.0[2]. [1]: mattn/go-sqlite3#1164 [2]: ooni/probe-cli#446 Signed-off-by: Jeffery To <[email protected]>
This version includes support for Go 1.20 (specifically 1.20.5), and a workaround for musl 1.2.4 compatibility in mattn/go-sqlite3[1]. This also updates the package license; the project was relicensed in 3.13.0[2]. [1]: mattn/go-sqlite3#1164 [2]: ooni/probe-cli#446 Signed-off-by: Jeffery To <[email protected]>
This version includes support for Go 1.20 (specifically 1.20.5). This also: * Adds a workaround for musl 1.2.4 compatibility in mattn/go-sqlite3[1] * Sets GO_PKG_BUILD_PKG to build the main binary (ooniprobe) only * Updates the package license; the project was relicensed in 3.13.0[2] [1]: mattn/go-sqlite3#1164 [2]: ooni/probe-cli#446 Signed-off-by: Jeffery To <[email protected]>
Not sure how come this isn't extremely urgent to users out there but the #1177 save me. replace github.com/mattn/go-sqlite3 => github.com/leso-kn/go-sqlite3 v0.0.0-20230710125852-03158dc838ed |
This version includes support for Go 1.20 (specifically 1.20.5). This also: * Adds a workaround for musl 1.2.4 compatibility in mattn/go-sqlite3[1] * Sets GO_PKG_BUILD_PKG to build the main binary (ooniprobe) only * Updates the package license; the project was relicensed in 3.13.0[2] [1]: mattn/go-sqlite3#1164 [2]: ooni/probe-cli#446 Signed-off-by: Jeffery To <[email protected]>
you can use |
This version includes support for Go 1.20 (specifically 1.20.5). This also: * Adds a workaround for musl 1.2.4 compatibility in mattn/go-sqlite3[1] * Sets GO_PKG_BUILD_PKG to build the main binary (ooniprobe) only * Updates the package license; the project was relicensed in 3.13.0[2] [1]: mattn/go-sqlite3#1164 [2]: ooni/probe-cli#446 Signed-off-by: Jeffery To <[email protected]> (cherry picked from commit dc7382e)
This version includes support for Go 1.20 (specifically 1.20.5). This also: * Adds a workaround for musl 1.2.4 compatibility in mattn/go-sqlite3[1] * Sets GO_PKG_BUILD_PKG to build the main binary (ooniprobe) only * Updates the package license; the project was relicensed in 3.13.0[2] [1]: mattn/go-sqlite3#1164 [2]: ooni/probe-cli#446 Signed-off-by: Jeffery To <[email protected]>
This version includes support for Go 1.20 (specifically 1.20.5). This also: * Adds a workaround for musl 1.2.4 compatibility in mattn/go-sqlite3[1] * Sets GO_PKG_BUILD_PKG to build the main binary (ooniprobe) only * Updates the package license; the project was relicensed in 3.13.0[2] [1]: mattn/go-sqlite3#1164 [2]: ooni/probe-cli#446 Signed-off-by: Jeffery To <[email protected]>
See-also: mattn/go-sqlite3#1164 Closes: 912311 Signed-off-by: Alfred Persson Forsberg <[email protected]>
[sam: The macro is not ideal at all but patching Go isn't exactly ideal itself. Besides, this was arleady in the ebuild, but ignored b/c Go doesn't yet in Gentoo respect CFLAGS et. al, although should soon.] See-also: mattn/go-sqlite3#1164 Closes: https://bugs.gentoo.org/912311 Signed-off-by: Alfred Persson Forsberg <[email protected]> Closes: #33863 Signed-off-by: Sam James <[email protected]>
Switching to Fedora containers due to an updated musl in alpine causing build errors in Go bindings to sqlite, see: mattn/go-sqlite3#1164
Switching to Fedora containers due to an updated musl in alpine causing build errors in Go bindings to sqlite, see: mattn/go-sqlite3#1164
Switching to Fedora containers due to an updated musl in alpine causing build errors in Go bindings to sqlite, see: mattn/go-sqlite3#1164
This is now broken in latest As a temporary workaround, it's possible to downgrade base go image to \cc @mattn |
## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - Fix go build issue due to mattn/go-sqlite3#1164 (comment) - New functionality - ... ## Test plan *How are these changes tested?* - [ ] Tests pass locally with `pytest` for python, `yarn test` for js ## Documentation Changes *Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the [docs repository](https://github.com/chroma-core/docs)?*
sha256sum in busybox doesn't support --check. go-sqlite3 fails to build: mattn/go-sqlite3#1164
* fix: change isolate daemon command in scripts/start_container.sh * feat: Remove isolate in docker/Dockerfile * chore: update go-sqlite3 to fix musl build mattn/go-sqlite3#1164 * feat: Dockerfile for gcc-only * feat: accept arbitrary command for isolate daemon * feat(isolate): print logs real-time and add Stop() * chore: update golangci-lint to make tests passable
Partially revert: 7b3d033 - Revert: Also fixes issue of not being able to build with musl >1.2.4, The issue has been resolved as of March 2024. For more details, see: mattn/go-sqlite3#1164 (comment) Signed-off-by: Wesley Gimenes <[email protected]>
Partially revert: 7b3d033 - Revert: Also fixes issue of not being able to build with musl >1.2.4, The issue has been resolved as of March 2024. For more details, see: mattn/go-sqlite3#1164 (comment) Signed-off-by: Wesley Gimenes <[email protected]>
Partially revert: 7b3d033 - Revert: Also fixes issue of not being able to build with musl >1.2.4, The issue has been resolved as of March 2024. For more details, see: mattn/go-sqlite3#1164 (comment) Signed-off-by: Wesley Gimenes <[email protected]>
Partially revert: 7b3d033 - Revert: Also fixes issue of not being able to build with musl >1.2.4, The issue has been resolved as of March 2024. For more details, see: mattn/go-sqlite3#1164 (comment) Signed-off-by: Wesley Gimenes <[email protected]> (cherry picked from commit 851386d)
Partially revert: 7b3d033 - Revert: Also fixes issue of not being able to build with musl >1.2.4, The issue has been resolved as of March 2024. For more details, see: mattn/go-sqlite3#1164 (comment) Signed-off-by: Wesley Gimenes <[email protected]> (cherry picked from commit 851386d)
Partially revert: 7b3d033 - Revert: Also fixes issue of not being able to build with musl >1.2.4, The issue has been resolved as of March 2024. For more details, see: mattn/go-sqlite3#1164 (comment) Signed-off-by: Wesley Gimenes <[email protected]> (cherry picked from commit 851386d)
Partially revert: 7b3d033 - Revert: Also fixes issue of not being able to build with musl >1.2.4, The issue has been resolved as of March 2024. For more details, see: mattn/go-sqlite3#1164 (comment) Signed-off-by: Wesley Gimenes <[email protected]> (cherry picked from commit 851386d)
Partially revert: 7b3d033 - Revert: Also fixes issue of not being able to build with musl >1.2.4, The issue has been resolved as of March 2024. For more details, see: mattn/go-sqlite3#1164 (comment) Signed-off-by: Wesley Gimenes <[email protected]>
* Upgrade flow-go-sdk to v0.25.0 * Expose port 8888 * Use more up-to-date flow emulator version * Update custom_account_setup_emulator.cdc * Use new grpc client * temporarily comment some of custom acct creation script * Upgrade to [email protected] * Updates to match the sdk change that AccountKey Index is now uint32 it was previously and int * Update to address that cadence.Events no longer expose Fields and no longer allow accessing fields by index * Hacky way to handle removal of ToGoValue - should revisit * Update go container in docker setup to 1.22 * Upgrade go-sqlite3 to to fix build issue in docker mattn/go-sqlite3#1164 * Update test.yml workflow to use more up-to-date action versions * Update golangci-lint-action * Fix tests after upgrade * Skip tests that aren't relevant to Electables workflow * Fixes to source code after upgrade * Update flow cli version in github workflow * Add upgrade notes to readme * Update cadence contracts * Update cadence transaction scripts * Update custom account setup scripts
* Upgrade flow-go-sdk to v0.25.0 * Expose port 8888 * Use more up-to-date flow emulator version * Update custom_account_setup_emulator.cdc * Use new grpc client * temporarily comment some of custom acct creation script * Upgrade to [email protected] * Updates to match the sdk change that AccountKey Index is now uint32 it was previously and int * Update to address that cadence.Events no longer expose Fields and no longer allow accessing fields by index * Hacky way to handle removal of ToGoValue - should revisit * Update go container in docker setup to 1.22 * Upgrade go-sqlite3 to to fix build issue in docker mattn/go-sqlite3#1164 * Update test.yml workflow to use more up-to-date action versions * Update golangci-lint-action * Fix tests after upgrade * Skip tests that aren't relevant to Electables workflow * Fixes to source code after upgrade * Update flow cli version in github workflow * Add upgrade notes to readme * Update cadence contracts * Update cadence transaction scripts * Update custom account setup scripts * Start to rebuild update-kms-keys cmd * Wip - signing AddKeyTx * WIP - Send tx * Wip: trying to get the args to be parsed/send over http properly * Allow api to decode args to cadence as a json string * Start to add a new add-new-key endpoint * Upgrade go version * Use new endpoint in script * Continue to build add-new-key endpoint * Get acct from db, generate a new key and encrypt it * Add the new key via a transaction and save to db * Add gitignore and remove binary * Remove runKmsUpdate fn in favor of addNewKey which pushes all of the key creation logic into the main flow-wallet-api code * Use indexes on chain for next index calc and cleanup addNewKey * Clean up & add next step notes * Cleanup script * Add an add key service test to main_test * Break AddNewKey into smaller funcs * Revoke old key * Split add key and revoke into separate endpoints * Update update-kms-keys command to take a list * Fix revoke endpoint * Soft delete the old key from the database * Add an endpoint for getting aws keys * Make update-kms-keys more flexible
sha256sum in busybox doesn't support --check. go-sqlite3 fails to build: mattn/go-sqlite3#1164
sha256sum in busybox doesn't support --check. go-sqlite3 fails to build: mattn/go-sqlite3#1164
If anyone is still looking for solution, this worked for me: # Remove previous dependency link
go mod edit -droprequire=github.com/mattn/go-sqlite3
# Add new dependecy link with newest version
go mod edit -require=github.com/mattn/[email protected]
# Update package cache
go mod tidy
# Then build your go project/lib |
OpenWrt updated musl to 1.2.4 and we are seeing this build failure with ooni/probe-cli (which uses go-sqlite3):
(This is from a PR for the current version of probe-cli which uses 1.14.16; we are also seeing very similar errors when building an older version of probe-cli which uses 1.14.15.)
This is because in musl 1.2.4, LFS64 interfaces were marked as deprecated (release notes, commit).
Perhaps
HAVE_PREAD
/HAVE_PWRITE
can be set instead ofHAVE_PREAD64
/HAVE_PWRITE64
in sqlite3.go?The text was updated successfully, but these errors were encountered: