[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error with autoconf 2.69 and gccgo (error: cannot run Go compiled pr
Re: error with autoconf 2.69 and gccgo (error: cannot run Go compiled programs.)
Wed, 02 Jan 2013 19:14:19 +0100
Hi Markus, thanks for the report.
On 01/02/2013 06:25 PM, Markus Rothe wrote:
> I am trying to use autotools to compile go sources. Adding AC_PROG_GO to
> configure.ac I am running into the followring error when running
> checking whether we are cross compiling... configure: error: in
> configure: error: cannot run Go compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details
> config.log is attached.
> The offending line is:
> f, err := os.Open("conftest.out", os.O_CREATE|os.O_WRONLY, 0777)
> The solution is to replace os.Open with os.OpenFile. See  for golang
>  http://golang.org/pkg/os/#OpenFile
What a coincidence, I had posted a patch this very days about this issue:
That patch has already been pushed, so that the fix will appear in the
next Autoconf version (2.70).
> This might be fixed in SVN, but I am unable to locate where the source of
> this line is.
Autoconf uses Git, not SVN; for details about how to clone the git
repository, refer to <http://savannah.gnu.org/git/?group=autoconf>