Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Dockerfile with alpine - Issue with examples #256

Closed
sankarvj opened this issue Jul 29, 2024 · 6 comments
Closed

Dockerfile with alpine - Issue with examples #256

sankarvj opened this issue Jul 29, 2024 · 6 comments

Comments

@sankarvj
Copy link

sankarvj commented Jul 29, 2024

Description

I am getting the following error in the docker build when trying to build from the Mac m3. Please help resolving this

2024-07-29 16:01:15 /usr/local/go/pkg/tool/linux_arm64/link: running gcc failed: exit status 1
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_main_capi.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_main_capi.cpp:(.text+0x2f4): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_parser.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_parser.cpp:(.text+0x618): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_planner.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_planner.cpp:(.text+0x1330): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_planner_expression.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_planner_expression.cpp:(.text+0x50c): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_progress_bar.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_progress_bar.cpp:(.text+0xb4): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_storage_statistics.cpp.o):ub_duckdb_storage_statistics.cpp:(.text+0xc10): more undefined references to `__vsnprintf_chk' follow
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_storage_statistics.cpp.o): in function `duckdb::StringStats::Update(duckdb::BaseStatistics&, duckdb::string_t const&)':
2024-07-29 16:01:15 ub_duckdb_storage_statistics.cpp:(.text+0x3880): undefined reference to `__memcpy_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: ub_duckdb_storage_statistics.cpp:(.text+0x3a2c): undefined reference to `__memcpy_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_storage_table.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_storage_table.cpp:(.text+0x7388): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_transformer_statement.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_transformer_statement.cpp:(.text+0x288): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_bind_expression.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_bind_expression.cpp:(.text+0x9e8): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_bind_query_node.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_bind_query_node.cpp:(.text+0x470): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_bind_statement.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_bind_statement.cpp:(.text+0x7c4): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_catalog_entries.cpp.o):ub_duckdb_catalog_entries.cpp:(.text+0x594): more undefined references to `__vsnprintf_chk' follow
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_common.cpp.o): in function `duckdb::RemoveDirectoryRecursive(char const*) [clone .localalias]':
2024-07-29 16:01:15 ub_duckdb_common.cpp:(.text+0x6b30): undefined reference to `__snprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_common.cpp.o): in function `duckdb::Printer::RawPrint(duckdb::OutputStream, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
2024-07-29 16:01:15 ub_duckdb_common.cpp:(.text+0x7590): undefined reference to `__fprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: ub_duckdb_common.cpp:(.text+0x75b0): undefined reference to `__fprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_common_types.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_common_types.cpp:(.text+0x1964): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_expression.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_expression.cpp:(.text+0x1d48): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_func_table.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_func_table.cpp:(.text+0xaf4): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_main.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_main.cpp:(.text+0xa70): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_operator_helper.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_operator_helper.cpp:(.text+0x674): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_optimizer_join_order.cpp.o):ub_duckdb_optimizer_join_order.cpp:(.text+0x4bc): more undefined references to `__vsnprintf_chk' follow
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_storage.cpp.o): in function `duckdb::SerializeVersionNumber(duckdb::WriteStream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
2024-07-29 16:01:15 ub_duckdb_storage.cpp:(.text+0x80a0): undefined reference to `__memcpy_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_storage_compression.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_storage_compression.cpp:(.text+0x20c0): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_storage_compression.cpp.o): in function `duckdb::DictionaryCompressionStorage::FinalizeCompress(duckdb::CompressionState&)':
2024-07-29 16:01:15 ub_duckdb_storage_compression.cpp:(.text+0xa9d0): undefined reference to `__memcpy_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_storage_compression.cpp.o): in function `duckdb::unique_ptr<duckdb::SegmentScanState, std::default_delete<duckdb::SegmentScanState>, true> duckdb::AlpRDInitScan<double>(duckdb::ColumnSegment&)':
2024-07-29 16:01:15 ub_duckdb_storage_compression.cpp:(.text._ZN6duckdb13AlpRDInitScanIdEENS_10unique_ptrINS_16SegmentScanStateESt14default_deleteIS2_ELb1EEERNS_13ColumnSegmentE[_ZN6duckdb13AlpRDInitScanIdEENS_10unique_ptrINS_16SegmentScanStateESt14default_deleteIS2_ELb1EEERNS_13ColumnSegmentE]+0xec): undefined reference to `__memcpy_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_storage_compression.cpp.o): in function `duckdb::unique_ptr<duckdb::SegmentScanState, std::default_delete<duckdb::SegmentScanState>, true> duckdb::AlpRDInitScan<float>(duckdb::ColumnSegment&)':
2024-07-29 16:01:15 ub_duckdb_storage_compression.cpp:(.text._ZN6duckdb13AlpRDInitScanIfEENS_10unique_ptrINS_16SegmentScanStateESt14default_deleteIS2_ELb1EEERNS_13ColumnSegmentE[_ZN6duckdb13AlpRDInitScanIfEENS_10unique_ptrINS_16SegmentScanStateESt14default_deleteIS2_ELb1EEERNS_13ColumnSegmentE]+0xec): undefined reference to `__memcpy_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_storage_compression.cpp.o): in function `void duckdb::BitpackingPrimitives::PackBuffer<unsigned int, false>(unsigned char*, unsigned int*, unsigned long, unsigned char)':
2024-07-29 16:01:15 ub_duckdb_storage_compression.cpp:(.text._ZN6duckdb20BitpackingPrimitives10PackBufferIjLb0EEEvPhPT_mh[_ZN6duckdb20BitpackingPrimitives10PackBufferIjLb0EEEvPhPT_mh]+0xc4): undefined reference to `__memcpy_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_storage_compression.cpp.o): in function `duckdb::unique_ptr<duckdb::CompressionState, std::default_delete<duckdb::CompressionState>, true> duckdb::AlpRDInitCompression<float>(duckdb::ColumnDataCheckpointer&, duckdb::unique_ptr<duckdb::AnalyzeState, std::default_delete<duckdb::AnalyzeState>, true>)':
2024-07-29 16:01:15 ub_duckdb_storage_compression.cpp:(.text._ZN6duckdb20AlpRDInitCompressionIfEENS_10unique_ptrINS_16CompressionStateESt14default_deleteIS2_ELb1EEERNS_22ColumnDataCheckpointerENS1_INS_12AnalyzeStateES3_IS8_ELb1EEE[_ZN6duckdb20AlpRDInitCompressionIfEENS_10unique_ptrINS_16CompressionStateESt14default_deleteIS2_ELb1EEERNS_22ColumnDataCheckpointerENS1_INS_12AnalyzeStateES3_IS8_ELb1EEE]+0x15c): undefined reference to `__memcpy_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_storage_compression.cpp.o):ub_duckdb_storage_compression.cpp:(.text._ZN6duckdb20AlpRDInitCompressionIdEENS_10unique_ptrINS_16CompressionStateESt14default_deleteIS2_ELb1EEERNS_22ColumnDataCheckpointerENS1_INS_12AnalyzeStateES3_IS8_ELb1EEE[_ZN6duckdb20AlpRDInitCompressionIdEENS_10unique_ptrINS_16CompressionStateESt14default_deleteIS2_ELb1EEERNS_22ColumnDataCheckpointerENS1_INS_12AnalyzeStateES3_IS8_ELb1EEE]+0x160): more undefined references to `__memcpy_chk' follow
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_table_func_system.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_table_func_system.cpp:(.text+0x1708): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(format.cc.o): in function `char* duckdb_fmt::v6::internal::sprintf_format<double>(double, duckdb_fmt::v6::internal::buffer<char>&, duckdb_fmt::v6::internal::sprintf_specs)':
2024-07-29 16:01:15 format.cc:(.text._ZN10duckdb_fmt2v68internal14sprintf_formatIdEEPcT_RNS1_6bufferIcEENS1_13sprintf_specsE[_ZN10duckdb_fmt2v68internal14sprintf_formatIdEEPcT_RNS1_6bufferIcEENS1_13sprintf_specsE]+0xc8): undefined reference to `__snprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: format.cc:(.text._ZN10duckdb_fmt2v68internal14sprintf_formatIdEEPcT_RNS1_6bufferIcEENS1_13sprintf_specsE[_ZN10duckdb_fmt2v68internal14sprintf_formatIdEEPcT_RNS1_6bufferIcEENS1_13sprintf_specsE]+0x14c): undefined reference to `__snprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: format.cc:(.text._ZN10duckdb_fmt2v68internal14sprintf_formatIdEEPcT_RNS1_6bufferIcEENS1_13sprintf_specsE[_ZN10duckdb_fmt2v68internal14sprintf_formatIdEEPcT_RNS1_6bufferIcEENS1_13sprintf_specsE]+0x1a0): undefined reference to `__snprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(format.cc.o): in function `char* duckdb_fmt::v6::internal::sprintf_format<long double>(long double, duckdb_fmt::v6::internal::buffer<char>&, duckdb_fmt::v6::internal::sprintf_specs)':
2024-07-29 16:01:15 format.cc:(.text._ZN10duckdb_fmt2v68internal14sprintf_formatIeEEPcT_RNS1_6bufferIcEENS1_13sprintf_specsE[_ZN10duckdb_fmt2v68internal14sprintf_formatIeEEPcT_RNS1_6bufferIcEENS1_13sprintf_specsE]+0xd0): undefined reference to `__snprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: format.cc:(.text._ZN10duckdb_fmt2v68internal14sprintf_formatIeEEPcT_RNS1_6bufferIcEENS1_13sprintf_specsE[_ZN10duckdb_fmt2v68internal14sprintf_formatIeEEPcT_RNS1_6bufferIcEENS1_13sprintf_specsE]+0x164): undefined reference to `__snprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(format.cc.o):format.cc:(.text._ZN10duckdb_fmt2v68internal14sprintf_formatIeEEPcT_RNS1_6bufferIcEENS1_13sprintf_specsE[_ZN10duckdb_fmt2v68internal14sprintf_formatIeEEPcT_RNS1_6bufferIcEENS1_13sprintf_specsE]+0x1b8): more undefined references to `__snprintf_chk' follow
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(pg_functions.cpp.o): in function `duckdb_libpgquery::errmsg(char const*, ...)':
2024-07-29 16:01:15 pg_functions.cpp:(.text+0x6a8): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(pg_functions.cpp.o): in function `duckdb_libpgquery::psprintf(char const*, ...)':
2024-07-29 16:01:15 pg_functions.cpp:(.text+0x7ec): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: pg_functions.cpp:(.text+0x9b0): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_csv_scanner.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_csv_scanner.cpp:(.text+0x720): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_csv_sniffer.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_csv_sniffer.cpp:(.text+0xa20): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_csv_util.cpp.o):ub_duckdb_csv_util.cpp:(.text+0x2b8): more undefined references to `__vsnprintf_chk' follow
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_func_compressed_materialization.cpp.o): in function `duckdb::hugeint_t duckdb::StringCompress<duckdb::hugeint_t>(duckdb::string_t const&)':
2024-07-29 16:01:15 ub_duckdb_func_compressed_materialization.cpp:(.text+0x358): undefined reference to `__memset_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_operator_order.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_operator_order.cpp:(.text+0x298): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_bind_tableref.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_bind_tableref.cpp:(.text+0x34c): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_main_extension.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_main_extension.cpp:(.text+0x538): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_main_extension.cpp.o): in function `duckdb_httplib::detail::SocketStream::is_writable() const':
2024-07-29 16:01:15 ub_duckdb_main_extension.cpp:(.text._ZNK14duckdb_httplib6detail12SocketStream11is_writableEv[_ZNK14duckdb_httplib6detail12SocketStream11is_writableEv]+0x78): undefined reference to `__fdelt_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_main_extension.cpp.o): in function `duckdb_httplib::detail::SocketStream::write(char const*, unsigned long)':
2024-07-29 16:01:15 ub_duckdb_main_extension.cpp:(.text._ZN14duckdb_httplib6detail12SocketStream5writeEPKcm[_ZN14duckdb_httplib6detail12SocketStream5writeEPKcm]+0x94): undefined reference to `__fdelt_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_main_extension.cpp.o): in function `duckdb_httplib::detail::SocketStream::is_readable() const':
2024-07-29 16:01:15 ub_duckdb_main_extension.cpp:(.text._ZNK14duckdb_httplib6detail12SocketStream11is_readableEv[_ZNK14duckdb_httplib6detail12SocketStream11is_readableEv]+0x78): undefined reference to `__fdelt_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_main_extension.cpp.o): in function `duckdb_httplib::detail::SocketStream::read(char*, unsigned long)':
2024-07-29 16:01:15 ub_duckdb_main_extension.cpp:(.text._ZN14duckdb_httplib6detail12SocketStream4readEPcm[_ZN14duckdb_httplib6detail12SocketStream4readEPcm]+0x114): undefined reference to `__fdelt_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_main_extension.cpp.o): in function `int duckdb_httplib::detail::create_socket<duckdb_httplib::detail::create_client_socket(char const*, char const*, int, int, bool, std::function<void (int)>, long, long, long, long, long, long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, duckdb_httplib::Error&)::{lambda(int, addrinfo&)#1}>(char const*, char const*, int, int, int, bool, std::function<void (int)>, duckdb_httplib::detail::create_client_socket(char const*, char const*, int, int, bool, std::function<void (int)>, long, long, long, long, long, long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, duckdb_httplib::Error&)::{lambda(int, addrinfo&)#1})':
2024-07-29 16:01:15 ub_duckdb_main_extension.cpp:(.text._ZN14duckdb_httplib6detail13create_socketIZNS0_20create_client_socketEPKcS3_iibSt8functionIFviEEllllllRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_5ErrorEEUliR8addrinfoE_EEiS3_S3_iiibS6_T_[_ZN14duckdb_httplib6detail13create_socketIZNS0_20create_client_socketEPKcS3_iibSt8functionIFviEEllllllRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_5ErrorEEUliR8addrinfoE_EEiS3_S3_iiibS6_T_]+0x300): undefined reference to `__fdelt_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_main_extension.cpp.o):ub_duckdb_main_extension.cpp:(.text._ZN14duckdb_httplib6detail13create_socketIZNS0_20create_client_socketEPKcS3_iibSt8functionIFviEEllllllRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_5ErrorEEUliR8addrinfoE_EEiS3_S3_iiibS6_T_[_ZN14duckdb_httplib6detail13create_socketIZNS0_20create_client_socketEPKcS3_iibSt8functionIFviEEllllllRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_5ErrorEEUliR8addrinfoE_EEiS3_S3_iiibS6_T_]+0x31c): more undefined references to `__fdelt_chk' follow
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_main_extension.cpp.o): in function `int duckdb_httplib::detail::create_socket<duckdb_httplib::detail::create_client_socket(char const*, char const*, int, int, bool, std::function<void (int)>, long, long, long, long, long, long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, duckdb_httplib::Error&)::{lambda(int, addrinfo&)#1}>(char const*, char const*, int, int, int, bool, std::function<void (int)>, duckdb_httplib::detail::create_client_socket(char const*, char const*, int, int, bool, std::function<void (int)>, long, long, long, long, long, long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, duckdb_httplib::Error&)::{lambda(int, addrinfo&)#1})':
2024-07-29 16:01:15 ub_duckdb_main_extension.cpp:(.text._ZN14duckdb_httplib6detail13create_socketIZNS0_20create_client_socketEPKcS3_iibSt8functionIFviEEllllllRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_5ErrorEEUliR8addrinfoE_EEiS3_S3_iiibS6_T_[_ZN14duckdb_httplib6detail13create_socketIZNS0_20create_client_socketEPKcS3_iibSt8functionIFviEEllllllRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_5ErrorEEUliR8addrinfoE_EEiS3_S3_iiibS6_T_]+0x5b8): undefined reference to `__res_init'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_main_extension.cpp.o): in function `duckdb_httplib::ClientImpl::send(duckdb_httplib::Request&, duckdb_httplib::Response&, duckdb_httplib::Error&)':
2024-07-29 16:01:15 ub_duckdb_main_extension.cpp:(.text._ZN14duckdb_httplib10ClientImpl4sendERNS_7RequestERNS_8ResponseERNS_5ErrorE[_ZN14duckdb_httplib10ClientImpl4sendERNS_7RequestERNS_8ResponseERNS_5ErrorE]+0x7ec): undefined reference to `__fdelt_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_main_extension.cpp.o): in function `duckdb_httplib::ClientImpl::write_request(duckdb_httplib::Stream&, duckdb_httplib::Request&, bool, duckdb_httplib::Error&)':
2024-07-29 16:01:15 ub_duckdb_main_extension.cpp:(.text._ZN14duckdb_httplib10ClientImpl13write_requestERNS_6StreamERNS_7RequestEbRNS_5ErrorE[_ZN14duckdb_httplib10ClientImpl13write_requestERNS_6StreamERNS_7RequestEbRNS_5ErrorE]+0x24c): undefined reference to `__snprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: ub_duckdb_main_extension.cpp:(.text._ZN14duckdb_httplib10ClientImpl13write_requestERNS_6StreamERNS_7RequestEbRNS_5ErrorE[_ZN14duckdb_httplib10ClientImpl13write_requestERNS_6StreamERNS_7RequestEbRNS_5ErrorE]+0x334): undefined reference to `__snprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: ub_duckdb_main_extension.cpp:(.text._ZN14duckdb_httplib10ClientImpl13write_requestERNS_6StreamERNS_7RequestEbRNS_5ErrorE[_ZN14duckdb_httplib10ClientImpl13write_requestERNS_6StreamERNS_7RequestEbRNS_5ErrorE]+0x4f4): undefined reference to `__snprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: ub_duckdb_main_extension.cpp:(.text._ZN14duckdb_httplib10ClientImpl13write_requestERNS_6StreamERNS_7RequestEbRNS_5ErrorE[_ZN14duckdb_httplib10ClientImpl13write_requestERNS_6StreamERNS_7RequestEbRNS_5ErrorE]+0x6cc): undefined reference to `__snprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: ub_duckdb_main_extension.cpp:(.text._ZN14duckdb_httplib10ClientImpl13write_requestERNS_6StreamERNS_7RequestEbRNS_5ErrorE[_ZN14duckdb_httplib10ClientImpl13write_requestERNS_6StreamERNS_7RequestEbRNS_5ErrorE]+0xb50): undefined reference to `__snprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_main_extension.cpp.o):ub_duckdb_main_extension.cpp:(.text._ZN14duckdb_httplib6Server19write_response_coreERNS_6StreamEbRKNS_7RequestERNS_8ResponseEb[_ZN14duckdb_httplib6Server19write_response_coreERNS_6StreamEbRKNS_7RequestERNS_8ResponseEb]+0x274): more undefined references to `__snprintf_chk' follow
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_main_extension.cpp.o): in function `duckdb_httplib::Server::process_and_close_socket(int)':
2024-07-29 16:01:15 ub_duckdb_main_extension.cpp:(.text._ZN14duckdb_httplib6Server24process_and_close_socketEi[_ZN14duckdb_httplib6Server24process_and_close_socketEi]+0x10c): undefined reference to `__fdelt_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_main_relation.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_main_relation.cpp:(.text+0x67c): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(libfsst.cpp.o): in function `compressBulk(SymbolTable&, unsigned long, unsigned long*, unsigned char**, unsigned long, unsigned char*, unsigned long*, unsigned char**, bool, bool)':
2024-07-29 16:01:15 libfsst.cpp:(.text+0x2c4): undefined reference to `__memcpy_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(libfsst.cpp.o): in function `buildSymbolTable(Counters&, std::vector<unsigned char*, std::allocator<unsigned char*> >, unsigned long*, bool)':
2024-07-29 16:01:15 libfsst.cpp:(.text+0x25c4): undefined reference to `__memcpy_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: libfsst.cpp:(.text+0x2670): undefined reference to `__memcpy_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_execution_index_art.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_execution_index_art.cpp:(.text+0x458): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(ub_duckdb_expression_binders.cpp.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_cxx::__to_xstring<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(int (*)(char*, unsigned long, char const*, std::__va_list), unsigned long, char const*, ...) [clone .constprop.0]':
2024-07-29 16:01:15 ub_duckdb_expression_binders.cpp:(.text+0x2c4): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(miniz.cpp.o): in function `duckdb_miniz::mz_zip_writer_write_zeros(duckdb_miniz::mz_zip_archive*, unsigned long, unsigned int)':
2024-07-29 16:01:15 miniz.cpp:(.text+0x434): undefined reference to `__memset_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(miniz.cpp.o): in function `duckdb_miniz::tdefl_start_dynamic_block(duckdb_miniz::tdefl_compressor*)':
2024-07-29 16:01:15 miniz.cpp:(.text+0x1e38): undefined reference to `__memcpy_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(re2.cc.o): in function `bool duckdb_re2::re2_internal::Parse<float>(char const*, unsigned long, float*)':
2024-07-29 16:01:15 re2.cc:(.text+0x11dc): undefined reference to `__memmove_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: re2.cc:(.text+0x1248): undefined reference to `__memmove_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(re2.cc.o): in function `bool duckdb_re2::re2_internal::Parse<double>(char const*, unsigned long, double*)':
2024-07-29 16:01:15 re2.cc:(.text+0x13d4): undefined reference to `__memmove_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: re2.cc:(.text+0x1440): undefined reference to `__memmove_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(re2.cc.o): in function `bool duckdb_re2::re2_internal::Parse<long>(char const*, unsigned long, long*, int)':
2024-07-29 16:01:15 re2.cc:(.text+0x1614): undefined reference to `__memmove_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(re2.cc.o):re2.cc:(.text+0x1650): more undefined references to `__memmove_chk' follow
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(sds.cpp.o): in function `duckdb_hll::sdscatvprintf(char*, char const*, std::__va_list)':
2024-07-29 16:01:15 sds.cpp:(.text+0x15dc): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(strutil.cc.o): in function `duckdb_re2::StringAppendV(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, char const*, std::__va_list)':
2024-07-29 16:01:15 strutil.cc:(.text+0x74): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: strutil.cc:(.text+0xe4): undefined reference to `__vsnprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(strutil.cc.o): in function `duckdb_re2::CEscape[abi:cxx11](duckdb_re2::StringPiece const&)':
2024-07-29 16:01:15 strutil.cc:(.text+0x34c): undefined reference to `__snprintf_chk'
2024-07-29 16:01:15 /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/marcboeker/[email protected]/deps/linux_arm64/libduckdb.a(entropy_common.cpp.o): in function `duckdb_zstd::FSE_readNCount(short*, unsigned int*, unsigned int*, void const*, unsigned long) [clone .localalias]':
2024-07-29 16:01:15 entropy_common.cpp:(.text+0xac): undefined reference to `__memcpy_chk'
2024-07-29 16:01:15 collect2: error: ld returned 1 exit status

Build command

go build -tags musl,dynamic,no_duckdb_arrow

Environment

GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/opt/homebrew/Cellar/go/1.21.1/libexec'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/opt/homebrew/Cellar/go/1.21.1/libexec/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.21.1'
GCCGO='gccgo'
AR='ar'
CC='cc'
CXX='c++'
CGO_ENABLED='1'
@rob-sokolowski
Copy link

rob-sokolowski commented Jul 29, 2024

Can you share the Dockerfile you're attempting to build from?

Here's the Dockerfile I use to ship a lite container, note it's a multistage build; you can likely ignore the ./private stuff:
https://gist.github.com/rob-sokolowski/ff6481548fdd52ce454edc94f8df7577

@sankarvj
Copy link
Author

Thanks, Rob. This is my docker file.

FROM --platform=$BUILDPLATFORM tonistiigi/xx AS xx
FROM --platform=$BUILDPLATFORM golang:1.21-alpine as base
ARG TARGETOS
ARG TARGETARCH
ARG TARGETPLATFORM

RUN apk add clang lld curl ca-certificates git
COPY --from=xx / /

RUN xx-apk --no-cache add musl-dev gcc librdkafka-dev cyrus-sasl-dev ffmpeg

RUN curl -L "https://github.com/grafana/k6/releases/download/v0.46.0/k6-v0.46.0-linux-$TARGETARCH.tar.gz" -o k6.tar.gz && echo 1
RUN tar xzf k6.tar.gz
RUN chmod +x ./k6-v0.46.0-linux-$TARGETARCH/k6
RUN mv ./k6-v0.46.0-linux-$TARGETARCH/k6 /usr/local/bin
RUN rm -rf ./k6-v0.46.0-linux-$TARGETARCH
RUN rm -rf ./k6.tar.gz

RUN curl -LO "https://dl.k8s.io/release/v1.28.4/bin/linux/$TARGETARCH/kubectl"
RUN chmod +x ./kubectl && mv ./kubectl /usr/local/bin


COPY ./.netrc /root/.netrc
RUN chmod 600 /root/.netrc


FROM --platform=$BUILDPLATFORM base as local
WORKDIR /usr/
RUN curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s v1.42.0

WORKDIR /app
RUN printf "#!/bin/sh\ncd /app\nair --build.cmd \"go build -tags musl,dynamic,no_duckdb_arrow  -ldflags \\\"-w -s\\\" -v -o /tmp/app /app/*.go\" --build.bin \"/tmp/app \$*\""> /usr/bin/app && chmod +x /usr/bin/app


FROM --platform=$BUILDPLATFORM base as build
WORKDIR /app
RUN cd /app

ENV GO111MODULE=on
ENV CGO_ENABLED=1
ENV GOOS=${TARGETOS}
ENV GOARCH=${TARGETARCH}
#ENV CC_FOR_${GOOS}_${GOARCH}=gcc-aarch64-linux-gnu
ENV CGO_LDFLAGS="-lsasl2"


COPY ./go.mod ./
COPY ./go.sum ./

RUN --mount=type=cache,mode=0755,target=/go/pkg/mod \
    --mount=type=cache,mode=0755,target=/root/.cache/go-build \
    xx-go mod download

COPY . .

RUN --mount=type=cache,mode=0755,target=/go/pkg/mod \
    --mount=type=cache,mode=0755,target=/root/.cache/go-build \
    xx-go build -tags musl,dynamic,no_duckdb_arrow  -ldflags "-w -s " -v -o /usr/bin/app /app/*.go && \
    xx-verify /usr/bin/app


FROM alpine as prod
WORKDIR /app

RUN apk add --no-cache cyrus-sasl ffmpeg

I tried using both amd64 and arm64 as the target arch. Linux is the platform.

Thanks for sharing the Dockerfile. I will try to see if it helps.

@derekperkins
Copy link
Contributor

Here's another Dockerfile that works if that's useful to you
#54 (comment)

@sankarvj
Copy link
Author

sankarvj commented Aug 8, 2024

Thanks @derekperkins I will try that. I have changed the alpine build to the debian base image and it is working now.

@frisbm
Copy link

frisbm commented Aug 8, 2024

If you want a small deployed image, distroless is another good option. I opened an informational issue showing off how we do it #220

@sankarvj
Copy link
Author

sankarvj commented Jan 21, 2025

Sample docker file

FROM golang:latest as builder

WORKDIR /app

COPY go.mod go.sum ./
RUN go mod download

COPY . .

ENV GO111MODULE=on
ENV CGO_ENABLED=1
ENV GOOS=linux
ENV GOARCH=arm64
RUN go build -o /bin/my-app ./cmd/my-app

FROM debian:stable-slim

WORKDIR /app

COPY --from=builder /bin/my-app .

CMD ["/app/my-app"]

@taniabogatsch taniabogatsch changed the title Dockerfile with alpine - Undefined reference Dockerfile with alpine - Issue with examples Jan 22, 2025
Repository owner locked and limited conversation to collaborators Jan 22, 2025
@taniabogatsch taniabogatsch converted this issue into discussion #354 Jan 22, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants