Which make.exe do you use to build Go on Windows ?

388 views
Skip to first unread message

j...@webmaster.ms

unread,
Sep 1, 2011, 9:08:03 PM9/1/11
to golang-nuts
Hi

Sometimes (approximately each 3rd full build) my make.exe got stuck
building Go.
One or two make.exe processes eat 100% of CPU core and nothing happens
long time.
I looks to me as a make.exe bug.
I would like to find a bug-free version of make rather than
investigate the issue.

If you do not have this problem, can you provide download link where
did you get a good make.exe from ?

Currently I use
--------
bash.exe-3.1$ make -v
GNU Make 3.81
Copyright (C) 2006 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.

This program built for i686-pc-msys
--------
I tried 3.82 also

Fred Richter

unread,
Sep 1, 2011, 10:30:16 PM9/1/11
to golan...@googlegroups.com
$ make -v
GNU Make 3.82
Built for i386-pc-mingw32
Copyright (C) 2010  Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

I have not seen the build hang with this version of make on a Win32 system.
Don't remember for sure, but I think you can get make with

$ mingw-get update
$ mingw-get install mingw32-make

If memory serves, you can also work around the problem by changing the following line in src\make.bash
  MAKEFLAGS=${MAKEFLAGS:-"-j4"}
and change it to
  MAKEFLAGS=${MAKEFLAGS:-"-j1"}


brainman

unread,
Sep 1, 2011, 10:37:16 PM9/1/11
to golan...@googlegroups.com
We are struggling with the same problem. Our windows gobuilder hangs once in a while because of that. It never happens to me when I use single CPU PC. I find more CPU you have + faster PC will hang more often. You can improve things a little, by disabling parallel make (export MAKEFLAGS="-j1"), but even that does not work 100%.

Brad wants to make some bullets (http://codereview.appspot.com/4965061/) to try and make gobuilder more stable.

Alex

peterGo

unread,
Sep 2, 2011, 12:32:23 AM9/2/11
to golang-nuts
jp,

Use this version to solve your problem.

$ make -v
GNU Make 3.82
Built for i386-pc-mingw32
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/
gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

make-3.82-5: mingw32-make.exe
MinGW - Minimalist GNU for Windows - Browse /MinGW/make/make-3.82-
mingw32 at SourceForge.net
http://sourceforge.net/projects/mingw/files/MinGW/make/make-3.82-mingw32/

Rename mingw32-make.exe to make.exe and copy it to the C:\MinGW\msys
\1.0\bin directory.

Peter
Reply all
Reply to author
Forward
0 new messages