All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 1920672] [NEW] Compilation fails silently
@ 2021-03-21 13:53 Betim
  2021-03-22 10:02 ` [Bug 1920672] " Peter Maydell
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Betim @ 2021-03-21 13:53 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

It compiles until the end and then just:
[6102/6103] Linking target qemu-system-alpha
[6103/6103] Linking target qemu-system-aarch64
make[1]: Leaving directory '/home/t/.cache/kiss/proc/32129/build/qemu/build'
make: *** [GNUmakefile:11: all] Error 2

Attached is the complete log including configure. I can't find why this
is happening maybe I have a wrong version of a required library?

Any ideas?

** Affects: qemu
     Importance: Undecided
         Status: New

** Attachment added: "make log"
   https://bugs.launchpad.net/bugs/1920672/+attachment/5478697/+files/qemu.log

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1920672

Title:
  Compilation fails silently

Status in QEMU:
  New

Bug description:
  It compiles until the end and then just:
  [6102/6103] Linking target qemu-system-alpha
  [6103/6103] Linking target qemu-system-aarch64
  make[1]: Leaving directory '/home/t/.cache/kiss/proc/32129/build/qemu/build'
  make: *** [GNUmakefile:11: all] Error 2

  Attached is the complete log including configure. I can't find why
  this is happening maybe I have a wrong version of a required library?

  Any ideas?

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1920672/+subscriptions


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1920672] Re: Compilation fails silently
  2021-03-21 13:53 [Bug 1920672] [NEW] Compilation fails silently Betim
@ 2021-03-22 10:02 ` Peter Maydell
  2021-03-22 15:11 ` Betim
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Peter Maydell @ 2021-03-22 10:02 UTC (permalink / raw)
  To: qemu-devel

This isn't silent: the log says:

  BUILD   multiboot.img
ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)

Which version of QEMU are you trying to build? Does this happen with
head-of-git ?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1920672

Title:
  Compilation fails silently

Status in QEMU:
  New

Bug description:
  It compiles until the end and then just:
  [6102/6103] Linking target qemu-system-alpha
  [6103/6103] Linking target qemu-system-aarch64
  make[1]: Leaving directory '/home/t/.cache/kiss/proc/32129/build/qemu/build'
  make: *** [GNUmakefile:11: all] Error 2

  Attached is the complete log including configure. I can't find why
  this is happening maybe I have a wrong version of a required library?

  Any ideas?

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1920672/+subscriptions


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1920672] Re: Compilation fails silently
  2021-03-21 13:53 [Bug 1920672] [NEW] Compilation fails silently Betim
  2021-03-22 10:02 ` [Bug 1920672] " Peter Maydell
@ 2021-03-22 15:11 ` Betim
  2021-03-22 15:27 ` Peter Maydell
  2021-04-30  9:15 ` [Bug 1920672] Re: Compilation fails with "ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)" Thomas Huth
  3 siblings, 0 replies; 5+ messages in thread
From: Betim @ 2021-03-22 15:11 UTC (permalink / raw)
  To: qemu-devel

I could not find 
This is how it is configured:
./configure \
    --prefix=/usr \
    --localstatedir=/var \
    --sysconfdir=/etc \
    --enable-debug-info \
    --disable-gtk \
    --disable-docs \
    --enable-sdl \
    --enable-kvm \
    --enable-pie \
    --enable-curses \
    --disable-user \
    --disable-linux-user \
    --enable-system

Version: 5.2.0

Also this:
$ grep "\-no\-pie" configure
# Check we support --no-pie first; we will need this for building ROMs.
if compile_prog "-Werror -fno-pie" "-no-pie"; then
  LDFLAGS_NOPIE="-no-pie"

Adding another hyphen is not helping either.

I tried to comment out the whole block:
#if compile_prog "-Werror -fno-pie" "-no-pie"; then
  # CFLAGS_NOPIE="-fno-pie"
  # LDFLAGS_NOPIE="-no-pie"
#fi

And it compiled and linked without any problem.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1920672

Title:
  Compilation fails silently

Status in QEMU:
  New

Bug description:
  It compiles until the end and then just:
  [6102/6103] Linking target qemu-system-alpha
  [6103/6103] Linking target qemu-system-aarch64
  make[1]: Leaving directory '/home/t/.cache/kiss/proc/32129/build/qemu/build'
  make: *** [GNUmakefile:11: all] Error 2

  Attached is the complete log including configure. I can't find why
  this is happening maybe I have a wrong version of a required library?

  Any ideas?

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1920672/+subscriptions


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1920672] Re: Compilation fails silently
  2021-03-21 13:53 [Bug 1920672] [NEW] Compilation fails silently Betim
  2021-03-22 10:02 ` [Bug 1920672] " Peter Maydell
  2021-03-22 15:11 ` Betim
@ 2021-03-22 15:27 ` Peter Maydell
  2021-04-30  9:15 ` [Bug 1920672] Re: Compilation fails with "ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)" Thomas Huth
  3 siblings, 0 replies; 5+ messages in thread
From: Peter Maydell @ 2021-03-22 15:27 UTC (permalink / raw)
  To: qemu-devel

This is already fixed in upstream QEMU in commit bbd2d5a8120771, which
will be in 6.0 and 5.2.1.


** Changed in: qemu
       Status: New => Fix Committed

** Summary changed:

- Compilation fails silently
+ Compilation fails with "ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)"

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1920672

Title:
  Compilation fails with "ld: Error: unable to disambiguate: -no-pie
  (did you mean --no-pie ?)"

Status in QEMU:
  Fix Committed

Bug description:
  It compiles until the end and then just:
  [6102/6103] Linking target qemu-system-alpha
  [6103/6103] Linking target qemu-system-aarch64
  make[1]: Leaving directory '/home/t/.cache/kiss/proc/32129/build/qemu/build'
  make: *** [GNUmakefile:11: all] Error 2

  Attached is the complete log including configure. I can't find why
  this is happening maybe I have a wrong version of a required library?

  Any ideas?

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1920672/+subscriptions


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1920672] Re: Compilation fails with "ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)"
  2021-03-21 13:53 [Bug 1920672] [NEW] Compilation fails silently Betim
                   ` (2 preceding siblings ...)
  2021-03-22 15:27 ` Peter Maydell
@ 2021-04-30  9:15 ` Thomas Huth
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2021-04-30  9:15 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1920672

Title:
  Compilation fails with "ld: Error: unable to disambiguate: -no-pie
  (did you mean --no-pie ?)"

Status in QEMU:
  Fix Released

Bug description:
  It compiles until the end and then just:
  [6102/6103] Linking target qemu-system-alpha
  [6103/6103] Linking target qemu-system-aarch64
  make[1]: Leaving directory '/home/t/.cache/kiss/proc/32129/build/qemu/build'
  make: *** [GNUmakefile:11: all] Error 2

  Attached is the complete log including configure. I can't find why
  this is happening maybe I have a wrong version of a required library?

  Any ideas?

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1920672/+subscriptions


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-30  9:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-21 13:53 [Bug 1920672] [NEW] Compilation fails silently Betim
2021-03-22 10:02 ` [Bug 1920672] " Peter Maydell
2021-03-22 15:11 ` Betim
2021-03-22 15:27 ` Peter Maydell
2021-04-30  9:15 ` [Bug 1920672] Re: Compilation fails with "ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)" Thomas Huth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.