Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/dist: failed to bootstrap on Mac OS X 10.6 #7492
What does 'go version' print? The last version I successfully built: go version devel +1a0714819799 Thu Mar 06 00:09:09 2014 +1100 darwin/amd64 What steps reproduce the problem? If possible, include a link to a program on play.golang.org. cd /usr/local/go/src hg pull hg update default ./all.bash What happened? # Building compilers and Go bootstrap tool for host, darwin/amd64. lib9 cc1: warnings being treated as errors cc1: warning: -Wuninitialized is not supported without -O cc1: warnings being treated as errors cc1: warning: -Wuninitialized is not supported without -O cc1: warnings being treated as errors cc1: warning: -Wuninitialized is not supported without -O go tool dist: FAILED: cc -I/usr/local/scisoft/include/ -Wall -Wstrict-prototypes -Wextra -Wunused -Wuninitialized -Wno-sign-compare -Wno-missing-braces -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment -Wno-missing-field-initializers -Werror -fno-common -ggdb -pipe -fmessage-length=0 -mmacosx-version-min=10.6 -c -m64 -I /usr/local/go/include -DPLAN9PORT -I /usr/local/go/src/lib9 -o /usr/local/go/pkg/obj/lib9/atoi.o /usr/local/go/src/lib9/atoi.c What should have happened instead? The Go distribution should have built. Please provide any additional information below. xcodebuild -version Xcode 3.2.6 Component versions: DevToolsCore-1809.0; DevToolsSupport-1806.0 BuildVersion: 10M2518
Yes, I have a package installed called Scisoft ( http://scisoftosx.dyndns.org/ ) that sets CFLAGS and CCFLAGS: echo $CCFLAGS -I/usr/local/scisoft/include/ echo $CFLAGS -I/usr/local/scisoft/include/ Is there a reason why having these set blocks the addition of -O2? Is the assumption that the user can control the build process by setting their own -O flag?
yeah, a recent change makes -O2 optional, and if you've set $CFLAGS, it will be used instead of -O2 (it is assumed that you set CFLAGS to override the optimization setting). could you please revert changes to cmd/dist and try this CL? https://golang.org/cl/72360045 I think it will solve your problem. Thank you.
Owner changed to @minux.
Status changed to Started.