Comment # 17 on bug 974800 from
I cannot reproduce the issue with gcc9
I build gcc version 9.0.0 20181230 (experimental) (GCC) as the following:

../gcc/configure --enable-languages=go --with-arch=armv7-a
--with-tune=cortex-a15 --with-float=hard --with-abi=aapcs-linux
--with-fpu=vfpv3-d16 --prefix=/opt/gcc/9

Then, build go1.11 as the following:

./make.bash
Building Go cmd/dist using /opt/gcc/9.
Building Go toolchain1 using /opt/gcc/9.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
Building Go toolchain3 using go_bootstrap and Go toolchain2.
Building packages and commands for linux/arm.
# os/user
cgo-gcc-prolog: In function '_cgo_a84f89c9c806_Cfunc_mygetgrgid_r':
cgo-gcc-prolog:59:42: warning: taking address of packed member of 'struct
<anonymous>' may result in an unaligned pointer value
[-Waddress-of-packed-member]
cgo-gcc-prolog:59:78: warning: taking address of packed member of 'struct
<anonymous>' may result in an unaligned pointer value
[-Waddress-of-packed-member]
cgo-gcc-prolog: In function '_cgo_a84f89c9c806_Cfunc_mygetgrnam_r':
cgo-gcc-prolog:81:42: warning: taking address of packed member of 'struct
<anonymous>' may result in an unaligned pointer value
[-Waddress-of-packed-member]
cgo-gcc-prolog:81:78: warning: taking address of packed member of 'struct
<anonymous>' may result in an unaligned pointer value
[-Waddress-of-packed-member]
cgo-gcc-prolog: In function '_cgo_a84f89c9c806_Cfunc_mygetpwnam_r':
cgo-gcc-prolog:103:42: warning: taking address of packed member of 'struct
<anonymous>' may result in an unaligned pointer value
[-Waddress-of-packed-member]
cgo-gcc-prolog:103:78: warning: taking address of packed member of 'struct
<anonymous>' may result in an unaligned pointer value
[-Waddress-of-packed-member]
cgo-gcc-prolog: In function '_cgo_a84f89c9c806_Cfunc_mygetpwuid_r':
cgo-gcc-prolog:125:42: warning: taking address of packed member of 'struct
<anonymous>' may result in an unaligned pointer value
[-Waddress-of-packed-member]
cgo-gcc-prolog:125:78: warning: taking address of packed member of 'struct
<anonymous>' may result in an unaligned pointer value
[-Waddress-of-packed-member]
# os/user
cgo-gcc-prolog: In function '_cgo_a84f89c9c806_Cfunc_mygetgrouplist':
cgo-gcc-prolog:46:56: warning: taking address of packed member of 'struct
<anonymous>' may result in an unaligned pointer value
[-Waddress-of-packed-member]
cgo-gcc-prolog:46:68: warning: taking address of packed member of 'struct
<anonymous>' may result in an unaligned pointer value
[-Waddress-of-packed-member]
# net
cgo-gcc-prolog: In function '_cgo_18049202ccd9_C2func_getnameinfo':
cgo-gcc-prolog:51:29: warning: taking address of packed member of 'struct
<anonymous>' may result in an unaligned pointer value
[-Waddress-of-packed-member]
cgo-gcc-prolog: In function '_cgo_18049202ccd9_Cfunc_getnameinfo':
cgo-gcc-prolog:77:29: warning: taking address of packed member of 'struct
<anonymous>' may result in an unaligned pointer value
[-Waddress-of-packed-member]
# net
cgo-gcc-prolog: In function '_cgo_18049202ccd9_C2func_getaddrinfo':
cgo-gcc-prolog:48:53: warning: taking address of packed member of 'struct
<anonymous>' may result in an unaligned pointer value
[-Waddress-of-packed-member]
cgo-gcc-prolog:48:65: warning: taking address of packed member of 'struct
<anonymous>' may result in an unaligned pointer value
[-Waddress-of-packed-member]
cgo-gcc-prolog: In function '_cgo_18049202ccd9_Cfunc_freeaddrinfo':
cgo-gcc-prolog:65:21: warning: taking address of packed member of 'struct
<anonymous>' may result in an unaligned pointer value
[-Waddress-of-packed-member]
cgo-gcc-prolog: In function '_cgo_18049202ccd9_Cfunc_getaddrinfo':
cgo-gcc-prolog:101:53: warning: taking address of packed member of 'struct
<anonymous>' may result in an unaligned pointer value
[-Waddress-of-packed-member]
cgo-gcc-prolog:101:65: warning: taking address of packed member of 'struct
<anonymous>' may result in an unaligned pointer value
[-Waddress-of-packed-member]
# plugin
cgo-gcc-prolog: In function '_cgo_463ee791a5ac_Cfunc_pluginLookup':
cgo-gcc-prolog:45:78: warning: taking address of packed member of 'struct
<anonymous>' may result in an unaligned pointer value
[-Waddress-of-packed-member]
cgo-gcc-prolog: In function '_cgo_463ee791a5ac_Cfunc_pluginOpen':
cgo-gcc-prolog:64:40: warning: taking address of packed member of 'struct
<anonymous>' may result in an unaligned pointer value
[-Waddress-of-packed-member]
---
Installed Go for linux/arm in /home/matwey/lab/go
Installed commands in /home/matwey/lab/go/bin


You are receiving this mail because: