The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Problems with buildworld on 4.2-STABLE
Author: Jay D. 
Date:   16-02-01 03:00

Trying to upgrade from 4.2-RELEASE to 4.2-STABLE, but I keep getting this
same error (below). I've tried cvsup'ing from different sites, on different
days, over the past 2 weeks, but I get the same exact error. I always rm
-rf /usr/obj. I reinstalled 4.2-RELEASE from CD, tried to upgrade, and get
the same _exact_ error. I am running an AMD K6/2 500 CPU, ASUS P5A mobo,
256M ram, UDMA/66 harddrives. Is this a problem with the AMD K6? Are there
options in the /etc/make.conf I should try? (I compiled on a separate box -
Pentium III 600 MHz - AND IT COMPILED JUST FINE. It also compiled fine on a
slower AMD K6/2 300 box. Go figure. Are there known problems with AMD K6/2
500? Different kernel options I shoult try?)

Here is the error:

cd /usr/src/gnu/lib/libgcc; make depend; make all; make install
echo '#include <i386/xm-i386.h>' > config.h
echo '#include <xm-freebsd.h>' >> config.h
echo '#include "gansidecl.h"' > tconfig.h
echo '#include "i386/xm-i386.h"' >> tconfig.h
echo '#include "i386/i386.h"' > tm.h
echo '#include "i386/att.h"' >> tm.h
echo '#include "svr4.h"' >> tm.h
echo '#include <freebsd.h>' >> tm.h
echo '#include "i386/freebsd.h"' >> tm.h
echo '#include "i386/perform.h"' >> tm.h
rm -f .depend
mkdep -f .depend -a -I/usr/src/gnu/lib/libgcc/../../../contrib/gcc/config
-I/usr/src/gnu/lib/libgcc/../../../contrib/gcc -I. -DIN_GCC -D_PTHREADS
-DGTHREAD_USE_WEAK -I/usr/obj/usr/src/i386/usr/include
mkdep -f .depend -a -nostdinc++
gansidecl.h: No such file or directory
eh-common.h: No such file or directory
mkdep: compile failed
*** Error code 1

Stop in /usr/src/gnu/lib/libgcc.
*** Error code 1

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

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

Stop in /usr/src.


Any ideas? Please?

Reply To This Message
 Figured it out
Author: Jay D 
Date:   16-02-01 21:33

I had this in /etc/.bash_profile

CFLAGS="-O -pipe -mcpu=i586 -march=i586"

which I copied from my Linux box. Apparently FreeBSD doesn't like the quotes. So I removed the entry from .bash_profile and stuck it into /etc/make.conf like this:

CFLAGS= -O -pipe -mcpu=i586 -march=i586

No quotes. Now it compiles buildworld just fine!

Reply To This Message
 Re: Figured it out
Author: rino 
Date:   03-03-01 10:14

Hi. Can you explain to us newbies what that CFLAGS values does please.


Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 

 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum