c++ - G++ Link-time optimisation on Mac - compiler/linker bug? -


i have project uses openmp (which doesn't seem available in current os x default clang setup) use lto. have sections of code in simd intrinsics using sse4 , found g++ unable link code without using os x provided clang linker (flag -wa,-q). g++ 5.10 installed via homebrew , compiled without multilib.

i can compile lto using clang lose parallel 'for's, when add -flto g++ get:

lto1: internal compiler error: in add_symbol_to_partition_1, @ lto/lto-partition.c:211  lto1: internal compiler error: abort trap: 6 g++-5: internal compiler error: abort trap: 6 (program lto1) please submit full bug report, preprocessed source if appropriate. see <https://github.com/homebrew/homebrew/issues> instructions. lto-wrapper: fatal error: g++-5 returned 4 exit status compilation terminated. collect2: fatal error: lto-wrapper returned 1 exit status compilation terminated. 

this occurs without -wa,-q if remove intrinsics can compile remaining code.

i have tried simple 2 file program compiles fine lto in g++ i'm not sure problem is. whilst lto doesn't seem make huge amount of difference code, in clang i've measured 7% non-negligible program takes while run.

i know error says submit bug report don't want unless know it's not own stupidity.

does have experience of sort of problem, or have run compiler bug? (haven't come across 1 before knowledge)

cheers!

compilers never supposed report ices. it's bug. may reported bug, bug.


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -