[Bug 1931383] Re: ipp-usb ftbfs with lto

Matthias Klose 1931383 at bugs.launchpad.net
Wed Jun 9 09:37:26 UTC 2021


https://go-review.googlesource.com/c/go/+/322614/


** Also affects: golang
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to golang-1.16 in Ubuntu.
https://bugs.launchpad.net/bugs/1931383

Title:
  ipp-usb ftbfs with lto

Status in Go:
  New
Status in golang-1.16 package in Ubuntu:
  New
Status in ipp-usb package in Ubuntu:
  New

Bug description:
  ipp-usb ftbfs with lto, apparently not seen on Fedora builds.

  github.com/OpenPrinting/ipp-usb
  # github.com/OpenPrinting/ipp-usb
  ../../../../tmp/go-build3834344537/b001/cgo-generated-wrappers:1:13: error: function ‘avahiClientCallback’ redeclared as variable
  ../../../../tmp/go-build3834344537/b001/_cgo_export.c:24:6: note: previously declared here
     24 | void avahiClientCallback(AvahiClient* client, AvahiClientState state, void* _)
        |      ^
  ../../../../tmp/go-build3834344537/b001/cgo-generated-wrappers:4:13: error: function ‘avahiEntryGroupCallback’ redeclared as variable
  ../../../../tmp/go-build3834344537/b001/_cgo_export.c:46:6: note: previously declared here
     46 | void avahiEntryGroupCallback(AvahiEntryGroup* egroup, AvahiEntryGroupState state, void* _)
        |      ^
  ../../../../tmp/go-build3834344537/b001/cgo-generated-wrappers:7:13: error: function ‘libusbHotplugCallback’ redeclared as variable
  ../../../../tmp/go-build3834344537/b001/_cgo_export.c:68:5: note: previously declared here
     68 | int libusbHotplugCallback(libusb_context* ctx, libusb_device* dev, libusb_hotplug_event event, void* p)
        |     ^
  ../../../../tmp/go-build3834344537/b001/_cgo_export.c:21:13: error: variable ‘_cgoexp_73d50ba221cf_avahiClientCallback’ redeclared as function
     21 | extern void _cgoexp_73d50ba221cf_avahiClientCallback(void *);
        |             ^
  ../../../../tmp/go-build3834344537/b001/cgo-generated-wrappers:10:5: note: previously declared here
  ../../../../tmp/go-build3834344537/b001/_cgo_export.c:43:13: error: variable ‘_cgoexp_73d50ba221cf_avahiEntryGroupCallback’ redeclared as function
     43 | extern void _cgoexp_73d50ba221cf_avahiEntryGroupCallback(void *);
        |             ^
  ../../../../tmp/go-build3834344537/b001/cgo-generated-wrappers:11:5: note: previously declared here
  ../../../../tmp/go-build3834344537/b001/_cgo_export.c:65:13: error: variable ‘_cgoexp_73d50ba221cf_libusbHotplugCallback’ redeclared as function
     65 | extern void _cgoexp_73d50ba221cf_libusbHotplugCallback(void *);
        |             ^
  ../../../../tmp/go-build3834344537/b001/cgo-generated-wrappers:12:5: note: previously declared here
  lto1: fatal error: errors during merging of translation units
  compilation terminated.
  lto-wrapper: fatal error: /usr/bin/gcc returned 1 exit status
  compilation terminated.
  /usr/bin/ld: error: lto-wrapper failed
  collect2: error: ld returned 1 exit status

To manage notifications about this bug go to:
https://bugs.launchpad.net/golang/+bug/1931383/+subscriptions



More information about the foundations-bugs mailing list