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
> ./configure:
> 
>     checking whether we are cross compiling... configure: error: in 
> `/home/markus/work/autotools-gotest':
>     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 [1] for golang 
> reference.
> 
> [1] http://golang.org/pkg/os/#OpenFile
>
What a coincidence, I had posted a patch this very days about this issue:
<http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00001.html>

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>

HTH,
  Stefano

Reply via email to