[pve-devel] Relax gcc check in Makefile

Dietmar Maurer dietmar at proxmox.com
Wed Jul 9 18:10:24 CEST 2014


Can we have a patch to check for exact gcc version by default, but provide an
option to overwrite it (CC env. set)?

> -----Original Message-----
> From: Michael Rasmussen [mailto:mir at datanom.net]
> Sent: Mittwoch, 09. Juli 2014 09:01
> To: Dietmar Maurer
> Cc: pve-devel at pve.proxmox.com
> Subject: Re: [pve-devel] Relax gcc check in Makefile
> 
> On Wed, 9 Jul 2014 03:42:32 +0000
> Dietmar Maurer <dietmar at proxmox.com> wrote:
> 
> > > - Relax gcc check in Makefile so any gcc version 4.7 can be used.
> > >   Debian Sid has version 4.7.4
> >
> > We encountered serious problems/crashes when using other versions, so
> > I hardcode that to make sure I always run the correct version.
> >
> but 4.7.4 and 4.7.2 should not make a difference. I have been running my own
> compiled kernels using gcc-4.7 (4.7.4) from Debian Sid for a long time without
> problems.
> 
> > > - Honor CC environment so compiling with non default gcc is
> > >   possible without changing symliks. Example:
> > >   make CC=gcc-4.7
> >
> > AFAIK the kernel Makefile does not use CC environment.
> >
> It does. Try the following:
> objdump -s -j .comment linux-2.6-3.10.0/vmlinux.o
> 
> output display amounts other things:
> ...
> c4d0 616e2034 2e372e34 2d312920 342e372e  an 4.7.4-1) 4.7.
>  c4e0 34000047 43433a20 28446562 69616e20  4..GCC: (Debian
>  c4f0 342e372e 342d3129 20342e37 2e3400    4.7.4-1) 4.7.4.
> 
> 
> --
> Hilsen/Regards
> Michael Rasmussen
> 
> Get my public GnuPG keys:
> michael <at> rasmussen <dot> cc
> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
> mir <at> datanom <dot> net
> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
> mir <at> miras <dot> org
> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
> --------------------------------------------------------------
> /usr/games/fortune -es says:
> Alcoholics Anonymous is when you get to drink under someone else's name.




More information about the pve-devel mailing list