OpenMP/gcc on macOS : gcc --without-multilib not available

允我心安 提交于 2019-12-11 14:14:41

问题


Last year I had a school project that used the OpenMP API for parallel computing. I installed gcc-6 --without-multilib with the Homebrew (brew) tool. It worked like charm.

This year I had to make a new clean install of macOS High Sierra because of a software issue. Now I can't seem to install gcc without multilib with brew. When I type "brew info gcc", I can see the different install flags, and --without-multilib in not in this list. (I tried gcc@5, @6 and @7).

I tried installing gcc with the necessary flag (in case it just wasn't documented with "brew gcc info", with no luck.

If anyone has a solution, I'd be happy to test it.

Thanks, Clovel

PS : I obviously googled my issue, I didn't find anything useful. Maybe I missed it.


回答1:


Just a little update. It seems that installing gcc 7.0 and beyond solves the problem, w/o the --without-multilib option. It looks like OpenMP support is native now.

It did solve the issue for me. Do not forget to update brew, and check that the compiler you ar eusing is the correct one.

'Till next time,

Clovel



来源:https://stackoverflow.com/questions/47073268/openmp-gcc-on-macos-gcc-without-multilib-not-available

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!