Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 776979 - net-libs/webkit-gtk-2.30.5 error: unknown argument '-Wl,-O1'
Summary: net-libs/webkit-gtk-2.30.5 error: unknown argument '-Wl,-O1'
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-18 00:08 UTC by Alessandro Barbieri
Modified: 2021-03-25 17:34 UTC (History)
0 users

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


Attachments
buildlog (webkit-gtk-2.30.5:20210317-200331.log.xz,109.80 KB, application/x-xz)
2021-03-18 00:11 UTC, Alessandro Barbieri
Details
info (info,19.86 KB, text/plain)
2021-03-25 17:34 UTC, Alessandro Barbieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2021-03-18 00:08:21 UTC
[4611/4615] cd /var/tmp/portage/net-libs/webkit-gtk-2.30.5/work/webkit-gtk-2.30.5_build && /usr/bin/cmake -E env CC=/usr/bin/x86_64-pc-linux-gnu-gcc "CFLAGS=-fdiagnostics-color=always -Wextra -Wall -Wno-expansion-to-defined -Wno[57/99621]o-maybe-uninitialized -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -fno-strict-aliasing -fno-exceptions -Wno-unused-parameter" "LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--no-keep-memory -fuse-ld=gold -Wl,--disable-new-dtags" /var/tmp/portage/net-libs/webkit-gtk-2.30.5/temp/python3.8/bin/python /var/tmp/portage/net-libs/webkit-gtk-2.30.5/work/webkitgtk-2.30.5/Tools/gtkdoc/generate-gtkdoc --gtk && touch docs-build.stamp                                                                                                                            FAILED: docs-build.stamp                                                                                                                                                                                                                      cd /var/tmp/portage/net-libs/webkit-gtk-2.30.5/work/webkit-gtk-2.30.5_build && /usr/bin/cmake -E env CC=/usr/bin/x86_64-pc-linux-gnu-gcc "CFLAGS=-fdiagnostics-color=always -Wextra -Wall -Wno-expansion-to-defined -Wno-psabi -Wno-maybe-uninitialized -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -fno-strict-aliasing -fno-exceptions -Wno-unused-parameter" "LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--no-keep-memory -fuse-ld=gold -Wl,--disable-new-dtags" /var/tmp/portage/net-libs/webkit-gtk-2.30.5/temp/python3.8/bin/python /var/tmp/portage/net-libs/webkit-gtk-2.30.5/work/webkitgtk-2.30.5/Tools/gtkdoc/generate-gtkdoc --gtk && touch docs-build.stamp                                                                                                                                        ld.lld: error: unknown argument '-Wl,-O1'                                                                                                                                                                                                     ld.lld: error: unknown argument '-Wl,--as-needed'                                                                                                                                                                                             ld.lld: error: unknown argument '-Wl,--no-keep-memory'                                                                                                                                                                                        ld.lld: error: unknown argument '-fuse-ld=gold'                                                                                                                                                                                               ld.lld: error: unknown argument '-Wl,--disable-new-dtags'                                                                                                                                                                                     ld.lld: error: unable to find library -lgobject-2.0                                                                                                                                                                                           ld.lld: error: unable to find library -lglib-2.0                                                                                                                                                                                              2021-03-17 22:17:26,419:scangobj.py:execute_command:1289:WARNING:Linking scanner failed: 1, command: ld.lld jsc-glib-4.0-scan.o -L/var/tmp/portage/net-libs/webkit-gtk-2.30.5/work/webkit-gtk-2.30.5_build/lib -ljavascriptcoregtk-4.0 -lgobject-2.0 -lglib-2.0 -Wl,-O1 -Wl,--as-needed -Wl,--no-keep-memory -fuse-ld=gold -Wl,--disable-new-dtags -o jsc-glib-4.0-scan                                                                                                                     Traceback (most recent call last):                                                                                                                                                                                                              File "/var/tmp/portage/net-libs/webkit-gtk-2.30.5/work/webkitgtk-2.30.5/Tools/gtkdoc/generate-gtkdoc", line 254, in <module>                                                                                                                    build_gtkdoc_for_wkgtk(arguments)                                                                                                                                                                                                           File "/var/tmp/portage/net-libs/webkit-gtk-2.30.5/work/webkitgtk-2.30.5/Tools/gtkdoc/generate-gtkdoc", line 208, in build_gtkdoc_for_wkgtk                                                                                                      saw_warnings = generate_documentation(jsc_generator)                                                                                                                                                                                        File "/var/tmp/portage/net-libs/webkit-gtk-2.30.5/work/webkitgtk-2.30.5/Tools/gtkdoc/generate-gtkdoc", line 158, in generate_documentation                                                                                                      return generate_doc(generator, arguments.skip_html)                                                                                                                                                                                         File "/var/tmp/portage/net-libs/webkit-gtk-2.30.5/work/webkitgtk-2.30.5/Tools/gtkdoc/generate-gtkdoc", line 145, in generate_doc                                                                                                                generator.generate(not skip_html)                                                                                                                                                                                                           File "/var/tmp/portage/net-libs/webkit-gtk-2.30.5/work/webkitgtk-2.30.5/Tools/gtkdoc/gtkdoc.py", line 147, in generate                                                                                                                          self._run_gtkdoc_scangobj()                                                                                                                                                                                                                 File "/var/tmp/portage/net-libs/webkit-gtk-2.30.5/work/webkitgtk-2.30.5/Tools/gtkdoc/gtkdoc.py", line 337, in _run_gtkdoc_scangobj                                                                                                              self._run_command(['gtkdoc-scangobj', '--module=%s' % self.module_name],                                                                                                                                                                    File "/var/tmp/portage/net-libs/webkit-gtk-2.30.5/work/webkitgtk-2.30.5/Tools/gtkdoc/gtkdoc.py", line 218, in _run_command                                                                                                                      raise Exception(('%s produced a non-zero return code %i\n'                                                                                                                                                                                Exception: gtkdoc-scangobj produced a non-zero return code 1                                                                                                                                                                                  Command:                                                                                                               
  gtkdoc-scangobj --module=jsc-glib-4.0                                                                                                                                                                                                       
Error output:                                                                                                                                                                                                                                 
  ld.lld: error: unknown argument '-Wl,-O1'                                                                                                                                                                                                   
  ld.lld: error: unknown argument '-Wl,--as-needed'                                                                                                                                                                                           
  ld.lld: error: unknown argument '-Wl,--no-keep-memory'                                                                                                                                                                                      
  ld.lld: error: unknown argument '-fuse-ld=gold'                                                                                                                                                                                             
  ld.lld: error: unknown argument '-Wl,--disable-new-dtags'                                                                                                                                                                                   
  ld.lld: error: unable to find library -lgobject-2.0                                                                                                                                                                                         
  ld.lld: error: unable to find library -lglib-2.0
Comment 1 Alessandro Barbieri 2021-03-18 00:11:57 UTC
Created attachment 692199 [details]
buildlog
Comment 2 Alessandro Barbieri 2021-03-25 17:32:51 UTC
I'm hitting the same error without LLD

ld: unrecognized option '-Wl,-O1'                                                                                                                                                                                                             ld: use the --help option for usage information                                                                                                                                                                                               2021-03-25 05:25:32,894:scangobj.py:execute_command:1289:WARNING:Linking scanner failed: 1, command: ld jsc-glib-4.0-scan.o -L/var/tmp/portage/net-libs/webkit-gtk-2.30.5/work/webkit-gtk-2.30.5_build/lib -ljavascriptcoregtk-4.0 -lgobject-2.0 -lglib-2.0 -Wl,-O1 -Wl,--as-needed -Wl,--no-keep-memory -fuse-ld=gold -Wl,--disable-new-dtags -o jsc-glib-4.0-scan                                                                                                                         Traceback (most recent call last):                                                                                                                                                                                                              File "/var/tmp/portage/net-libs/webkit-gtk-2.30.5/work/webkitgtk-2.30.5/Tools/gtkdoc/generate-gtkdoc", line 254, in <module>                                                                                                                    build_gtkdoc_for_wkgtk(arguments)                                                                                                                                                                                                           File "/var/tmp/portage/net-libs/webkit-gtk-2.30.5/work/webkitgtk-2.30.5/Tools/gtkdoc/generate-gtkdoc", line 208, in build_gtkdoc_for_wkgtk                                                                                                      saw_warnings = generate_documentation(jsc_generator)                                                                                                                                                                                        File "/var/tmp/portage/net-libs/webkit-gtk-2.30.5/work/webkitgtk-2.30.5/Tools/gtkdoc/generate-gtkdoc", line 158, in generate_documentation                                                                                                      return generate_doc(generator, arguments.skip_html)                                                                                                                                                                                         File "/var/tmp/portage/net-libs/webkit-gtk-2.30.5/work/webkitgtk-2.30.5/Tools/gtkdoc/generate-gtkdoc", line 145, in generate_doc                                                                                                                generator.generate(not skip_html)                                                                                                                                                                                                           File "/var/tmp/portage/net-libs/webkit-gtk-2.30.5/work/webkitgtk-2.30.5/Tools/gtkdoc/gtkdoc.py", line 147, in generate                                                                                                                          self._run_gtkdoc_scangobj()                                                                                                                                                                                                                 File "/var/tmp/portage/net-libs/webkit-gtk-2.30.5/work/webkitgtk-2.30.5/Tools/gtkdoc/gtkdoc.py", line 337, in _run_gtkdoc_scangobj                                                                                                              self._run_command(['gtkdoc-scangobj', '--module=%s' % self.module_name],                                                                                                                                                                    File "/var/tmp/portage/net-libs/webkit-gtk-2.30.5/work/webkitgtk-2.30.5/Tools/gtkdoc/gtkdoc.py", line 218, in _run_command                                                                                                                      raise Exception(('%s produced a non-zero return code %i\n'                                                                                                                                                                                Exception: gtkdoc-scangobj produced a non-zero return code 1                                                                                                                                                                                  Command:                                                                                                                                                                                                                                        gtkdoc-scangobj --module=jsc-glib-4.0                                                                                                                                                                                                       Error output:                                                                                                                                                                                                                                 
  ld: unrecognized option '-Wl,-O1'
  ld: use the --help option for usage information
Comment 3 Alessandro Barbieri 2021-03-25 17:34:29 UTC
Created attachment 693462 [details]
info

emerge --info