[vbox-dev] Build from todays SVN sync fails

Frank Mehnert frank.mehnert at oracle.com
Wed Jul 8 17:11:55 GMT 2015


For reference, actually this is the responsible changeset:

https://github.com/torvalds/linux/commit/230fa253df6352af12ad0a16128760b5cb3f92df

The problem is that these functions use __always_inline which expand
to 'notrace something' and notrace expands to 'no_instrument_function'
before we can overwrite it, see <iprt/types.h> lines 117ff.

g++-4.9 is more forgiving.

Thanks,

Frank

On Wednesday 08 July 2015 12:00:29 Perry Halbert wrote:
> Well that was fun and I did have a couple gerrr moments, but gcc 4.9.2
> is built, installed, and I have a new bouncing baby install of the
> latest from SVN.
> 
> Thanks you my friend for sterring me in the direction I should have
> already known but didn't. Everyday one needs to learn something and that
> is it for today. :)
> 
> Perry
> 
> On 07/08/2015 11:39 AM, Perry Halbert wrote:
> > Wow. It's always something huh?  I do have the gcc 4.9 base but
> > nothing else available at this point. Guess it's time to build yet
> > another special package. ( I don't like waiting for them to catch up
> > )  No problem, I can build it and see how it goes.  Thanks for the
> > clarification.
> > 
> > Perry
> > 
> > On 07/08/2015 11:31 AM, Frank Mehnert wrote:
> >> Hi Perry,
> >> 
> >> actually this is the problem: You cannot compile VBox against the
> >> Linux kernel >= 3.19 if you are using gcc/g++-4.8. The reason is
> >> complicated, the summary is that the Linux guys don't care if the
> >> Linux header files are compilable with g++ or not.
> >> 
> >> Kind regards,
> >> 
> >> Frank
> >> 
> >> On Wednesday 08 July 2015 11:05:43 Perry Halbert wrote:
> >>> Hi Frank,
> >>> 
> >>> 
> >>> gcc version 4.8.4 But I did update the kernel to 3.19.0-21 Actually
> >>> running Mint with a lot of how should I put it.. modifications.
> >>> 
> >>> Just tested with 3.16.0-36 and it builds fine.
> >>> 
> >>> There was an issue with the uninstaller about unrecognized service
> >>> 
> >>> Removing previous installation of VirtualBox 5.0.51_OSE r56744 from
> >>> /opt/VirtualBox
> >>> vboxnet: unrecognized service
> >>> vboxnet: unrecognized service
> >>> 
> >>> But i figured that was due to the sysd and initv stuff not being
> >>> completed in sync.
> >>> 
> >>> Perry
> >>> 
> >>> On 07/08/2015 10:53 AM, Frank Mehnert wrote:
> >>>> Perry,
> >>>> 
> >>>> On Wednesday 08 July 2015 10:36:54 Perry Halbert wrote:
> >>>>> Trying to build todays sync from SVN fails with the following.
> >>>>> 
> >>>>> In file included from /trunk/include/iprt/types.h:116:0,
> >>>>> 
> >>>>>                     from /trunk/include/iprt/net.h:30,
> >>>>>                     
> >>>>>                     from
> >> 
> >> /trunk/src/VBox/Runtime/common/checksum/ipv4.cpp:31:
> >>>>> /lib/modules/3.19.0-21-generic/build/include/linux/compiler.h:197:29:
> >>>>> error: can’t set 
‘no_instrument_function’
> >>>>> attribute
> >> 
> >> after
> >> 
> >>>>> definition
> >>>>> 
> >>>>>     static __always_inline void data_access_exceeds_word_size(void)
> >>>>> 
> >>>>> I am fairly sure that I have built with this kernel before but not
> >>>>> certain.  Any suggestions?
> >>>> 
> >>>> did you change your build environment in the meantime? I guess you are
> >>>> on
> >>>> Ubuntu 15.04? Are you using gcc-4.9?
> >>>> 
> >>>> Frank
> > 
> > _______________________________________________
> > vbox-dev mailing list
> > vbox-dev at virtualbox.org
> > https://www.virtualbox.org/mailman/listinfo/vbox-dev

-- 
Dr.-Ing. Frank Mehnert | Software Development Director, VirtualBox
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany

ORACLE Deutschland B.V. & Co. KG
Hauptverwaltung: Riesstraße 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher




More information about the vbox-dev mailing list