Xk6 error building xk6-sql

I am trying to use xk6-sql module in my project and running the command > xk6 build --with GitHub - grafana/xk6-sql: k6 extension to load test RDBMSs (PostgreSQL, MySQL, MS SQL and SQLite3)

I am getting the below error.

2023/04/20 10:09:33 exec (timeout=0s): C:\Program Files (x86)\Go\bin\go.exe build -o <project_path>\k6.exe -ldflags=-w -s -trimpath

github.com/grafana/xk6-output-prometheus-remote/pkg/remote

…......\go\pkg\mod\github.com\grafana\xk6-output-prometheus-remote@v0.1.0\pkg\remote\client.go:120:35: cannot use 0xffffffff (untyped int constant 4294967295) as int value in argument to fmt.Errorf (overflows)
2023/04/20 10:09:36 Cleaning up temporary folder: C:\Users<user>\AppData\Local\Temp\buildenv_2023-04-20-1009.338902461
2023/04/20 10:09:36 FATAL exit status 1

Go version 1.20.3
Environment - Windows

Hi @babludutt

Welcome to the community forum :wave:

It looks like this is a 32 bit windows and it won’t be able to compile this as a dependency expects that it can be 64bit big cannot use 0xffffffff (untyped int constant 4294967295) as int value in argument to fmt.Errorf (overflows)

I hope this helps.

Cheers!

1 Like

Hi @eyeveebe ,

Thank you!

I am using a 64 bit windows.

64-bit operating system, x64-based processor
Windows 10 Enterprise
Windows Feature Experience Pack 120.2212.4190.0

I figured out the issue, I had installed go1.20.3.windows-386 instead of the go1.20.3.windows-amd64.
Thanks for your help. I couldn’t figure out this from the error message.

2 Likes