Looks to be the issue behind my recent go build fail...

$ pacman -Q | grep mingw
mingw-w64-x86_64-binutils-git 2.25.r81689.f30b244-3
mingw-w64-x86_64-bzip2 1.0.6-2
mingw-w64-x86_64-cloog 0.18.1-3
mingw-w64-x86_64-crt-git 4.0.0.4388.c7e4f8f-1
mingw-w64-x86_64-gcc 4.9.2-2
mingw-w64-x86_64-gcc-libs 4.9.2-2
mingw-w64-x86_64-gmp 6.0.0-2
mingw-w64-x86_64-headers-git 4.0.0.4388.c7e4f8f-1
mingw-w64-x86_64-isl 0.13-1
mingw-w64-x86_64-libiconv 1.14-2
mingw-w64-x86_64-libwinpthread-git 4.0.0.4370.d008dc5-1
mingw-w64-x86_64-mpc 1.0.2-2
mingw-w64-x86_64-mpfr 3.1.2.p11-1
mingw-w64-x86_64-winpthreads-git 4.0.0.4370.d008dc5-1
mingw-w64-x86_64-zlib 1.2.8-5


C:\Apps\go-git [go_1.4 +8 ~0 -0 !]> .\buildall.ps1

---> building for windows/amd64 platform

# Building C bootstrap tool.
cmd/dist

# Building compilers and Go bootstrap tool.
lib9
libbio
liblink
cmd/cc
cmd/gc
cmd/6l
C:\Users\Jon\AppData\Local\Temp\go9683.tmp\decodesym.o: In function `asctime_r':
C:/Apps/DevTools/msys32/mingw64/x86_64-w64-mingw32/include/time.h:238:
multiple definition of
`asctime_r'
C:\Users\Jon\AppData\Local\Temp\go9683.tmp\data.o:C:/Apps/DevTools/msys32/mingw64/x86_64-w64-mingw32/include/time.h:238:
first defined here
C:\Users\Jon\AppData\Local\Temp\go9683.tmp\dwarf.o: In function `asctime_r':
C:/Apps/DevTools/msys32/mingw64/x86_64-w64-mingw32/include/time.h:238:
multiple definition of
`asctime_r'
C:\Users\Jon\AppData\Local\Temp\go9683.tmp\data.o:C:/Apps/DevTools/msys32/mingw64/x86_64-w64-mingw32/include/time.h:238:
first defined here
...SNIP...
collect2.exe: error: ld returned 1 exit status
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 -o
C:\Apps\go-git\pkg\tool\windows_amd64\6l.exe -m64
C:\Users\Jon\AppData\Local\Temp\go9683.tmp\data.o
C:\Users\Jon\AppData\Local\Temp\go9683.tmp\decodesym.o
C:\Users\Jon\AppData\Local\Temp\go9683.tmp\dwarf.o
C:\Users\Jon\AppData\Local\Temp\go9683.tmp\elf.o
C:\Users\Jon\AppData\Local\Temp\go9683.tmp\go.o
C:\Users\Jon\AppData\Local\Temp\go9683.tmp\ldelf.o
C:\Users\Jon\AppData\Local\Temp\go9683.tmp\ldmacho.o
C:\Users\Jon\AppData\Local\Temp\go9683.tmp\ldpe.o
C:\Users\Jon\AppData\Local\Temp\go9683.tmp\lib.o
C:\Users\Jon\AppData\Local\Temp\go9683.tmp\macho.o
C:\Users\Jon\AppData\Local\Temp\go9683.tmp\pcln.o
C:\Users\Jon\AppData\Local\Temp\go9683.tmp\pe.o
C:\Users\Jon\AppData\Local\Temp\go9683.tmp\pobj.o
C:\Users\Jon\AppData\Local\Temp\go9683.tmp\symtab.o C:\Us

On 1/7/15, Ray Donnelly <[email protected]> wrote:
> On Wed, Jan 7, 2015 at 11:45 AM, Dongsheng Song
> <[email protected]> wrote:
>> On Wed, Jan 7, 2015 at 7:33 PM, Jacek Caban <[email protected]>
>> wrote:
>>> Hi Alexey,
>>>
>>> On 01/07/15 09:06, Alexey Pavlov wrote:
>>>> Ladt changes to time functions lead to multiple definitions of
>>>> "asctime_r" in some programs. For example,
>>>
>>> I just pushed a fixup:
>>> http://sourceforge.net/p/mingw-w64/mingw-w64/ci/9f52135b2fa1336d63cda12c502f1790797387fa
>>>
>>> I wonder why it didn't cause errors in my case...
>>>
>>
>> Thanks. It cause gcc build failure because more than one source file
>> include time.h, then asctime_r got implemented more than once.
>
> Ditto, fixes problems on MSYS2. Alexey, can you re-package
> mingw-w64-headers as this problem will hit a lot of people very soon
> otherwise.
>
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming! The Go Parallel Website,
>> sponsored by Intel and developed in partnership with Slashdot Media, is
>> your
>> hub for all things parallel software development, from weekly thought
>> leadership blogs to news, videos, case studies, tutorials and more. Take
>> a
>> look and join the conversation now. http://goparallel.sourceforge.net
>> _______________________________________________
>> Mingw-w64-public mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to