LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-16-2021, 01:46 PM   #1
dodoLQ
Member
 
Registered: Dec 2014
Location: France
Distribution: Slackware
Posts: 213

Rep: Reputation: Disabled
Qemu-5.2.0


Does anyone successfully compiled the latest release of qemu on -current? Thanks
 
Old 03-16-2021, 02:18 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,496

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
No - did you try?
 
Old 03-16-2021, 02:20 PM   #3
davjohn
Member
 
Registered: Jan 2017
Posts: 94

Rep: Reputation: Disabled
Quote:
Originally Posted by dodoLQ View Post
Does anyone successfully compiled the latest release of qemu on -current? Thanks
Yes, I'm using it since December without problems.
 
Old 03-16-2021, 06:24 PM   #4
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 786

Rep: Reputation: 482Reputation: 482Reputation: 482Reputation: 482Reputation: 482
Quote:
Originally Posted by dodoLQ View Post
Does anyone successfully compiled the latest release of qemu on -current? Thanks
Yes compiled and working here on current 64
HTH
john
 
Old 03-16-2021, 07:23 PM   #5
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 278

Rep: Reputation: 41
Quote:
Originally Posted by dodoLQ View Post
Does anyone successfully compiled the latest release of qemu on -current? Thanks
Yes. Had to apply this upstream patch to get it to work on current.

./configure
Code:
--- configure   2020-12-08 11:59:44.000000000 -0500
+++ configure.new       2021-03-06 20:43:55.199331977 -0500
@@ -2121,7 +2121,6 @@
 # Check we support --no-pie first; we will need this for building ROMs.
 if compile_prog "-Werror -fno-pie" "-no-pie"; then
   CFLAGS_NOPIE="-fno-pie"
-  LDFLAGS_NOPIE="-no-pie"
 fi
 
 if test "$static" = "yes"; then
@@ -2137,7 +2136,6 @@
   fi
 elif test "$pie" = "no"; then
   CONFIGURE_CFLAGS="$CFLAGS_NOPIE $CONFIGURE_CFLAGS"
-  CONFIGURE_LDFLAGS="$LDFLAGS_NOPIE $CONFIGURE_LDFLAGS"
 elif compile_prog "-Werror -fPIE -DPIE" "-pie"; then
   CONFIGURE_CFLAGS="-fPIE -DPIE $CONFIGURE_CFLAGS"
   CONFIGURE_LDFLAGS="-pie $CONFIGURE_LDFLAGS"
@@ -6756,7 +6754,6 @@
 echo "GLIB_CFLAGS=$glib_cflags" >> $config_host_mak
 echo "GLIB_LIBS=$glib_libs" >> $config_host_mak
 echo "QEMU_LDFLAGS=$QEMU_LDFLAGS" >> $config_host_mak
-echo "LDFLAGS_NOPIE=$LDFLAGS_NOPIE" >> $config_host_mak
 echo "LD_I386_EMULATION=$ld_i386_emulation" >> $config_host_mak
 echo "EXESUF=$EXESUF" >> $config_host_mak
 echo "HOST_DSOSUF=$HOST_DSOSUF" >> $config_host_mak
./pc-bios/optionrom/Makefile
Code:
--- Makefile    2020-12-08 11:59:44.000000000 -0500
+++ Makefile.new        2021-03-06 20:46:51.956478919 -0500
@@ -41,7 +41,6 @@
 
 LD_I386_EMULATION ?= elf_i386
 override LDFLAGS = -m $(LD_I386_EMULATION) -T $(SRC_DIR)/flat.lds
-override LDFLAGS += $(LDFLAGS_NOPIE)
 
 all: multiboot.bin linuxboot.bin linuxboot_dma.bin kvmvapic.bin pvh.bin
 
1 members found this post helpful.
Old 03-17-2021, 01:18 PM   #6
dodoLQ
Member
 
Registered: Dec 2014
Location: France
Distribution: Slackware
Posts: 213

Original Poster
Rep: Reputation: Disabled
Thank you for these two patches
 
Old 03-18-2021, 01:23 AM   #7
walecha
Member
 
Registered: Jan 2010
Location: Malang, +62
Distribution: slackware
Posts: 177

Rep: Reputation: 44
I'm using it on 64. Without the patches.
 
Old 03-23-2021, 02:03 PM   #8
dodoLQ
Member
 
Registered: Dec 2014
Location: France
Distribution: Slackware
Posts: 213

Original Poster
Rep: Reputation: Disabled
Hi, the two patches works but i've that message:
Code:
qemu-5.2.0/configure
qemu-5.2.0/qemu.nsi
qemu-5.2.0/Kconfig
qemu-5.2.0/.gdbinit
patching file configure
patching file Makefile
patch unexpectedly ends in middle of line
I don't know if it comes from the last .diff or inside ./pc-bios/optionrom/Makefile ..
But anyway the compilation works!
 
Old 03-23-2021, 03:13 PM   #9
MDKDIO
Member
 
Registered: Mar 2004
Location: Sweden
Distribution: Slackware 15
Posts: 521

Rep: Reputation: 187Reputation: 187
I just built 5.2.0, went fine here.

At the point:
qemu-5.2.0/.gdbinit

The only thing I noticed was this:
chmod: cannot operate on dangling symlink './roms/skiboot/ccan/heap/LICENSE'
chmod: cannot operate on dangling symlink './roms/edk2/EmulatorPkg/Unix/Host/X11IncludeHack'

Else from that it built fine

(Current 64-bit updated as of March 22)
 
1 members found this post helpful.
Old 03-23-2021, 09:50 PM   #10
walecha
Member
 
Registered: Jan 2010
Location: Malang, +62
Distribution: slackware
Posts: 177

Rep: Reputation: 44
This is my build list for qemu, plus those patches (thanks for the info). I'm also adding liburing since we are now using linux 5.10/5.11 and io_uring in kernel is much more stable. It's very fast with very low performance overheads (cpu/ram) for I/O. In my system, io_uring can performs GB/s I/O with nearly 0% cpu using high performance pcie gen3 nvme drive. But the drawback is I can't use io='io_uring' for windows VM. They're just went BSOD because they can't tracks their own I/O :-P

Code:
libbsd
netcat-openbsd
virglrenderer
acpica
ovmf
libseccomp
libiscsi
libnfs
usbredir
alabaster
imagesize
pytz
pytzdata
python3-babel
MarkupSafe
Jinja2
snowballstemmer
sphinxcontrib-applehelp
sphinxcontrib-devhelp
sphinxcontrib-htmlhelp
sphinxcontrib-jsmath
sphinxcontrib-qthelp
sphinxcontrib-serializinghtml
Sphinx
numactl
spice-protocol
softhsm
pcsc-lite
libcacard
spice
vde2
liburcu
glusterfs
liburing
device-tree-compiler
snappy
daemon
rdma-core
rng-tools
multipath-tools
qemu

Last edited by walecha; 03-23-2021 at 09:51 PM. Reason: add patches
 
1 members found this post helpful.
Old 03-23-2021, 09:50 PM   #11
walecha
Member
 
Registered: Jan 2010
Location: Malang, +62
Distribution: slackware
Posts: 177

Rep: Reputation: 44
This is my build list for qemu, plus those patches (thanks for the info). I'm also adding liburing since we are now using linux 5.10/5.11 and io_uring in kernel is much more stable. It's very fast with very low performance overheads (cpu/ram) for I/O. In my system, io_uring can performs GB/s I/O with nearly 0% cpu using high performance pcie gen3 nvme drive. But the drawback is I can't use io='io_uring' for windows VM. They're just went BSOD because they can't tracks their own I/O :-P

Code:
libbsd
netcat-openbsd
virglrenderer
acpica
ovmf
libseccomp
libiscsi
libnfs
usbredir
alabaster
imagesize
pytz
pytzdata
python3-babel
MarkupSafe
Jinja2
snowballstemmer
sphinxcontrib-applehelp
sphinxcontrib-devhelp
sphinxcontrib-htmlhelp
sphinxcontrib-jsmath
sphinxcontrib-qthelp
sphinxcontrib-serializinghtml
Sphinx
numactl
spice-protocol
softhsm
pcsc-lite
libcacard
spice
vde2
liburcu
glusterfs
liburing
device-tree-compiler
snappy
daemon
rdma-core
rng-tools
multipath-tools
qemu

Last edited by walecha; 03-23-2021 at 09:51 PM. Reason: add patches
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
Error while installing qemu (qemu-kvm-0.13.0) in rhel 5.3 birla.sunil Linux - Virtualization and Cloud 2 10-19-2010 03:56 AM
On qemu-kvm, qemu-ifup script not found on Slackware 13 AndrewGaven Linux - Virtualization and Cloud 14 01-29-2010 03:36 AM
After qemu-img, qemu is not capable to detect the C drive (empty) frenchn00b Linux - General 3 10-18-2009 05:39 AM
qemu: qemu stopped right after command exec bitpicker Linux - Software 1 03-04-2005 11:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration