Opened 6 years ago

Closed 4 years ago

#57420 closed defect (fixed)

libfaiss: fatal error: malloc.h: No such file or directory

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: beauby (Lucas Hosseini)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mdouze
Port: libfaiss

Description

Building libfaiss fails on Mojave:

/opt/local/bin/g++-mp-7 -fPIC -m64 -Wall -g -O3 -msse4 -mpopcnt -fopenmp -Wno-sign-compare -std=c++11 -I/usr/include/malloc/ -c IndexScalarQuantizer.cpp -o IndexScalarQuantizer.o  
IndexScalarQuantizer.cpp:14:10: fatal error: malloc.h: No such file or directory
 #include <malloc.h>
          ^~~~~~~~~~
compilation terminated.
make: *** [IndexScalarQuantizer.o] Error 1

We should never see -I/usr/include/malloc/ or #include <malloc.h> on any version macOS. Use #include <stdlib.h> instead.

Change History (2)

comment:1 Changed 4 years ago by mascguy (Christopher Nielsen)

Per https://github.com/macports/macports-ports/pull/7514#issuecomment-719958111, I think (?) we may be able to close this ticket.

Ryan can confirm though, since he mentioned it in that PR comment.

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

Resolution: fixed
Status: assignedclosed

I guess so.

Note: See TracTickets for help on using tickets.