make x LC_ALL=C: command not found.

perikillo perikillo at gmail.com
Sun Jun 19 00:41:19 GMT 2005


On 4/26/05, Aaron Sloan <security at adtu.org> wrote:
> Hello,
> 
> step 1.   I cvsup, rebuilt and installed world and generic kernel.
> Mergemastered just like I always do.
> I followed the handbook to the letter and this certainly isn't my first
> time.
> 5.4 stable.
> 
> I customized my kernel and went to build it.
> 
> make buildkernel KERNCONF=XX
> 
> I get the following error.
> 
> LC_ALL=C: command not found.
> "Makefile", line 155 warning: "LC_ALL=C date" returned non-zero status
> MAKEFLAGS=: Command not found.
> "Makefile.inc1" line 116: warning "MAKEFLAGS= CPUTYPE=dummy make -f
> /dev/null -m
> /usr/src/share/mk -V CPUTPE" returned non-zero status
> "Makefile.inc1", line 118: CPUTYPE globaal should be set with ?=.
>    error code 1.
> 
> I did monkey with make.conf before step 1.
> I added...
> 
> CPUTYPE?=i686
> CFLAGS= -O -pipe
> 
> Make now fails to the above error on every thing.
> I'm not certain what I did to break it but I'm sure it has my name all
> over it.
> 
> Thanks,
> Aaron
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> 

  I have the same problem after i update my system to 5.4-p2, look
this is my information:

FreeBSD 5.4 Release

#uname -a
FreeBSD devhora 5.4-RELEASE-p2 FreeBSD 5.4-RELEASE-p2 #2: Thu Jun 16
18:58:06 UTC 2005     root at devhora:/usr/src/sys/i386/compile/DEVHORA 
i386

devhora# ee /etc/make.conf
#$FreeBSD: src/share/examples/etc/make.conf,v 1.229.2.12 2005/03/07 20:39:34 ph
CPUTYPE?=i686 <<---Here i have try with i686 and p2

devhora#cd /usr/src

devhora# make buildworld
LC_ALL=C: Command not found.
"Makefile", line 155: warning: "LC_ALL=C date" returned non-zero status
MAKEFLAGS=: Command not found.
"Makefile.inc1", line 116: warning: "MAKEFLAGS= CPUTYPE=i686 make  -f /dev/null
-m /usr/src/share/mk -V CPUTYPE" returned non-zero status
"Makefile.inc1", line 118: CPUTYPE global should be set with ?=.
*** Error code 1

Stop in /usr/src.

#dmesg output first rows

Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 5.4-RELEASE-p2 #2: Thu Jun 16 18:58:06 UTC 2005
    root at devhora:/usr/src/sys/i386/compile/DEVHORA
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium II/Pentium II Xeon/Celeron (267.27-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x634  Stepping = 4
Features=0x80fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMO
V,MMX>

#/usr/src/Makefile.inc1
#$FreeBSD: src/Makefile.inc1,v 1.438.2.20.2.2 2005/04/09 13:26:35 ru Exp $
_CPUTYPE!=      MAKEFLAGS= CPUTYPE=${_TARGET_CPUTYPE} ${MAKE} \
                -f /dev/null -m ${.CURDIR}/share/mk -V CPUTYPE
.if ${_CPUTYPE} != ${_TARGET_CPUTYPE}
.error CPUTYPE global should be set with ?=.
.endif

#/usr/src/share/mk/bsd.cpu.mk
# Handle aliases (not documented in make.conf to avoid user confusion
# between e.g. i586 and pentium)

. if ${MACHINE_ARCH} == "i386"
.  if ${CPUTYPE} == "nocona"
CPUTYPE = prescott
.  elif ${CPUTYPE} == "p4"
CPUTYPE = pentium4
.  elif ${CPUTYPE} == "p4m"
CPUTYPE = pentium4m
.  elif ${CPUTYPE} == "p3"
CPUTYPE = pentium3
.  elif ${CPUTYPE} == "p3m"
CPUTYPE = pentium3m
.  elif ${CPUTYPE} == "p-m"
CPUTYPE = pentium-m
.  elif ${CPUTYPE} == "p2"
CPUTYPE = pentium2
.  elif ${CPUTYPE} == "i686"
CPUTYPE = pentiumpro
.  elif ${CPUTYPE} == "i586/mmx"
CPUTYPE = pentium-mmx
.  elif ${CPUTYPE} == "i586"
CPUTYPE = pentium
.  elif ${CPUTYPE} == "opteron" || ${CPUTYPE} == "athlon64" || \
     ${CPUTYPE} == "k8"
CPUTYPE = athlon-mp
.  elif ${CPUTYPE} == "k7"
CPUTYPE = athlon
.  endif
. elif ${MACHINE_ARCH} == "amd64"
.  if ${CPUTYPE} == "prescott"
CPUTYPE = nocona
.  endif
. endif


# Set up the list of CPU features based on the CPU type.  This is an
# unordered list to make it easy for client makefiles to test for the
# presence of a CPU feature.

. if ${MACHINE_ARCH} == "i386"
.  if ${CPUTYPE} == "opteron" || ${CPUTYPE} == "athlon64"
MACHINE_CPU = athlon-xp athlon k7 3dnow sse2 sse mmx k6 k5 i586 i486 i386
.  elif ${CPUTYPE} == "athlon-mp" || ${CPUTYPE} == "athlon-xp" || \
    ${CPUTYPE} == "athlon-4"
MACHINE_CPU = athlon-xp athlon k7 3dnow sse mmx k6 k5 i586 i486 i386
.  elif ${CPUTYPE} == "athlon" || ${CPUTYPE} == "athlon-tbird"
MACHINE_CPU = athlon k7 3dnow mmx k6 k5 i586 i486 i386
.  elif ${CPUTYPE} == "k6-3" || ${CPUTYPE} == "k6-2"
MACHINE_CPU = 3dnow mmx k6 k5 i586 i486 i386
.  elif ${CPUTYPE} == "k6"
MACHINE_CPU = mmx k6 k5 i586 i486 i386
.  elif ${CPUTYPE} == "k5"
MACHINE_CPU = k5 i586 i486 i386
.  elif ${CPUTYPE} == "pentium4" || ${CPUTYPE} == "pentium4m" || ${CPUTYPE} == "
MACHINE_CPU = sse2 sse i686 mmx i586 i486 i386
.  elif ${CPUTYPE} == "pentium3" || ${CPUTYPE} == "pentium3m"
MACHINE_CPU = sse i686 mmx i586 i486 i386
.  elif ${CPUTYPE} == "pentium2"
MACHINE_CPU = i686 mmx i586 i486 i386
.  elif ${CPUTYPE} == "pentiumpro"
MACHINE_CPU = i686 i586 i486 i386
.  elif ${CPUTYPE} == "pentium-mmx"
MACHINE_CPU = mmx i586 i486 i386
.  elif ${CPUTYPE} == "pentium"
MACHINE_CPU = i586 i486 i386
.  elif ${CPUTYPE} == "i486"
MACHINE_CPU = i486 i386
.  elif ${CPUTYPE} == "i386"
MACHINE_CPU = i386
.  endif

   There is a bug or i did something wrong, i add my sound card to the
config file, disable some features on etc/make.conf like IP_FILTER,
PF_FILTER, install Xorg from ports(this one still have problems with
my keyboard, but that is another history P-/ ), my cvsup file has the
tag=RELENG_5_4, i read the /usr/src/UPDATING file but no answer about
this, i have been using freebsd since 4.4, this is not my first time i
make buildworld.

    Any information about how to resolved this error? Thansk to all.


More information about the freebsd-questions mailing list