karpathy/llama2.c

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

erolrecep opened this issue · 0 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.