Skip to content
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

Failed to build on Windows with MSYS2 #2326

Open
taozuhong opened this issue Nov 14, 2024 · 17 comments
Open

Failed to build on Windows with MSYS2 #2326

taozuhong opened this issue Nov 14, 2024 · 17 comments
Labels
Type: bug Something isn't working

Comments

@taozuhong
Copy link

taozuhong commented Nov 14, 2024

What happened?

$ cmake --build .
[1/3] Building C object driver/common/CMakeFiles/adbc_driver_common.dir/utils.c.obj
FAILED: driver/common/CMakeFiles/adbc_driver_common.dir/utils.c.obj
C:\msys\ucrt64\bin\cc.exe  -ID:/Github/arrow-adbc/c/include -ID:/Github/arrow-adbc/c/vendor -std=gnu99 -Wall -Wextra -Wpedantic -Werror -Wno-unused-parameter -Wno-maybe-uninitialized -MD -MT driver/common/CMakeFiles/adbc_driver_common.dir/utils.c.obj -MF driver\common\CMakeFiles\adbc_driver_common.dir\utils.c.obj.d -o driver/common/CMakeFiles/adbc_driver_common.dir/utils.c.obj -c D:/Github/arrow-adbc/c/driver/common/utils.c
In file included from D:/Github/arrow-adbc/c/driver/common/utils.h:25,
                 from D:/Github/arrow-adbc/c/driver/common/utils.c:18:
D:/Github/arrow-adbc/c/include/arrow-adbc/adbc.h:304:1: error: 'dllimport' attribute ignored [-error=attributes]
  304 | };
      | ^
D:/Github/arrow-adbc/c/include/arrow-adbc/adbc.h:357:1: error: 'dllimport' attribute ignored [-error=attributes]
  357 | };
      | ^
D:/Github/arrow-adbc/c/include/arrow-adbc/adbc.h:815:1: error: 'dllimport' attribute ignored [-error=attributes]
  815 | };
      | ^
D:/Github/arrow-adbc/c/include/arrow-adbc/adbc.h:838:1: error: 'dllimport' attribute ignored [-error=attributes]
  838 | };
      | ^
D:/Github/arrow-adbc/c/include/arrow-adbc/adbc.h:877:1: error: 'dllimport' attribute ignored [-error=attributes]
  877 | };
      | ^
D:/Github/arrow-adbc/c/include/arrow-adbc/adbc.h:1086:1: error: 'dllimport' attribute ignored [-error=attributes]
 1086 | };
      | ^
cc1.exe: all warnings being treated as errors
ninja: build stopped: subcommand failed.

Stack Trace

How can we reproduce the bug?

The commands to reproduce the bug

cd arrow-adbc/c
mkdir build
cd build
cmake ..
cmake --build .

Environment/Setup

  • Windows: Windows 11 23H2 (22631.4460) Windows Feature Experience Pack 1000.22700.1047.0
  • MSYS2: GCC 14.2
@taozuhong taozuhong added the Type: bug Something isn't working label Nov 14, 2024
@lidavidm
Copy link
Member

lidavidm commented Dec 3, 2024

In general we don't have much Windows expertise here, so contributions are welcome. (I suppose MSYS2 doesn't need dllimport/dllexport?)

@kou
Copy link
Member

kou commented Dec 3, 2024

Ah, we may not need dllimport/dllexport for struct in C:

diff --git a/c/include/arrow-adbc/adbc.h b/c/include/arrow-adbc/adbc.h
index b965672e6..94be40a34 100644
--- a/c/include/arrow-adbc/adbc.h
+++ b/c/include/arrow-adbc/adbc.h
@@ -158,8 +158,18 @@ struct ArrowArrayStream {
 #else
 #define ADBC_EXPORT __declspec(dllimport)
 #endif  // defined(ADBC_EXPORTING)
+#if defined(__cplusplus)
+#if defined(ADBC_EXPORTING)
+#define ADBC_EXPORT_STRUCT __declspec(dllexport)
+#else
+#define ADBC_EXPORT_STRUCT __declspec(dllimport)
+#endif  // defined(ADBC_EXPORTING)
+#else
+#define ADBC_EXPORT_STRUCT
+#endif  // defined(__cplusplus)
 #else
 #define ADBC_EXPORT
+#define ADBC_EXPORT_STRUCT
 #endif  // defined(_WIN32)
 #endif  // !defined(ADBC_EXPORT)
 

@CurtHagenlocher
Copy link
Contributor

dllimport and dllexport are needed (if at all) for symbols exported from DLLs. The only reason they would ever need to decorate a struct member is if it were a static member (which is of course just a global variable with a funny name).

@lidavidm lidavidm added this to the ADBC Libraries 16 milestone Dec 4, 2024
@lidavidm
Copy link
Member

lidavidm commented Dec 5, 2024

Hmm. Microsoft isn't offering the developer VM anymore...

@taozuhong
Copy link
Author

taozuhong commented Dec 6, 2024

@lidavidm @kou

I've tried the solution: remove ADBC_EXPORT for struct, then pass the compilation:

c\include\arrow-adbc\adbc.h
c\driver\sqlite\statement_reader.h
mkdir c/build
cd c/build
go env -w GOPROXY=https://goproxy.cn,direct
cmake -DADBC_DRIVER_MANAGER=ON -DADBC_DRIVER_SQLITE=ON -DADBC_DRIVER_POSTGRESQL=ON -DADBC_DRIVER_FLIGHTSQL=OFF ..
cmake --build .

The build pipe will throw exception while building with command:

cmake -DADBC_DRIVER_MANAGER=ON -DADBC_DRIVER_SQLITE=ON -DADBC_DRIVER_POSTGRESQL=ON -DADBC_DRIVER_FLIGHTSQL=ON ..

The console output is

$ cmake --build .
[1/3] Building Go Shared lib adbc_driver_flightsql
FAILED: driver/flightsql/libadbc_driver_flightsql.dll.104.0.0 D:/Github/arrow-adbc/c/build/driver/flightsql/libadbc_driver_flightsql.dll.104.0.0
C:\Windows\system32\cmd.exe /C "cd /D D:\Github\arrow-adbc\go\adbc\pkg\flightsql && C:\msys\ucrt64\bin\cmake.exe -E env CGO_ENABLED=1 C:/msys/ucrt64/bin/go.exe build -tags=driverlib -o D:/Github/arrow-adbc/c/build/driver/flightsql/libadbc_driver_flightsql.dll.104.0.0 -buildmode=c-shared -ldflags " -a '-extldflags=-Wl,--version-script=D:/Github/arrow-adbc/c/symbols.map,-soname,libadbc_driver_flightsql.dll.104'" . && C:\msys\ucrt64\bin\cmake.exe -E remove -f D:/Github/arrow-adbc/c/build/driver/flightsql/libadbc_driver_flightsql.dll.104.0.h"
warning: GOPATH set to GOROOT (C:/msys/ucrt64) has no effect
driver.go:52:2: package context is not in std (C:\msys\ucrt64\src\context)
driver.go:53:2: package errors is not in std (C:\msys\ucrt64\src\errors)
driver.go:54:2: package fmt is not in std (C:\msys\ucrt64\src\fmt)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\datatype_viewheader.go:20:2: package bytes is not in std (C:\msys\ucrt64\src\bytes)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\endian\little.go:22:8: package encoding/binary is not in std (C:\msys\ucrt64\src\encoding\binary)
C:\msys\ucrt64\pkg\mod\github.com\google\[email protected]+incompatible\go\encode.go:4:2: package math is not in std (C:\msys\ucrt64\src\math)
C:\msys\ucrt64\pkg\mod\github.com\google\[email protected]+incompatible\go\builder.go:3:8: package sort is not in std (C:\msys\ucrt64\src\sort)
C:\msys\ucrt64\pkg\mod\github.com\google\[email protected]+incompatible\go\sizes.go:4:2: package unsafe is not in std (C:\msys\ucrt64\src\unsafe)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\internal\flatbuf\BodyCompressionMethod.go:21:8: package strconv is not in std (C:\msys\ucrt64\src\strconv)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\cpu\cpu.go:10:2: package os is not in std (C:\msys\ucrt64\src\os)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\cpu\byteorder.go:8:2: package runtime is not in std (C:\msys\ucrt64\src\runtime)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\cpu\cpu.go:11:2: package strings is not in std (C:\msys\ucrt64\src\strings)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\memory\checked_allocator.go:28:2: package sync is not in std (C:\msys\ucrt64\src\sync)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\memory\buffer.go:20:2: package sync/atomic is not in std (C:\msys\ucrt64\src\sync\atomic)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\bitutil\bitmaps.go:22:2: package math/bits is not in std (C:\msys\ucrt64\src\math\bits)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\decimal128\decimal128.go:23:2: package math/big is not in std (C:\msys\ucrt64\src\math\big)
C:\msys\ucrt64\pkg\mod\github.com\goccy\[email protected]\json.go:6:2: package encoding/json is not in std (C:\msys\ucrt64\src\encoding\json)
C:\msys\ucrt64\pkg\mod\github.com\goccy\[email protected]\internal\decoder\interface.go:5:2: package encoding is not in std (C:\msys\ucrt64\src\encoding)
C:\msys\ucrt64\pkg\mod\github.com\goccy\[email protected]\internal\decoder\bytes.go:4:2: package encoding/base64 is not in std (C:\msys\ucrt64\src\encoding\base64)
C:\msys\ucrt64\pkg\mod\github.com\goccy\[email protected]\internal\errors\error.go:5:2: package reflect is not in std (C:\msys\ucrt64\src\reflect)
C:\msys\ucrt64\pkg\mod\github.com\goccy\[email protected]\internal\runtime\struct_field.go:6:2: package unicode is not in std (C:\msys\ucrt64\src\unicode)
C:\msys\ucrt64\pkg\mod\github.com\goccy\[email protected]\internal\decoder\stream.go:6:2: package io is not in std (C:\msys\ucrt64\src\io)
C:\msys\ucrt64\pkg\mod\github.com\goccy\[email protected]\internal\decoder\string.go:8:2: package unicode/utf16 is not in std (C:\msys\ucrt64\src\unicode\utf16)
C:\msys\ucrt64\pkg\mod\github.com\goccy\[email protected]\internal\decoder\string.go:9:2: package unicode/utf8 is not in std (C:\msys\ucrt64\src\unicode\utf8)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\datatype.go:21:2: package hash/maphash is not in std (C:\msys\ucrt64\src\hash\maphash)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\datatype_fixedwidth.go:23:2: package time is not in std (C:\msys\ucrt64\src\time)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\internal\utils\buf_reader.go:20:2: package bufio is not in std (C:\msys\ucrt64\src\bufio)
C:\msys\ucrt64\pkg\mod\github.com\klauspost\cpuid\[email protected]\cpuid.go:14:2: package flag is not in std (C:\msys\ucrt64\src\flag)
C:\msys\ucrt64\pkg\mod\github.com\zeebo\[email protected]\hasher.go:5:2: package hash is not in std (C:\msys\ucrt64\src\hash)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\internal\detrand\rand.go:14:2: package hash/fnv is not in std (C:\msys\ucrt64\src\hash\fnv)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\internal\strs\strings.go:9:2: package go/token is not in std (C:\msys\ucrt64\src\go\token)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\internal\editiondefaults\defaults.go:9:8: package embed is not in std (C:\msys\ucrt64\src\embed)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\internal\impl\legacy_file.go:9:2: package compress/gzip is not in std (C:\msys\ucrt64\src\compress\gzip)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\internal\impl\legacy_export.go:10:2: package hash/crc32 is not in std (C:\msys\ucrt64\src\hash\crc32)
..\..\ext.go:21:2: package log/slog is not in std (C:\msys\ucrt64\src\log\slog)
..\..\driver\flightsql\flightsql_database.go:22:2: package crypto/tls is not in std (C:\msys\ucrt64\src\crypto\tls)
..\..\driver\flightsql\flightsql_database.go:23:2: package crypto/x509 is not in std (C:\msys\ucrt64\src\crypto\x509)
..\..\driver\internal\shared_utils.go:22:2: package database/sql is not in std (C:\msys\ucrt64\src\database\sql)
..\..\driver\internal\shared_utils.go:23:2: package regexp is not in std (C:\msys\ucrt64\src\regexp)
..\..\driver\internal\driverbase\driver.go:24:2: package runtime/debug is not in std (C:\msys\ucrt64\src\runtime\debug)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\internal\timeseries\timeseries.go:10:2: package log is not in std (C:\msys\ucrt64\src\log)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\trace\events.go:10:2: package html/template is not in std (C:\msys\ucrt64\src\html\template)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\trace\trace.go:72:2: package net is not in std (C:\msys\ucrt64\src\net)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\trace\events.go:13:2: package net/http is not in std (C:\msys\ucrt64\src\net\http)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\trace\trace.go:74:2: package net/url is not in std (C:\msys\ucrt64\src\net\url)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\trace\events.go:20:2: package text/tabwriter is not in std (C:\msys\ucrt64\src\text\tabwriter)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\internal\credentials\syscallconn.go:23:2: package syscall is not in std (C:\msys\ucrt64\src\syscall)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\experimental\stats\metricregistry.go:22:2: package maps is not in std (C:\msys\ucrt64\src\maps)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\balancer\pickfirst\internal\internal.go:21:8: package math/rand is not in std (C:\msys\ucrt64\src\math\rand)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\http2\server.go:32:2: package crypto/rand is not in std (C:\msys\ucrt64\src\crypto\rand)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\unicode\bidi\bracket.go:8:2: package container/list is not in std (C:\msys\ucrt64\src\container\list)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\http\httpguts\guts.go:13:2: package net/textproto is not in std (C:\msys\ucrt64\src\net\textproto)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\http2\transport.go:19:2: package io/fs is not in std (C:\msys\ucrt64\src\io\fs)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\http2\transport.go:26:2: package net/http/httptrace is not in std (C:\msys\ucrt64\src\net\http\httptrace)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\internal\transport\proxy.go:29:2: package net/http/httputil is not in std (C:\msys\ucrt64\src\net\http\httputil)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\internal\transport\http2_client.go:28:2: package path/filepath is not in std (C:\msys\ucrt64\src\path\filepath)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\clientconn.go:27:2: package slices is not in std (C:\msys\ucrt64\src\slices)
C:\msys\ucrt64\pkg\mod\github.com\klauspost\[email protected]\zstd\framedec.go:9:2: package encoding/hex is not in std (C:\msys\ucrt64\src\encoding\hex)
C:\msys\ucrt64\pkg\mod\github.com\pierrec\lz4\[email protected]\internal\lz4stream\frame.go:8:2: package io/ioutil is not in std (C:\msys\ucrt64\src\io\ioutil)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\flight\server.go:24:2: package os/signal is not in std (C:\msys\ucrt64\src\os\signal)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\cdata\cdata_exports.go:42:2: package runtime/cgo is not in std (C:\msys\ucrt64\src\runtime\cgo)
[2/3] Building Go Static lib adbc_driver_flightsql
FAILED: driver/flightsql/libadbc_driver_flightsql.a D:/Github/arrow-adbc/c/build/driver/flightsql/libadbc_driver_flightsql.a
C:\Windows\system32\cmd.exe /C "cd /D D:\Github\arrow-adbc\go\adbc\pkg\flightsql && C:\msys\ucrt64\bin\cmake.exe -E env CGO_ENABLED=1 C:/msys/ucrt64/bin/go.exe build -tags=driverlib -o D:/Github/arrow-adbc/c/build/driver/flightsql/libadbc_driver_flightsql.a -buildmode=c-archive . && C:\msys\ucrt64\bin\cmake.exe -E remove -f D:/Github/arrow-adbc/c/build/driver/flightsql/libadbc_driver_flightsql.h"
warning: GOPATH set to GOROOT (C:/msys/ucrt64) has no effect
driver.go:52:2: package context is not in std (C:\msys\ucrt64\src\context)
driver.go:53:2: package errors is not in std (C:\msys\ucrt64\src\errors)
driver.go:54:2: package fmt is not in std (C:\msys\ucrt64\src\fmt)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\datatype_viewheader.go:20:2: package bytes is not in std (C:\msys\ucrt64\src\bytes)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\endian\little.go:22:8: package encoding/binary is not in std (C:\msys\ucrt64\src\encoding\binary)
C:\msys\ucrt64\pkg\mod\github.com\google\[email protected]+incompatible\go\encode.go:4:2: package math is not in std (C:\msys\ucrt64\src\math)
C:\msys\ucrt64\pkg\mod\github.com\google\[email protected]+incompatible\go\builder.go:3:8: package sort is not in std (C:\msys\ucrt64\src\sort)
C:\msys\ucrt64\pkg\mod\github.com\google\[email protected]+incompatible\go\sizes.go:4:2: package unsafe is not in std (C:\msys\ucrt64\src\unsafe)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\internal\flatbuf\BodyCompressionMethod.go:21:8: package strconv is not in std (C:\msys\ucrt64\src\strconv)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\cpu\cpu.go:10:2: package os is not in std (C:\msys\ucrt64\src\os)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\cpu\byteorder.go:8:2: package runtime is not in std (C:\msys\ucrt64\src\runtime)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\cpu\cpu.go:11:2: package strings is not in std (C:\msys\ucrt64\src\strings)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\memory\checked_allocator.go:28:2: package sync is not in std (C:\msys\ucrt64\src\sync)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\memory\buffer.go:20:2: package sync/atomic is not in std (C:\msys\ucrt64\src\sync\atomic)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\bitutil\bitmaps.go:22:2: package math/bits is not in std (C:\msys\ucrt64\src\math\bits)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\decimal128\decimal128.go:23:2: package math/big is not in std (C:\msys\ucrt64\src\math\big)
C:\msys\ucrt64\pkg\mod\github.com\goccy\[email protected]\json.go:6:2: package encoding/json is not in std (C:\msys\ucrt64\src\encoding\json)
C:\msys\ucrt64\pkg\mod\github.com\goccy\[email protected]\internal\decoder\interface.go:5:2: package encoding is not in std (C:\msys\ucrt64\src\encoding)
C:\msys\ucrt64\pkg\mod\github.com\goccy\[email protected]\internal\decoder\bytes.go:4:2: package encoding/base64 is not in std (C:\msys\ucrt64\src\encoding\base64)
C:\msys\ucrt64\pkg\mod\github.com\goccy\[email protected]\internal\errors\error.go:5:2: package reflect is not in std (C:\msys\ucrt64\src\reflect)
C:\msys\ucrt64\pkg\mod\github.com\goccy\[email protected]\internal\runtime\struct_field.go:6:2: package unicode is not in std (C:\msys\ucrt64\src\unicode)
C:\msys\ucrt64\pkg\mod\github.com\goccy\[email protected]\internal\decoder\stream.go:6:2: package io is not in std (C:\msys\ucrt64\src\io)
C:\msys\ucrt64\pkg\mod\github.com\goccy\[email protected]\internal\decoder\string.go:8:2: package unicode/utf16 is not in std (C:\msys\ucrt64\src\unicode\utf16)
C:\msys\ucrt64\pkg\mod\github.com\goccy\[email protected]\internal\decoder\string.go:9:2: package unicode/utf8 is not in std (C:\msys\ucrt64\src\unicode\utf8)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\datatype.go:21:2: package hash/maphash is not in std (C:\msys\ucrt64\src\hash\maphash)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\datatype_fixedwidth.go:23:2: package time is not in std (C:\msys\ucrt64\src\time)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\internal\utils\buf_reader.go:20:2: package bufio is not in std (C:\msys\ucrt64\src\bufio)
C:\msys\ucrt64\pkg\mod\github.com\klauspost\cpuid\[email protected]\cpuid.go:14:2: package flag is not in std (C:\msys\ucrt64\src\flag)
C:\msys\ucrt64\pkg\mod\github.com\zeebo\[email protected]\hasher.go:5:2: package hash is not in std (C:\msys\ucrt64\src\hash)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\internal\detrand\rand.go:14:2: package hash/fnv is not in std (C:\msys\ucrt64\src\hash\fnv)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\internal\strs\strings.go:9:2: package go/token is not in std (C:\msys\ucrt64\src\go\token)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\internal\editiondefaults\defaults.go:9:8: package embed is not in std (C:\msys\ucrt64\src\embed)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\internal\impl\legacy_file.go:9:2: package compress/gzip is not in std (C:\msys\ucrt64\src\compress\gzip)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\internal\impl\legacy_export.go:10:2: package hash/crc32 is not in std (C:\msys\ucrt64\src\hash\crc32)
..\..\ext.go:21:2: package log/slog is not in std (C:\msys\ucrt64\src\log\slog)
..\..\driver\flightsql\flightsql_database.go:22:2: package crypto/tls is not in std (C:\msys\ucrt64\src\crypto\tls)
..\..\driver\flightsql\flightsql_database.go:23:2: package crypto/x509 is not in std (C:\msys\ucrt64\src\crypto\x509)
..\..\driver\internal\shared_utils.go:22:2: package database/sql is not in std (C:\msys\ucrt64\src\database\sql)
..\..\driver\internal\shared_utils.go:23:2: package regexp is not in std (C:\msys\ucrt64\src\regexp)
..\..\driver\internal\driverbase\driver.go:24:2: package runtime/debug is not in std (C:\msys\ucrt64\src\runtime\debug)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\internal\timeseries\timeseries.go:10:2: package log is not in std (C:\msys\ucrt64\src\log)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\trace\events.go:10:2: package html/template is not in std (C:\msys\ucrt64\src\html\template)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\trace\trace.go:72:2: package net is not in std (C:\msys\ucrt64\src\net)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\trace\events.go:13:2: package net/http is not in std (C:\msys\ucrt64\src\net\http)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\trace\trace.go:74:2: package net/url is not in std (C:\msys\ucrt64\src\net\url)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\trace\events.go:20:2: package text/tabwriter is not in std (C:\msys\ucrt64\src\text\tabwriter)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\internal\credentials\syscallconn.go:23:2: package syscall is not in std (C:\msys\ucrt64\src\syscall)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\experimental\stats\metricregistry.go:22:2: package maps is not in std (C:\msys\ucrt64\src\maps)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\balancer\pickfirst\internal\internal.go:21:8: package math/rand is not in std (C:\msys\ucrt64\src\math\rand)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\http2\server.go:32:2: package crypto/rand is not in std (C:\msys\ucrt64\src\crypto\rand)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\unicode\bidi\bracket.go:8:2: package container/list is not in std (C:\msys\ucrt64\src\container\list)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\http\httpguts\guts.go:13:2: package net/textproto is not in std (C:\msys\ucrt64\src\net\textproto)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\http2\transport.go:19:2: package io/fs is not in std (C:\msys\ucrt64\src\io\fs)
C:\msys\ucrt64\pkg\mod\golang.org\x\[email protected]\http2\transport.go:26:2: package net/http/httptrace is not in std (C:\msys\ucrt64\src\net\http\httptrace)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\internal\transport\proxy.go:29:2: package net/http/httputil is not in std (C:\msys\ucrt64\src\net\http\httputil)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\internal\transport\http2_client.go:28:2: package path/filepath is not in std (C:\msys\ucrt64\src\path\filepath)
C:\msys\ucrt64\pkg\mod\google.golang.org\[email protected]\clientconn.go:27:2: package slices is not in std (C:\msys\ucrt64\src\slices)
C:\msys\ucrt64\pkg\mod\github.com\klauspost\[email protected]\zstd\framedec.go:9:2: package encoding/hex is not in std (C:\msys\ucrt64\src\encoding\hex)
C:\msys\ucrt64\pkg\mod\github.com\pierrec\lz4\[email protected]\internal\lz4stream\frame.go:8:2: package io/ioutil is not in std (C:\msys\ucrt64\src\io\ioutil)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\flight\server.go:24:2: package os/signal is not in std (C:\msys\ucrt64\src\os\signal)
C:\msys\ucrt64\pkg\mod\github.com\apache\arrow-go\[email protected]\arrow\cdata\cdata_exports.go:42:2: package runtime/cgo is not in std (C:\msys\ucrt64\src\runtime\cgo)
ninja: build stopped: subcommand failed.

@lidavidm
Copy link
Member

lidavidm commented Dec 6, 2024

@taozuhong what version of Go are you using? And how was it installed? You seem to be missing standard library packages

@lidavidm
Copy link
Member

lidavidm commented Dec 6, 2024

Or your GOROOT or GOPATH may not be configured properly

@taozuhong
Copy link
Author

taozuhong commented Dec 6, 2024

go env output as follow

set GOMODCACHE=C:\msys\ucrt64\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:/msys/ucrt64
set GOPROXY=https://goproxy.cn,direct
set GOROOT=C:/msys/ucrt64
set GOSUMDB=
set GOTOOLDIR=C:\msys\ucrt64\pkg\tool\windows_amd64
set GOVERSION=go1.23.2

the console output has updated in the previous response.

@lidavidm
Copy link
Member

lidavidm commented Dec 6, 2024

Hmm shouldn't your GOROOT point to your Go installation? It seems to just point into the root of your MSYS installation which would explain why Go can't find standard library modules

@taozuhong
Copy link
Author

The go compiler installs at /ucrt64/bin folder, then the GOROOT set as the MSYS installation folder.

I'm a newbie to GO language, I don't know how to fix it.

@lidavidm
Copy link
Member

lidavidm commented Dec 6, 2024

It seems %GOROOT%/src should contain the sources for the Go standard library:

lidavidm@Canon ~/C/s/shelf-server (master)> ls -l (go env GOROOT)/src
total 92
-rw-r--r--   1 root wheel   553 May  2  2024 Make.dist
-rw-r--r--   1 root wheel  2163 May  2  2024 README.vendor
-rwxr-xr-x   1 root wheel   375 May  2  2024 all.bash*
-rw-r--r--   1 root wheel   543 May  2  2024 all.bat
-rwxr-xr-x   1 root wheel   388 May  2  2024 all.rc*
drwxr-xr-x   4 root wheel   128 May  2  2024 archive/
drwxr-xr-x   4 root wheel   128 May  2  2024 arena/
-rwxr-xr-x   1 root wheel  2305 May  2  2024 bootstrap.bash*
drwxr-xr-x   8 root wheel   256 May  2  2024 bufio/

Is that true for you? If not, the GOROOT needs to be set so that this is true.

@taozuhong
Copy link
Author

Right exactly,

I dipped into the MINGW go package, found GO compiler installed at path /ucrt64/lib/go, update GOROOT env to it, the build is completed, but the console output found some warn messages:

$ cmake --build .
[37/39] Building Go Static lib adbc_driver_flightsql
# github.com/apache/arrow-adbc/go/adbc/pkg/flightsql
In file included from driver.go:29,
                 from _cgo_export.c:4:
..\../drivermgr/arrow-adbc/adbc.h:304:1: warning: 'dllexport' attribute ignored [-Wattributes]
  304 | };
      | ^
..\../drivermgr/arrow-adbc/adbc.h:357:1: warning: 'dllexport' attribute ignored [-Wattributes]
  357 | };
      | ^
..\../drivermgr/arrow-adbc/adbc.h:815:1: warning: 'dllexport' attribute ignored [-Wattributes]
  815 | };
      | ^
..\../drivermgr/arrow-adbc/adbc.h:838:1: warning: 'dllexport' attribute ignored [-Wattributes]
  838 | };
      | ^
..\../drivermgr/arrow-adbc/adbc.h:877:1: warning: 'dllexport' attribute ignored [-Wattributes]
  877 | };
      | ^
..\../drivermgr/arrow-adbc/adbc.h:1086:1: warning: 'dllexport' attribute ignored [-Wattributes]
 1086 | };
      | ^
# github.com/apache/arrow-adbc/go/adbc/pkg/flightsql
In file included from .\driver.go:29:
..\../drivermgr/arrow-adbc/adbc.h:304:1: warning: 'dllexport' attribute ignored [-Wattributes]
  304 | };
      | ^
..\../drivermgr/arrow-adbc/adbc.h:357:1: warning: 'dllexport' attribute ignored [-Wattributes]
  357 | };
      | ^
..\../drivermgr/arrow-adbc/adbc.h:815:1: warning: 'dllexport' attribute ignored [-Wattributes]
  815 | };
      | ^
..\../drivermgr/arrow-adbc/adbc.h:838:1: warning: 'dllexport' attribute ignored [-Wattributes]
  838 | };
      | ^
..\../drivermgr/arrow-adbc/adbc.h:877:1: warning: 'dllexport' attribute ignored [-Wattributes]
  877 | };
      | ^
..\../drivermgr/arrow-adbc/adbc.h:1086:1: warning: 'dllexport' attribute ignored [-Wattributes]
 1086 | };
      | ^
# github.com/apache/arrow-adbc/go/adbc/pkg/flightsql
In file included from utils.h:27,
                 from utils.c:24:
../../drivermgr/arrow-adbc/adbc.h:304:1: warning: 'dllexport' attribute ignored [-Wattributes]
  304 | };
      | ^
../../drivermgr/arrow-adbc/adbc.h:357:1: warning: 'dllexport' attribute ignored [-Wattributes]
  357 | };
      | ^
../../drivermgr/arrow-adbc/adbc.h:815:1: warning: 'dllexport' attribute ignored [-Wattributes]
  815 | };
      | ^
../../drivermgr/arrow-adbc/adbc.h:838:1: warning: 'dllexport' attribute ignored [-Wattributes]
  838 | };
      | ^
../../drivermgr/arrow-adbc/adbc.h:877:1: warning: 'dllexport' attribute ignored [-Wattributes]
  877 | };
      | ^
../../drivermgr/arrow-adbc/adbc.h:1086:1: warning: 'dllexport' attribute ignored [-Wattributes]
 1086 | };
      | ^
[38/39] Building Go Shared lib adbc_driver_flightsql
# github.com/apache/arrow-adbc/go/adbc/pkg/flightsql
In file included from driver.go:29,
                 from _cgo_export.c:4:
..\../drivermgr/arrow-adbc/adbc.h:304:1: warning: 'dllexport' attribute ignored [-Wattributes]
  304 | };
      | ^
..\../drivermgr/arrow-adbc/adbc.h:357:1: warning: 'dllexport' attribute ignored [-Wattributes]
  357 | };
      | ^
..\../drivermgr/arrow-adbc/adbc.h:815:1: warning: 'dllexport' attribute ignored [-Wattributes]
  815 | };
      | ^
..\../drivermgr/arrow-adbc/adbc.h:838:1: warning: 'dllexport' attribute ignored [-Wattributes]
  838 | };
      | ^
..\../drivermgr/arrow-adbc/adbc.h:877:1: warning: 'dllexport' attribute ignored [-Wattributes]
  877 | };
      | ^
..\../drivermgr/arrow-adbc/adbc.h:1086:1: warning: 'dllexport' attribute ignored [-Wattributes]
 1086 | };
      | ^
# github.com/apache/arrow-adbc/go/adbc/pkg/flightsql
In file included from .\driver.go:29:
..\../drivermgr/arrow-adbc/adbc.h:304:1: warning: 'dllexport' attribute ignored [-Wattributes]
  304 | };
      | ^
..\../drivermgr/arrow-adbc/adbc.h:357:1: warning: 'dllexport' attribute ignored [-Wattributes]
  357 | };
      | ^
..\../drivermgr/arrow-adbc/adbc.h:815:1: warning: 'dllexport' attribute ignored [-Wattributes]
  815 | };
      | ^
..\../drivermgr/arrow-adbc/adbc.h:838:1: warning: 'dllexport' attribute ignored [-Wattributes]
  838 | };
      | ^
..\../drivermgr/arrow-adbc/adbc.h:877:1: warning: 'dllexport' attribute ignored [-Wattributes]
  877 | };
      | ^
..\../drivermgr/arrow-adbc/adbc.h:1086:1: warning: 'dllexport' attribute ignored [-Wattributes]
 1086 | };
      | ^
# github.com/apache/arrow-adbc/go/adbc/pkg/flightsql
In file included from utils.h:27,
                 from utils.c:24:
../../drivermgr/arrow-adbc/adbc.h:304:1: warning: 'dllexport' attribute ignored [-Wattributes]
  304 | };
      | ^
../../drivermgr/arrow-adbc/adbc.h:357:1: warning: 'dllexport' attribute ignored [-Wattributes]
  357 | };
      | ^
../../drivermgr/arrow-adbc/adbc.h:815:1: warning: 'dllexport' attribute ignored [-Wattributes]
  815 | };
      | ^
../../drivermgr/arrow-adbc/adbc.h:838:1: warning: 'dllexport' attribute ignored [-Wattributes]
  838 | };
      | ^
../../drivermgr/arrow-adbc/adbc.h:877:1: warning: 'dllexport' attribute ignored [-Wattributes]
  877 | };
      | ^
../../drivermgr/arrow-adbc/adbc.h:1086:1: warning: 'dllexport' attribute ignored [-Wattributes]
 1086 | };
      | ^
[39/39] Generating libadbc_driver_flightsql.dll.104, libadbc_driver_flightsql.dll

@taozuhong
Copy link
Author

There are three copies of the header files, should fix it:
c/include/adbc.h
c/include/arrow-adbc/adbc.h
go/adbc/drivermgr/arrow-adbc/adbc.h

@lidavidm
Copy link
Member

lidavidm commented Dec 7, 2024

that is intentional

@taozuhong
Copy link
Author

{014087FA-7251-402E-955B-306AE54AD3E2}

Just remove ADBC_EXPORT from code struct ADBC_EXPORT will break build pipe with CLANG compiler, done with GCC compiler.

 [37/39] Building Go Shared lib adbc_driver_flightsql
  FAILED: driver/flightsql/libadbc_driver_flightsql.dll.104.0.0 C:/_/B/src/build-x86_64-w64-mingw32/driver/flightsql/libadbc_driver_flightsql.dll.104.0.0 
  C:\Windows\system32\cmd.exe /C "cd /D C:\_\B\src\arrow-adbc\go\adbc\pkg\flightsql && D:\M\msys64\clang64\bin\cmake.exe -E env CGO_ENABLED=1 D:/M/msys64/clang64/bin/go.exe build -tags=driverlib -o C:/_/B/src/build-x86_64-w64-mingw32/driver/flightsql/libadbc_driver_flightsql.dll.104.0.0 -buildmode=c-shared -ldflags "-s -w -a '-extldflags=-Wl,-soname,libadbc_driver_flightsql.dll.104'" . && D:\M\msys64\clang64\bin\cmake.exe -E remove -f C:/_/B/src/build-x86_64-w64-mingw32/driver/flightsql/libadbc_driver_flightsql.dll.104.0.h"
  go: downloading github.com/apache/arrow-go/v18 v18.0.0
  go: downloading google.golang.org/protobuf v1.35.2
  go: downloading github.com/bluele/gcache v0.0.2
  go: downloading golang.org/x/exp v0.0.0-20240909161429-701f63a606c0
  go: downloading golang.org/x/sync v0.9.0
  go: downloading google.golang.org/grpc v1.68.0
  go: downloading golang.org/x/sys v0.27.0
  go: downloading golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da
  go: downloading github.com/google/flatbuffers v24.3.25+incompatible
  go: downloading github.com/klauspost/compress v1.17.11
  go: downloading github.com/pierrec/lz4/v4 v4.1.21
  go: downloading golang.org/x/net v0.31.0
  go: downloading github.com/zeebo/xxh3 v1.0.2
  go: downloading github.com/goccy/go-json v0.10.3
  go: downloading github.com/klauspost/cpuid/v2 v2.2.8
  go: downloading golang.org/x/text v0.20.0
  # github.com/apache/arrow-go/v18/arrow/cdata
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:51:34: warning: redeclaration of 'streamGetSchema' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  exports.go:31:13: note: previous declaration is here
  cgo-gcc-export-header-prolog:52:34: warning: redeclaration of 'streamGetNext' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  exports.go:32:13: note: previous declaration is here
  cgo-gcc-export-header-prolog:53:39: warning: redeclaration of 'streamGetError' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  exports.go:33:21: note: previous declaration is here
  cgo-gcc-export-header-prolog:54:35: warning: redeclaration of 'streamRelease' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  exports.go:34:14: note: previous declaration is here
  # github.com/apache/arrow-adbc/go/adbc/pkg/flightsql
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:49:39: warning: redeclaration of 'FlightSQLArrayStreamGetLastError' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  driver.go:42:14: note: previous declaration is here
  cgo-gcc-export-header-prolog:50:34: warning: redeclaration of 'FlightSQLArrayStreamGetNext' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  driver.go:41:6: note: previous declaration is here
  cgo-gcc-export-header-prolog:51:34: warning: redeclaration of 'FlightSQLArrayStreamGetSchema' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  driver.go:40:6: note: previous declaration is here
  cgo-gcc-export-header-prolog:52:35: warning: redeclaration of 'FlightSQLArrayStreamRelease' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  driver.go:43:7: note: previous declaration is here
  cgo-gcc-export-header-prolog:53:48: warning: redeclaration of 'FlightSQLErrorFromArrayStream' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:29:19: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:54:45: warning: redeclaration of 'FlightSQLDatabaseGetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:31:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:55:45: warning: redeclaration of 'FlightSQLDatabaseGetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:33:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:56:45: warning: redeclaration of 'FlightSQLDatabaseGetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:35:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:57:45: warning: redeclaration of 'FlightSQLDatabaseGetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:37:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:58:45: warning: redeclaration of 'FlightSQLDatabaseInit' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:39:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:59:45: warning: redeclaration of 'FlightSQLDatabaseNew' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:40:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:60:45: warning: redeclaration of 'FlightSQLDatabaseRelease' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:41:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:61:45: warning: redeclaration of 'FlightSQLDatabaseSetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:42:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:62:45: warning: redeclaration of 'FlightSQLDatabaseSetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:44:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:63:45: warning: redeclaration of 'FlightSQLDatabaseSetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:46:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:64:45: warning: redeclaration of 'FlightSQLDatabaseSetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:48:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:65:45: warning: redeclaration of 'FlightSQLConnectionGetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:62:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:66:45: warning: redeclaration of 'FlightSQLConnectionGetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:64:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:67:45: warning: redeclaration of 'FlightSQLConnectionGetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:66:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:68:45: warning: redeclaration of 'FlightSQLConnectionGetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:68:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:69:45: warning: redeclaration of 'FlightSQLConnectionNew' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:85:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:70:45: warning: redeclaration of 'FlightSQLConnectionSetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:95:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:71:45: warning: redeclaration of 'FlightSQLConnectionSetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:97:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:72:45: warning: redeclaration of 'FlightSQLConnectionSetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:100:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:73:45: warning: redeclaration of 'FlightSQLConnectionSetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:102:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:74:45: warning: redeclaration of 'FlightSQLConnectionInit' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:83:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:75:45: warning: redeclaration of 'FlightSQLConnectionRelease' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:91:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:76:45: warning: redeclaration of 'FlightSQLConnectionCancel' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:51:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:77:45: warning: redeclaration of 'FlightSQLConnectionGetInfo' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:54:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:78:45: warning: redeclaration of 'FlightSQLConnectionGetObjects' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:58:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:79:45: warning: redeclaration of 'FlightSQLConnectionGetStatistics' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:70:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:80:45: warning: redeclaration of 'FlightSQLConnectionGetStatisticNames' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:74:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:81:45: warning: redeclaration of 'FlightSQLConnectionGetTableSchema' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:77:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:82:45: warning: redeclaration of 'FlightSQLConnectionGetTableTypes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:80:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:83:45: warning: redeclaration of 'FlightSQLConnectionReadPartition' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:86:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:84:45: warning: redeclaration of 'FlightSQLConnectionCommit' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:52:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:85:45: warning: redeclaration of 'FlightSQLConnectionRollback' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:93:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:86:45: warning: redeclaration of 'FlightSQLStatementGetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:125:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:87:45: warning: redeclaration of 'FlightSQLStatementGetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:127:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:88:45: warning: redeclaration of 'FlightSQLStatementGetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:129:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:89:45: warning: redeclaration of 'FlightSQLStatementGetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:131:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:90:45: warning: redeclaration of 'FlightSQLStatementNew' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:136:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:91:45: warning: redeclaration of 'FlightSQLStatementRelease' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:140:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:92:45: warning: redeclaration of 'FlightSQLStatementCancel' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:111:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:93:45: warning: redeclaration of 'FlightSQLStatementPrepare' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:138:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:94:45: warning: redeclaration of 'FlightSQLStatementExecuteQuery' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:112:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:95:45: warning: redeclaration of 'FlightSQLStatementExecuteSchema' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:123:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:96:45: warning: redeclaration of 'FlightSQLStatementSetSqlQuery' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:151:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:97:45: warning: redeclaration of 'FlightSQLStatementSetSubstraitPlan' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:153:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:98:45: warning: redeclaration of 'FlightSQLStatementBind' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:105:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:99:45: warning: redeclaration of 'FlightSQLStatementBindStream' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:108:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:100:45: warning: redeclaration of 'FlightSQLStatementGetParameterSchema' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:133:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:101:45: warning: redeclaration of 'FlightSQLStatementSetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:142:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:102:45: warning: redeclaration of 'FlightSQLStatementSetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:144:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:103:45: warning: redeclaration of 'FlightSQLStatementSetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:147:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:104:45: warning: redeclaration of 'FlightSQLStatementSetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:149:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:105:35: warning: redeclaration of 'releasePartitions' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  driver.go:48:7: note: previous declaration is here
  cgo-gcc-export-header-prolog:106:45: warning: redeclaration of 'FlightSQLStatementExecutePartitions' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:115:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:107:45: warning: redeclaration of 'FlightSQLDriverInit' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:157:16: note: previous declaration is here
  # github.com/apache/arrow-adbc/go/adbc/pkg/flightsql
  D:\M\msys64\clang64\lib\go\pkg\tool\windows_amd64\link.exe: running clang failed: exit status 1
  D:\M\msys64\clang64\bin\clang.exe -m64 -s -mconsole -Wl,--tsaware -Wl,--nxcompat -Wl,--major-os-version=6 -Wl,--minor-os-version=1 -Wl,--major-subsystem-version=6 -Wl,--minor-subsystem-version=1 -shared -Wl,--dynamicbase -Wl,--high-entropy-va -o libadbc_driver_flightsql.dll.104.0.0 D:\M\msys64\tmp\go-link-3186048473\go.o D:\M\msys64\tmp\go-link-3186048473\000000.o D:\M\msys64\tmp\go-link-3186048473\000001.o D:\M\msys64\tmp\go-link-3186048473\000002.o D:\M\msys64\tmp\go-link-3186048473\000003.o D:\M\msys64\tmp\go-link-3186048473\000004.o D:\M\msys64\tmp\go-link-3186048473\000005.o D:\M\msys64\tmp\go-link-3186048473\000006.o D:\M\msys64\tmp\go-link-3186048473\000007.o D:\M\msys64\tmp\go-link-3186048473\000008.o D:\M\msys64\tmp\go-link-3186048473\000009.o D:\M\msys64\tmp\go-link-3186048473\000010.o D:\M\msys64\tmp\go-link-3186048473\000011.o D:\M\msys64\tmp\go-link-3186048473\000012.o D:\M\msys64\tmp\go-link-3186048473\000013.o D:\M\msys64\tmp\go-link-3186048473\000014.o D:\M\msys64\tmp\go-link-3186048473\000015.o D:\M\msys64\tmp\go-link-3186048473\000016.o D:\M\msys64\tmp\go-link-3186048473\000017.o D:\M\msys64\tmp\go-link-3186048473\000018.o D:\M\msys64\tmp\go-link-3186048473\000019.o -O2 -g -O2 -g -O2 -g -O2 -g -Wl,-soname,libadbc_driver_flightsql.dll.104 -Wl,-T,D:\M\msys64\tmp\go-link-3186048473\fix_debug_gdb_scripts.ld -Wl,--start-group -lmingwex -lmingw32 -Wl,--end-group -lkernel32
  lld: error: unknown argument: -soname
  
  lld: error: unknown argument: -T
  
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  
  
  [38/39] Building Go Static lib adbc_driver_flightsql
  go: downloading google.golang.org/protobuf v1.35.2
  go: downloading golang.org/x/exp v0.0.0-20240909161429-701f63a606c0
  go: downloading golang.org/x/sync v0.9.0
  go: downloading google.golang.org/grpc v1.68.0
  go: downloading golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da
  go: downloading golang.org/x/sys v0.27.0
  go: downloading github.com/klauspost/compress v1.17.11
  go: downloading github.com/google/flatbuffers v24.3.25+incompatible
  go: downloading github.com/pierrec/lz4/v4 v4.1.21
  go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20241113202542-65e8d215514f
  go: downloading google.golang.org/genproto v0.0.0-20241113202542-65e8d215514f
  go: downloading github.com/zeebo/xxh3 v1.0.2
  go: downloading github.com/goccy/go-json v0.10.3
  go: downloading github.com/klauspost/cpuid/v2 v2.2.8
  go: downloading golang.org/x/text v0.20.0
  # github.com/apache/arrow-go/v18/arrow/cdata
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:51:34: warning: redeclaration of 'streamGetSchema' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  exports.go:31:13: note: previous declaration is here
  cgo-gcc-export-header-prolog:52:34: warning: redeclaration of 'streamGetNext' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  exports.go:32:13: note: previous declaration is here
  cgo-gcc-export-header-prolog:53:39: warning: redeclaration of 'streamGetError' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  exports.go:33:21: note: previous declaration is here
  cgo-gcc-export-header-prolog:54:35: warning: redeclaration of 'streamRelease' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  exports.go:34:14: note: previous declaration is here
  # github.com/apache/arrow-adbc/go/adbc/pkg/flightsql
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:49:39: warning: redeclaration of 'FlightSQLArrayStreamGetLastError' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  driver.go:42:14: note: previous declaration is here
  cgo-gcc-export-header-prolog:50:34: warning: redeclaration of 'FlightSQLArrayStreamGetNext' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  driver.go:41:6: note: previous declaration is here
  cgo-gcc-export-header-prolog:51:34: warning: redeclaration of 'FlightSQLArrayStreamGetSchema' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  driver.go:40:6: note: previous declaration is here
  cgo-gcc-export-header-prolog:52:35: warning: redeclaration of 'FlightSQLArrayStreamRelease' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  driver.go:43:7: note: previous declaration is here
  cgo-gcc-export-header-prolog:53:48: warning: redeclaration of 'FlightSQLErrorFromArrayStream' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:29:19: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:54:45: warning: redeclaration of 'FlightSQLDatabaseGetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:31:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:55:45: warning: redeclaration of 'FlightSQLDatabaseGetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:33:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:56:45: warning: redeclaration of 'FlightSQLDatabaseGetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:35:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:57:45: warning: redeclaration of 'FlightSQLDatabaseGetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:37:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:58:45: warning: redeclaration of 'FlightSQLDatabaseInit' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:39:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:59:45: warning: redeclaration of 'FlightSQLDatabaseNew' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:40:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:60:45: warning: redeclaration of 'FlightSQLDatabaseRelease' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:41:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:61:45: warning: redeclaration of 'FlightSQLDatabaseSetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:42:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:62:45: warning: redeclaration of 'FlightSQLDatabaseSetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:44:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:63:45: warning: redeclaration of 'FlightSQLDatabaseSetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:46:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:64:45: warning: redeclaration of 'FlightSQLDatabaseSetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:48:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:65:45: warning: redeclaration of 'FlightSQLConnectionGetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:62:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:66:45: warning: redeclaration of 'FlightSQLConnectionGetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:64:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:67:45: warning: redeclaration of 'FlightSQLConnectionGetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:66:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:68:45: warning: redeclaration of 'FlightSQLConnectionGetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:68:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:69:45: warning: redeclaration of 'FlightSQLConnectionNew' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:85:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:70:45: warning: redeclaration of 'FlightSQLConnectionSetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:95:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:71:45: warning: redeclaration of 'FlightSQLConnectionSetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:97:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:72:45: warning: redeclaration of 'FlightSQLConnectionSetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:100:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:73:45: warning: redeclaration of 'FlightSQLConnectionSetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:102:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:74:45: warning: redeclaration of 'FlightSQLConnectionInit' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:83:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:75:45: warning: redeclaration of 'FlightSQLConnectionRelease' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:91:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:76:45: warning: redeclaration of 'FlightSQLConnectionCancel' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:51:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:77:45: warning: redeclaration of 'FlightSQLConnectionGetInfo' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:54:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:78:45: warning: redeclaration of 'FlightSQLConnectionGetObjects' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:58:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:79:45: warning: redeclaration of 'FlightSQLConnectionGetStatistics' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:70:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:80:45: warning: redeclaration of 'FlightSQLConnectionGetStatisticNames' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:74:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:81:45: warning: redeclaration of 'FlightSQLConnectionGetTableSchema' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:77:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:82:45: warning: redeclaration of 'FlightSQLConnectionGetTableTypes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:80:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:83:45: warning: redeclaration of 'FlightSQLConnectionReadPartition' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:86:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:84:45: warning: redeclaration of 'FlightSQLConnectionCommit' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:52:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:85:45: warning: redeclaration of 'FlightSQLConnectionRollback' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:93:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:86:45: warning: redeclaration of 'FlightSQLStatementGetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:125:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:87:45: warning: redeclaration of 'FlightSQLStatementGetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:127:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:88:45: warning: redeclaration of 'FlightSQLStatementGetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:129:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:89:45: warning: redeclaration of 'FlightSQLStatementGetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:131:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:90:45: warning: redeclaration of 'FlightSQLStatementNew' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:136:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:91:45: warning: redeclaration of 'FlightSQLStatementRelease' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:140:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:92:45: warning: redeclaration of 'FlightSQLStatementCancel' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:111:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:93:45: warning: redeclaration of 'FlightSQLStatementPrepare' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:138:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:94:45: warning: redeclaration of 'FlightSQLStatementExecuteQuery' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:112:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:95:45: warning: redeclaration of 'FlightSQLStatementExecuteSchema' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:123:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:96:45: warning: redeclaration of 'FlightSQLStatementSetSqlQuery' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:151:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:97:45: warning: redeclaration of 'FlightSQLStatementSetSubstraitPlan' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:153:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:98:45: warning: redeclaration of 'FlightSQLStatementBind' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:105:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:99:45: warning: redeclaration of 'FlightSQLStatementBindStream' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:108:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:100:45: warning: redeclaration of 'FlightSQLStatementGetParameterSchema' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:133:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:101:45: warning: redeclaration of 'FlightSQLStatementSetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:142:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:102:45: warning: redeclaration of 'FlightSQLStatementSetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:144:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:103:45: warning: redeclaration of 'FlightSQLStatementSetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:147:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:104:45: warning: redeclaration of 'FlightSQLStatementSetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:149:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:105:35: warning: redeclaration of 'releasePartitions' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  driver.go:48:7: note: previous declaration is here
  cgo-gcc-export-header-prolog:106:45: warning: redeclaration of 'FlightSQLStatementExecutePartitions' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:115:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:107:45: warning: redeclaration of 'FlightSQLDriverInit' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  
  ./utils.h:157:16: note: previous declaration is here
  
  ninja: build stopped: subcommand failed.
  ==> ERROR: A failure occurred in build().
      Aborting...
  ==> Removing installed dependencies...
  checking dependencies...
  
  Packages (120) git-2.47.1-1  heimdal-7.8.0-5  libcbor-0.11.0-1  libfido2-1.15.0-1  mingw-w64-clang-x86_64-abseil-cpp-20240722.0-3  mingw-w64-clang-x86_64-arrow-18.1.0-2  mingw-w64-clang-x86_64-aws-c-auth-0.8.0-1  mingw-w64-clang-x86_64-aws-c-cal-0.8.0-1  mingw-w64-clang-x86_64-aws-c-common-0.10.0-1  mingw-w64-clang-x86_64-aws-c-compression-0.3.0-1  mingw-w64-clang-x86_64-aws-c-event-stream-0.5.0-1  mingw-w64-clang-x86_64-aws-c-http-0.9.0-1  mingw-w64-clang-x86_64-aws-c-io-0.15.0-1  mingw-w64-clang-x86_64-aws-c-mqtt-0.11.0-1  mingw-w64-clang-x86_64-aws-c-s3-0.7.0-1  mingw-w64-clang-x86_64-aws-c-sdkutils-0.2.0-1  mingw-w64-clang-x86_64-aws-checksums-0.2.0-1  mingw-w64-clang-x86_64-aws-crt-cpp-0.29.0-1  mingw-w64-clang-x86_64-aws-sdk-cpp-1.11.435-1  mingw-w64-clang-x86_64-brotli-1.1.0-4  mingw-w64-clang-x86_64-bzip2-1.0.8-3  mingw-w64-clang-x86_64-c-ares-1.34.3-1  mingw-w64-clang-x86_64-ca-certificates-20240203-1  mingw-w64-clang-x86_64-clang-19.1.4-1  mingw-w64-clang-x86_64-clang-libs-19.1.4-1  mingw-w64-clang-x86_64-cmake-3.31.2-3  mingw-w64-clang-x86_64-compiler-rt-19.1.4-1  mingw-w64-clang-x86_64-cppdap-1.65-1  mingw-w64-clang-x86_64-crt-git-12.0.0.r423.g8bcd5fc1a-1  mingw-w64-clang-x86_64-curl-8.11.0-2  mingw-w64-clang-x86_64-double-conversion-3.3.0-1  mingw-w64-clang-x86_64-expat-2.6.4-1  mingw-w64-clang-x86_64-flatbuffers-24.3.25-3  mingw-w64-clang-x86_64-gettext-runtime-0.22.5-2  mingw-w64-clang-x86_64-gflags-2.2.2-4  mingw-w64-clang-x86_64-glib2-2.82.2-1  mingw-w64-clang-x86_64-go-1.23.2-1  mingw-w64-clang-x86_64-grpc-1.68.2-1  mingw-w64-clang-x86_64-headers-git-12.0.0.r423.g8bcd5fc1a-1  mingw-w64-clang-x86_64-jsoncpp-1.9.6-3  mingw-w64-clang-x86_64-libarchive-3.7.7-1  mingw-w64-clang-x86_64-libb2-0.98.1-2  mingw-w64-clang-x86_64-libc++-19.1.4-1  mingw-w64-clang-x86_64-libffi-3.4.6-1  mingw-w64-clang-x86_64-libiconv-1.17-4  mingw-w64-clang-x86_64-libidn2-2.3.7-2  mingw-w64-clang-x86_64-libpsl-0.21.5-3  mingw-w64-clang-x86_64-libssh2-1.11.1-1  mingw-w64-clang-x86_64-libsystre-1.0.1-6  mingw-w64-clang-x86_64-libtasn1-4.19.0-1  mingw-w64-clang-x86_64-libtre-0.9.0-1  mingw-w64-clang-x86_64-libunistring-1.2-1  mingw-w64-clang-x86_64-libunwind-19.1.4-1  mingw-w64-clang-x86_64-libutf8proc-2.9.0-1  mingw-w64-clang-x86_64-libuv-1.49.2-1  mingw-w64-clang-x86_64-libwinpthread-git-12.0.0.r423.g8bcd5fc1a-1  mingw-w64-clang-x86_64-libxml2-2.12.9-2  mingw-w64-clang-x86_64-lld-19.1.4-1  mingw-w64-clang-x86_64-llvm-19.1.4-1  mingw-w64-clang-x86_64-llvm-libs-19.1.4-1  mingw-w64-clang-x86_64-lz4-1.10.0-1  mingw-w64-clang-x86_64-mpdecimal-4.0.0-1  mingw-w64-clang-x86_64-nanoarrow-0.5.0-1  mingw-w64-clang-x86_64-ncurses-6.5.20240831-1  mingw-w64-clang-x86_64-nghttp2-1.63.0-1  mingw-w64-clang-x86_64-nghttp3-1.6.0-1  mingw-w64-clang-x86_64-ninja-1.12.1-1  mingw-w64-clang-x86_64-openssl-3.4.0-1  mingw-w64-clang-x86_64-p11-kit-0.25.5-1  mingw-w64-clang-x86_64-pcre2-10.44-1  mingw-w64-clang-x86_64-pkgconf-1~2.3.0-1  mingw-w64-clang-x86_64-protobuf-28.3-2  mingw-w64-clang-x86_64-python-3.12.7-3  mingw-w64-clang-x86_64-python-packaging-24.2-1  mingw-w64-clang-x86_64-re2-20240702-2  mingw-w64-clang-x86_64-readline-8.2.013-1  mingw-w64-clang-x86_64-rhash-1.4.4-3  mingw-w64-clang-x86_64-snappy-1.2.1-1  mingw-w64-clang-x86_64-sqlite3-3.46.1-1  mingw-w64-clang-x86_64-tcl-8.6.13-1  mingw-w64-clang-x86_64-termcap-1.3.1-7  mingw-w64-clang-x86_64-thrift-0.21.0-1  mingw-w64-clang-x86_64-tk-8.6.13-1  mingw-w64-clang-x86_64-tzdata-2024b-1  mingw-w64-clang-x86_64-uriparser-0.9.8-1  mingw-w64-clang-x86_64-wineditline-2.208-1  mingw-w64-clang-x86_64-winpthreads-git-12.0.0.r423.g8bcd5fc1a-1  mingw-w64-clang-x86_64-xz-5.6.3-3  mingw-w64-clang-x86_64-zlib-1.3.1-1  mingw-w64-clang-x86_64-zstd-1.5.6-2  openssh-9.9p1-1  perl-Authen-SASL-2.1700-1  perl-Clone-0.47-1  perl-Convert-BinHex-1.125-2  perl-Encode-Locale-1.05-2  perl-Error-0.17029-2  perl-File-Listing-6.16-1  perl-HTML-Parser-3.83-1  perl-HTML-Tagset-3.24-1  perl-HTTP-Cookies-6.11-1  perl-HTTP-Daemon-6.16-1  perl-HTTP-Date-6.06-1  perl-HTTP-Message-6.46-1  perl-HTTP-Negotiate-6.01-3  perl-IO-HTML-1.004-2  perl-IO-Socket-SSL-2.089-1  perl-IO-Stringy-2.113-2  perl-LWP-MediaTypes-6.04-2  perl-MIME-tools-5.515-1  perl-MailTools-2.21-2  perl-Net-HTTP-6.23-1  perl-Net-SMTP-SSL-1.04-2  perl-Net-SSLeay-1.94-1  perl-TermReadKey-2.38-6  perl-TimeDate-2.33-2  perl-Try-Tiny-0.32-1  perl-URI-5.29-1  perl-WWW-RobotRules-6.02-3  perl-http-cookiejar-0.014-1  perl-libwww-6.77-1
  

@taozuhong
Copy link
Author

Please see page: msys2/MINGW-packages#22754

@taozuhong
Copy link
Author

Ah, we may not need dllimport/dllexport for struct in C:

diff --git a/c/include/arrow-adbc/adbc.h b/c/include/arrow-adbc/adbc.h
index b965672e6..94be40a34 100644
--- a/c/include/arrow-adbc/adbc.h
+++ b/c/include/arrow-adbc/adbc.h
@@ -158,8 +158,18 @@ struct ArrowArrayStream {
 #else
 #define ADBC_EXPORT __declspec(dllimport)
 #endif  // defined(ADBC_EXPORTING)
+#if defined(__cplusplus)
+#if defined(ADBC_EXPORTING)
+#define ADBC_EXPORT_STRUCT __declspec(dllexport)
+#else
+#define ADBC_EXPORT_STRUCT __declspec(dllimport)
+#endif  // defined(ADBC_EXPORTING)
+#else
+#define ADBC_EXPORT_STRUCT
+#endif  // defined(__cplusplus)
 #else
 #define ADBC_EXPORT
+#define ADBC_EXPORT_STRUCT
 #endif  // defined(_WIN32)
 #endif  // !defined(ADBC_EXPORT)
 

I've tried this solution, it will break the build pipe with CLANG compiler, it throws many warn messages

go: downloading golang.org/x/text v0.20.0
  # github.com/apache/arrow-go/v18/arrow/cdata
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:51:34: warning: redeclaration of 'streamGetSchema' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  exports.go:31:13: note: previous declaration is here
  cgo-gcc-export-header-prolog:52:34: warning: redeclaration of 'streamGetNext' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  exports.go:32:13: note: previous declaration is here
  cgo-gcc-export-header-prolog:53:39: warning: redeclaration of 'streamGetError' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  exports.go:33:21: note: previous declaration is here
  cgo-gcc-export-header-prolog:54:35: warning: redeclaration of 'streamRelease' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  exports.go:34:14: note: previous declaration is here
  # github.com/apache/arrow-adbc/go/adbc/pkg/flightsql
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:49:39: warning: redeclaration of 'FlightSQLArrayStreamGetLastError' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  driver.go:42:14: note: previous declaration is here
  cgo-gcc-export-header-prolog:50:34: warning: redeclaration of 'FlightSQLArrayStreamGetNext' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  driver.go:41:6: note: previous declaration is here
  cgo-gcc-export-header-prolog:51:34: warning: redeclaration of 'FlightSQLArrayStreamGetSchema' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  driver.go:40:6: note: previous declaration is here
  cgo-gcc-export-header-prolog:52:35: warning: redeclaration of 'FlightSQLArrayStreamRelease' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  driver.go:43:7: note: previous declaration is here
  cgo-gcc-export-header-prolog:53:48: warning: redeclaration of 'FlightSQLErrorFromArrayStream' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:29:19: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:54:45: warning: redeclaration of 'FlightSQLDatabaseGetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:31:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:55:45: warning: redeclaration of 'FlightSQLDatabaseGetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:33:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:56:45: warning: redeclaration of 'FlightSQLDatabaseGetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:35:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:57:45: warning: redeclaration of 'FlightSQLDatabaseGetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:37:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:58:45: warning: redeclaration of 'FlightSQLDatabaseInit' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:39:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:59:45: warning: redeclaration of 'FlightSQLDatabaseNew' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:40:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:60:45: warning: redeclaration of 'FlightSQLDatabaseRelease' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:41:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:61:45: warning: redeclaration of 'FlightSQLDatabaseSetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:42:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:62:45: warning: redeclaration of 'FlightSQLDatabaseSetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:44:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:63:45: warning: redeclaration of 'FlightSQLDatabaseSetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:46:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:64:45: warning: redeclaration of 'FlightSQLDatabaseSetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:48:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:65:45: warning: redeclaration of 'FlightSQLConnectionGetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:62:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:66:45: warning: redeclaration of 'FlightSQLConnectionGetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:64:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:67:45: warning: redeclaration of 'FlightSQLConnectionGetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:66:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:68:45: warning: redeclaration of 'FlightSQLConnectionGetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:68:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:69:45: warning: redeclaration of 'FlightSQLConnectionNew' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:85:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:70:45: warning: redeclaration of 'FlightSQLConnectionSetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:95:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:71:45: warning: redeclaration of 'FlightSQLConnectionSetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:97:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:72:45: warning: redeclaration of 'FlightSQLConnectionSetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:100:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:73:45: warning: redeclaration of 'FlightSQLConnectionSetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:102:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:74:45: warning: redeclaration of 'FlightSQLConnectionInit' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:83:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:75:45: warning: redeclaration of 'FlightSQLConnectionRelease' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:91:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:76:45: warning: redeclaration of 'FlightSQLConnectionCancel' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:51:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:77:45: warning: redeclaration of 'FlightSQLConnectionGetInfo' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:54:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:78:45: warning: redeclaration of 'FlightSQLConnectionGetObjects' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:58:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:79:45: warning: redeclaration of 'FlightSQLConnectionGetStatistics' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:70:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:80:45: warning: redeclaration of 'FlightSQLConnectionGetStatisticNames' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:74:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:81:45: warning: redeclaration of 'FlightSQLConnectionGetTableSchema' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:77:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:82:45: warning: redeclaration of 'FlightSQLConnectionGetTableTypes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:80:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:83:45: warning: redeclaration of 'FlightSQLConnectionReadPartition' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:86:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:84:45: warning: redeclaration of 'FlightSQLConnectionCommit' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:52:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:85:45: warning: redeclaration of 'FlightSQLConnectionRollback' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:93:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:86:45: warning: redeclaration of 'FlightSQLStatementGetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:125:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:87:45: warning: redeclaration of 'FlightSQLStatementGetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:127:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:88:45: warning: redeclaration of 'FlightSQLStatementGetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:129:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:89:45: warning: redeclaration of 'FlightSQLStatementGetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:131:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:90:45: warning: redeclaration of 'FlightSQLStatementNew' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:136:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:91:45: warning: redeclaration of 'FlightSQLStatementRelease' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:140:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:92:45: warning: redeclaration of 'FlightSQLStatementCancel' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:111:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:93:45: warning: redeclaration of 'FlightSQLStatementPrepare' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:138:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:94:45: warning: redeclaration of 'FlightSQLStatementExecuteQuery' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:112:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:95:45: warning: redeclaration of 'FlightSQLStatementExecuteSchema' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:123:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:96:45: warning: redeclaration of 'FlightSQLStatementSetSqlQuery' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:151:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:97:45: warning: redeclaration of 'FlightSQLStatementSetSubstraitPlan' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:153:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:98:45: warning: redeclaration of 'FlightSQLStatementBind' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:105:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:99:45: warning: redeclaration of 'FlightSQLStatementBindStream' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:108:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:100:45: warning: redeclaration of 'FlightSQLStatementGetParameterSchema' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:133:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:101:45: warning: redeclaration of 'FlightSQLStatementSetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:142:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:102:45: warning: redeclaration of 'FlightSQLStatementSetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:144:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:103:45: warning: redeclaration of 'FlightSQLStatementSetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:147:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:104:45: warning: redeclaration of 'FlightSQLStatementSetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:149:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:105:35: warning: redeclaration of 'releasePartitions' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  driver.go:48:7: note: previous declaration is here
  cgo-gcc-export-header-prolog:106:45: warning: redeclaration of 'FlightSQLStatementExecutePartitions' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:115:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:107:45: warning: redeclaration of 'FlightSQLDriverInit' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:157:16: note: previous declaration is here
  # github.com/apache/arrow-adbc/go/adbc/pkg/flightsql
  D:\M\msys64\clang64\lib\go\pkg\tool\windows_amd64\link.exe: running clang failed: exit status 1
  D:\M\msys64\clang64\bin\clang.exe -m64 -s -mconsole -Wl,--tsaware -Wl,--nxcompat -Wl,--major-os-version=6 -Wl,--minor-os-version=1 -Wl,--major-subsystem-version=6 -Wl,--minor-subsystem-version=1 -shared -Wl,--dynamicbase -Wl,--high-entropy-va -o libadbc_driver_flightsql.dll.104.0.0 D:\M\msys64\tmp\go-link-956582390\go.o D:\M\msys64\tmp\go-link-956582390\000000.o D:\M\msys64\tmp\go-link-956582390\000001.o D:\M\msys64\tmp\go-link-956582390\000002.o D:\M\msys64\tmp\go-link-956582390\000003.o D:\M\msys64\tmp\go-link-956582390\000004.o D:\M\msys64\tmp\go-link-956582390\000005.o D:\M\msys64\tmp\go-link-956582390\000006.o D:\M\msys64\tmp\go-link-956582390\000007.o D:\M\msys64\tmp\go-link-956582390\000008.o D:\M\msys64\tmp\go-link-956582390\000009.o D:\M\msys64\tmp\go-link-956582390\000010.o D:\M\msys64\tmp\go-link-956582390\000011.o D:\M\msys64\tmp\go-link-956582390\000012.o D:\M\msys64\tmp\go-link-956582390\000013.o D:\M\msys64\tmp\go-link-956582390\000014.o D:\M\msys64\tmp\go-link-956582390\000015.o D:\M\msys64\tmp\go-link-956582390\000016.o D:\M\msys64\tmp\go-link-956582390\000017.o D:\M\msys64\tmp\go-link-956582390\000018.o D:\M\msys64\tmp\go-link-956582390\000019.o -O2 -g -O2 -g -O2 -g -O2 -g -Wl,-soname,libadbc_driver_flightsql.dll.104 -Wl,-T,D:\M\msys64\tmp\go-link-956582390\fix_debug_gdb_scripts.ld -Wl,--start-group -lmingwex -lmingw32 -Wl,--end-group -lkernel32
  lld: error: unknown argument: -soname
  
  lld: error: unknown argument: -T
  
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  
  
  [38/39] Building Go Static lib adbc_driver_flightsql
  go: downloading google.golang.org/protobuf v1.35.2
  go: downloading github.com/bluele/gcache v0.0.2
  go: downloading golang.org/x/exp v0.0.0-20240909161429-701f63a606c0
  go: downloading google.golang.org/grpc v1.68.0
  go: downloading golang.org/x/sync v0.9.0
  go: downloading golang.org/x/sys v0.27.0
  go: downloading golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da
  go: downloading github.com/google/flatbuffers v24.3.25+incompatible
  go: downloading github.com/pierrec/lz4/v4 v4.1.21
  go: downloading github.com/klauspost/compress v1.17.11
  go: downloading golang.org/x/net v0.31.0
  go: downloading github.com/zeebo/xxh3 v1.0.2
  go: downloading github.com/goccy/go-json v0.10.3
  go: downloading github.com/klauspost/cpuid/v2 v2.2.8
  go: downloading golang.org/x/text v0.20.0
  # github.com/apache/arrow-go/v18/arrow/cdata
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:51:34: warning: redeclaration of 'streamGetSchema' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  exports.go:31:13: note: previous declaration is here
  cgo-gcc-export-header-prolog:52:34: warning: redeclaration of 'streamGetNext' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  exports.go:32:13: note: previous declaration is here
  cgo-gcc-export-header-prolog:53:39: warning: redeclaration of 'streamGetError' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  exports.go:33:21: note: previous declaration is here
  cgo-gcc-export-header-prolog:54:35: warning: redeclaration of 'streamRelease' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  exports.go:34:14: note: previous declaration is here
  # github.com/apache/arrow-adbc/go/adbc/pkg/flightsql
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:49:39: warning: redeclaration of 'FlightSQLArrayStreamGetLastError' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  driver.go:42:14: note: previous declaration is here
  cgo-gcc-export-header-prolog:50:34: warning: redeclaration of 'FlightSQLArrayStreamGetNext' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  driver.go:41:6: note: previous declaration is here
  cgo-gcc-export-header-prolog:51:34: warning: redeclaration of 'FlightSQLArrayStreamGetSchema' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  driver.go:40:6: note: previous declaration is here
  cgo-gcc-export-header-prolog:52:35: warning: redeclaration of 'FlightSQLArrayStreamRelease' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  driver.go:43:7: note: previous declaration is here
  cgo-gcc-export-header-prolog:53:48: warning: redeclaration of 'FlightSQLErrorFromArrayStream' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:29:19: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:54:45: warning: redeclaration of 'FlightSQLDatabaseGetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:31:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:55:45: warning: redeclaration of 'FlightSQLDatabaseGetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:33:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:56:45: warning: redeclaration of 'FlightSQLDatabaseGetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:35:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:57:45: warning: redeclaration of 'FlightSQLDatabaseGetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:37:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:58:45: warning: redeclaration of 'FlightSQLDatabaseInit' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:39:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:59:45: warning: redeclaration of 'FlightSQLDatabaseNew' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:40:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:60:45: warning: redeclaration of 'FlightSQLDatabaseRelease' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:41:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:61:45: warning: redeclaration of 'FlightSQLDatabaseSetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:42:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:62:45: warning: redeclaration of 'FlightSQLDatabaseSetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:44:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:63:45: warning: redeclaration of 'FlightSQLDatabaseSetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:46:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:64:45: warning: redeclaration of 'FlightSQLDatabaseSetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:48:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:65:45: warning: redeclaration of 'FlightSQLConnectionGetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:62:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:66:45: warning: redeclaration of 'FlightSQLConnectionGetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:64:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:67:45: warning: redeclaration of 'FlightSQLConnectionGetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:66:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:68:45: warning: redeclaration of 'FlightSQLConnectionGetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:68:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:69:45: warning: redeclaration of 'FlightSQLConnectionNew' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:85:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:70:45: warning: redeclaration of 'FlightSQLConnectionSetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:95:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:71:45: warning: redeclaration of 'FlightSQLConnectionSetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:97:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:72:45: warning: redeclaration of 'FlightSQLConnectionSetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:100:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:73:45: warning: redeclaration of 'FlightSQLConnectionSetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:102:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:74:45: warning: redeclaration of 'FlightSQLConnectionInit' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:83:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:75:45: warning: redeclaration of 'FlightSQLConnectionRelease' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:91:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:76:45: warning: redeclaration of 'FlightSQLConnectionCancel' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:51:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:77:45: warning: redeclaration of 'FlightSQLConnectionGetInfo' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:54:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:78:45: warning: redeclaration of 'FlightSQLConnectionGetObjects' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:58:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:79:45: warning: redeclaration of 'FlightSQLConnectionGetStatistics' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:70:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:80:45: warning: redeclaration of 'FlightSQLConnectionGetStatisticNames' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:74:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:81:45: warning: redeclaration of 'FlightSQLConnectionGetTableSchema' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:77:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:82:45: warning: redeclaration of 'FlightSQLConnectionGetTableTypes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:80:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:83:45: warning: redeclaration of 'FlightSQLConnectionReadPartition' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:86:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:84:45: warning: redeclaration of 'FlightSQLConnectionCommit' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:52:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:85:45: warning: redeclaration of 'FlightSQLConnectionRollback' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:93:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:86:45: warning: redeclaration of 'FlightSQLStatementGetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:125:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:87:45: warning: redeclaration of 'FlightSQLStatementGetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:127:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:88:45: warning: redeclaration of 'FlightSQLStatementGetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:129:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:89:45: warning: redeclaration of 'FlightSQLStatementGetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:131:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:90:45: warning: redeclaration of 'FlightSQLStatementNew' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:136:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:91:45: warning: redeclaration of 'FlightSQLStatementRelease' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:140:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:92:45: warning: redeclaration of 'FlightSQLStatementCancel' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:111:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:93:45: warning: redeclaration of 'FlightSQLStatementPrepare' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:138:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:94:45: warning: redeclaration of 'FlightSQLStatementExecuteQuery' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:112:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:95:45: warning: redeclaration of 'FlightSQLStatementExecuteSchema' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:123:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:96:45: warning: redeclaration of 'FlightSQLStatementSetSqlQuery' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:151:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:97:45: warning: redeclaration of 'FlightSQLStatementSetSubstraitPlan' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:153:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:98:45: warning: redeclaration of 'FlightSQLStatementBind' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:105:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:99:45: warning: redeclaration of 'FlightSQLStatementBindStream' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:108:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:100:45: warning: redeclaration of 'FlightSQLStatementGetParameterSchema' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:133:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:101:45: warning: redeclaration of 'FlightSQLStatementSetOption' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:142:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:102:45: warning: redeclaration of 'FlightSQLStatementSetOptionBytes' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:144:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:103:45: warning: redeclaration of 'FlightSQLStatementSetOptionDouble' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:147:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:104:45: warning: redeclaration of 'FlightSQLStatementSetOptionInt' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  ./utils.h:149:16: note: previous declaration is here
  In file included from _cgo_export.c:4:
  cgo-gcc-export-header-prolog:105:35: warning: redeclaration of 'releasePartitions' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  driver.go:48:7: note: previous declaration is here
  
  cgo-gcc-export-header-prolog:106:45: warning: redeclaration of 'FlightSQLStatementExecutePartitions' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  
  ./utils.h:115:16: note: previous declaration is here
  
  In file included from _cgo_export.c:4:
  
  cgo-gcc-export-header-prolog:107:45: warning: redeclaration of 'FlightSQLDriverInit' should not add 'dllexport' attribute [-Wdll-attribute-on-redeclaration]
  
  ./utils.h:157:16: note: previous declaration is here
  
  ninja: build stopped: subcommand failed.
  ==> ERROR: A failure occurred in build().
      Aborting...
  ==> Removing installed dependencies...
  checking dependencies...
  
  Packages (120) git-2.47.1-1  heimdal-7.8.0-5  libcbor-0.11.0-1  libfido2-1.15.0-1  mingw-w64-clang-x86_64-abseil-cpp-20240722.0-3  mingw-w64-clang-x86_64-arrow-18.1.0-2  mingw-w64-clang-x86_64-aws-c-auth-0.8.0-1  mingw-w64-clang-x86_64-aws-c-cal-0.8.0-1  mingw-w64-clang-x86_64-aws-c-common-0.10.0-1  mingw-w64-clang-x86_64-aws-c-compression-0.3.0-1  mingw-w64-clang-x86_64-aws-c-event-stream-0.5.0-1  mingw-w64-clang-x86_64-aws-c-http-0.9.0-1  mingw-w64-clang-x86_64-aws-c-io-0.15.0-1  mingw-w64-clang-x86_64-aws-c-mqtt-0.11.0-1  mingw-w64-clang-x86_64-aws-c-s3-0.7.0-1  mingw-w64-clang-x86_64-aws-c-sdkutils-0.2.0-1  mingw-w64-clang-x86_64-aws-checksums-0.2.0-1  mingw-w64-clang-x86_64-aws-crt-cpp-0.29.0-1  mingw-w64-clang-x86_64-aws-sdk-cpp-1.11.435-1  mingw-w64-clang-x86_64-brotli-1.1.0-4  mingw-w64-clang-x86_64-bzip2-1.0.8-3  mingw-w64-clang-x86_64-c-ares-1.34.3-1  mingw-w64-clang-x86_64-ca-certificates-20240203-1  mingw-w64-clang-x86_64-clang-19.1.4-1  mingw-w64-clang-x86_64-clang-libs-19.1.4-1  mingw-w64-clang-x86_64-cmake-3.31.2-3  mingw-w64-clang-x86_64-compiler-rt-19.1.4-1  mingw-w64-clang-x86_64-cppdap-1.65-1  mingw-w64-clang-x86_64-crt-git-12.0.0.r423.g8bcd5fc1a-1  mingw-w64-clang-x86_64-curl-8.11.0-2  mingw-w64-clang-x86_64-double-conversion-3.3.0-1  mingw-w64-clang-x86_64-expat-2.6.4-1  mingw-w64-clang-x86_64-flatbuffers-24.3.25-3  mingw-w64-clang-x86_64-gettext-runtime-0.22.5-2  mingw-w64-clang-x86_64-gflags-2.2.2-4  mingw-w64-clang-x86_64-glib2-2.82.2-1  mingw-w64-clang-x86_64-go-1.23.2-1  mingw-w64-clang-x86_64-grpc-1.68.2-1  mingw-w64-clang-x86_64-headers-git-12.0.0.r423.g8bcd5fc1a-1  mingw-w64-clang-x86_64-jsoncpp-1.9.6-3  mingw-w64-clang-x86_64-libarchive-3.7.7-1  mingw-w64-clang-x86_64-libb2-0.98.1-2  mingw-w64-clang-x86_64-libc++-19.1.4-1  mingw-w64-clang-x86_64-libffi-3.4.6-1  mingw-w64-clang-x86_64-libiconv-1.17-4  mingw-w64-clang-x86_64-libidn2-2.3.7-2  mingw-w64-clang-x86_64-libpsl-0.21.5-3  mingw-w64-clang-x86_64-libssh2-1.11.1-1  mingw-w64-clang-x86_64-libsystre-1.0.1-6  mingw-w64-clang-x86_64-libtasn1-4.19.0-1  mingw-w64-clang-x86_64-libtre-0.9.0-1  mingw-w64-clang-x86_64-libunistring-1.2-1  mingw-w64-clang-x86_64-libunwind-19.1.4-1  mingw-w64-clang-x86_64-libutf8proc-2.9.0-1  mingw-w64-clang-x86_64-libuv-1.49.2-1  mingw-w64-clang-x86_64-libwinpthread-git-12.0.0.r423.g8bcd5fc1a-1  mingw-w64-clang-x86_64-libxml2-2.12.9-2  mingw-w64-clang-x86_64-lld-19.1.4-1  mingw-w64-clang-x86_64-llvm-19.1.4-1  mingw-w64-clang-x86_64-llvm-libs-19.1.4-1  mingw-w64-clang-x86_64-lz4-1.10.0-1  mingw-w64-clang-x86_64-mpdecimal-4.0.0-1  mingw-w64-clang-x86_64-nanoarrow-0.5.0-1  mingw-w64-clang-x86_64-ncurses-6.5.20240831-1  mingw-w64-clang-x86_64-nghttp2-1.63.0-1  mingw-w64-clang-x86_64-nghttp3-1.6.0-1  mingw-w64-clang-x86_64-ninja-1.12.1-1  mingw-w64-clang-x86_64-openssl-3.4.0-1  mingw-w64-clang-x86_64-p11-kit-0.25.5-1  mingw-w64-clang-x86_64-pcre2-10.44-1  mingw-w64-clang-x86_64-pkgconf-1~2.3.0-1  mingw-w64-clang-x86_64-protobuf-28.3-2  mingw-w64-clang-x86_64-python-3.12.7-3  mingw-w64-clang-x86_64-python-packaging-24.2-1  mingw-w64-clang-x86_64-re2-20240702-2  mingw-w64-clang-x86_64-readline-8.2.013-1  mingw-w64-clang-x86_64-rhash-1.4.4-3  mingw-w64-clang-x86_64-snappy-1.2.1-1  mingw-w64-clang-x86_64-sqlite3-3.46.1-1  mingw-w64-clang-x86_64-tcl-8.6.13-1  mingw-w64-clang-x86_64-termcap-1.3.1-7  mingw-w64-clang-x86_64-thrift-0.21.0-1  mingw-w64-clang-x86_64-tk-8.6.13-1  mingw-w64-clang-x86_64-tzdata-2024b-1  mingw-w64-clang-x86_64-uriparser-0.9.8-1  mingw-w64-clang-x86_64-wineditline-2.208-1  mingw-w64-clang-x86_64-winpthreads-git-12.0.0.r423.g8bcd5fc1a-1  mingw-w64-clang-x86_64-xz-5.6.3-3  mingw-w64-clang-x86_64-zlib-1.3.1-1  mingw-w64-clang-x86_64-zstd-1.5.6-2  openssh-9.9p1-1  perl-Authen-SASL-2.1700-1  perl-Clone-0.47-1  perl-Convert-BinHex-1.125-2  perl-Encode-Locale-1.05-2  perl-Error-0.17029-2  perl-File-Listing-6.16-1  perl-HTML-Parser-3.83-1  perl-HTML-Tagset-3.24-1  perl-HTTP-Cookies-6.11-1  perl-HTTP-Daemon-6.16-1  perl-HTTP-Date-6.06-1  perl-HTTP-Message-6.46-1  perl-HTTP-Negotiate-6.01-3  perl-IO-HTML-1.004-2  perl-IO-Socket-SSL-2.089-1  perl-IO-Stringy-2.113-2  perl-LWP-MediaTypes-6.04-2  perl-MIME-tools-5.515-1  perl-MailTools-2.21-2  perl-Net-HTTP-6.23-1  perl-Net-SMTP-SSL-1.04-2  perl-Net-SSLeay-1.94-1  perl-TermReadKey-2.38-6  perl-TimeDate-2.33-2  perl-Try-Tiny-0.32-1  perl-URI-5.29-1  perl-WWW-RobotRules-6.02-3  perl-http-cookiejar-0.014-1  perl-libwww-6.77-1
  
  Total Removed Size:  2316.65 MiB
 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants