LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 11-19-2003, 11:41 AM   #1
DwightDE
LQ Newbie
 
Registered: Oct 2003
Distribution: Debian/Knoppix, FreeBSD
Posts: 20

Rep: Reputation: 0
Question OpenBSD - make clean fails - Newbie


I've just installed OpenBSD 3.4, and downloaded source code (I guess) via anonCVS. When I try to compile and install (I guess) the new source code, I get an error:
make: Don't know hot to make clean. Stop in /usr/src/sys/arch/i386/conf.

Here's the sequence of commands I went issued:

# setenv CVSROOT anoncvs@anoncvs1.ca.openbsd.org:/cvs
# cd /usr
# cvs -q get -rOPENBSD_3_4 -P src
# cd /usr/src/sys/arch/i386/conf
# /usr/sbin/config GENERIC
# cd /usr/src/sys/arch/i386/compile/GENERIC <--ooopppsss!
# make clean && make depend && make

At this point, having left out the line indicated above as "ooopppsss!", I got the error:
make: Don't know how to make clean.
I just wanted to point that out for the benefit of anyone else who may have encountered that.

So, I ran it again from the "cd" line above the "config GENERIC" command line, and I got an error message, with a big mess of cryptic stuff above the error message, which ends with:
(bunch of junk)../../../kern/genassym.sh[172]: cc: not found
*** Error code 1
"Stop in /usr/src/sys/arch/i386/compile/GENERIC (line 650 of Makefile)."

Since I ran the command as "make clean && make depend && make", I had no idea which command failed. So, I went back and ran "make clean". So far, so good. That one runs. Then I ran "make depend". That's the culprit. I get the same error code.

So, I tried CVS again:
# cd /usr/src
# cvs -d $CVSROOT -q up -Pd
# cd /usr/src/sys/arch/i386/conf
# /usr/sbin/config GENERIC
# cd /usr/src/sys/arch/i386/compile/GENERIC
# make clean && make depend && make

and I get the same error.

This is a new, clean install of a basic OpenBSD 3.4 system with no GUI, and very few extras, so I really don't think this should be happening.

Can anyone help me diagnose this, or point me to comprehensible resources that I can use to figure this out and fix it?

Thanks!
 
Old 11-19-2003, 06:38 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Did you install the comp34.tgz set? comp34 has the compiler. It sounds like the C compiler is missing.

You should be able to boot off the CD again and do (u)pgrade, then choose to install the comp34 set as part of the upgrade. It shouldn't actually change anything other than adding the compiler.
 
Old 11-20-2003, 06:31 AM   #3
DwightDE
LQ Newbie
 
Registered: Oct 2003
Distribution: Debian/Knoppix, FreeBSD
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks! I'll try it. It may be a few days before I get back to it, though. Things have gotten really busy around here.
 
Old 11-24-2003, 05:19 PM   #4
DwightDE
LQ Newbie
 
Registered: Oct 2003
Distribution: Debian/Knoppix, FreeBSD
Posts: 20

Original Poster
Rep: Reputation: 0
For the benefit of other OpenBSD newbies, here's the solution:

I rebooted from the installation disk, chose [U]pgrade, and selected only compt34.tgz.

That seems to have worked. It seems to be compiling now.

Remember to always install comp34.tgz if you want to be able to update your system, apply patches, etc.

Thanks again, chort!
 
Old 11-25-2003, 09:24 PM   #5
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Glad to hear it worked for you!

I have to say that OpenBSD is hands-down the easiest OS to install and upgrade, and I've used everything from Win3.11 to Solaris.

The really neat thing is that if you have two machines of the same architecture, you can actually build all the system updates (not just the kernel, but actually are the release sets too) on the one machine, then install them on your second machine via [f]tp, [h]ttp, [c]d-rom, etc... I do that with my firewall since I don't have enough space to compile the system on that box. I build the release on my workstation, then put the bsd.rd on the firewall, reboot (doing boot bsd.rd from the boot> prompt), then choose [u]pgrade and point it at my [h]ttp server on the workstation. Presto remote upgrade Using this method I could get by with only the base and etc sets on the firewall.
 
Old 11-25-2003, 09:42 PM   #6
dkaplowitz
Member
 
Registered: Oct 2002
Location: Havertown PA
Distribution: Ubuntu/RHEL/Fedora
Posts: 253

Rep: Reputation: 31
Quote:
Originally posted by chort
The really neat thing is that if you have two machines of the same architecture, you can actually build all the system updates...
Thanks for that. I didn't know that. I'll have to try it. OpenBSD is really a lot of fun to learn about. Very rewarding OS to work with.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the difference between make distclean and make clean? alice95089 Linux - Software 3 08-28-2008 01:22 AM
When "make install clean" ports fails everytime! Devboy *BSD 9 08-11-2004 07:46 PM
compile fails since clean with mrproper Kristian2 Slackware 1 05-26-2004 07:07 PM
make clean, make dep problem carscht Linux - Newbie 2 02-21-2004 10:32 AM
make dep,make clean,make bzImage problem Babba Linux - Newbie 2 01-08-2003 03:49 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 03:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration