make bulid failed !

jackie

Member


Messages: 24

first I run cvsup.

Then i go to /usr/src

make buildworld

but:
Code:
echo "\"/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/input.h\", "	>> gtyp-gen.h
echo "\"/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/coretypes.h\", "						>> gtyp-gen.h
echo "\"/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libcpp/include/line-map.h\", "						>> gtyp-gen.h
echo "\"/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libcpp/include/cpplib.h\", "						>> gtyp-gen.h
echo "\"/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libcpp/include/cpp-id-data.h\", "						>> /contrib/gcc/objc/objc-act.c\", "						>> gtyp-gen.h
echo "\"/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/c-lang.c\", "	>> gtyp-gen.h
echo "\"/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/c-tree.h\", "	>> gtyp-gen.h
echo "\"/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/c-decl.c\", "	>> gtyp-gen.h
echo "\"/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/c-common.c\", ">> gtyp-gen.h
echo "\"/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/c-common.h\", ">> gtyp-gen.h
echo "\"/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/c-pragma.c\", ">> gtyp-gen.h
echo "\"/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/c-objc-common.c\", "						>> gtyp-gen.h
echo "\"/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/c-parser.c\", ">> gtyp-gen.h
echo "NULL};"						>> gtyp-gen.h
echo "static const char * const lang_dir_names[] = {"	>> gtyp-gen.h
echo "\"c\", "						>> gtyp-gen.h
echo "\"cp\", "						>> gtyp-gen.h
echo "\"objc\", "						>> gtyp-gen.h
echo "NULL};"						>> gtyp-gen.h
cc -O2 -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/include -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libcpp/include -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libdecnumber -g -DGENERATOR_FILE -DHAVE_CONFIG_H  -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gengtype.c
yacc -d -o gengtype-yacc.c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gengtype-yacc.y
cat    gengtype-yacc.c > gengtype-yacc+%DIKED.c
sed -e "s/xmalloc/malloc/g"  -e "s/xrealloc/realloc/g"  -e "s/malloc/xmalloc/g"  -e "s/realloc/xrealloc/g"  gengtype-yacc.c > gengtype-yacc+%DIKED.c
cc -O2 -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/include -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libcpp/include -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libdecnumber -g -DGENERATOR_FILE -DHAVE_CONFIG_H  -I/usr/obj/usr/src/tmp/legacy/usr/include -c gengtype-yacc+%DIKED.c
flex -ogengtype-lex.c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gengtype-lex.l
flex:No such file or directory
*** Error code 1

Stop in /usr/src/gnu/usr.bin/cc/cc_tools.
*** Error code 1

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

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

Stop in /usr/src.

what's wrong ?
and my "uname -a" output

Code:
FreeBSD www.boolome.cn 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Fri Dec  5 09:33:04 CST 2008     root@www.boolome.cn:/usr/obj/usr/src/sys/boolome  i386
 

ale

Daemon

Reaction score: 169
Messages: 1,059

jackie said:
Can you tell me how to solve this question !

If now I want to use release ,I have to make once bulidworld ...
Yes, but from different sources!

And probably a clean reinstall after backing up your data (/home, files modified in /etc, /usr/local/etc and /var/*/ ...) is safer
 
OP
J

jackie

Member


Messages: 24

But the question is I have ever want to update to 7 stable,and have the same problem.
 

ale

Daemon

Reaction score: 169
Messages: 1,059

What is the output of the following command ?
Code:
locate gengtype-lex.l

I'd try csuping again and starting over after a make cleanworld
 
OP
J

jackie

Member


Messages: 24

This the result .
Code:
%locate gengtype-lex.l
/usr/src/contrib/gcc/gengtype-lex.l
 

ale

Daemon

Reaction score: 169
Messages: 1,059

Did you try after running csup again?
Also, are you trying with a custom kernconf? What using GENERIC?
 
OP
J

jackie

Member


Messages: 24

Of course.
I have ever remove all src ,make clean world ,cvsup the latest source tree..
 

fender0107401

Well-Known Member

Reaction score: 13
Messages: 338

If you are newbie to FreeBSD, I suggest you don't track the current branch, and bedore ask any questions, you shold carefully read this page:"http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/current-stable.html".
 

fender0107401

Well-Known Member

Reaction score: 13
Messages: 338

I think tracking the current branch means you shuld solve this problem by yourself. :e
 

fender0107401

Well-Known Member

Reaction score: 13
Messages: 338

I think tracking the current branch means you shuld solve this problem by yourself. :e
 
OP
J

jackie

Member


Messages: 24

I think I have solved this problem .
found that when i go to /usr/src/gnu/usr.bin/cc/cc_tools
make obj && make depend && make

It will be success.
so then I go to /usr/src
make -DNO_CLEAN all

Everything goes well !
 
Top