Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jun 2008 15:20:38 -0700 (PDT)
From:      Casey Scott <casey@phantombsd.org>
To:        Chris St Denis <chris@smartt.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: 6.3 to 7.0 STABLE upgrade buildworld failures
Message-ID:  <18652065.341212704438450.JavaMail.root@tomcat.phantombsd.org>
In-Reply-To: <22997465.321212704356216.JavaMail.root@tomcat.phantombsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
commenting NO_TOOLCHAIN did the trick.

Thanks,
Casey

----- "Chris St Denis" <chris@smartt.com> wrote:

> Various parts of the FreeBSD base system are interdependent on each 
> other. It's likely that one of the NO_* lines is breaking it.
> 
> Since libgcc is what is failing I'd suspect NO_TOOLCHAIN
> 
> mergemaster is normally done after installworld, but the "-p" mode is
> 
> for pre-buildworld. See the man page for details.
> 
> 
> 
> Casey Scott wrote:
> > I thought mergemaster was done after installworld? I've tried 3
> different cvs sources, same result. Maybe its my make.conf? Here's
> what I've got:
> >
> >
> ************************************************************************************************
> > CPUTYPE?=p4
> > CFLAGS= -O -pipe
> > NO_BLUETOOTH=   true    # do not build Bluetooth related stuff
> > NO_I4B= true    # do not build isdn4bsd package
> > NO_LPR= true    # do not build lpr and related programs
> > NO_SENDMAIL=    true    # do not build sendmail and related
> programs
> > NO_SHAREDOCS=   true    # do not build the 4.4BSD legacy docs
> > NO_TOOLCHAIN=   true    # do not build programs for program
> development
> > NO_USB= true    # do not build usbd(8) and related programs
> > NO_VINUM=       true    # do not build Vinum utilities
> > NO_ATM=         true    # do not build ATM related programs and
> libraries
> > NO_GAMES=       true    # do not build games (games/ subdir)
> > NO_INET6=       true    # do not build IPv6 related programs and
> libraries
> > NO_PROFILE=     true    # Avoid compiling profiled libraries
> > SENDMAIL_MAP_PERMS=
> > WITHOUT_X11=yes
> > PERL_VER=5.8.8
> > PERL_VERSION=5.8.8
> >
> ************************************************************************************************
> >
> > # make buildworld dies here.
> >
> >
> ************************************************************************************************
> > ln -sf /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-generic.h
> unwind.h
> > make -f /usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile
> MFILE=/usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile
> GCCDIR=/usr/src/gnu/lib/libgcc/../../../contrib/gcc gthr-default.h
> > ln -sf /usr/src/gnu/lib/libgcc/../../../contrib/gcc/gthr-posix.h
> gthr-default.h
> > cc -c -O -pipe -march=pentium4 -DIN_GCC -DIN_LIBGCC2
> -D__GCC_FLOAT_NOT_NEEDED  -DHAVE_GTHR_DEFAULT 
> -I/usr/src/gnu/lib/libgcc/../../../contrib/gcclibs/include 
> -I/usr/src/gnu/lib/libgcc/../../../contrib/gcc/config
> -I/usr/src/gnu/lib/libgcc/../../../contrib/gcc -I. 
> -I/usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools 
> -fvisibility=hidden -DHIDE_EXPORTS -fPIC -fexceptions -D__GLIBC__=3
> -DElfW=__ElfN -o unwind-dw2.o
> /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c
> > In file included from
> /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:32:
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:47:20: error:
> stddef.h: No such file or directory
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:48:19: error:
> float.h: No such file or directory
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:87:20: error:
> stdarg.h: No such file or directory
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:90:19: error:
> stdio.h: No such file or directory
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:96:19: error:
> errno.h: No such file or directory
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:103:20:
> error: string.h: No such file or directory
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:104:20:
> error: stdlib.h: No such file or directory
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:105:20:
> error: unistd.h: No such file or directory
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:108:20:
> error: limits.h: No such file or directory
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:111:18:
> error: time.h: No such file or directory
> > In file included from
> /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:40:
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h: In
> function 'size_of_encoded_value':
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h:90:
> warning: incompatible implicit declaration of built-in function
> 'abort'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h: In
> function 'base_of_encoded_value':
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h:122:
> warning: incompatible implicit declaration of built-in function
> 'abort'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h: In
> function 'read_encoded_value_with_base':
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h:259:
> warning: incompatible implicit declaration of built-in function
> 'abort'
> > In file included from
> /usr/src/gnu/lib/libgcc/../../../contrib/gcc/gthr.h:114,
> >                  from
> /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:42:
> > ./gthr-default.h:43:21: error: pthread.h: No such file or directory
> > In file included from
> /usr/src/gnu/lib/libgcc/../../../contrib/gcc/gthr.h:114,
> >                  from
> /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:42:
> > ./gthr-default.h: At top level:
> > ./gthr-default.h:92: error: 'pthread_once' undeclared here (not in a
> function)
> > ./gthr-default.h:93: error: 'pthread_getspecific' undeclared here
> (not in a function)
> > ./gthr-default.h:94: error: 'pthread_setspecific' undeclared here
> (not in a function)
> > ./gthr-default.h:95: error: 'pthread_create' undeclared here (not in
> a function)
> > ./gthr-default.h:96: error: 'pthread_cancel' undeclared here (not in
> a function)
> > ./gthr-default.h:97: error: 'pthread_mutex_lock' undeclared here
> (not in a function)
> > ./gthr-default.h:98: error: 'pthread_mutex_trylock' undeclared here
> (not in a function)
> > ./gthr-default.h:99: error: 'pthread_mutex_unlock' undeclared here
> (not in a function)
> > ./gthr-default.h:100: error: 'pthread_mutex_init' undeclared here
> (not in a function)
> > ./gthr-default.h:103: error: 'pthread_key_create' undeclared here
> (not in a function)
> > ./gthr-default.h:104: error: 'pthread_key_delete' undeclared here
> (not in a function)
> > ./gthr-default.h:105: error: 'pthread_mutexattr_init' undeclared
> here (not in a function)
> > ./gthr-default.h:106: error: 'pthread_mutexattr_settype' undeclared
> here (not in a function)
> > ./gthr-default.h:107: error: 'pthread_mutexattr_destroy' undeclared
> here (not in a function)
> > ./gthr-default.h: In function '__gthread_active_p':
> > ./gthr-default.h:173: error: 'PTHREAD_MUTEX_INITIALIZER' undeclared
> (first use in this function)
> > ./gthr-default.h:173: error: (Each undeclared identifier is reported
> only once
> > ./gthr-default.h:173: error: for each function it appears in.)
> > ./gthr-default.h:174: error: 'PTHREAD_ONCE_INIT' undeclared (first
> use in this function)
> > ./gthr-default.h:188: error: called object
> '__gthrw_pthread_mutex_lock' is not a function
> > ./gthr-default.h:189: error: called object '__gthrw_pthread_once' is
> not a function
> > ./gthr-default.h:190: error: called object
> '__gthrw_pthread_mutex_unlock' is not a function
> > ./gthr-default.h: In function '__gthread_once':
> > ./gthr-default.h:578: error: called object '__gthrw_pthread_once' is
> not a function
> > ./gthr-default.h: In function '__gthread_key_create':
> > ./gthr-default.h:586: error: called object
> '__gthrw_pthread_key_create' is not a function
> > ./gthr-default.h: In function '__gthread_key_delete':
> > ./gthr-default.h:592: error: called object
> '__gthrw_pthread_key_delete' is not a function
> > ./gthr-default.h: In function '__gthread_getspecific':
> > ./gthr-default.h:598: error: called object
> '__gthrw_pthread_getspecific' is not a function
> > ./gthr-default.h: In function '__gthread_setspecific':
> > ./gthr-default.h:604: error: called object
> '__gthrw_pthread_setspecific' is not a function
> > ./gthr-default.h: In function '__gthread_mutex_lock':
> > ./gthr-default.h:611: error: called object
> '__gthrw_pthread_mutex_lock' is not a function
> > ./gthr-default.h: In function '__gthread_mutex_trylock':
> > ./gthr-default.h:620: error: called object
> '__gthrw_pthread_mutex_trylock' is not a function
> > ./gthr-default.h: In function '__gthread_mutex_unlock':
> > ./gthr-default.h:629: error: called object
> '__gthrw_pthread_mutex_unlock' is not a function
> > ./gthr-default.h: In function
> '__gthread_recursive_mutex_init_function':
> > ./gthr-default.h:643: error: called object
> '__gthrw_pthread_mutexattr_init' is not a function
> > ./gthr-default.h:645: error: 'PTHREAD_MUTEX_RECURSIVE' undeclared
> (first use in this function)
> > ./gthr-default.h:645: error: called object
> '__gthrw_pthread_mutexattr_settype' is not a function
> > ./gthr-default.h:647: error: called object
> '__gthrw_pthread_mutex_init' is not a function
> > ./gthr-default.h:649: error: called object
> '__gthrw_pthread_mutexattr_destroy' is not a function
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c: In
> function '_Unwind_GetGR':
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:168:
> warning: incompatible implicit declaration of built-in function
> 'abort'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c: In
> function '_Unwind_SetGR':
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:208:
> warning: incompatible implicit declaration of built-in function
> 'abort'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c: In
> function '_Unwind_SetGRValue':
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:257:
> warning: incompatible implicit declaration of built-in function
> 'abort'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c: In
> function 'extract_cie_info':
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:350:
> warning: incompatible implicit declaration of built-in function
> 'strlen'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c: In
> function 'execute_stack_op':
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:611:
> warning: incompatible implicit declaration of built-in function
> 'abort'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:829:
> warning: incompatible implicit declaration of built-in function
> 'abort'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:836:
> warning: incompatible implicit declaration of built-in function
> 'abort'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c: In
> function 'execute_cfa_program':
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:1082:
> warning: incompatible implicit declaration of built-in function
> 'abort'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c: In
> function 'uw_frame_state_for':
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:1099:
> warning: incompatible implicit declaration of built-in function
> 'memset'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c: In
> function '__frame_state_for':
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:1184:
> warning: incompatible implicit declaration of built-in function
> 'memset'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c: In
> function '_Unwind_SetSpColumn':
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:1234:
> warning: incompatible implicit declaration of built-in function
> 'abort'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c: In
> function 'uw_update_context_1':
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:1290:
> warning: incompatible implicit declaration of built-in function
> 'abort'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c: In
> function 'uw_init_context_1':
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:1408:
> warning: incompatible implicit declaration of built-in function
> 'memset'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:1413:
> warning: incompatible implicit declaration of built-in function
> 'abort'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:1417:
> error: 'PTHREAD_ONCE_INIT' undeclared (first use in this function)
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c: In
> function 'uw_install_context_1':
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:1472:
> warning: incompatible implicit declaration of built-in function
> 'abort'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:1480:
> warning: incompatible implicit declaration of built-in function
> 'memcpy'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:1486:
> warning: incompatible implicit declaration of built-in function
> 'memcpy'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:1490:
> warning: incompatible implicit declaration of built-in function
> 'memcpy'
> > In file included from
> /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:1518:
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind.inc: In function
> '_Unwind_RaiseException_Phase2':
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind.inc:75: warning:
> incompatible implicit declaration of built-in function 'abort'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind.inc: In function
> '_Unwind_Resume':
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind.inc:238:
> warning: incompatible implicit declaration of built-in function
> 'abort'
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind.inc: In function
> '_Unwind_Resume_or_Rethrow':
> > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind.inc:263:
> warning: incompatible implicit declaration of built-in function
> 'abort'
> > *** 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.
> > *** Error code 1
> >
> > Stop in /usr/src.
> >
> ************************************************************************************************
> >
> >
> > Casey
> >
> >
> >
> > ----- "Chris St Denis" <chris@smartt.com> wrote:
> >
> >   
> >> Casey Scott wrote:
> >>     
> >>> Can we no longer use "make buildworld" to upgrade from source
> >>>       
> >> builds? Everytime I've tried, I get build errors. I've gotten the
> >> impression from a few things I've read that freebsd-update is
> suppose
> >> to be used. I don't want a binary install/upgrade though. I've
> just
> >> sync from CVS with this in the config:
> >>     
> >>> *default host=cvsup15.FreeBSD.org
> >>> *default base=/var/db
> >>> *default prefix=/usr
> >>> *default release=cvs tag=RELENG_7
> >>> *default delete use-rel-suffix
> >>> *default compress
> >>> src-all
> >>>
> >>>
> >>> Pretty much the same config I've always used, except the
> RELENG_7.
> >>>
> >>> I continually get errors when "make buildworld". I went back to
> the
> >>>       
> >> 6.3 source, and successfully "make buildworld". 
> >>     
> >>> My current attempt at buildword with the 7.0 died like this:
> >>>
> >>>       
> >>
> *********************************************************************
> >>     
> >>> ===> usr.bin/awk (obj,build-tools)
> >>> yacc -d -o awkgram.c
> >>>       
> >> /usr/src/usr.bin/awk/../../contrib/one-true-awk/awkgram.y
> >>     
> >>> yacc: 43 shift/reduce conflicts
> >>> yacc: 85 reduce/reduce conflicts
> >>> ln -sf awkgram.h ytab.h
> >>> cc -O -pipe -DHAS_ISBLANK -I.
> >>>       
> >> -I/usr/src/usr.bin/awk/../../contrib/one-true-awk -DFOPEN_MAX=64 
> >> -I/usr/obj/usr/src/tmp/legacy/usr/include 
> >> -L/usr/obj/usr/src/tmp/legacy/usr/lib
> >> /usr/src/usr.bin/awk/../../contrib/one-true-awk/maketab.c  -o
> maketab
> >>     
> >>> ===> lib/libmagic (obj,build-tools)
> >>> cc -DHAVE_CONFIG_H -DCOMPILE_ONLY  -I/usr/src/lib/libmagic
> >>>       
> >> -I/usr/src/lib/libmagic/../../contrib/file -o mkmagic
> >> /usr/src/lib/libmagic/../../contrib/file/apprentice.c
> >> /usr/src/lib/libmagic/../../contrib/file/funcs.c
> >> /usr/src/lib/libmagic/../../contrib/file/magic.c
> >> /usr/src/lib/libmagic/../../contrib/file/print.c
> >>     
> >>> ===> usr.sbin/sysinstall (obj,build-tools)
> >>> cc -o rtermcap /usr/src/usr.sbin/sysinstall/rtermcap.c -ltermcap
> >>> ===> gnu/usr.bin/cc/cc_tools (obj,depend,all)
> >>> make: don't know how to make
> >>>       
> >>
> /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/ansidecl.h.
> >> Stop
> >>     
> >>> *** Error code 2
> >>>
> >>> Stop in /usr/src.
> >>> *** Error code 1
> >>>
> >>> Stop in /usr/src.
> >>> *** Error code 1
> >>>
> >>> Stop in /usr/src.
> >>>
> >>>       
> >>
> *********************************************************************
> >>     
> >>> The previous attempt died due to a missing tconfig.h.  Can anyone
> >>>       
> >> shed some light on this please? I can't remember ever having
> trouble
> >> with a buildworld before!!
> >>     
> >>> TIA,
> >>> Casey
> >>> _______________________________________________
> >>> freebsd-questions@freebsd.org mailing list
> >>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >>> To unsubscribe, send any mail to
> >>>       
> >> "freebsd-questions-unsubscribe@freebsd.org"
> >>     
> >>>   
> >>>       
> >> 1. Make sure you do a "mergemaster -p" first. see mergemaster(8)
> >>
> >> 2. Check your make.conf. A bad combination of NO_* variables can
> break
> >>
> >> things. As can bad cflags, etc.
> >>
> >> 2. Try doing a cvsup again to make sure your source is clean.
> Maybe
> >> with 
> >> a different server incase cvsup15 is messed up.
> >>     
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18652065.341212704438450.JavaMail.root>