On Thu, 14 Aug 2008 14:35:46 +0200 Pascal Hofstee <caelian@gmail.com> wrote:> I just installed a fresh FreeBSD/amd64 7.0-RELEASE and trying to > update to RELENG_7_0. > > I added CPUTYPE ?= core2 to my /etc/src.conf and every call to make > in /usr/src now gives me the error > > "/usr/src/Makefile.inc1", line 142: CPUTYPE global should be set > with ?=. > *** Error code 1 > > Anyone has any idea what i am doing wrong here ... this same mechanism > has worked flawlessly on several other systems (although they were not > RELENG_7_0) ?Ok ... minor follow up. I found one way to "resolve" this problem, which consists of besides /etc/src.conf also creating an /etc/make.conf that contains a single "CPUTYPE ?= core2". Why this seems to be necessary i don't quite understand yet though. -- Pascal Hofstee
Hi, I just installed a fresh FreeBSD/amd64 7.0-RELEASE and trying to update to RELENG_7_0. I added CPUTYPE ?= core2 to my /etc/src.conf and every call to make in /usr/src now gives me the error "/usr/src/Makefile.inc1", line 142: CPUTYPE global should be set with ?=. *** Error code 1 Anyone has any idea what i am doing wrong here ... this same mechanism has worked flawlessly on several other systems (although they were not RELENG_7_0) ? -- Pascal Hofstee
On Thu, Aug 14, 2008 at 02:35:46PM +0200, Pascal Hofstee wrote:> I just installed a fresh FreeBSD/amd64 7.0-RELEASE and trying to update > to RELENG_7_0. > > I added CPUTYPE ?= core2 to my /etc/src.conf and every call to make > in /usr/src now gives me the error > > "/usr/src/Makefile.inc1", line 142: CPUTYPE global should be set > with ?=. > *** Error code 1 > > Anyone has any idea what i am doing wrong here ... this same mechanism > has worked flawlessly on several other systems (although they were not > RELENG_7_0) ?1) Remove the space after the word "CPUTYPE", e.g.: CPUTYPE?=core2 You can put a tab after the "=" if you want, e.g.: CPUTYPE?= core2 2) According to some very old mail I have (will dig it up if you want), Core2Duo users should be using CPUTYPE?=nocona. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |
On Thu, Aug 14, 2008 at 02:54:41PM +0200, Pascal Hofstee wrote:> On Thu, 14 Aug 2008 14:35:46 +0200 > Pascal Hofstee <caelian@gmail.com> wrote: > > > I just installed a fresh FreeBSD/amd64 7.0-RELEASE and trying to > > update to RELENG_7_0. > > > > I added CPUTYPE ?= core2 to my /etc/src.conf and every call to make > > in /usr/src now gives me the error > > > > "/usr/src/Makefile.inc1", line 142: CPUTYPE global should be set > > with ?=. > > *** Error code 1 > > > > Anyone has any idea what i am doing wrong here ... this same mechanism > > has worked flawlessly on several other systems (although they were not > > RELENG_7_0) ? > > Ok ... minor follow up. > I found one way to "resolve" this problem, which consists of > besides /etc/src.conf also creating an /etc/make.conf that contains a > single "CPUTYPE ?= core2".Another mistake: You do not declare CPUTYPE in src.conf; you put it in make.conf. Please read the src.conf(5) and make.conf(5) manpages to distinguish the difference in functionality. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |
Jeremy Chadwick wrote:> On Thu, Aug 14, 2008 at 02:35:46PM +0200, Pascal Hofstee wrote: > >> I just installed a fresh FreeBSD/amd64 7.0-RELEASE and trying to update >> to RELENG_7_0. >> >> I added CPUTYPE ?= core2 to my /etc/src.conf and every call to make >> in /usr/src now gives me the error >> >> "/usr/src/Makefile.inc1", line 142: CPUTYPE global should be set >> with ?=. >> *** Error code 1 >> >> Anyone has any idea what i am doing wrong here ... this same mechanism >> has worked flawlessly on several other systems (although they were not >> RELENG_7_0) ? >> > > 1) Remove the space after the word "CPUTYPE", e.g.: > > CPUTYPE?=core2 > > You can put a tab after the "=" if you want, e.g.: > > CPUTYPE?= core2 > > 2) According to some very old mail I have (will dig it up if you want), > Core2Duo users should be using CPUTYPE?=nocona. >This should be fixed long time ago. core2 is alias for nocona but the idea is users to be ready when additional optimization for core2 are added. -- Best Wishes, Stefan Lambrev ICQ# 24134177
>Jeremy Chadwick wrote: >> On Thu, Aug 14, 2008 at 02:35:46PM +0200, Pascal Hofstee wrote: >> >>> I just installed a fresh FreeBSD/amd64 7.0-RELEASE and trying to update >>> to RELENG_7_0. >>> >>> I added CPUTYPE ?= core2 to my /etc/src.conf and every call to make >>> in /usr/src now gives me the error >>> >>> "/usr/src/Makefile.inc1", line 142: CPUTYPE global should be set >>> with ?=. >>> *** Error code 1 >>> >>> Anyone has any idea what i am doing wrong here ... this same mechanism >>> has worked flawlessly on several other systems (although they were not >>> RELENG_7_0) ? >>> >> >> 1) Remove the space after the word "CPUTYPE", e.g.: >> >> CPUTYPE?=core2 >> >> You can put a tab after the "=" if you want, e.g.: >> >> CPUTYPE?= core2 >> >> 2) According to some very old mail I have (will dig it up if you want), >> Core2Duo users should be using CPUTYPE?=nocona. >> >This should be fixed long time ago. core2 is alias for nocona but the >idea is users to >be ready when additional optimization for core2 are added.If you install amd64 then you need nocona if you install i386 you will need presscot. Or use core2 and FreeBSD itself looks at the arch and use nocona or presscot. That?s what I understand from what I read on the net Regards, Johan No virus found in this outgoing message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.3/1611 - Release Date: 14-8-2008 6:20