public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [Bug 218026] New: Compile failure in kvm-unit-tests about "ld: Error: unable to disambiguate: -no-pie"
@ 2023-10-19  7:02 bugzilla-daemon
  0 siblings, 0 replies; only message in thread
From: bugzilla-daemon @ 2023-10-19  7:02 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=218026

            Bug ID: 218026
           Summary: Compile failure in kvm-unit-tests about "ld: Error:
                    unable to disambiguate: -no-pie"
           Product: Virtualization
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: high
          Priority: P3
         Component: kvm
          Assignee: virtualization_kvm@kernel-bugs.osdl.org
          Reporter: ruifeng.gao@intel.com
        Regression: No

Environment:
CPU Architecture: x86_64
Host OS: CentOS Stream 9
binutils: binutils-2.36.1-4.el9.x86_64
kvm-unit-tests source: https://gitlab.com/kvm-unit-tests/kvm-unit-tests.git
Branch: master
Commit: 09e8c119b4cd7b615ea0ece16c92c79054dfb38d

Bug Detailed Description:
kvm-unit-tests can not be compiled due to "ld: Error: unable to disambiguate:
-no-pie". 
Checked ld version:
[root@emr-2s7 kvm-unit-tests]# ld --version
GNU ld version 2.36.1-4.el9
With older version (i.e., GNU ld version 2.35.2-39.el9), it can be compiled
well. Initially suspected, it should be a compiling issue.

Reproducing Steps:
git clone https://gitlab.com/kvm-unit-tests/kvm-unit-tests.git
cd kvm-unit-tests
./configure
make standalone

Actual Result:
...
rotector    -Wno-frame-address   -fno-pic  -Wclobbered 
-Wunused-but-set-parameter  -Wmissing-parameter-type  -Wold-style-declaration
-Woverride-init -Wmissing-prototypes -Wstrict-prototypes -std=gnu99
-ffreestanding -I /root/grf/kvm-unit-tests/lib -I
/root/grf/kvm-unit-tests/lib/x86 -I lib   -c -o x86/vmexit.o x86/vmexit.c
gcc -mno-red-zone -mno-sse -mno-sse2  -fcf-protection=full -m64 -O1 -g -MMD -MP
-MF x86/.cstart64.d -fno-strict-aliasing -fno-common -Wall -Wwrite-strings
-Wempty-body -Wuninitialized -Wignored-qualifiers -Wno-missing-braces -Werror 
-fno-omit-frame-pointer  -fno-stack-protector    -Wno-frame-address   -fno-pic 
-Wclobbered  -Wunused-but-set-parameter  -Wmissing-parameter-type 
-Wold-style-declaration -Woverride-init -Wmissing-prototypes
-Wstrict-prototypes -std=gnu99 -ffreestanding -I /root/grf/kvm-unit-tests/lib
-I /root/grf/kvm-unit-tests/lib/x86 -I lib -c -nostdlib -o x86/cstart64.o
x86/cstart64.S
ld -nostdlib  -no-pie -z noexecstack -m elf_x86_64 -T
/root/grf/kvm-unit-tests/x86/flat.lds -o x86/vmexit.elf \
        x86/vmexit.o x86/cstart64.o lib/libcflat.a
ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
make: *** [/root/grf/kvm-unit-tests/x86/Makefile.common:70: x86/vmexit.elf]
Error 1


Expected Result:
The kvm-unit-tests suite should be compiled successfully.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-19  7:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-19  7:02 [Bug 218026] New: Compile failure in kvm-unit-tests about "ld: Error: unable to disambiguate: -no-pie" bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox