[MacPorts] #57420: libfaiss: fatal error: malloc.h: No such file or directory
MacPorts
noreply at macports.org
Sun Oct 21 12:33:22 UTC 2018
#57420: libfaiss: fatal error: malloc.h: No such file or directory
------------------------+----------------------
Reporter: ryandesign | Owner: beauby
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: libfaiss
------------------------+----------------------
[https://build.macports.org/builders/ports-10.14_x86_64-builder/builds/6434/steps
/install-port/logs/stdio 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.
--
Ticket URL: <https://trac.macports.org/ticket/57420>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list