Opened 6 years ago

Last modified 6 years ago

#57413 assigned defect

osmocore: error: invalid cpu feature string for builtin

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: osmocore

Description

Build failure on OS X 10.11 at least:

conv_acc.c:658:21: error: invalid cpu feature string for builtin
                ssse3_supported = __builtin_cpu_supports("ssse3");
                                  ^                      ~~~~~~~
1 error generated.
make[3]: *** [conv_acc.lo] Error 1

Change History (4)

comment:1 Changed 6 years ago by michaelld (Michael Dickens)

Hmmm ... no idea. Will boot up a buildbot on 10.11 & see if I can replicate the issue.

comment:2 Changed 6 years ago by michaelld (Michael Dickens)

I have replicated this issue on 10.11 ... and it seems like only 10.11 Xcode clang for some reason. No issues with 10.9, 10.10, or 10.12+; just 10.11. Strange.

The issue is that the compiler (/usr/bin/clang++) accepts the "-mssse3" (and "-mavx2") flag without erroring out, but doesn't in fact support compiling with those features enabled even if the hardware does support them. They use standard GNU Autotools calls, so they should work ... and, clearly they do for the most part; just not on 10.11's Xcode clang LOL.

comment:3 Changed 6 years ago by kencu (Ken)

Could it be a matter of telling Xcode to turn them on? <https://pewpewthespells.com/blog/buildsettings.html#clang_x86_vector_instructions>

Version 0, edited 6 years ago by kencu (Ken) (next)

comment:4 Changed 6 years ago by michaelld (Michael Dickens)

Probably not ... I need to tell autotools to be verbose so I can see the actual code being tested & then debug ...

Note: See TracTickets for help on using tickets.