New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link .a created by compile_to_static_library() using Intel compiler? #3218

Closed
silly-git opened this Issue Aug 14, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@silly-git

silly-git commented Aug 14, 2018

Hello,

An application I'm working on is built with clang-902.0.39.2, VS2017 as well as Intel's compiler. I compile a Halide filter using compile_to_static_library() and when linking it with both clang/VS2017 it all works as expected. When building with the Intel compiler, Windows links my .lib in fine but on OSX icpc crashes with the following error:

": internal error: ** The compiler has encountered an unexpected problem.
** Segmentation violation signal raised. **
Access violation or stack overflow. Please contact Intel Support for assistance.

icpc-18_0_2_164: error #10014: problem during multi-file optimization compilation (code 4)

FWIW the app that creates the .a/.lib is built with clang/VS2017 respectively, should that matter?

Any info on whether this is supposed to work or not, or any workarounds/hints would be much appreciated.

Thanks,

Joe

@steven-johnson

This comment has been minimized.

Show comment
Hide comment
@steven-johnson

steven-johnson Aug 14, 2018

Contributor

There's no reason I know of that it shouldn't work. This sounds like an issue with the Intel compiler.

Contributor

steven-johnson commented Aug 14, 2018

There's no reason I know of that it shouldn't work. This sounds like an issue with the Intel compiler.

@silly-git

This comment has been minimized.

Show comment
Hide comment
@silly-git

silly-git Aug 14, 2018

Thanks Steven, initial tests suggest that adding -ipo- to the link step fixes the problem, I'll update if the full tests pass.

silly-git commented Aug 14, 2018

Thanks Steven, initial tests suggest that adding -ipo- to the link step fixes the problem, I'll update if the full tests pass.

@silly-git

This comment has been minimized.

Show comment
Hide comment
@silly-git

silly-git Aug 15, 2018

Yes the -ipo- switch fixed the issue.

silly-git commented Aug 15, 2018

Yes the -ipo- switch fixed the issue.

@silly-git silly-git closed this Aug 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment