FAQ
Hi list,

I'm running *make.bat --no-clean* with gcc 4.8.2 on my Windows box, but got
failed:

D:\go\src\cmd\6l\optab.c:1356:2: error: (near initialization for
'optab[679]') [-Werror]
D:\go\src\cmd\6l\optab.c:1356:2: error: excess elements in scalar
initializer [-Werror]
D:\go\src\cmd\6l\optab.c:1356:2: error: (near initialization for
'optab[679]') [-Werror]
D:\go\src\cmd\6l\optab.c:1356:2: error: excess elements in scalar
initializer [-Werror]
D:\go\src\cmd\6l\optab.c:1356:2: error: (near initialization for
'optab[679]') [-Werror]
D:\go\src\cmd\6l\optab.c:1356:2: error: excess elements in scalar
initializer [-Werror]
D:\go\src\cmd\6l\optab.c:1356:2: error: (near initialization for
'optab[679]') [-Werror]
D:\go\src\cmd\6l\optab.c:1356:2: error: excess elements in scalar
initializer [-Werror]
D:\go\src\cmd\6l\optab.c:1356:2: error: (near initialization for
'optab[679]') [-Werror]
D:\go\src\cmd\6l\optab.c:1358:2: error: braces around scalar initializer
[-Werror]
   { AEND },
   ^
D:\go\src\cmd\6l\optab.c:1358:2: error: (near initialization for
'optab[680]') [-Werror]
D:\go\src\cmd\6l\optab.c:1362:1: error: unknown type name 'Optab'
  Optab* opindex[ALAST+1];
  ^
cc1.exe: all warnings being treated as errors
go tool dist: FAILED: gcc -Wall -Wstrict-prototypes -Wextra -Wunused
-Wno-sign-compare -Wno-missing-braces -Wno-parentheses -Wno-unknown-pragmas
  -Wno-switch -Wno-comment -Wno-missing-field-initializers -Werror
-fno-common -ggdb -pipe -Wuninitialized -O2 -fmessage-length=0 -c -m64 -I
D:\go\include -I D:\go\src\cmd\6l -o
C:\Users\FANYAN~1\AppData\Local\Temp\go771A.tmp\optab.o
D:\go\src\cmd\6l\optab.c
D:\go\src>gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=d:/qt-5.2.0-x86_64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-4.8.2/configure --prefix=/mingw64
--build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32
--target=x86_64-w64-mingw32
--with-sysroot=/msys_repo/mingw-gcc/dest/mingw64 --libexecdir=/mingw64/lib
--enable-bootstrap --with-arch=x86-64 --with-tune=generic
--enable-languages=c,lto,c++,objc,obj-c++,fortran,ada --enable-shared
--enable-static --enable-threads=posix --enable-graphite
--enable-fully-dynamic-string --enable-libstdcxx-time=yes
--disable-libstdcxx-pch --disable-libstdcxx-debug
--enable-cloog-backend=isl --enable-version-specific-runtime-libs
--disable-cloog-version-check --disable-isl-version-check --enable-lto
--enable-libgomp --disable-multilib --enable-checking=release
--disable-rpath --disable-win32-registry --disable-nls --disable-werror
--disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw64
--with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64
--with-cloog=/mingw64 --with-pkgversion='Rev1, Built by MSYS2 project'
--with-bugurl=http://sourceforge.net/projects/msys2 --with-gnu-as
--with-gnu-ld
Thread model: posix
gcc version 4.8.2 (Rev1, Built by MSYS2 project)

Any suggestion?

--
Regards,
Fan Yang

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Ian Taylor at Nov 19, 2014 at 3:15 am

    On Tue, Nov 18, 2014 at 6:49 PM, Yang Fan wrote:
    I'm running make.bat --no-clean with gcc 4.8.2 on my Windows box, but got
    failed:

    D:\go\src\cmd\6l\optab.c:1356:2: error: (near initialization for
    'optab[679]') [-Werror]
    What version of Go are you trying to build? The file 6l/optab.c was
    removed a while ago.

    Ian

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Yang Fan at Nov 19, 2014 at 3:22 am
    D:\go\src>go version
    go version go1.3.3 windows/amd64
    On Wed, Nov 19, 2014 at 11:15 AM, Ian Taylor wrote:
    On Tue, Nov 18, 2014 at 6:49 PM, Yang Fan wrote:

    I'm running make.bat --no-clean with gcc 4.8.2 on my Windows box, but got
    failed:

    D:\go\src\cmd\6l\optab.c:1356:2: error: (near initialization for
    'optab[679]') [-Werror]
    What version of Go are you trying to build? The file 6l/optab.c was
    removed a while ago.

    Ian


    --
    Regards,
    Fan Yang

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Dave Cheney at Nov 19, 2014 at 3:33 am
    I think you have sources mixed up, that file is not present at the release
    tag, and I can't see it in the release tarball.

    https://code.google.com/p/go/source/browse/?name=release#hg%2Fsrc%2Fcmd%2F6l

    Please checkout the release tag from source control it you want to build Go
    from source.


    On Wednesday, 19 November 2014 14:22:26 UTC+11, Fan Yang wrote:

    D:\go\src>go version
    go version go1.3.3 windows/amd64

    On Wed, Nov 19, 2014 at 11:15 AM, Ian Taylor <ia...@golang.org
    <javascript:>> wrote:
    On Tue, Nov 18, 2014 at 6:49 PM, Yang Fan <miss...@gmail.com
    <javascript:>> wrote:
    I'm running make.bat --no-clean with gcc 4.8.2 on my Windows box, but got
    failed:

    D:\go\src\cmd\6l\optab.c:1356:2: error: (near initialization for
    'optab[679]') [-Werror]
    What version of Go are you trying to build? The file 6l/optab.c was
    removed a while ago.

    Ian


    --
    Regards,
    Fan Yang
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedNov 19, '14 at 2:49a
activeNov 19, '14 at 3:33a
posts4
users3
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase