summary refs log tree commit diff stats
path: root/results/scraper/launchpad/1920672
blob: 4c37f3b5a4eaca5f2ca97cf90e2bd6e4bb876dbd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Compilation fails with "ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)"

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?



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 ?


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. 




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