Build from source outdated

Developer discussions.

Build from source outdated

Postby Iai19 » Tue Dec 26, 2023 6:24 am

Any luck on building from source for Ventura 13.6.3 ?

zfsadm script is outdated

and a regular make throws:
```
In file included from IDCLI.cpp:15:
./IDException.hpp:71:49: error: use of undeclared identifier 'kCFStringEncodingUTF8'
char const * esp = CFStringGetCStringPtr(es, kCFStringEncodingUTF8);
```

any suggestions are highly appreciated.
Iai19
 
Posts: 1
Joined: Tue Dec 26, 2023 6:21 am

Re: Build from source outdated

Postby lundman » Wed Jan 03, 2024 4:28 pm

I never used zfsadm myself, and I don't know if ilovezfs is maintaining it.

But you are right, the wiki is woefully out of date, still talks about spl and zfs being separate repositories.

When I build I go checkout openzfs-fork:

Code: Select all
# git checkout zfs-macOS-2.2.2-release
# ./autogen.sh
# ./configure CPPFLAGS="-I/usr/local/opt/gettext/include -I/usr/local/opt/openssl@1.1/include" LDFLAGS="-L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/gettext/lib" CFLAGS="-Wno-error -O2 -g" --sysconfdir=/etc --localstatedir=/var --prefix=/usr/local/zfs/ --sbindir=/usr/local/zfs/bin --libexecdir=/usr/local/zfs/libexec --enable-pam=NO SED=gsed
# make

# make install
-or-
# ./scripts/pkg_macos.sh -L


Showing the full configure for how I make install pkg. You will need to change the include and library paths based on where you install openssl and gettext. I used brew or macports.
In your case, no "-Wno-error" is what is stopping you, what is an unavoidable warning, is turned into an error due to -Werror that zfsadm uses.
User avatar
lundman
 
Posts: 1340
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Build from source outdated

Postby kocoman » Sat Aug 02, 2025 1:22 am

I get this error

| ^
1 warning generated.
CPPAS ../../../icp/asm-x86_64/os/macos/aes/zfs-aes_amd64.o
CPPAS ../../../icp/asm-x86_64/os/macos/aes/zfs-aes_aesni.o
CPPAS ../../../icp/asm-x86_64/os/macos/modes/zfs-aesni-gcm-x86_64.o
/var/folders/62/8c47ssrd4ndgjz_vyjblq4t00000gn/T/aesni-gcm-x86_64-8a6d71.s:810:1: error: invalid CFI advance_loc expression
.cfi_restore %r9
^
/var/folders/62/8c47ssrd4ndgjz_vyjblq4t00000gn/T/aesni-gcm-x86_64-8a6d71.s:1189:1: error: invalid CFI advance_loc expression
.cfi_restore %r9
^
make[2]: *** [../../../icp/asm-x86_64/os/macos/modes/zfs-aesni-gcm-x86_64.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [modules-macOS] Error 2
kocoman
 
Posts: 8
Joined: Mon Sep 22, 2014 11:20 pm


Return to OpenZFS on OS X Development

Who is online

Users browsing this forum: No registered users and 36 guests