VBox 5.1 configure fails on Qt5

Discussions related to using the OSE version of VirtualBox.
RicV
Posts: 96
Joined: 25. Aug 2015, 17:58
Primary OS: Ubuntu other
VBox Version: OSE self-compiled
Guest OSses: Linux *.*, Win*
Location: Lake Tahoe, California

VBox 5.1 configure fails on Qt5

Post by RicV »

I have been building 5.0.x versions for over a year, and never had trouble taking the next update when it came out.

But now I am trying to update to 5.1.6 code base (from tarball source), and cannot finish the configure script as Qt5 is missing. I have tried installing several Qt5 related packages, but haven't been able to find the one that's needed. What new packages are required for building 5.1.x?

This is on an Ubuntu 14 guest running on standard VBox 5.0.22 installation on a Windows host (same one I have been using for building 5.0.x).

Note the build instructions at https://www.virtualbox.org/wiki/Linux%2 ... structions still say that Qt4 is required.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBox 5.1 configure fails on Qt5

Post by Perryg »

You need to install Qt version 5.3.2 which is available for Ubuntu 14.*. Make sure you get the right one. The one from ppa might want to install in /opt which will work but you need to define the location in your config line.
RicV
Posts: 96
Joined: 25. Aug 2015, 17:58
Primary OS: Ubuntu other
VBox Version: OSE self-compiled
Guest OSses: Linux *.*, Win*
Location: Lake Tahoe, California

Re: VBox 5.1 configure fails on Qt5

Post by RicV »

Thanks, Perry, that helped move me forward. For the record, after a few false turns, this is what I found worked:

1. Added the PPA to my system per instructions here: https://launchpad.net/~beineri/+archive ... 532-trusty

2. Installed the packages listed there with apt-get. A couple said they could not be found but most installed fine.

3. ./configure --with-qt-dir=/opt/qt53

Unfortunately, now I face a different issue. After sourcing env.sh, kmk all errors out after quite a few successful files. I worry that some other package has to be updated when moving from 5.0.x to 5.1.x. This was with 5.1.6 as I just now saw the notification for 5.1.8.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBox 5.1 configure fails on Qt5

Post by Perryg »

A few files don't give me enough information to be able to help. Run it again, tee the output to a file and post it here ( as an attachment )
I also would like to see the configure.log found in the root of your build tree.
RicV
Posts: 96
Joined: 25. Aug 2015, 17:58
Primary OS: Ubuntu other
VBox Version: OSE self-compiled
Guest OSses: Linux *.*, Win*
Location: Lake Tahoe, California

Re: VBox 5.1 configure fails on Qt5

Post by RicV »

Dopey me, I meant to attach it and just forgot. Here is is:
Attachments
configure.log
(16.14 KiB) Downloaded 35 times
kmk_all.log
kmk all (pruned due to file size limit)
(21.88 KiB) Downloaded 33 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBox 5.1 configure fails on Qt5

Post by Perryg »

This has been a requirement for some time but not sure if it is absolutely necessary with the tarball. Still it is something to consider
http://www.openwatcom.org/index.php/Ins ... m_on_Linux

Code: Select all

***** Checking Open Watcom *****
** Open Watcom was not found!
IIRC this is because you need a newer GCC for the kernel you have. Mine is gcc version 4.9.4 for kernel 4.* distros

Code: Select all

/lib/modules/4.4.0-42-generic/build/include/linux/compiler.h:216:6: error: can’t set ‘no_instrument_function’ attribute after definition
RicV
Posts: 96
Joined: 25. Aug 2015, 17:58
Primary OS: Ubuntu other
VBox Version: OSE self-compiled
Guest OSses: Linux *.*, Win*
Location: Lake Tahoe, California

Re: VBox 5.1 configure fails on Qt5

Post by RicV »

I found it was not necessary to have watcom for building 5.0.x from the tarball. I am using gcc 4.8.4 as I was with 5.0.x builds. I'll keep poking.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBox 5.1 configure fails on Qt5

Post by Perryg »

Was that a typo or is it accurate? Mine is 4.9.4
RicV
Posts: 96
Joined: 25. Aug 2015, 17:58
Primary OS: Ubuntu other
VBox Version: OSE self-compiled
Guest OSses: Linux *.*, Win*
Location: Lake Tahoe, California

Re: VBox 5.1 configure fails on Qt5

Post by RicV »

On the Ubuntu 14 VM that I have been using all along it's 4.8.4 — I did notice the discrepancy in your note.

I just check on my new Ubuntu 16 VM (not yet fully set up), and it says gcc 5.4.0.

What host are you using? Did you update gcc specifically?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBox 5.1 configure fails on Qt5

Post by Perryg »

Yup I verified that it must be 4.9 because the 4.8 will not work on your kernel.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBox 5.1 configure fails on Qt5

Post by Perryg »

Yes I update and compile all of my own packages. As for what distro it is my own. Debian based but not what you would consider a Debian release or Ubuntu, Etc..
RicV
Posts: 96
Joined: 25. Aug 2015, 17:58
Primary OS: Ubuntu other
VBox Version: OSE self-compiled
Guest OSses: Linux *.*, Win*
Location: Lake Tahoe, California

Re: VBox 5.1 configure fails on Qt5

Post by RicV »

OK, I updated my U14 VM to gcc 4.9.4. The configure script does not accept that, so I changed the links in /usr/bin to point to 4.8.4 for the configure script, then back to 4.9.4 for the build, and got much further now. Linking tstVMStructRC fails due to library incompatibilities. Any ideas on this one?
Attachments
kmk_all_518.log.bz2
(35.75 KiB) Downloaded 23 times
configure.log
(16.14 KiB) Downloaded 23 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBox 5.1 configure fails on Qt5

Post by Perryg »

Still a GCC issue. Probably due to having both versions installed. You really should replace the old one with the new one and then if you see an error post that without bouncing around.
RicV
Posts: 96
Joined: 25. Aug 2015, 17:58
Primary OS: Ubuntu other
VBox Version: OSE self-compiled
Guest OSses: Linux *.*, Win*
Location: Lake Tahoe, California

Re: VBox 5.1 configure fails on Qt5

Post by RicV »

OK, so I went through this very carefully, starting from a fresh clone of the VM that I use successfully for building 5.0.x. First I installed Qt5, check. Then I could run .configure as above, and it looked good. But the compile failed as above.

Next I installed g++ 4.9, though after an apparently successful installation, I found things like this in /usr/bin (i.e. generic gcc points to 4.8 ).
lrwxrwxrwx 1 root root 7 Apr 29 14:27 /usr/bin/gcc -> gcc-4.8
-rwxr-xr-x 1 root root 775888 May 7 05:30 /usr/bin/gcc-4.8
-rwxr-xr-x 1 root root 837552 Sep 4 19:06 /usr/bin/gcc-4.9
lrwxrwxrwx 1 root root 10 Apr 29 14:27 /usr/bin/gcc-ar -> gcc-ar-4.8
-rwxr-xr-x 1 root root 26968 May 7 05:30 /usr/bin/gcc-ar-4.8
-rwxr-xr-x 1 root root 26968 Sep 4 19:06 /usr/bin/gcc-ar-4.9
Now configure still works, but compile fails, because it's really still using 4.8. So I changed the generic links to point to 4.9, but now configure does not work. The log shows there are some incompatible libraries (in the gcc4.9 tree).
Checking for 32-bit support:
Cannot compile 32-bit applications (missing headers and/or libraries)!
Check the file /home/rvilbig/vbox/ose518/configure.log for detailed error information.
Check /home/rvilbig/vbox/ose518/configure.log for details
Attachments
vbox_51x_gcc49.tar.bz2
(15.38 KiB) Downloaded 23 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBox 5.1 configure fails on Qt5

Post by Perryg »

Yours

Code: Select all

***** Checking 32-bit support *****
compiling the following source file:
#include <stdint.h>
int main(void)
{
  return 0;
}
using the following command line:
gcc -m32 -O -Wall -o /home/rvilbig/vbox/ose518/.tmp_out /home/rvilbig/vbox/ose518/.tmp_src.c
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status
Mine

Code: Select all

***** Checking 32-bit support *****
compiling the following source file:
#include <stdint.h>
int main(void)
{
  return 0;
}
using the following command line:
gcc -m32 -O -Wall -o /trunk/.tmp_out /trunk/.tmp_src.c
executing the binary



***** Checking makeself *****
found version 2.2.0
Something is wrong with your package. I don't really know what because I can not replicate it but definitely in the GCC package. Since the failure is in them package the config does not pass and the compile fails. There really is not sense in trying the compile until you can get a valid config pass.

Search using "ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc.a when searching for -lgcc" and see if you find a reason. I suspect you may not have a multi lib package installed.
Post Reply