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

Cross compilation from Debian 12 to macos missing #3

Open
ikks opened this issue Nov 25, 2024 · 0 comments
Open

Cross compilation from Debian 12 to macos missing #3

ikks opened this issue Nov 25, 2024 · 0 comments

Comments

@ikks
Copy link

ikks commented Nov 25, 2024

Hi there, thank you for this effort, I would like to use lmdb with zig, cross compile and test.
I'm on Debian 12, with zig 0.13.0.

Follows the output

$ zig build tools -Dtarget=x86_64-macos
tools
└─ install mplay
   └─ zig build-exe mplay Debug x86_64-macos
      └─ zig build-lib lmdb Debug x86_64-macos 1 errors
/home/igor/.cache/zig/p/12205c0f7d4ad44b671cf89a7793aafa31ba4739f01b706313e4eadc944b734bd224/libraries/liblmdb/mdb.c:160:10: error: 'resolv.h' file not found
#include <resolv.h> /* defines BYTE_ORDER on HPUX and Solaris */
         ^~~~~~~~~~~
error: warning(compilation): failed to delete '/home/igor/playground/zig/lmdb-options/acbtu/.zig-cache/tmp/4ea43460777dd969-mdb.o.d': FileNotFound

error: the following command failed with 1 compilation errors:
/home/igor/playground/zig/zig-linux-x86_64-0.13.0/zig build-lib -fno-llvm -fno-lld -cflags -pthread -std=c23 -- /home/igor/.cache/zig/p/12205c0f7d4ad44b671cf89a7793aafa31ba4739f01b706313e4eadc944b734bd224/libraries/liblmdb/mdb.c /home/igor/.cache/zig/p/12205c0f7d4ad44b671cf89a7793aafa31ba4739f01b706313e4eadc944b734bd224/libraries/liblmdb/midl.c -fno-strip -fno-sanitize-c -ODebug -target x86_64-macos -mcpu baseline -I /home/igor/.cache/zig/p/12205c0f7d4ad44b671cf89a7793aafa31ba4739f01b706313e4eadc944b734bd224/libraries/liblmdb -D_XOPEN_SOURCE=600 -Mroot -lc --cache-dir /home/igor/playground/zig/lmdb-options/acbtu/.zig-cache --global-cache-dir /home/igor/.cache/zig --name lmdb -static -fno-lto --listen=- 
Build Summary: 1/15 steps succeeded; 1 failed (disable with --summary none)
tools transitive failure
├─ install mdb_copy transitive failure
│  └─ zig build-exe mdb_copy Debug x86_64-macos transitive failure
│     └─ zig build-lib lmdb Debug x86_64-macos 1 errors
├─ install mdb_drop transitive failure
│  └─ zig build-exe mdb_drop Debug x86_64-macos transitive failure
│     └─ zig build-lib lmdb Debug x86_64-macos (reused)
├─ install mdb_dump transitive failure
│  └─ zig build-exe mdb_dump Debug x86_64-macos transitive failure
│     └─ zig build-lib lmdb Debug x86_64-macos (reused)
├─ install mdb_load transitive failure
│  └─ zig build-exe mdb_load Debug x86_64-macos transitive failure
│     └─ zig build-lib lmdb Debug x86_64-macos (reused)
├─ install mdb_stat transitive failure
│  └─ zig build-exe mdb_stat Debug x86_64-macos transitive failure
│     └─ zig build-lib lmdb Debug x86_64-macos (reused)
└─ install mplay transitive failure
   └─ zig build-exe mplay Debug x86_64-macos transitive failure
      └─ zig build-lib lmdb Debug x86_64-macos (reused)
error: the following build command failed with exit code 1:
/home/igor/playground/zig/lmdb-options/acbtu/.zig-cache/o/8b8a090cd1cdbaa98919363df8845d5e/build /home/igor/playground/zig/zig-linux-x86_64-0.13.0/zig /home/igor/playground/zig/lmdb-options/acbtu /home/igor/playground/zig/lmdb-options/acbtu/.zig-cache /home/igor/.cache/zig --seed 0x83b9d081 -Z83ccb1a88b79bbb2 tools -Dtarget=x86_64-macos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant