Il giorno giovedì 22 aprile 2021 alle 11:06:09 UTC+2 Manlio Perillo ha scritto:
> I tried to install go1.1.2 on my system, without success. > > I encountered the following problems: > > 1. There is no binary release > 2. Compilation fails due to warnings: > warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use > _DEFAULT_SOURCE > I solved by removing the `-Werror` option > 3. The linker reported the error > ld: -r and -pie may not be used together > I solved by renaming the `-Wl,r` option with `-r` > > The last error is > cannot load DWARF output from $WORK/net/_obj//_cgo_.o: decoding dwarf > section info at offset 0x4: unsupported version 0 > > Any idea? > > The solution was to simply remove the `-Werror` warning in cmd/dist and disable CGO with CGO_ENABLED=0 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/0a5be0ab-109e-4764-8591-8d6fbe93012en%40googlegroups.com.