Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all: Error in Build/Compile Go1.4.3! #23103

Closed
QuestionPython opened this issue Dec 12, 2017 · 9 comments
Closed

all: Error in Build/Compile Go1.4.3! #23103

QuestionPython opened this issue Dec 12, 2017 · 9 comments

Comments

@QuestionPython
Copy link

QuestionPython commented Dec 12, 2017

guest@Base:~/Gits/go-go1.4.3/src$ ./all.bash

# Building C bootstrap tool.
cmd/dist

# Building compilers and Go bootstrap tool for host, linux/amd64.
lib9
libbio
liblink
cmd/cc
cmd/gc
cmd/6l
cmd/6a
cmd/6c
/home/guest/Gits/go-go1.4.3/src/cmd/6c/txt.c: In function 'gmove':
/home/guest/Gits/go-go1.4.3/src/cmd/6c/txt.c:995:28: warning: left shift of negative value [-Wshift-negative-value]
     f->vconst |= (vlong)~0 << 32;
                            ^~
/home/guest/Gits/go-go1.4.3/src/cmd/6c/txt.c:1045:28: warning: left shift of negative value [-Wshift-negative-value]
     f->vconst |= (vlong)~0 << 32;
                            ^~
cmd/6g
runtime
errors
sync/atomic
sync
io
unicode
unicode/utf8
unicode/utf16
bytes
math
strings
strconv
bufio
sort
container/heap
encoding/base64
syscall
time
os
reflect
fmt
encoding
encoding/json
flag
path/filepath
path
io/ioutil
log
regexp/syntax
regexp
go/token
go/scanner
go/ast
go/parser
os/exec
os/signal
net/url
text/template/parse
text/template
go/doc
go/build
cmd/go

# Building packages and commands for linux/amd64.
runtime
errors
sync/atomic
unicode
unicode/utf8
math
sort
encoding
unicode/utf16
container/list
crypto/subtle
sync
container/ring
image/color
runtime/race
container/heap
io
syscall
image/color/palette
hash
crypto/cipher
hash/crc32
crypto/hmac
hash/adler32
hash/crc64
hash/fnv
bytes
strings
bufio
text/tabwriter
path
html
compress/bzip2
time
internal/syscall
strconv
math/rand
math/cmplx
reflect
regexp/syntax
crypto
encoding/base64
net/url
crypto/aes
crypto/rc4
crypto/md5
crypto/sha1
crypto/sha256
os
crypto/sha512
encoding/pem
encoding/ascii85
encoding/base32
image
regexp
image/draw
image/jpeg
path/filepath
os/signal
io/ioutil
os/exec
fmt
encoding/binary
cmd/pprof/internal/svg
crypto/des
index/suffixarray
cmd/internal/goobj
cmd/internal/rsc.io/arm/armasm
cmd/internal/rsc.io/x86/x86asm
debug/dwarf
debug/gosym
debug/plan9obj
flag
log
go/token
encoding/json
encoding/xml
text/template/parse
go/scanner
compress/flate
debug/elf
debug/macho
debug/pe
go/ast
text/template
math/big
encoding/hex
compress/gzip
mime
net/http/internal
runtime/pprof
cmd/pack
cmd/pprof/internal/profile
cmd/pprof/internal/tempfile
archive/tar
cmd/internal/objfile
archive/zip
go/parser
go/printer
go/doc
crypto/elliptic
encoding/asn1
crypto/rand
crypto/dsa
cmd/pprof/internal/plugin
html/template
cmd/addr2line
crypto/rsa
cmd/nm
cmd/objdump
cmd/pprof/internal/symbolizer
go/build
cmd/cgo
go/format
crypto/ecdsa
cmd/fix
crypto/x509/pkix
cmd/gofmt
cmd/pprof/internal/report
cmd/pprof/internal/symbolz
cmd/yacc
compress/lzw
compress/zlib
database/sql/driver
cmd/pprof/internal/commands
encoding/csv
encoding/gob
cmd/pprof/internal/driver
image/gif
database/sql
image/png
runtime/debug
testing
testing/iotest
testing/quick
text/scanner
runtime/cgo
# runtime/cgo
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status

how fix this?

@davecheney
Copy link
Contributor

davecheney commented Dec 12, 2017 via email

@QuestionPython
Copy link
Author

$ GOOS=linux GOARCH=ppc64 ./bootstrap.bash
bash: ./bootstrap.bash: No such file or directory

@QuestionPython
Copy link
Author

i want install GC : at /home/max/Gits/go-go1.4.3/src/cmd/gc

$ make

go tool dist install -v
make: go: Command not found
../../Make.dist:13: recipe for target 'install' failed
make: *** [install] Error 127

but gc also need to GO.

@laboger
Copy link
Contributor

laboger commented Dec 12, 2017 via email

@QuestionPython
Copy link
Author

guest@Base:~/Gits/go-go1.4.3/src$ GOOS=linux GOARCH=amd64 ./all.bash

# Building C bootstrap tool.
cmd/dist

# Building compilers and Go bootstrap tool for host, linux/amd64.
lib9
libbio
liblink
cmd/cc
cmd/gc
cmd/6l
cmd/6a
cmd/6c
/home/guest/Gits/go-go1.4.3/src/cmd/6c/txt.c: In function 'gmove':
/home/guest/Gits/go-go1.4.3/src/cmd/6c/txt.c:995:28: warning: left shift of negative value [-Wshift-negative-value]
     f->vconst |= (vlong)~0 << 32;
                            ^~
/home/guest/Gits/go-go1.4.3/src/cmd/6c/txt.c:1045:28: warning: left shift of negative value [-Wshift-negative-value]
     f->vconst |= (vlong)~0 << 32;
                            ^~
cmd/6g
runtime
errors
sync/atomic
sync
io
unicode
unicode/utf8
unicode/utf16
bytes
math
strings
strconv
bufio
sort
container/heap
encoding/base64
syscall
time
os
reflect
fmt
encoding
encoding/json
flag
path/filepath
path
io/ioutil
log
regexp/syntax
regexp
go/token
go/scanner
go/ast
go/parser
os/exec
os/signal
net/url
text/template/parse
text/template
go/doc
go/build
cmd/go

# Building packages and commands for linux/amd64.
runtime
errors
sync/atomic
unicode
unicode/utf8
math
sort
encoding
unicode/utf16
container/list
crypto/subtle
container/ring
image/color
container/heap
runtime/race
sync
image/color/palette
io
syscall
hash
crypto/cipher
hash/crc32
crypto/hmac
hash/adler32
hash/crc64
hash/fnv
bytes
strings
bufio
text/tabwriter
path
html
compress/bzip2
time
internal/syscall
strconv
math/rand
math/cmplx
reflect
regexp/syntax
crypto
encoding/base64
net/url
crypto/aes
crypto/rc4
crypto/md5
crypto/sha1
crypto/sha256
os
crypto/sha512
encoding/pem
encoding/ascii85
encoding/base32
image
path/filepath
os/signal
regexp
image/draw
image/jpeg
io/ioutil
os/exec
fmt
encoding/binary
cmd/pprof/internal/svg
crypto/des
index/suffixarray
cmd/internal/goobj
cmd/internal/rsc.io/arm/armasm
cmd/internal/rsc.io/x86/x86asm
debug/dwarf
debug/gosym
debug/plan9obj
flag
log
go/token
encoding/json
encoding/xml
text/template/parse
go/scanner
compress/flate
go/ast
debug/elf
debug/macho
debug/pe
math/big
text/template
encoding/hex
compress/gzip
mime
net/http/internal
runtime/pprof
cmd/pack
cmd/pprof/internal/profile
go/parser
go/printer
cmd/internal/objfile
cmd/pprof/internal/tempfile
archive/tar
crypto/elliptic
encoding/asn1
crypto/rand
go/doc
cmd/addr2line
crypto/dsa
crypto/rsa
cmd/cgo
go/format
cmd/gofmt
cmd/fix
crypto/ecdsa
crypto/x509/pkix
cmd/nm
cmd/objdump
cmd/pprof/internal/plugin
go/build
html/template
cmd/pprof/internal/report
cmd/pprof/internal/symbolizer
cmd/pprof/internal/symbolz
cmd/yacc
archive/zip
compress/lzw
compress/zlib
database/sql/driver
encoding/csv
encoding/gob
image/gif
image/png
database/sql
runtime/debug
cmd/pprof/internal/commands
testing
testing/iotest
testing/quick
cmd/pprof/internal/driver
text/scanner
runtime/cgo
# runtime/cgo
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status

@QuestionPython
Copy link
Author

bash: ./bootstrap.bash: No such file or directory

@ianlancetaylor
Copy link
Member

If you want to run bootstrap.bash, use Go 1.9.2.

If you want to build Go 1.4, use the tarball that @davecheney pointed you to above; don't try to build Go 1.4.3.

@QuestionPython
Copy link
Author

i want only compile and use from GC(main compiler of golang).
help me.

@ianlancetaylor
Copy link
Member

To get help, please use a forum: https://golang.org/wiki/Questions . Thanks.

Please start the discussion there by explaining more clearly what you want to do. I personally do not understand, as you have mentioned several different things. Don't tell us the problem. Tell us the goal.

I'm closing this issue since I don't think there is a bug here.

@mikioh mikioh changed the title Error in Build/Compile Go1.4.3! all: Error in Build/Compile Go1.4.3! Jan 5, 2018
@golang golang locked and limited conversation to collaborators Jan 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants