Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#64103 closed defect (fixed)

Aseprite @1.2.30: fatal error: 'blake2.h' file not found

Reported by: kevinfaveri (Kevin Faveri) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: monterey arm64 Cc:
Port: Aseprite

Description

It is not building, throwing a specific error.

Attachments (1)

LOG.rtf (1.2 MB) - added by kevinfaveri (Kevin Faveri) 3 years ago.
sudo port install Aseprite

Download all attachments as: .zip

Change History (7)

Changed 3 years ago by kevinfaveri (Kevin Faveri)

Attachment: LOG.rtf added

sudo port install Aseprite

comment:1 Changed 3 years ago by reneeotten (Renee Otten)

Owner: set to ryandesign
Port: Aseprite added
Status: newassigned
Summary: Buildilg MacPorts Aseprite on macbook m1 Monterey does not workAseprite: build failure on Monterey/M1

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: monterey arm64 added
Summary: Aseprite: build failure on Monterey/M1Aseprite @1.2.30: fatal error: 'blake2.h' file not found

Thanks for the report. The log says the problem is:

fatal error: 'blake2.h' file not found

That's a new one for me. We had successful builds of Aseprite on Monterey on Apple Silicon on our build machine, so I'll try to figure out what went wrong here.

comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Status: assignedaccepted

Looks like blake2.h is provided by the libb2 port, which is an optional dependency of libarchive. Aseprite includes a bundled copy of libarchive.

I found the following difference between my successful build:

:info:configure -- Could NOT find LIBB2 (missing: LIBB2_LIBRARY LIBB2_INCLUDE_DIR) 

and your unsuccessful build:

:info:configure -- Found LIBB2: /opt/homebrew/lib/libb2.dylib  

Having both Homebrew and MacPorts installed at the same time is not supported because they can (and, as you can see, do) interfere with one another. It's recommended to decide whether you would like to use MacPorts or Homebrew and uninstall the other one to avoid encountering these kinds of problems. But I will try to resolve this issue, either by making Aseprite's bundled libarchive use MacPorts libb2 or by forcing it not to use any libb2 it finds.

comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

I couldn't initially understand how the build was looking in /opt/homebrew since I could not find that path anywhere in the Aseprite source. Turns out it's a cmake feature which we should probably disable. That would prevent similar problems from occurring with other ports and libraries in the future. I filed #64111 for that.

The opportunistic use of libb2 is something that affects our libarchive port too. I filed #64109 for that.

comment:5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In dc6e0304cb7152d5e9370be4934ba0e145390450/macports-ports (master):

Aseprite: Use libb2 in bundled libarchive build

Closes: #64103
See: #64109

comment:6 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

See if that fixes it: wait an hour, then run sudo port selfupdate and try installing the port again. I think it does but I don't have an Apple Silicon machine with Homebrew installed so I'm not sure. If it's not fixed, please reopen the ticket and attach a new main.log.

Note: See TracTickets for help on using tickets.