This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Building errors for sh, h8300 and m32c targets.


Hi,
I am building toolchain for Renesas SH, H8300 and M32C targets for ELF format (i.e. sh-elf, h8300-elf, m32c-elf respectively) using the below mentioned sources,

Binutils-051107
GCC-4.1-20051107
Newlib-dated 051114 from CVS

Host: i686-pc-linux-gnu

I am getting the below mentioned error at the stage of gcc building,

********************************* Error Text starts ********************************************************************

gcc -c?? -g -O2 -DIN_GCC -DCROSS_COMPILE? -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -fno-common -Wno-error? -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/home/pradeep/src/gcc-4.1-20051107/gcc -I/home/pradeep/src/gcc-4.1-20051107/gcc/build -I/home/pradeep/src/gcc-4.1-20051107/gcc/../include -I/home/pradeep/src/gcc-4.1-20051107/gcc/../libcpp/include? -o build/gengtype-lex.o gengtype-lex.c
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:31:27: gengtype-yacc.h: No such file or directory
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l: In function `yylex':
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:222: `yylval' undeclared (first use in this function)
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:222: (Each undeclared identifier is reported only once
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:222: for each function it appears in.)
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:227: `ENT_TYPEDEF_STRUCT' undeclared (first use in this function)
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:227: `ENT_STRUCT' undeclared (first use in this function)
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:233: `ENT_EXTERNSTATIC' undeclared (first use in this function)
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:239: `ENT_YACCUNION' undeclared (first use in this function)
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:287: `GTY_TOKEN' undeclared (first use in this function)
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:288: `UNION' undeclared (first use in this function)
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:289: `STRUCT' undeclared (first use in this function)
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:290: `ENUM' undeclared (first use in this function)
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:291: `ALIAS' undeclared (first use in this function)
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:292: `NESTED_PTR' undeclared (first use in this function)
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:293: `NUM' undeclared (first use in this function)
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:296: `PARAM_IS' undeclared (first use in this function)
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:308: `SCALAR' undeclared (first use in this function)
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:329: `ID' undeclared (first use in this function)
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:339: `STRING' undeclared (first use in this function)
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:343: `ARRAY' undeclared (first use in this function)
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:347: `PERCENT_ID' undeclared (first use in this function)
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:351: `CHAR' undeclared (first use in this function)
/home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:367: `PERCENTPERCENT' undeclared (first use in this function)
make[1]: *** [build/gengtype-lex.o] Error 1
make[1]: Leaving directory `/home/pradeep/build/gcc/gcc'
make: *** [all-gcc] Error 2
************************************ Error Text Ends **************************************************************

After looking into the error, I found that these files are not present in the gcc-4.1 snapshots. Hence I copied the "gengtype-yacc.c" and "gengtype-yacc.h" files from the gcc-4.0.0 sources to the respective directory of gcc-4.1.0 snapshots i.e. "/../gcc-4.1-20051107/gcc/"?

After copying of these two files the building process completed successfully. 
Could any one suggest me the reasons of presence of these files in the previous version and the cause to delete these files in this gcc-4.1 snapshot ? 

Thanks in advance.

Nitin Shah.
KPIT Cummins InfoSystems Ltd.
Pune, India

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Free download of GNU based tool-chains for Renesas' SH and H8 Series.
The following site also offers free technical support to its users. 
Visit http://www.kpitgnutools.com for details. 
Latest versions of KPIT GNU tools were released on October 12, 2005.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]