11a54 [Solved] Could not find bsd.compiler.mk - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old September 13th, 2012, 19:46
Leander Leander is offline
Junior Member
 
Join Date: Apr 2010
Location: Stuttgart
Posts: 58
Thanks: 4
Thanked 0 Times in 0 Posts
Default Could not find bsd.compiler.mk

Hi,

I try to compile a new kernel but it kept on failing ... so I tried to debug a little and tried to compile GENERIC to see whether it would run at all but it also kept on failing with the following error message:
Code:
Storage [/usr/src]# make buildkernel KERNCONF=GENERIC
"Makefile.inc1", line 49: Could not find bsd.compiler.mk
"Makefile.inc1", line 279: Malformed conditional (${MK_CLANG_IS_CC} == "no")
"Makefile.inc1", line 1129: Malformed conditional (${MK_GCC} != "no" && ${MK_CLANG_IS_CC} == "no")
"Makefile.inc1", line 1131: if-less endif
"Makefile.inc1", line 1186: Malformed conditional (${MK_CLANG} != "no" && (${MK_CLANG_IS_CC} != "no" || ${CC:T:Mclang} == "clang"))
"Makefile.inc1", line 1189: if-less endif
"Makefile.inc1", line 1191: Malformed conditional (${MK_GCC} != "no" && ${MK_CLANG_IS_CC} == "no")
"Makefile.inc1", line 1193: if-less endif
"Makefile.inc1", line 1254: Malformed conditional (${MK_LIBCPLUSPLUS} != "no")
"Makefile.inc1", line 1256: if-less endif
"Makefile.inc1", line 1259: Malformed conditional (${MK_LIBCPLUSPLUS} != "no")
"Makefile.inc1", line 1261: if-less endif
make: fatal errors encountered -- cannot continue
*** Error code 1

Stop in /usr/src.
Storage [/usr/src]#
It looks lke it can't find the makefile "Could not find bsd.compiler.mk"

Looking for it manually also didn't find any file named like this:
Code:
Storage [/usr/src]# find / -name bsd.compiler.mk
Storage [/usr/src]#
Note that the FreeBSD 9.0 Release is freshly installed on this machine.
Any ideas why this happens?
Reply With Quote
  #2  
Old September 13th, 2012, 20:07
Uniballer Uniballer is offline
Member
 
Join Date: Dec 2009
Posts: 192
Thanks: 9
Thanked 26 Times in 26 Posts
Default

Did you
Code:
make buildworld
first to build the kernel tool chain?
Reply With Quote
  #3  
Old September 13th, 2012, 20:39
Leander Leander is offline
Junior Member
 
Join Date: Apr 2010
Location: Stuttgart
Posts: 58
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Hi Uniballer,

nope ... , since I just wanted to recompile the kernel only instead of rebuilding the entire system.

... but "make buildworld" also didn't help ...
Code:
Storage [/usr/src]# make buildworld
cd: /usr/src/tools/build/make_check: No such file or directory

--------------------------------------------------------------
>>> Building an up-to-date make(1)
--------------------------------------------------------------
cd: /usr/src/usr.bin/make: No such file or directory
*** Error code 2

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
Storage [/usr/src]#
Reply With Quote
  #4  
Old September 13th, 2012, 22:11
chatwizrd chatwizrd is offline
Member
 
Join Date: Jul 2012
Posts: 145
Thanks: 7
Thanked 13 Times in 11 Posts
Default

Did you update your source tree with csup or svn yet?

http://www.freebsd.org/doc/en_US.ISO.../synching.html
Reply With Quote
  #5  
Old September 14th, 2012, 13:13
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

It looks like your source tree is incomplete.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #6  
Old September 15th, 2012, 10:04
Leander Leander is offline
Junior Member
 
Join Date: Apr 2010
Location: Stuttgart
Posts: 58
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by SirDice View Post
It looks like your source tree is incomplete.
Maybe ... ?!
So here is what I do in order to sync src and ports:

Code:
# Generate Supfile for Ports and Sources:
echo "
*default tag=.
*default host=cvsup.de.FreeBSD.org
*default prefix=/usr
*default base=/var/db
*default release=cvs
*default delete use-rel-suffix
*default compress

src-base release=cvs
src-sys release=cvs

ports-all
" > /etc/cvsup/ports-supfile
chmod 0755 /etc/cvsup/ports-supfile






mkdir -p -m 0644 /var/db/sup

echo "#==============#
# CVSUP Refuse #
#==============#

doc/bn_*
doc/da_*
#doc/de_*
doc/el_*
doc/es_*
doc/fr_*
doc/hu_*
doc/it_*
doc/ja_*
doc_mn_*
doc/nl_*
doc/no_*
doc/pl_*
doc/pt_*
doc/ru_*
doc/sr_*
doc/tr_*
doc/zh_*

#ports/accessibility
#ports/arabic
#ports/astro
" > /var/db/sup/refuse
chmod -R 0755 /var/db/sup/refuse


csup -z -L 0 /etc/cvsup/ports-supfile

cd /usr/ports && make fetchindex

it's mainly copied from the handbook - so I don't see what I'm missing?!
Any ideas?

Thx & best regards
Reply With Quote
  #7  
Old September 15th, 2012, 11:39
Leander Leander is offline
Junior Member
 
Join Date: Apr 2010
Location: Stuttgart
Posts: 58
Thanks: 4
Thanked 0 Times in 0 Posts
Default

It seems to work when I modified /etc/cvsup/ports-supfile to
Code:
#src-base release=cvs
#src-sys release=cvs
src-all
Sys and base had always been enough to recompile the kernel ... What am I missing?
Reply With Quote
  #8  
Old September 15th, 2012, 12:02
phoenix's Avatar
phoenix phoenix is offline
Moderator
 
Join Date: Nov 2008
Location: Kamloops, BC, Canada
Posts: 3,141
Thanks: 43
Thanked 703 Times in 579 Posts
Default

You can't use a buildworld/buildkernel cycle to build the kernel without a full source tree installed.

You can use "the old way" of compiling a kernel, though:
Code:
# cd /usr/src/sys/<arch>/conf
# ee MYKERNEL
# config MYKERNEL
# cd ../compile/MYKERNEL
# make cleandepends; make depends; make; make install
# shutdown -r now
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #9  
Old September 15th, 2012, 12:51
Leander Leander is offline
Junior Member
 
Join Date: Apr 2010
Location: Stuttgart
Posts: 58
Thanks: 4
Thanked 0 Times in 0 Posts
Default

I never used the old way of compiling a kernel. The "new" way as described in the handbook has always worked for me up to RELEASE 7.3 even I only had base and sys synced ...

any way it' working now - thx for the help
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
compiler {mb small question} kakao General 4 December 3rd, 2011 10:10
ports = compiler = danger ? fluca1978 General 15 October 24th, 2011 17:23
FreeBSD with GCC 4.6 compiler alie Off-Topic 5 September 26th, 2011 13:32
[Solved] Is something wrong with my compiler? sk8harddiefast Userland Programming & Scripting 4 January 2nd, 2011 23:07
[Solved] Haskell compiler ghc Miax Installation and Maintenance of FreeBSD Ports or Packages 1 November 8th, 2010 16:33


All times are GMT +1. The time now is 19:35.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0