Skip to content

SNOW-3818968: Does not compile out of the box on FreeBSD due to \"ENODATA not defined in errno.h\" #2967

Open

Description

@michael-o

Python version

Python 3.10.20 (main, Jun 20 2026, 01:08:14) [Clang 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd7080

Operating system and processor architecture

FreeBSD-14.4-STABLE-amd64-64bit-ELF

Installed packages

build==1.5.0
cachetools==7.1.4
certifi==2026.2.25
charset-normalizer==3.4.6
colorama==0.4.6
Cython==3.2.8
distlib==0.4.3
filelock==3.31.2
idna==3.11
maturin==1.14.1
meson==1.10.2
packaging==26.2
platformdirs==4.10.1
pluggy==1.6.0
pyproject-api==1.10.1
pyproject_hooks==1.2.0
python-discovery==1.4.4
requests==2.32.5
sqlite3==3.10.20
tomli==2.4.1
tomli_w==1.2.0
tox==4.57.2
truststore==0.10.4
typing_extensions==4.16.0
urllib3==2.6.3
virtualenv==21.6.1

What did you do?

Building a wheel from source, fails to compile because there is no ENODATA on FreeBSD:

      src/snowflake/connector/nanoarrow_cpp/ArrowIterator/flatcc.c:1135:17:
      warning: code will never be executed [-Wunreachable-code]
       1135 |     if (!(vt_ = reserve_buffer(B, flatcc_builder_alloc_vb,
      B->vb_end, vt_size,
            |                 ^~~~~~~~~~~~~~
      1 warning generated.
      src/snowflake/connector/nanoarrow_cpp/ArrowIterator/nanoarrow_ipc.c:32046:12:
      error: use of undeclared identifier 'ENODATA'
       32046 |     return ENODATA;
             |            ^
      src/snowflake/connector/nanoarrow_cpp/ArrowIterator/nanoarrow_ipc.c:33031:12:
      error: use of undeclared identifier 'ENODATA'
       33031 |     return ENODATA;
             |            ^
      src/snowflake/connector/nanoarrow_cpp/ArrowIterator/nanoarrow_ipc.c:33183:17:
      error: use of undeclared identifier 'ENODATA'
       33183 |   if (result == ENODATA) {
             |                 ^
      3 errors generated.

What did you expect to see?

Wheel file.

Can you set logging to DEBUG and collect the logs?

N/A

Activity

  1. changed the title [-]Does not compile out of the box on FreeBSD due to "ENODATA not defined in errno.h"[/-] [+]SNOW-3818968: Does not compile out of the box on FreeBSD due to \"ENODATA not defined in errno.h\"[/+] on Jul 21, 2026
  2. added a commit that references this issue on Jul 21, 2026
    b92fa7e
  3. sfc-gh-sghosh commented on Jul 28, 2026

    @sfc-gh-sghosh

    Hi @michael-o

    Thanks for raising the issue and the PR #2968 as solution, our team will review it and approve accordingly.

  4. added
    status-triage_doneInitial triage done, will be further handled by the driver team
    and removed
    status-triageIssue is under initial triage
    on Jul 28, 2026
  5. michael-o commented on Aug 13, 2026

    @michael-o
    Author

    @sfc-gh-sghosh Did you get a change to look at it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugstatus-triage_doneInitial triage done, will be further handled by the driver team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions