OK, this seems to be an interaction between
https://golang.org/cl/19686,
my
https://golang.org/cl/19670/ and my old gcc version, though I can't
see how that is happening. Using tip with the old gcc works and the two
CLs together work with gcc 4.8.4.
I'm not sure where to start debugging this interaction. The failure
occurs during compilation of runtime/cgo and terminates at cmd/compile
(complete build output below).
Any suggestions?
On Tue, 2016-02-23 at 00:02 -0500, minux wrote:
> cmd/go on tip should detect the availability of that flag before using
> it.
> Are you sure you're using tip?
$ ./all.bash
##### Building Go bootstrap tool.
cmd/dist
##### Building Go toolchain using /home/daniel/Development/go-boot.
bootstrap/internal/obj
bootstrap/asm/internal/flags
bootstrap/compile/internal/big
bootstrap/internal/gcprog
bootstrap/internal/obj/arm
bootstrap/internal/obj/arm64
bootstrap/internal/obj/mips
bootstrap/internal/obj/ppc64
bootstrap/internal/obj/x86
bootstrap/asm/internal/lex
bootstrap/link/internal/ld
bootstrap/compile/internal/gc
bootstrap/asm/internal/arch
bootstrap/asm/internal/asm
bootstrap/asm
bootstrap/link/internal/amd64
bootstrap/link/internal/arm
bootstrap/link/internal/arm64
bootstrap/link/internal/mips64
bootstrap/link/internal/ppc64
bootstrap/link/internal/x86
bootstrap/link
bootstrap/compile/internal/amd64
bootstrap/compile/internal/arm
bootstrap/compile/internal/arm64
bootstrap/compile/internal/mips64
bootstrap/compile/internal/ppc64
bootstrap/compile/internal/x86
bootstrap/compile
##### Building go_bootstrap for host, linux/amd64.
runtime/internal/sys
runtime/internal/atomic
runtime
encoding
errors
internal/race
math
sort
sync/atomic
unicode
unicode/utf16
unicode/utf8
sync
container/heap
internal/singleflight
io
syscall
hash
hash/adler32
strconv
bytes
strings
bufio
internal/syscall/windows
internal/syscall/windows/registry
time
path
reflect
encoding/base64
crypto
regexp/syntax
crypto/sha1
os
regexp
os/signal
path/filepath
encoding/binary
fmt
io/ioutil
os/exec
flag
go/token
log
net/url
text/template/parse
compress/flate
encoding/json
debug/dwarf
compress/zlib
text/template
go/scanner
go/ast
debug/macho
debug/elf
go/doc
go/parser
go/build
cmd/go
##### Building packages and commands for linux/amd64.
runtime/internal/sys
runtime/internal/atomic
runtime
errors
internal/race
sync/atomic
unicode/utf8
unicode
math
sort
container/list
container/ring
crypto/subtle
sync
encoding
unicode/utf16
image/color
runtime/race
cmd/vet/internal/whitelist
container/heap
image/color/palette
io
syscall
internal/singleflight
hash
crypto/cipher
runtime/trace
hash/adler32
hash/crc32
crypto/hmac
hash/crc64
hash/fnv
bytes
strings
math/rand
math/cmplx
strconv
bufio
text/tabwriter
path
html
internal/syscall/unix
time
compress/bzip2
reflect
regexp/syntax
crypto/aes
crypto
crypto/rc4
encoding/base64
encoding/ascii85
crypto/sha512
crypto/md5
crypto/sha1
crypto/sha256
encoding/pem
encoding/base32
image
os
regexp
image/internal/imageutil
image/draw
image/jpeg
path/filepath
runtime/debug
os/signal
cmd/pprof/internal/svg
encoding/binary
fmt
os/exec
io/ioutil
crypto/des
index/suffixarray
log
flag
cmd/internal/unvendor/
golang.org/x/arch/x86/x86asm
cmd/internal/unvendor/
golang.org/x/arch/arm/armasm
compress/flate
debug/dwarf
debug/gosym
debug/plan9obj
archive/tar
compress/lzw
cmd/internal/obj
math/big
encoding/hex
go/token
compress/zlib
archive/zip
compress/gzip
go/scanner
debug/elf
debug/macho
debug/pe
go/ast
database/sql/driver
cmd/internal/goobj
encoding/csv
encoding/gob
encoding/json
database/sql
encoding/xml
internal/
golang.org/x/net/http2/hpack
crypto/dsa
cmd/internal/objfile
crypto/elliptic
encoding/asn1
crypto/rand
go/parser
go/printer
cmd/addr2line
crypto/rsa
crypto/x509/pkix
crypto/ecdsa
mime
mime/quotedprintable
net/http/internal
net/url
text/template/parse
go/constant
text/scanner
image/gif
image/png
runtime/pprof
internal/trace
cmd/cgo
go/format
testing
go/types
net/internal/socktest
testing/iotest
testing/quick
cmd/internal/obj/arm
text/template
cmd/internal/obj/arm64
cmd/internal/obj/mips
internal/testenv
cmd/internal/obj/ppc64
cmd/internal/obj/x86
cmd/asm/internal/flags
cmd/compile/internal/big
go/doc
html/template
cmd/asm/internal/lex
cmd/internal/gcprog
cmd/dist
go/build
cmd/fix
cmd/gofmt
cmd/asm/internal/arch
cmd/compile/internal/gc
cmd/cover
cmd/asm/internal/asm
cmd/asm
go/internal/gccgoimporter
runtime/cgo
# runtime/cgo
cc1: error: unrecognised debug output level "no-record-gcc-switches"
go/internal/gcimporter
cmd/api
cmd/doc
cmd/link/internal/ld
go/importer
cmd/newlink
cmd/nm
cmd/objdump
cmd/pack
cmd/pprof/internal/profile
cmd/pprof/internal/tempfile
cmd/vet
cmd/yacc
cmd/pprof/internal/plugin
cmd/pprof/internal/symbolz
cmd/pprof/internal/report
cmd/pprof/internal/symbolizer
cmd/link/internal/amd64
cmd/link/internal/arm64
cmd/link/internal/arm
cmd/link/internal/mips64
cmd/link/internal/ppc64
cmd/link/internal/x86
cmd/link
cmd/pprof/internal/commands
cmd/pprof/internal/driver
cmd/compile/internal/amd64
cmd/compile/internal/arm
cmd/compile/internal/arm64
cmd/compile/internal/mips64
cmd/compile/internal/ppc64
cmd/compile/internal/x86
cmd/compile
$