Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 675484

Summary: www-client/firefox-64.0.2 USE=lto - 2:10.93 Intrinsic has incorrect argument type! 8 2:10.93 void (i8*, i8*, i64, i1)* @llvm.memcpy.p0i8.p0i8.i64 8 2:10.93 LLVM ERROR: Broken function found, compilation aborted! 8 2:10.93 clang-7: error: linker comm...
Product: Gentoo Linux Reporter: Davyd McColl <davydm>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=668072
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log.xz
emerge --info output
emerge --info output
build.log

Description Davyd McColl 2019-01-15 12:43:25 UTC
Created attachment 561190 [details]
build.log.xz

As per description, with lto USE flag enabled (and using clang -- not sure if that makes a difference), build fails after a few minutes, with the interesting part of the logs seeming to be:

8 3:47.90 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-64.0.2/work/firefox-64.0.2/ff/media/ffvpx/libavutil'
8 3:47.98 gmake[4]: Entering directory '/var/tmp/portage/www-client/firefox-64.0.2/work/firefox-64.0.2/ff/media/ffvpx/libavutil'
8 3:47.98 media/ffvpx/libavutil/libmozavutil.so
8 3:47.98 rm -f libmozavutil.so
8 3:47.98 /usr/lib/llvm/7/bin/x86_64-pc-linux-gnu-clang -std=gnu99 -Qunused-arguments -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-p
rotector-strong -pipe -march=native -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-aliasing -ffunction-se
ctions -fdata-sections -fno-math-errno -pthread -pipe -O2 -fomit-frame-pointer -funwind-tables -Qunused-arguments -Wall -Wempty-body 
-Wignored-qualifiers -Wpointer-arith -Wshadow-field-in-constructor-modified -Wsign-compare -Wtype-limits -Wunreachable-code -Wunreach
able-code-return -Wclass-varargs -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis -Wstring-conversion -Wtautologic
al-overlap-compare -Wtautological-unsigned-enum-zero-compare -Wtautological-unsigned-zero-compare -Wno-error=deprecated-declarations 
-Wno-error=array-bounds -Wno-error=return-std-move -Wno-error=atomic-alignment -Wformat -Wformat-security -Wno-gnu-zero-variadic-macr
o-arguments  -fPIC -shared -Wl,-z,defs -Wl,--gc-sections -Wl,-h,libmozavutil.so -o libmozavutil.so /var/tmp/portage/www-client/firefo
x-64.0.2/work/firefox-64.0.2/ff/media/ffvpx/libavutil/libmozavutil_so.list  -flto=thin -lpthread -Wl,-O1 -Wl,--as-needed -Wl,-rpath=/
usr/lib64/firefox,--enable-new-dtags -Wl,-z,relro,-z,now -fuse-ld=lld -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc 
-Wl,-rpath-link,/var/tmp/portage/www-client/firefox-64.0.2/work/firefox-64.0.2/ff/dist/bin -Wl,-rpath-link,/usr/lib   -fcolor-diagnos
tics    -Wl,--version-script,libmozavutil.so.symbols  -ldl  -lm
8 3:47.98 Intrinsic has incorrect argument type!
8 3:47.98 void (i8*, i8*, i64, i1)* @llvm.memcpy.p0i8.p0i8.i64
8 3:47.98 LLVM ERROR: Broken function found, compilation aborted!
8 3:47.98 clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
8 3:47.98 gmake[4]: *** [/var/tmp/portage/www-client/firefox-64.0.2/work/firefox-64.0.2/config/rules.mk:712: libmozavutil.so] Error 1
8 3:47.98 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-64.0.2/work/firefox-64.0.2/ff/media/ffvpx/libavutil'
8 3:47.98 gmake[3]: *** [/var/tmp/portage/www-client/firefox-64.0.2/work/firefox-64.0.2/config/recurse.mk:74: media/ffvpx/libavutil/t
arget] Error 2

64.0 compiled cleanly before now, so something has changed. I don't think this is related to https://bugs.gentoo.org/672906, though there's commentary on there about disabling lto, because the logs I've seen from there don't match up.

I hope
Comment 1 Davyd McColl 2019-01-15 12:43:51 UTC
Created attachment 561192 [details]
emerge --info output
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2019-01-15 14:07:07 UTC
Comment on attachment 561190 [details]
build.log.xz

8 2:10.93 Intrinsic has incorrect argument type!
8 2:10.93 void (i8*, i8*, i64, i1)* @llvm.memcpy.p0i8.p0i8.i64
8 2:10.93 LLVM ERROR: Broken function found, compilation aborted!
8 2:10.93 clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 3 Paul Klos 2019-02-09 15:29:52 UTC
I have the same issue
Comment 4 Paul Klos 2019-02-09 15:33:22 UTC
Created attachment 564346 [details]
emerge --info output
Comment 5 Paul Klos 2019-02-09 15:34:37 UTC
Created attachment 564348 [details]
build.log
Comment 6 Paul Klos 2019-02-09 15:42:01 UTC
I had built the previous versions with the pgo use flag. To get the ebuild to start, I had to enable lto and clang as well. These are the differences between 64 and 64.

I have also tried to build with system-libvpx but that didn't make any difference.
Comment 7 Paul Klos 2019-04-01 07:34:16 UTC
Version 66.0.2 built without issues. I haven't made any changes to USE flags.
Comment 8 Thomas Deutschmann (RETIRED) gentoo-dev 2020-10-10 20:42:54 UTC
The version this bug was reported against was removed. If you are still experiencing the issue with >=www-client/firefox-78.3.1 or newer please file a new bug or re-open.