https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101261
Bug ID: 101261 Summary: clones for target_clones attribute cannot be created when compilling with -fno-semantic-interposition Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: johnnybit at gmail dot com Target Milestone: --- darktable's user reported problem building darktable with "optimized" flags and I could confirm the error is present on GCC 10.3.0 When compilling whole darktable with CFLAGS set to `-march=native -O3 -fno-semantic-interposition -flto=3 -fno-plt -fgraphite-identity -floop-nest-optimize -fuse-linker-plugin -pipe -Wl,-O1 -Wl,--as-needed` the compiler errors with: src/common/iop_profile.c:1015:6: error: clones for «target_clones» attribute cannot be created 1015 | void dt_ioppr_transform_image_colorspace(struct dt_iop_module_t *self, const float *const image_in, | ^ I've managed to narrow it down and it was enough to just set the -fno-semantic-interposition flag to make darktable compillation error out on the same point. I haven't been able to create minimum reproducer for this problem (single file project compiles and runs ok) for details please check https://github.com/darktable-org/darktable/issues/9303