Re: Segmentation fault with binutils 2.28.1

2017-10-06 Thread JonY
On 10/05/2017 05:22 PM, Marco Atzeri wrote:
> 
> That is the problem.
> It costed me one hour of my time, you could have done by yourself.
> 
> 
> Jon,
> let me know if you need help on updating binutils.
> 

Thanks for the info, I will churn out a new version ASAP.




signature.asc
Description: OpenPGP digital signature


Re: Segmentation fault with binutils 2.28.1

2017-10-06 Thread Marco Atzeri

On 06/10/2017 00:13, 叶雨飞 wrote:

Thanks all, Hope this issue can be resolved soon, and if there are
anything need to be done from my part, just let me know and I am happy
to help.

Cheers.



I presume Jon is on vacation.
So short term use binutils 2.25 with test gcc-6.3

Regards
Marco

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Segmentation fault with binutils 2.28.1

2017-10-05 Thread 叶雨飞
Thanks all, Hope this issue can be resolved soon, and if there are
anything need to be done from my part, just let me know and I am happy
to help.

Cheers.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Segmentation fault with binutils 2.28.1

2017-10-05 Thread Marco Atzeri

n 04/10/2017 03:28, Steven Penny wrote:

On Tue, 3 Oct 2017 14:37:04, Marco Atzeri wrote:
you wrote nothing at all. So it is difficult to understand what is 
your exact

issue


I wrote it 4 times:

- http://cygwin.com/ml/cygwin/2017-09/msg00229.html
- http://cygwin.com/ml/cygwin/2017-09/msg00289.html
- http://cygwin.com/ml/cygwin/2017-10/msg00021.html
- http://github.com/Martchus/tageditor/issues/23#issuecomment-331757730

Here though, let me write it 5 now:

    $ cat z.cpp
    #include 
    main() {
  std::cout << "cout test\n";
    }

    $ x86_64-w64-mingw32-g++ -static -o z z.cpp

    $ ./z
    Segmentation fault


as in the past you blamed the compiler.


Yes, I discovered new information, so I modified the email subject to 
reflect

that. Would you rather me continue to blame the complier, or try to help
diagnose the problem?


Error report should be clear and complete;


Example above is MCVE http://stackoverflow.com/help/mcve


Steve,
This is what I mean:

$ cat z.cpp
   #include 
   main() {
 std::cout << "cout test\n";
   }

   $ x86_64-w64-mingw32-g++ -static -o z z.cpp

   $ ./z
   Segmentation fault



mingw64-x86_64-binutils 2.25.0.1.23f238d-1
mingw64-x86_64-gcc-core 5.4.0-3
mingw64-x86_64-gcc-g++  5.4.0-3
- Works

mingw64-x86_64-binutils 2.25.0.1.23f238d-1
mingw64-x86_64-gcc-core 6.3.0-1
mingw64-x86_64-gcc-g++  6.3.0-1
- Works

mingw64-x86_64-binutils 2.28.1.12c1f20d-1
mingw64-x86_64-gcc-core 6.3.0-1
mingw64-x86_64-gcc-g++  6.3.0-1
- Segmentation fault

mingw64-x86_64-binutils 2.29.1-1
mingw64-x86_64-gcc-core 6.3.0-1
mingw64-x86_64-gcc-g++  6.3.0-1
- Works




Have you built it ?


No


That is the problem.
It costed me one hour of my time, you could have done by yourself.


Jon,
let me know if you need help on updating binutils.

Regards
Marco


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Segmentation fault with binutils 2.28.1

2017-10-04 Thread Marco Atzeri

On 04/10/2017 04:52, 叶雨飞 wrote:

Guys,

If someone could show me some instructions on how to build and release
binutils for CYGWIN, I'm happy to do it this week.

Cheers.


Hi 叶雨飞,
only the maintainer can release it.

However to see how to build and test it, the easy way
is to download the cygwin source package
   mingw64-x86_64-binutils-2.28.1.12c1f20d-1-src.tar.xz
using setup or directly from a mirror.

The file contains the upstream source used for the build,
a patch and the cygport file.

$ tar -tf mingw64-x86_64-binutils-2.28.1.12c1f20d-1-src.tar.xz
mingw64-x86_64-binutils-2.28.1.12c1f20d-1.src/
mingw64-x86_64-binutils-2.28.1.12c1f20d-1.src/binutils-gdb-2.28.1.12c1f20d.tar.bz2
mingw64-x86_64-binutils-2.28.1.12c1f20d-1.src/config-rpath.patch
mingw64-x86_64-binutils-2.28.1.12c1f20d-1.src/mingw64-x86_64-binutils.cygport


cygport is the standard method for building and maintaining packages for
the Cygwin distribution.
https://sourceware.org/ml/cygwin-announce/2017-05/msg00042.html

Attached for your convenience the same patch and the modified
mingw64-x86_64-binutils.cygport for 2.19.1.

Assuming you have cygport and all the needed tools and libraries,
these commands will download the upstream source file and
build the full cygwin package

$ cygport mingw64-x86_64-binutils.cygport download
$ cygport mingw64-x86_64-binutils.cygport almostall

The build took ~ 1 hour on my PC.
I have not yet tested it.

Regards
Marco
--- a/config.rpath  2008-03-13 14:27:44.0 -0500
+++ b/config.rpath  2010-07-11 23:30:45.209832800 -0500
@@ -441,7 +441,7 @@ case "$host_os" in
   bsdi4*)
 ;;
   cygwin* | mingw* | pw32*)
-shrext=.dll
+shrext=.dll.a
 ;;
   darwin* | rhapsody*)
 shrext=.dylib
TOOLCHAIN_TARGET="x86_64-w64-mingw32"
ORIG_PN="binutils"
#GIT_URI=git://sourceware.org/git/binutils-gdb.git
#GIT_REV=12c1f20d6fba9dce0011f3ad11a7de60f7df4a7f
#GIT_BRANCH=master

#inherit toolchain git
inherit toolchain 

DESCRIPTION="Binutils for MinGW-w64 Win64 toolchain"
HOMEPAGE="http://mingw-w64.sourceforge.net/;

NAME="mingw64-x86_64-binutils"
VERSION=2.29.1
RELEASE=1
CATEGORY="Devel"

SUMMARY="The GNU Binutils are a collection of binary tools. This package is 
capable of targeting win64."

#case ${PV[3]} in
#[5-9][0-9])
#   
SRC_URI="ftp://sourceware.org/pub/binutils/snapshots/binutils-${PV}.tar.bz2; ;;
#*) SRC_URI="mirror://gnu/binutils/binutils-${PV}.tar.bz2" ;;
SRC_URI="mirror://gnu/binutils/binutils-${PV}.tar.lz" 
#esac
PATCH_URI="config-rpath.patch"

# Avoid strange failures
MAKEOPTS=-j1

CYGCONF_ARGS="
--disable-gdb
"

src_install() {
cd ${B}
cyginstall

# conflicts with native binutils
rm -fr ${D}/usr/share/{info,locale}/
rm -rf ${D}/usr/share/man/man1/gdb*
rm -rf ${D}/usr/share/man/man5/gdb*
#rm -rf ${D}/usr/share/gdb
#rm -rf ${D}/usr/include/gdb
}


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple

Re: Segmentation fault with binutils 2.28.1

2017-10-03 Thread 叶雨飞
Guys,

If someone could show me some instructions on how to build and release
binutils for CYGWIN, I'm happy to do it this week.

Cheers.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Segmentation fault with binutils 2.28.1

2017-10-03 Thread Steven Penny

On Tue, 3 Oct 2017 14:37:04, Marco Atzeri wrote:

you wrote nothing at all. So it is difficult to understand what is your exact
issue


I wrote it 4 times:

- http://cygwin.com/ml/cygwin/2017-09/msg00229.html
- http://cygwin.com/ml/cygwin/2017-09/msg00289.html
- http://cygwin.com/ml/cygwin/2017-10/msg00021.html
- http://github.com/Martchus/tageditor/issues/23#issuecomment-331757730

Here though, let me write it 5 now:

   $ cat z.cpp
   #include 
   main() {
 std::cout << "cout test\n";
   }

   $ x86_64-w64-mingw32-g++ -static -o z z.cpp

   $ ./z
   Segmentation fault


as in the past you blamed the compiler.


Yes, I discovered new information, so I modified the email subject to reflect
that. Would you rather me continue to blame the complier, or try to help
diagnose the problem?


Error report should be clear and complete;


Example above is MCVE http://stackoverflow.com/help/mcve


only links to other place are not enough.


See above - also notice carefully that example was included in my previous post
as well


I saw the comment from Martchus
"Note that when I had been using mingw-w64-binutils 2.28 (before recent 
update to 2.29) I didn't encounter this issue. I never tried 2.28.1."


So it does not seem an issue specif of 2.28


No one but you has said that 2.28 has a problem. What Martchus actually said
was:

- 2.28   working
- 2.28.1 never tried
- 2.29   working


Have you built it ?


No


Or are you only asking Jon to dedicate his time ?


Hm. Last I checked I have already made at least 10 posts on this issue:

- http://cygwin.com/ml/cygwin/2017-09/msg00195.html
- http://cygwin.com/ml/cygwin/2017-09/msg00218.html
- http://cygwin.com/ml/cygwin/2017-09/msg00229.html
- http://cygwin.com/ml/cygwin/2017-09/msg00247.html
- http://cygwin.com/ml/cygwin/2017-09/msg00248.html
- http://cygwin.com/ml/cygwin/2017-09/msg00282.html
- http://cygwin.com/ml/cygwin/2017-09/msg00289.html
- http://cygwin.com/ml/cygwin/2017-09/msg00294.html
- http://cygwin.com/ml/cygwin/2017-10/msg00021.html
- http://cygwin.com/ml/cygwin/2017-10/msg00025.html

Maybe your sense of time is distorted.


Last time I had issue with cygwin binutils 2.25, I built the 2.28.90
and I verified that was solving the issue I saw.
I was not just expecting Jon to debug it alone.


Good for you, but I dont have to build anything to verify the issue - I narrowed
the problem to a single package, and tested with "Test" and "Current" versions.
"Current" works - "Test" fails.

So we could patch "Test", but since a newer version is already available (2.29),
the sane thing to do would be to just upload a newer test version and probably
bypass the problem altogether. If you want to waste your time making a build in
this case that is your business, but dont put that bad advice off on me when I
have already diagnosed the problem.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Segmentation fault with binutils 2.28.1

2017-10-03 Thread Marco Atzeri

On 03/10/2017 13:49, Steven Penny wrote:

On Tue, 3 Oct 2017 07:48:51, Marco Atzeri wrote:

I assume it is one of the reason why the compiler and binutils
you are using are still in test and not current

@ mingw64-x86_64-binutils
version: 2.25.0.1.23f238d-1
[test]
version: 2.28.1.12c1f20d-1

@ mingw64-x86_64-gcc-g++
version: 5.4.0-3
[test]
version: 6.3.0-1


Notice carefully that I did not saying anything about GCC 6.3.0 in this 
thread.


Steven,
you wrote nothing at all.
So it is difficult to understand what is your exact issue as in
the past you blamed the compiler.
Error report should be clear and complete;
only links to other place are not enough.

Also notice that you are incorrectly assuming that I am using GCC 6.3.0. 
The

binutils in question does not work with either 5.4.0 nor 6.3.0.


As you shifted the target from g++ to binutils


I did this because binutils is the problem, not GCC:

- http://cygwin.com/ml/cygwin/2017-09/msg00289.html
- http://github.com/Martchus/tageditor/issues/23


I saw the comment from Martchus
"Note that when I had been using mingw-w64-binutils 2.28 (before recent 
update to 2.29) I didn't encounter this issue. I never tried 2.28.1."


So it does not seem an issue specif of 2.28


do you have evidence that 2.29 will solve the issue ?


It seems that both 2.28 and 2.29 both work, so instead of trying to
troubleshoot we should probably just build a newer version and release 
that as

test:

http://github.com/Martchus/tageditor/issues/23#issuecomment-332686239


Have you built it ? Or are you only asking Jon to dedicate his time ?

Last time I had issue with cygwin binutils 2.25, I built the 2.28.90
and I verified that was solving the issue I saw.
I was not just expecting Jon to debug it alone.

https://cygwin.com/ml/cygwin/2017-07/msg00013.html
https://cygwin.com/ml/cygwin/2017-07/msg00084.html

Regards
Marco


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Segmentation fault with binutils 2.28.1

2017-10-03 Thread Steven Penny

On Tue, 3 Oct 2017 07:48:51, Marco Atzeri wrote:

I assume it is one of the reason why the compiler and binutils
you are using are still in test and not current

@ mingw64-x86_64-binutils
version: 2.25.0.1.23f238d-1
[test]
version: 2.28.1.12c1f20d-1

@ mingw64-x86_64-gcc-g++
version: 5.4.0-3
[test]
version: 6.3.0-1


Notice carefully that I did not saying anything about GCC 6.3.0 in this thread.
Also notice that you are incorrectly assuming that I am using GCC 6.3.0. The
binutils in question does not work with either 5.4.0 nor 6.3.0.


As you shifted the target from g++ to binutils


I did this because binutils is the problem, not GCC:

- http://cygwin.com/ml/cygwin/2017-09/msg00289.html
- http://github.com/Martchus/tageditor/issues/23


do you have evidence that 2.29 will solve the issue ?


It seems that both 2.28 and 2.29 both work, so instead of trying to
troubleshoot we should probably just build a newer version and release that as
test:

http://github.com/Martchus/tageditor/issues/23#issuecomment-332686239


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Segmentation fault with binutils 2.28.1

2017-10-02 Thread Marco Atzeri

On 03/10/2017 03:25, Steven Penny wrote:
Reposting because it is a new month. Here is a demonstration of the 
problem:


    $ cat z.cpp
    #include 
    main() {
     std::cout << "cout test\n";
    }

    $ x86_64-w64-mingw32-g++ -static -o z z.cpp

    $ ./z
    Segmentation fault

- http://cygwin.com/ml/cygwin/2017-09/msg00229.html
- http://cygwin.com/ml/cygwin/2017-09/msg00289.html
- http://github.com/Martchus/tageditor/issues/23




I assume it is one of the reason why the compiler and binutils
you are using are still in test and not current

@ mingw64-x86_64-binutils
version: 2.25.0.1.23f238d-1
[test]
version: 2.28.1.12c1f20d-1

@ mingw64-x86_64-gcc-g++
version: 5.4.0-3
[test]
version: 6.3.0-1

As you shifted the target from g++ to binutils,
do you have evidence that 2.29 will solve the issue ?

Jon always appreciates constructive help.

Regards
Marco


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Segmentation fault with binutils 2.28.1

2017-10-02 Thread Marco Atzeri

On 03/10/2017 04:02, 叶雨飞 wrote:

Who is in charge of maintaining this package? Can we just upgrade to
latest binutils?


no top posting on this list. Please.


the list of maintainers is at
https://cygwin.com/cygwin-pkg-maint


Are you sure that an upgrade solve the problem ?
I am sure Jon will appreciate any constructive help.

Regards
Marco

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Segmentation fault with binutils 2.28.1

2017-10-02 Thread 叶雨飞
Who is in charge of maintaining this package? Can we just upgrade to
latest binutils?

On Mon, Oct 2, 2017 at 6:25 PM, Steven Penny  wrote:
> Reposting because it is a new month. Here is a demonstration of the problem:
>
>$ cat z.cpp
>#include 
>main() {
> std::cout << "cout test\n";
>}
>
>$ x86_64-w64-mingw32-g++ -static -o z z.cpp
>
>$ ./z
>Segmentation fault
>
> - http://cygwin.com/ml/cygwin/2017-09/msg00229.html
> - http://cygwin.com/ml/cygwin/2017-09/msg00289.html
> - http://github.com/Martchus/tageditor/issues/23
>
>
> --
> Problem reports:   http://cygwin.com/problems.html
> FAQ:   http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
>

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple