karpathy / llama2.c

Inference Llama 2 in one file of pure C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ld: warning: ignoring duplicate libraries: '-lgcc'

erolrecep opened this issue · comments

When I try to compile "make runomp" I got this error.

First, it tried clang but it says "clang: error: unsupported option '-fopenmp'" then I changed to gcc-13 which is Homebrew installed version. After that, when I recompile, it gave this error "ld: warning: ignoring duplicate libraries: '-lgcc'". Stackoverflow response says it would be fixed soon but I'm not sure if it's going to be soon.

Any of you have seen this error?

I use MacBookPro M2 Pro.

Thanks.