Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-06-02 Thread niXman

Edward Diener писал 2017-05-31 22:57:


$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl


I have no ideas, sorry...


--
Regards, niXman
___
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
https://sf.net/p/mingw-w64/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-31 Thread Edward Diener

On 5/31/2017 2:38 PM, niXman wrote:

Edward Diener 2017-05-31 15:06:


When you try this yourself does everything work as
expected ?

Sure.

I have just installed MSYS2 from scratch.
I've installed only git(pacman -S git), cloned the mingw-builds project, 
checked out to develop branch, and ran the building(./build...). In 
response, I received a list of packages that needed to be installed and 
I've installed them. I've started the build(./build ...) again and this 
is what I see at the moment:


$ ./build --mode=gcc-7.1.0 --bootstrap --buildroot=/c/mingw710 
--threads=posix --exceptions=dwarf --arch=i686 --bin-compress --jobs=2 
--rev=0 --rt-version=v5

-> Checking OS bitness... 64-bit
-> Checking OS type... MINGW32_NT-6.1
-> Checking for installed packages... done
-> i686 toolchain
--> i686 toolchain is not installed --> download 
i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z... done

--> unpack i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z... done
-> start building i686-7.1.0-posix-dwarf-rt_v5-rev0 with "c,c++,fortran" 
languages supported

-> libiconv
--> download libiconv-1.14.tar.gz... done
--> unpack libiconv-1.14.tar.gz... done
--> patching... done
--> configure... done
--> building... done
--> installing... done
-> zlib
--> download zlib-1.2.11.tar.gz... done
--> unpack zlib-1.2.11.tar.gz... done
--> patching... done
--> configure... done
--> building... done
--> installing... done
-> gmp
--> download gmp-6.1.0.tar.bz2... done
--> unpack gmp-6.1.0.tar.bz2... done
--> configure... done
--> building... done
--> installing... done
-> mpfr
--> download mpfr-3.1.4.tar.bz2... done
--> unpack mpfr-3.1.4.tar.bz2... done
--> configure... done
--> building... done
--> installing... done
-> mpc
--> download mpc-1.0.3.tar.gz... done
--> unpack mpc-1.0.3.tar.gz... done
--> configure... done
--> building... done
--> installing... done
-> isl
--> download isl-0.16.1.tar.xz... done
--> unpack isl-0.16.1.tar.xz... done
--> patching... done
--> configure... done
--> building... done
--> installing... done
-> mingw-w64-download
--> checkout mingw-w64...


Please show me the result of 'echo $PATH' cmd.


$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-31 Thread niXman

Edward Diener 2017-05-31 15:06:


When you try this yourself does everything work as
expected ?

Sure.

I have just installed MSYS2 from scratch.
I've installed only git(pacman -S git), cloned the mingw-builds project, 
checked out to develop branch, and ran the building(./build...). In 
response, I received a list of packages that needed to be installed and 
I've installed them. I've started the build(./build ...) again and this 
is what I see at the moment:


$ ./build --mode=gcc-7.1.0 --bootstrap --buildroot=/c/mingw710 
--threads=posix --exceptions=dwarf --arch=i686 --bin-compress --jobs=2 
--rev=0 --rt-version=v5

-> Checking OS bitness... 64-bit
-> Checking OS type... MINGW32_NT-6.1
-> Checking for installed packages... done
-> i686 toolchain
--> i686 toolchain is not installed --> download 
i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z... done

--> unpack i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z... done
-> start building i686-7.1.0-posix-dwarf-rt_v5-rev0 with "c,c++,fortran" 
languages supported

-> libiconv
--> download libiconv-1.14.tar.gz... done
--> unpack libiconv-1.14.tar.gz... done
--> patching... done
--> configure... done
--> building... done
--> installing... done
-> zlib
--> download zlib-1.2.11.tar.gz... done
--> unpack zlib-1.2.11.tar.gz... done
--> patching... done
--> configure... done
--> building... done
--> installing... done
-> gmp
--> download gmp-6.1.0.tar.bz2... done
--> unpack gmp-6.1.0.tar.bz2... done
--> configure... done
--> building... done
--> installing... done
-> mpfr
--> download mpfr-3.1.4.tar.bz2... done
--> unpack mpfr-3.1.4.tar.bz2... done
--> configure... done
--> building... done
--> installing... done
-> mpc
--> download mpc-1.0.3.tar.gz... done
--> unpack mpc-1.0.3.tar.gz... done
--> configure... done
--> building... done
--> installing... done
-> isl
--> download isl-0.16.1.tar.xz... done
--> unpack isl-0.16.1.tar.xz... done
--> patching... done
--> configure... done
--> building... done
--> installing... done
-> mingw-w64-download
--> checkout mingw-w64...


Please show me the result of 'echo $PATH' cmd.


--
Regards, niXman
___
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
https://sf.net/p/mingw-w64/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-31 Thread Edward Diener

On 5/31/2017 12:32 AM, niXman wrote:

Edward Diener 2017-05-31 07:26:

Not found level for patch
libiconv/0001-compile-relocatable-in-gnulib.mingw.patch, error=2


I do not understand what's going on...

please exec the 'pacman -S patch' cmd and rerun building again.


Same problem. I do not know what's going on either. I am just an 
end-user of MSYS2, but evidently something is happening which you do not 
expect. When you try this yourself does everything work as expected ?



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-30 Thread niXman

Edward Diener 2017-05-31 07:26:

Not found level for patch
libiconv/0001-compile-relocatable-in-gnulib.mingw.patch, error=2


I do not understand what's going on...

please exec the 'pacman -S patch' cmd and rerun building again.


--
Regards, niXman
___
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
https://sf.net/p/mingw-w64/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-30 Thread Edward Diener

On 5/30/2017 10:59 PM, niXman wrote:

Edward Diener 2017-05-31 02:16:


I now get:

-> Checking for installed packages...
the following packages are not installed:
git,subversion,tar,zip,p7zip,make,patch,automake,autoconf,libtool,flex,bison,gettext,gettext-devel,wget,sshpass,texinfo 



but all the above packages are already installed.



please pull and rerun again.


-> start building i686-7.1.0-posix-dwarf-rt_v5-rev0 with "c,c++,fortran" 
languages supported

-> libiconv
---> libiconv-1.14.tar.gz downloaded
---> libiconv-1.14.tar.gz unpacked
--> patching...
Not found level for patch 
libiconv/0001-compile-relocatable-in-gnulib.mingw.patch, error=2




--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-30 Thread niXman

Edward Diener 2017-05-31 02:16:


I now get:

-> Checking for installed packages...
the following packages are not installed:
git,subversion,tar,zip,p7zip,make,patch,automake,autoconf,libtool,flex,bison,gettext,gettext-devel,wget,sshpass,texinfo

but all the above packages are already installed.



please pull and rerun again.


--
Regards, niXman
___
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
https://sf.net/p/mingw-w64/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-30 Thread Edward Diener

On 5/30/2017 2:45 PM, niXman wrote:

Edward Diener 2017-05-30 20:43:

My bad, sorry :(
Fixed in the develop branch.
Please pull and rerun.


I now get:

-> Checking for installed packages...
the following packages are not installed: 
git,subversion,tar,zip,p7zip,make,patch,automake,autoconf,libtool,flex,bison,gettext,gettext-devel,wget,sshpass,texinfo


but all the above packages are already installed.





--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-30 Thread niXman

Edward Diener 2017-05-30 20:43:

My bad, sorry :(
Fixed in the develop branch.
Please pull and rerun.


--
Regards, niXman
___
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
https://sf.net/p/mingw-w64/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-30 Thread niXman

Edward Diener 2017-05-30 20:43:

Please show the result of the 'uname && echo $PATH && which patch' cmd.


--
Regards, niXman
___
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
https://sf.net/p/mingw-w64/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-30 Thread Edward Diener

On 5/30/2017 1:14 PM, niXman wrote:

Edward Diener 2017-05-30 19:48:


Yes.


Please remove completely the mingw-builds and the c:\mingw710 directory, 
clone the mingw-builds again and checkout to the develop branch, and run 
again:
./build --mode=gcc-7.1.0 --bootstrap --buildroot=/c/mingw710 
--threads=posix --exceptions=dwarf --arch=i686 --bin-compress --jobs=2 
--rev=0 --rt-version=v5


The same error still occurs when I try it:

./build --mode=gcc-7.1.0 --bootstrap --buildroot=/c/mingw710 
--threads=posix --exceptions=dwarf --arch=i686 --bin-compress --jobs=2 
--rev=0 --rt-version=v5

-> Checking OS bitness... 64-bit
-> Checking OS type... MINGW32_NT-6.3
-> Checking for installed packages... done
-> i686 toolchain
--> i686 toolchain is not installed --> download 
i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z... done

--> unpack i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z... done
-> start building i686-7.1.0-posix-dwarf-rt_v5-rev0 with "c,c++,fortran" 
languages supported

-> libiconv
--> download libiconv-1.14.tar.gz... done
--> unpack libiconv-1.14.tar.gz... done
--> patching...
Not found level for patch 
libiconv/0001-compile-relocatable-in-gnulib.mingw.patch, error=2



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-30 Thread niXman

Edward Diener 2017-05-30 19:48:


Yes.


Please remove completely the mingw-builds and the c:\mingw710 directory, 
clone the mingw-builds again and checkout to the develop branch, and run 
again:
./build --mode=gcc-7.1.0 --bootstrap --buildroot=/c/mingw710 
--threads=posix --exceptions=dwarf --arch=i686 --bin-compress --jobs=2 
--rev=0 --rt-version=v5



--
Regards, niXman
___
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
https://sf.net/p/mingw-w64/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-30 Thread Edward Diener

On 5/30/2017 12:25 PM, niXman wrote:

Edward Diener 2017-05-30 18:10:


I pulled the latest but the same error still occurs.


Do you use the develop branch?


Yes.




--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-30 Thread niXman

Edward Diener 2017-05-30 18:10:


I pulled the latest but the same error still occurs.


Do you use the develop branch?



--
Regards, niXman
___
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
https://sf.net/p/mingw-w64/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-30 Thread Edward Diener

On 5/29/2017 6:28 AM, niXman wrote:

Edward Diener 2017-05-29 05:26:


Following instructions I eventually get under MSYS2:

-> libiconv
--> download libiconv-1.14.tar.gz... done
--> unpack libiconv-1.14.tar.gz... done
--> patching...
Not found level for patch
libiconv/0001-compile-relocatable-in-gnulib.mingw.patch, error=2


This is because the patch package was not installed.

Fixed in develop branch.


I pulled the latest but the same error still occurs.




--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-29 Thread niXman

Edward Diener 2017-05-29 05:26:


Following instructions I eventually get under MSYS2:

-> libiconv
--> download libiconv-1.14.tar.gz... done
--> unpack libiconv-1.14.tar.gz... done
--> patching...
Not found level for patch
libiconv/0001-compile-relocatable-in-gnulib.mingw.patch, error=2


This is because the patch package was not installed.

Fixed in develop branch.



--
Regards, niXman
___
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
https://sf.net/p/mingw-w64/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-29 Thread niXman

Edward Diener 2017-05-29 05:26:


Following instructions I eventually get under MSYS2:

-> libiconv
--> download libiconv-1.14.tar.gz... done
--> unpack libiconv-1.14.tar.gz... done
--> patching...
Not found level for patch
libiconv/0001-compile-relocatable-in-gnulib.mingw.patch, error=2


You're right... Hmm..

But this patch hasn't changed in the last 3 years:
https://github.com/niXman/mingw-builds/tree/develop/patches/libiconv


--
Regards, niXman
___
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
https://sf.net/p/mingw-w64/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-29 Thread niXman

Edward Diener 2017-05-29 05:26:


Following instructions I eventually get under MSYS2:

-> libiconv
--> download libiconv-1.14.tar.gz... done
--> unpack libiconv-1.14.tar.gz... done
--> patching...
Not found level for patch
libiconv/0001-compile-relocatable-in-gnulib.mingw.patch, error=2



It's Very strange...

You should run "MSYS2 MSYS", not "MSYS2 MinGW 32bit" nor "MSYS2 MinGW 
64bit".



--
Regards, niXman
___
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
https://sf.net/p/mingw-w64/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-28 Thread LRN
On 5/28/2017 9:53 PM, Edward Diener wrote:
> On 5/28/2017 10:15 AM, niXman wrote:
>> Edward Diener 2017-05-28 16:32:
>>> As of September 2016, libbacktrace only supports ELF and PE/COFF 
>>> executables with DWARF debugging information.
> 
> That does not seem very limiting. ELF and PE/COFF covers all popular 
> object file formats on Linux and Windows respectively and surely just 
> about everyone not using VC++ uses DWARF rather than sjlj.
> 

I think there's some confusion here. ILT means DWARF /debug/ info[1] (the other
kind of debug info supported by GCC is STABS (there's also COFF, VMS and
variations, not our concern though); gcc uses DWARF by default, gdb understands
both), not DWARF (DW2) exception handling (where the other exception handling
mechanism is SJLJ, for 32-bit programs, and 64-bit programs have their own,
64-bit-specific exception handling).

[1] https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html

-- 
O< ascii ribbon - stop html email! - www.asciiribbon.org


signature.asc
Description: OpenPGP digital signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-28 Thread LRN
On 5/28/2017 9:53 PM, Edward Diener wrote:
> On 5/28/2017 10:15 AM, niXman wrote:
>> Edward Diener 2017-05-28 16:32:
>>
>>
>> [1] https://github.com/ianlancetaylor/libbacktrace
> 
> Thanks for the link.
> 
> How would I build this above-linked libbacktrace in mingw-64 for myself 
> ? Am I supposed to use the current mingw-64 build script to do so and 
> just copy the aforementioned 3 files to some final directories ?

* git clone https://github.com/ianlancetaylor/libbacktrace.git
* cd libbacktrace
* libtoolize -fi
* autoreconf -fi
* ./configure --prefix= --build=
--enable-host-shared
* make LDFLAGS="-no-undefined"
* make install DESTDIR=

The conventional prefix usually looks like "/mingw" or something like that. Do
"ls /" look for a similarly-named directory.
The build triplet is usually either i686-w64-mingw32 or x86_64-w64-mingw32,
depending on whether the program you're building is 32-bit or 64-bit.

Obviously, this is just a manual build routine, normally someone should can it
and then use buildscripts to build the package.

-- 
O< ascii ribbon - stop html email! - www.asciiribbon.org


signature.asc
Description: OpenPGP digital signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-28 Thread Edward Diener

On 5/28/2017 5:06 PM, niXman wrote:

Edward Diener 2017-05-28 21:53:


That does not seem very limiting. ELF and PE/COFF covers all popular
object file formats on Linux and Windows respectively and surely just
about everyone not using VC++ uses DWARF rather than sjlj.


As I know, for windows targets DWARF is available only for 32bit 
targets.(But I can be wrong...)




How would I build this above-linked libbacktrace in mingw-64 for
myself ? Am I supposed to use the current mingw-64 build script to do
so and just copy the aforementioned 3 files to some final directories
?


1) clone mingw-builds scripts into your home dir.
2) cd mingw-builds
3) switch to develop branch
4) ./build --mode=gcc-7.1.0 --bootstrap --buildroot=/c/mingw710 
--threads=posix --exceptions=dwarf --arch=i686 --bin-compress --jobs=2 
--rev=0 --rt-version=v5


Following instructions I eventually get under MSYS2:

-> libiconv
--> download libiconv-1.14.tar.gz... done
--> unpack libiconv-1.14.tar.gz... done
--> patching...
Not found level for patch 
libiconv/0001-compile-relocatable-in-gnulib.mingw.patch, error=2


If the building of mingw-w64 in your environment is successful, I will 
tell you which files and where to copy to.







--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-28 Thread niXman

niXman 2017-05-29 00:06:


1) clone mingw-builds scripts into your home dir.

*using MSYS2 (sf.net/p/msys2)

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-28 Thread Edward Diener

On 5/28/2017 10:15 AM, niXman wrote:

Edward Diener 2017-05-28 16:32:


2) libbacktrace can be part of a mingw-64 distribution but relies on
other files in that distribution ?

Yes.


Great !




I see in [2] below that there was a discussion of making libbacktrace
standalone, but it appears that in the 4 years from that discussion
that it was never followed through.


I can make the libbacktrace part of the mingw-w64 distribution. In order 
to do this I should copy the three files(libbacktrace.a, backtrace.h, 
gstdint.h) from the GCC build tree.


If libbacktrace were part of mingw-w64 distribution I think it would 
benefit mingw-64 users. This is because the new Boost stacktrace library 
( I am not its author ) uses libbacktrace to produce stack trace 
information on demand, and I am sure you know that Boost is popular with 
C++ programmers. For VC++ on Windows the Boost stacktrace library uses 
other means to generate its stacktrace, so libbacktrace is really useful 
for Boost stacktrace when mingw-64 is being used. You can see Boost 
stacktrace at https://github.com/boostorg/stacktrace since it is now a 
Boost git submodule, and it should be part of the next Boost release.




But pay attention to the limited possibilities of libbacktrace, the 
developer[1] of this library writes about:
As of September 2016, libbacktrace only supports ELF and PE/COFF 
executables with DWARF debugging information.


That does not seem very limiting. ELF and PE/COFF covers all popular 
object file formats on Linux and Windows respectively and surely just 
about everyone not using VC++ uses DWARF rather than sjlj.






[1] https://github.com/ianlancetaylor/libbacktrace


Thanks for the link.

How would I build this above-linked libbacktrace in mingw-64 for myself 
? Am I supposed to use the current mingw-64 build script to do so and 
just copy the aforementioned 3 files to some final directories ?





--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-28 Thread niXman

Edward Diener 2017-05-28 16:32:


2) libbacktrace can be part of a mingw-64 distribution but relies on
other files in that distribution ?

Yes.


I see in [2] below that there was a discussion of making libbacktrace
standalone, but it appears that in the 4 years from that discussion
that it was never followed through.


I can make the libbacktrace part of the mingw-w64 distribution. In order 
to do this I should copy the three files(libbacktrace.a, backtrace.h, 
gstdint.h) from the GCC build tree.


But pay attention to the limited possibilities of libbacktrace, the 
developer[1] of this library writes about:
As of September 2016, libbacktrace only supports ELF and PE/COFF 
executables with DWARF debugging information.




[1] https://github.com/ianlancetaylor/libbacktrace

--
Regards, niXman
___
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
https://sf.net/p/mingw-w64/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-28 Thread Edward Diener

On 5/28/2017 3:37 AM, niXman wrote:

Edward Diener 2017-05-27 23:37:

Hi,


Do I use msys2 in order to build libbacktrace ? When building do I
need to use the version of mingw-64/gcc for which I will be using
libbacktrace when I eventually use mingw-64/gcc as my compiler ? If I
need to do that do I just add the mingw-64/gcc compiler to the
beginning of my msys2 path ?

I have used various versions of mingw-64/gcc binaries in order to test
Boost libraries but I have never built another library for use by any
particular version of mingw-64/gcc, which is why I am asking these
questions.



You can just use the mingw-builds[1] scripts that are used to build the 
official mingw-w64 toolchains.
But the problem is yesterday I rebuild gcc-7-branch and in the logs of 
the builbing I can see libbacktrace has successfully builded, but not 
installed.


In accordance with this message[2], the libbacktrace should not be 
installed in the destination directory because the developers find an it 
inner instrument of GCC.


Are you essentially saying that:

1) libbacktrace can not be part of a mingw-64 distribution because it 
relies on gcc files which are not part of mingw-64 ?
2) libbacktrace can be part of a mingw-64 distribution but relies on 
other files in that distribution ?


I see in [2] below that there was a discussion of making libbacktrace 
standalone, but it appears that in the 4 years from that discussion that 
it was never followed through.






[1] https://github.com/niXman/mingw-builds
[2] https://gcc.gnu.org/ml/gcc/2013-05/msg00174.html





--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-28 Thread niXman

Edward Diener 2017-05-27 23:37:

Hi,


Do I use msys2 in order to build libbacktrace ? When building do I
need to use the version of mingw-64/gcc for which I will be using
libbacktrace when I eventually use mingw-64/gcc as my compiler ? If I
need to do that do I just add the mingw-64/gcc compiler to the
beginning of my msys2 path ?

I have used various versions of mingw-64/gcc binaries in order to test
Boost libraries but I have never built another library for use by any
particular version of mingw-64/gcc, which is why I am asking these
questions.



You can just use the mingw-builds[1] scripts that are used to build the 
official mingw-w64 toolchains.
But the problem is yesterday I rebuild gcc-7-branch and in the logs of 
the builbing I can see libbacktrace has successfully builded, but not 
installed.


In accordance with this message[2], the libbacktrace should not be 
installed in the destination directory because the developers find an it 
inner instrument of GCC.




[1] https://github.com/niXman/mingw-builds
[2] https://gcc.gnu.org/ml/gcc/2013-05/msg00174.html

--
Regards, niXman
___
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
https://sf.net/p/mingw-w64/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-28 Thread Vincent Torri
it seems that it is part of gcc, so maybe the mingw-w64 maintainers should
be able to answer you

Vincent

On Sat, May 27, 2017 at 10:37 PM, Edward Diener <
eldlistmaili...@tropicsoft.com> wrote:

> On 5/27/2017 12:08 PM, niXman wrote:
>
>> Edward Diener 2017-05-27 18:40:
>>
>>> On 5/26/2017 11:03 PM, Vincent Torri wrote:
>>>
 ./configure --host=i686-w64-mingw32
 or
 ./configure --host=i686-w64-mingw32

 for respectively 32bits and 64bits support

>>>
>>> Your configure commands are the same.
>>>
>>
>>
>>
>> ./configure --host=i686-w64-mingw32
>> or
>> ./configure --host=x86_64-w64-mingw32
>>
>
> OK.
>
> Do I use msys2 in order to build libbacktrace ? When building do I need to
> use the version of mingw-64/gcc for which I will be using libbacktrace when
> I eventually use mingw-64/gcc as my compiler ? If I need to do that do I
> just add the mingw-64/gcc compiler to the beginning of my msys2 path ?
>
> I have used various versions of mingw-64/gcc binaries in order to test
> Boost libraries but I have never built another library for use by any
> particular version of mingw-64/gcc, which is why I am asking these
> questions.
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-27 Thread Edward Diener

On 5/27/2017 12:08 PM, niXman wrote:

Edward Diener 2017-05-27 18:40:

On 5/26/2017 11:03 PM, Vincent Torri wrote:

./configure --host=i686-w64-mingw32
or
./configure --host=i686-w64-mingw32

for respectively 32bits and 64bits support


Your configure commands are the same.




./configure --host=i686-w64-mingw32
or
./configure --host=x86_64-w64-mingw32


OK.

Do I use msys2 in order to build libbacktrace ? When building do I need 
to use the version of mingw-64/gcc for which I will be using 
libbacktrace when I eventually use mingw-64/gcc as my compiler ? If I 
need to do that do I just add the mingw-64/gcc compiler to the beginning 
of my msys2 path ?


I have used various versions of mingw-64/gcc binaries in order to test 
Boost libraries but I have never built another library for use by any 
particular version of mingw-64/gcc, which is why I am asking these 
questions.



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-27 Thread Vincent Torri
On Sat, May 27, 2017 at 6:08 PM, niXman  wrote:

> Edward Diener 2017-05-27 18:40:
>
>> On 5/26/2017 11:03 PM, Vincent Torri wrote:
>>
>>> ./configure --host=i686-w64-mingw32
>>> or
>>> ./configure --host=i686-w64-mingw32
>>>
>>> for respectively 32bits and 64bits support
>>>
>>
>> Your configure commands are the same.
>>
>
>
>
> ./configure --host=i686-w64-mingw32
> or
> ./configure --host=x86_64-w64-mingw32
>

oups, copy paste :)

Vincent


>
>
> --
> Regards, niXman
> ___
> Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
> https://sf.net/p/mingw-w64/
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-27 Thread niXman

Edward Diener 2017-05-27 18:40:

On 5/26/2017 11:03 PM, Vincent Torri wrote:

./configure --host=i686-w64-mingw32
or
./configure --host=i686-w64-mingw32

for respectively 32bits and 64bits support


Your configure commands are the same.




./configure --host=i686-w64-mingw32
or
./configure --host=x86_64-w64-mingw32



--
Regards, niXman
___
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
https://sf.net/p/mingw-w64/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-27 Thread Edward Diener

On 5/26/2017 11:03 PM, Vincent Torri wrote:

On Sat, May 27, 2017 at 12:14 AM, Edward Diener
 wrote:

On 5/26/2017 4:13 PM, Vincent Torri wrote:


Hello

On Fri, May 26, 2017 at 9:50 PM, Edward Diener
 wrote:


I would like to use a libbacktrace library for mingw-64/gcc. This is used
by
a new Boost library called stacktrace to provide stack traces anywhere in
code in c++ when using GCC/MinGW/Clang on POSIX or Windows. Does such a
library exist for mingw-64/gcc on Windows ? If not can such a library be
built for a given version of mingw-64/gcc on Windows, presumably in MSYS2
?



I have written a small library and app around memory checking and PE
files. It is called examine and can report backtraces (using libbfd
for stack trace). It is here :

https://vtorri.github.io/examine/
https://github.com/vtorri/examine

I use MSYS2 + mingw-w64 for compilation, or Visual Studio.



Thank you, but what does this have to do with libbacktrace for mingw-64/gcc
?


you wanted a library which provide stack traces.

for libbacktrace, I can see in
https://github.com/gcc-mirror/gcc/tree/master/libbacktrace so PE/COFF
commits and file. So I guess it is possible

try

autoreconf -vif

and

./configure --host=i686-w64-mingw32
or
./configure --host=i686-w64-mingw32

for respectively 32bits and 64bits support


Your configure commands are the same.



regards

Vincent





regards

Vincent Torri



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-26 Thread Vincent Torri
On Sat, May 27, 2017 at 12:14 AM, Edward Diener
 wrote:
> On 5/26/2017 4:13 PM, Vincent Torri wrote:
>>
>> Hello
>>
>> On Fri, May 26, 2017 at 9:50 PM, Edward Diener
>>  wrote:
>>>
>>> I would like to use a libbacktrace library for mingw-64/gcc. This is used
>>> by
>>> a new Boost library called stacktrace to provide stack traces anywhere in
>>> code in c++ when using GCC/MinGW/Clang on POSIX or Windows. Does such a
>>> library exist for mingw-64/gcc on Windows ? If not can such a library be
>>> built for a given version of mingw-64/gcc on Windows, presumably in MSYS2
>>> ?
>>
>>
>> I have written a small library and app around memory checking and PE
>> files. It is called examine and can report backtraces (using libbfd
>> for stack trace). It is here :
>>
>> https://vtorri.github.io/examine/
>> https://github.com/vtorri/examine
>>
>> I use MSYS2 + mingw-w64 for compilation, or Visual Studio.
>
>
> Thank you, but what does this have to do with libbacktrace for mingw-64/gcc
> ?

you wanted a library which provide stack traces.

for libbacktrace, I can see in
https://github.com/gcc-mirror/gcc/tree/master/libbacktrace so PE/COFF
commits and file. So I guess it is possible

try

autoreconf -vif

and

./configure --host=i686-w64-mingw32
or
./configure --host=i686-w64-mingw32

for respectively 32bits and 64bits support

regards

Vincent



>>
>> regards
>>
>> Vincent Torri
>
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-26 Thread Edward Diener

On 5/26/2017 5:09 PM, Carl Kleffner wrote:

drmingw  can be used to display post
mortem information. It containes an embeddable library called ExcHndl too.


Thank you, but what does this have to do with libbacktrace for 
mingw-64/gcc ?




Regards

Carl

2017-05-26 22:13 GMT+02:00 Vincent Torri :


Hello

On Fri, May 26, 2017 at 9:50 PM, Edward Diener
 wrote:

I would like to use a libbacktrace library for mingw-64/gcc. This is

used by

a new Boost library called stacktrace to provide stack traces anywhere in
code in c++ when using GCC/MinGW/Clang on POSIX or Windows. Does such a
library exist for mingw-64/gcc on Windows ? If not can such a library be
built for a given version of mingw-64/gcc on Windows, presumably in

MSYS2 ?

I have written a small library and app around memory checking and PE
files. It is called examine and can report backtraces (using libbfd
for stack trace). It is here :

https://vtorri.github.io/examine/
https://github.com/vtorri/examine

I use MSYS2 + mingw-w64 for compilation, or Visual Studio.

regards

Vincent Torri



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-26 Thread Edward Diener

On 5/26/2017 4:13 PM, Vincent Torri wrote:

Hello

On Fri, May 26, 2017 at 9:50 PM, Edward Diener
 wrote:

I would like to use a libbacktrace library for mingw-64/gcc. This is used by
a new Boost library called stacktrace to provide stack traces anywhere in
code in c++ when using GCC/MinGW/Clang on POSIX or Windows. Does such a
library exist for mingw-64/gcc on Windows ? If not can such a library be
built for a given version of mingw-64/gcc on Windows, presumably in MSYS2 ?


I have written a small library and app around memory checking and PE
files. It is called examine and can report backtraces (using libbfd
for stack trace). It is here :

https://vtorri.github.io/examine/
https://github.com/vtorri/examine

I use MSYS2 + mingw-w64 for compilation, or Visual Studio.


Thank you, but what does this have to do with libbacktrace for 
mingw-64/gcc ?




regards

Vincent Torri



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-26 Thread Carl Kleffner
drmingw  can be used to display post
mortem information. It containes an embeddable library called ExcHndl too.

Regards

Carl

2017-05-26 22:13 GMT+02:00 Vincent Torri :

> Hello
>
> On Fri, May 26, 2017 at 9:50 PM, Edward Diener
>  wrote:
> > I would like to use a libbacktrace library for mingw-64/gcc. This is
> used by
> > a new Boost library called stacktrace to provide stack traces anywhere in
> > code in c++ when using GCC/MinGW/Clang on POSIX or Windows. Does such a
> > library exist for mingw-64/gcc on Windows ? If not can such a library be
> > built for a given version of mingw-64/gcc on Windows, presumably in
> MSYS2 ?
>
> I have written a small library and app around memory checking and PE
> files. It is called examine and can report backtraces (using libbfd
> for stack trace). It is here :
>
> https://vtorri.github.io/examine/
> https://github.com/vtorri/examine
>
> I use MSYS2 + mingw-w64 for compilation, or Visual Studio.
>
> regards
>
> Vincent Torri
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-05-26 Thread Vincent Torri
Hello

On Fri, May 26, 2017 at 9:50 PM, Edward Diener
 wrote:
> I would like to use a libbacktrace library for mingw-64/gcc. This is used by
> a new Boost library called stacktrace to provide stack traces anywhere in
> code in c++ when using GCC/MinGW/Clang on POSIX or Windows. Does such a
> library exist for mingw-64/gcc on Windows ? If not can such a library be
> built for a given version of mingw-64/gcc on Windows, presumably in MSYS2 ?

I have written a small library and app around memory checking and PE
files. It is called examine and can report backtraces (using libbfd
for stack trace). It is here :

https://vtorri.github.io/examine/
https://github.com/vtorri/examine

I use MSYS2 + mingw-w64 for compilation, or Visual Studio.

regards

Vincent Torri

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public