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

2019-08-20 04:14发布

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条回答
一纸荒年 Trace。
2楼-- · 2019-08-20 05:10

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

查看更多
登录 后发表回答