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

tests fail at tip on Linux/amd64 with gcc: unrecognized option '-no-pie' #13937

Closed
rjammala opened this issue Jan 13, 2016 · 6 comments
Closed
Milestone

Comments

@rjammala
Copy link

Probably because I am using an older version of gcc?

[rjammalamadaka@localhost src]$ uname -a
Linux localhost.localdomain 2.6.32-573.12.1.el6.x86_64 #1 SMP Tue Dec 15 21:19:08 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[rjammalamadaka@localhost src]$ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[rjammalamadaka@localhost src]$ go version
go version devel +f3ce054 Wed Jan 13 15:14:04 2016 +0000 linux/amd64

../misc/cgo/stdio

go run run.go -- chain.go

incorrect output

_/home/rjammalamadaka/go/misc/cgo/stdio

gcc: unrecognized option '-no-pie'
0
1
2
3
4
5
6
7
8
9
10
0
1
2
3
4
5
6
7
8
9
10
0
1
2
3
4
5
6
7
8
9
10
0
1
2
3
4
5
6
7
8
9
10
0
1
2
3
4
5
6
7
8
9
10

FAIL chain.go 1.015s

go run run.go -- fib.go

incorrect output

_/home/rjammalamadaka/go/misc/cgo/stdio

gcc: unrecognized option '-no-pie'
0
1
1
2
3
5
8
13
21
34
55
89
144
233
377
610
987
1597
2584
4181
6765
10946
17711
28657
46368
75025
121393
196418
317811
514229
832040
1346269
2178309
3524578
5702887
9227465
14930352
24157817
39088169
63245986
102334155
165580141
267914296
433494437
701408733
1134903170
1836311903
2971215073
4807526976
7778742049
12586269025
20365011074
32951280099
53316291173
86267571272
139583862445
225851433717
365435296162
591286729879
956722026041
1548008755920
2504730781961
4052739537881
6557470319842
10610209857723
17167680177565
27777890035288
44945570212853
72723460248141
117669030460994
190392490709135
308061521170129
498454011879264
806515533049393
1304969544928657
2111485077978050
3416454622906707
5527939700884757
8944394323791464
14472334024676221
23416728348467685
37889062373143906
61305790721611591
99194853094755497
160500643816367088
259695496911122585
420196140727489673
679891637638612258
1100087778366101931
1779979416004714189
2880067194370816120

FAIL fib.go 0.995s

go run run.go -- hello.go

incorrect output

_/home/rjammalamadaka/go/misc/cgo/stdio

gcc: unrecognized option '-no-pie'
hello, world

FAIL hello.go 1.031s
exit status 1
2016/01/13 10:49:14 Failed: exit status 1

../misc/cgo/life

go run run.go -- main.go

incorrect output

_/home/rjammalamadaka/go/misc/cgo/life

gcc: unrecognized option '-no-pie'

XXX XXX

XXX XXX

FAIL main.go 1.130s
exit status 1
2016/01/13 10:49:14 Failed: exit status 1

../misc/cgo/test

_/home/rjammalamadaka/go/misc/cgo/test/issue9026

gcc: unrecognized option '-no-pie'

_/home/rjammalamadaka/go/misc/cgo/test/gcc68255

gcc: unrecognized option '-no-pie'

_/home/rjammalamadaka/go/misc/cgo/test/issue8828

gcc: unrecognized option '-no-pie'

_/home/rjammalamadaka/go/misc/cgo/test/issue9510a

gcc: unrecognized option '-no-pie'

_/home/rjammalamadaka/go/misc/cgo/test/issue9510b

gcc: unrecognized option '-no-pie'

_/home/rjammalamadaka/go/misc/cgo/test

gcc: unrecognized option '-no-pie'
PASS
ok _/home/rjammalamadaka/go/misc/cgo/test 1.669s

_/home/rjammalamadaka/go/misc/cgo/test/issue9026

gcc: unrecognized option '-no-pie'

_/home/rjammalamadaka/go/misc/cgo/test/issue8828

gcc: unrecognized option '-no-pie'

_/home/rjammalamadaka/go/misc/cgo/test/issue9510a

gcc: unrecognized option '-no-pie'

_/home/rjammalamadaka/go/misc/cgo/test/gcc68255

gcc: unrecognized option '-no-pie'

_/home/rjammalamadaka/go/misc/cgo/test/issue9510b

gcc: unrecognized option '-no-pie'

_/home/rjammalamadaka/go/misc/cgo/test

gcc: unrecognized option '-no-pie'
PASS
ok _/home/rjammalamadaka/go/misc/cgo/test 1.650s
skipped due to earlier error
skipped due to earlier error
skipped due to earlier error
skipped due to earlier error
skipped due to earlier error
skipped due to earlier error
skipped due to earlier error
skipped due to earlier error
skipped due to earlier error
skipped due to earlier error

Testing race detector

skipped due to earlier error
skipped due to earlier error
skipped due to earlier error
skipped due to earlier error
skipped due to earlier error

../misc/cgo/testgodefs

skipped due to earlier error
2016/01/13 10:49:20 FAILED

@rjammala
Copy link
Author

/cc @ianlancetaylor

@ianlancetaylor
Copy link
Member

CC @mwhudson

@ianlancetaylor ianlancetaylor added this to the Go1.6 milestone Jan 13, 2016
@ianlancetaylor
Copy link
Member

cmd/go tests whether GCC supports the -no-pie option, but the test assumes that GCC will exit non-zero for the unrecognized option. I just checked GCC 4.5.1, and it reports an error and then exits 0.

@ianlancetaylor
Copy link
Member

Can you try https://golang.org/cl/18597? Thanks.

@rjammala
Copy link
Author

Thanks for the fix Ian. It works for me.

@gopherbot
Copy link
Contributor

CL https://golang.org/cl/18597 mentions this issue.

@golang golang locked and limited conversation to collaborators Jan 13, 2017
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

3 participants