LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 08-10-2018, 11:22 AM   #1
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 536

Rep: Reputation: 56
Can't compile virtualbox-addons with gcc 8.2.0


I have Slackware Current running in VirtualBox. Updated this morning using slackpkg+.

I'm using repositories current, ktown and multilib.

That was all successful as was recreating my initrd.gz and grub.cfg for the new kernel.

I now need to rebuild virtualbox-kernel-addons and virtualbox-addons - versions 5.2.8.

Compiling of virtualbox-addons failed as it was looking for gcc 4.x thru gcc 7.x

Also tried compiling against the latest version 5.2.16 that failed with the same reason.

So elected to go back to 5.2.8, the last working version I had, amended the configure script within VirtualBox-5.2.8.tar.bz2 to accept version 8 of gcc.

Compiled virtualbox-kernel-addons and virtualbox-addons successfully and installed.

Rebooted and everything works!!!!!!

What should I have done? It could be a problem going forward if VirtualBox can only compile against gcc versions 7 or below.
 
Old 08-10-2018, 12:01 PM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,524

Rep: Reputation: Disabled
Quote:
Originally Posted by aikempshall View Post
I have Slackware Current running in VirtualBox. Updated this morning using slackpkg+.

I'm using repositories current
?

In the unofficial repository for current (of build scripts, not packages!) I have already added, since 20 days, a little hack to fake support for gcc-8.x

http://cgit.ponce.cc/slackbuilds/com...tualbox-addons

maybe you haven't got an up-to-date version...
 
Old 08-10-2018, 12:26 PM   #3
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 536

Original Poster
Rep: Reputation: 56
You're quite right. I didn't download the latest SlackBuild. I downloaded the latest tar file from http://cgit.ponce.cc/slackbuilds/tag...ent-20180804.1 then promptly ignored the contents because it was still referred to 5.2.8!

That's a lesson for me - don't take short cuts, always download and run with what's been provided including the SlackBuild.

Thanks.
 
Old 08-11-2018, 04:26 AM   #4
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 536

Original Poster
Rep: Reputation: 56
Just gone through the process of installing kernel 4.14.62 released to current late yesterday.

This time did use the contents on virtualbox-addons and virtualbox-kernel-addons in their entirety.

Compiled with no issues.

Tested copying and pasting between virtualbox instances and loading a USB memory stick. No issues.

Will make this as solved even though the problem was only of my making!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Is there a way to compile gcc with an older version or build gcc manually? mathwhiz1212 Linux - Software 10 05-11-2015 02:05 AM
[SOLVED] Failed to compile libatomic at the first time to compile gcc(step 5.5) clicdl Linux From Scratch 8 07-23-2013 06:20 AM
Why couldn't the gcc(version4.3.3) be used to compile the gcc(version3.3.2)? snc Linux - Newbie 6 01-24-2010 12:26 PM
Compile error, 'H5G_obj_t' does not name a type, is gcc 4.3 incompatible with gcc 3 ? samrat_rao Linux - Software 5 03-03-2009 03:28 PM

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

All times are GMT -5. The time now is 12:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration