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

fatal error: malloc.h: No such file or directory #785

Open
AmperesAvengement opened this issue Nov 1, 2023 · 2 comments
Open

fatal error: malloc.h: No such file or directory #785

AmperesAvengement opened this issue Nov 1, 2023 · 2 comments

Comments

@AmperesAvengement
Copy link

I ran into a build issue using GCC on Linux in which the compiler attempts to include malloc.h, despite it being replaced by stdlib.h.

I was able to fix it by changing

#include "malloc.h"

to

#if defined(_WIN32) || defined(__llvm__) || defined(_LIBC_)
#include "malloc.h"
#endif

in aocl_dtl/aoclos.h

@AmperesAvengement AmperesAvengement changed the title "malloc.h" is undefined fatal error: malloc.h: No such file or directory Nov 1, 2023
@fgvanzee
Copy link
Member

@BhaskarNallani @kvaragan In case you haven't seen this yet... Looks like an issue with the AMD fork of BLIS.

@kvaragan
Copy link
Contributor

Hi @AmperesAvengement , which gcc version used ? .Did you try this fork: https://github.com/amd/blis ?

sireeshasanga pushed a commit to amd/blis that referenced this issue Feb 28, 2024
Replace include of non-standard header malloc.h by
stdlib.h to fix issue reported on upstream BLIS
github.

flame#785

AMD-Internal: [CPUPL-4307]
Change-Id: I4ac5cb3164fe7050bba6579b08cc2d3ff412ccba
sireeshasanga pushed a commit to amd/blis that referenced this issue Oct 11, 2024
Replace include of non-standard header malloc.h by
stdlib.h to fix issue reported on upstream BLIS
github.

flame#785

AMD-Internal: [CPUPL-4307]
Change-Id: I4ac5cb3164fe7050bba6579b08cc2d3ff412ccba
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

3 participants