I slip-streamed Jacek's patch into time.h and successfully built go1.4
flavors (windows/amd64, windows/386, linux/amd64, linux/386,
darwin/amd64, darwin/386) from my local C:\Apps\go-git repo.

I currently don't use the MSYS2 mingw-w64-{i686,x86_64}-go pkgs. Now
that I know about the them I'll try to find time to look at the
PKGBUILD's

On 1/7/15, Ray Donnelly <mingw.andr...@gmail.com> wrote:
> On Wed, Jan 7, 2015 at 2:45 PM, Jon <jon.for...@gmail.com> wrote:
>> 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
>>
>
> You'll need to rebuild mingw-w64-headers from the PKGBUILD for now.
>
> p.s. The MSYS2/MinGW-w64 go packages are AFAIK, under maintained, do
> you think you could take a look at our PKGBUILD sometime to see if
> it's correct / working well? I'm not asking you to adopt it, just to
> kick the tyres once if you don't mind?
>
>> On 1/7/15, Ray Donnelly <mingw.andr...@gmail.com> wrote:
>>> On Wed, Jan 7, 2015 at 11:45 AM, Dongsheng Song
>>> <dongsheng.s...@gmail.com> wrote:
>>>> On Wed, Jan 7, 2015 at 7:33 PM, Jacek Caban <ja...@codeweavers.com>
>>>> 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
>>>> Mingw-w64-public@lists.sourceforge.net
>>>> 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
>>> Mingw-w64-public@lists.sourceforge.net
>>> 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
>> Mingw-w64-public@lists.sourceforge.net
>> 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
> Mingw-w64-public@lists.sourceforge.net
> 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
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to