Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 893408 - media-libs/zvbi-0.2.35-r2: fails to compile with non standard compiler flags (error: inlining failed in call to 'always_inline' 'open.localalias': function not inlinable)
Summary: media-libs/zvbi-0.2.35-r2: fails to compile with non standard compiler flags ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-06 15:51 UTC by dani-g5x
Modified: 2024-06-04 02:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
file containing emerge --info of package and system configuration plus build.log (emergeinfo-buildlog,131.53 KB, text/plain)
2023-02-06 15:53 UTC, dani-g5x
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dani-g5x 2023-02-06 15:51:32 UTC
the package fails to compile when this compiler flags are used:
NTHREADS="auto"

source /etc/portage/make.conf.lto.defines

COMMON_FLAGS="-march=native -O3 ${GRAPHITE} ${SEMINTERPOS} ${IPA} ${FLTO} ${IPAPTA} ${DEVIRTLTO} ${SAFEST_FAST_MATH} -fuse-linker-plugin -falign-functions=32 -pipe"

CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3"

CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
CFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"


Reproducible: Always

Steps to Reproduce:
1.utilize specified compiler flags
2. emerge media-libs/zvbi

Actual Results:  
package fails to compile.

Expected Results:  
package should be installed correctly with user specified compiler flags.
Comment 1 dani-g5x 2023-02-06 15:53:11 UTC
Created attachment 850004 [details]
file containing emerge --info of package and system configuration plus build.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-06 15:59:40 UTC
    inlined from 'device_open' at /var/tmp/portage/media-libs/zvbi-0.2.35-r2/work/zvbi-0.2.35/src/io.c:655:7:
/usr/include/bits/fcntl2.h:41:1: error: inlining failed in call to 'always_inline' 'open.localalias': function not inlinable
   41 | open (const char *__path, int __oflag, ...)
      | ^
/usr/include/bits/fcntl2.h:53:14: note: called from here
   53 |       return __open_alias (__path, __oflag, __va_arg_pack ());
      |              ^
/usr/include/bits/fcntl2.h:41:1: error: inlining failed in call to 'always_inline' 'open.localalias': function not inlinable
   41 | open (const char *__path, int __oflag, ...)
      | ^
/usr/include/bits/fcntl2.h:59:10: note: called from here
   59 |   return __open_alias (__path, __oflag, __va_arg_pack ());
      |          ^
In function 'open',
    inlined from 'vbi_proxy_msg_logger' at /var/tmp/portage/media-libs/zvbi-0.2.35-r2/work/zvbi-0.2.35/src/proxy-msg.c:200:15:
/usr/include/bits/fcntl2.h:41:1: error: inlining failed in call to 'always_inline' 'open.localalias': function not inlinable
   41 | open (const char *__path, int __oflag, ...)
      | ^
/usr/include/bits/fcntl2.h:53:14: note: called from here
   53 |       return __open_alias (__path, __oflag, __va_arg_pack ());
      |              ^
make[5]: *** [/var/tmp/portage/media-libs/zvbi-0.2.35-r2/temp/ccdjAbbB.mk:2: /var/tmp/portage/media-libs/zvbi-0.2.35-r2/temp/ccppweGo.ltrans0.ltrans.o] Error 1
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-06 16:00:11 UTC
Please try narrow down which flag causes it.
Comment 4 dani-g5x 2023-02-06 16:44:49 UTC
(In reply to Sam James from comment #3)
> Please try narrow down which flag causes it.

I will try, there a lot of flags to test with so it could take a while
Comment 5 Cănărău Constantin 2024-06-03 17:03:32 UTC
I, also, encountered this error. Not using exactly same flags, but without -fno-semantic-interposition zvbi compile fine with lto.
Maybe, is this gcc bug: 
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101270 ?
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-04 02:49:32 UTC
(In reply to Cănărău Constantin from comment #5)
> I, also, encountered this error. Not using exactly same flags, but without
> -fno-semantic-interposition zvbi compile fine with lto.
> Maybe, is this gcc bug: 
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101270 ?

Yeah, it is.