Compiling the devtools for Sun
Sascha Ferley <[email protected]> Fri, 21 Mar 2003 10:56:10 -0700 (MST)
| Newsgroups | gmane.comp.db.sapdb.sources |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am running into issues compiling the dev tools to build the rest of the SAP DB for solaris, both sparc and x86 give me the same error. I grabed the sources, from the link mentioned here: http://www.sapdb.org/7.4/develop/sap_db_port.htm All the tools that are required are installed such as Perl, Python, etc.. The problem using gcc : $ echo $CC gcc $ echo $CFLAGS -g -O2 $ which gcc /opt/csw/bin/gcc $ gmake (cd sys/src/base; gmake && gmake install) gmake[1]: Entering directory `/SAP/sys/src/base' cd ptoc; gmake all install libinstall gmake[2]: Entering directory `/SAP/sys/src/base/ptoc' cd tools ; gmake gmake[3]: Entering directory `/SAP/sys/src/base/ptoc/tools' ( cd mkvers ; gmake ; ) gmake[4]: Entering directory `/SAP/sys/src/base/ptoc/tools/mkvers' cc -c -DSVR4 -DI386 -DSYSV -DCC -O -g mkvers.c gmake[4]: cc: Command not found gmake[4]: *** [mkvers.o] Error 127 gmake[4]: Leaving directory analysis: Looking at the makefiles in the subdirectories and makefile dependencies, i noticed that they are compleatly hard defining the use of cc, and not referencing shell environment settings. the ./configure script basically doesn't seem to be doing anything usefull .. So i try using sun's Sunpro compilers. The problem: $ echo $CC /opt/SUNWspro/bin/cc $ echo $CFLAGS -g -O $ which cc /opt/SUNWspro/bin/cc $ gmake (cd sys/src/base; gmake && gmake install) gmake[1]: Entering directory `/SAP/sys/src/base' cd ptoc; gmake all install libinstall gmake[2]: Entering directory `/SAP/sys/src/base/ptoc' cd tools ; gmake gmake[3]: Entering directory `/SAP/sys/src/base/ptoc/tools' ( cd mkvers ; gmake ; ) gmake[4]: Entering directory `/SAP/sys/src/base/ptoc/tools/mkvers' cc -c -DSVR4 -DI386 -DSYSV -DCC -O -g mkvers.c cc -o mkvers mkvers.o gmake[4]: Leaving directory `/SAP/sys/src/base/ptoc/tools/mkvers' ( cd makedepend ; gmake ; ) gmake[4]: Entering directory `/SAP/sys/src/base/ptoc/tools/makedepend' cc -DSVR4 -DI386 -DSYSV -DCC -O -g -c '-DINCLUDEDIR="/usr/include"' include.c cc -DSVR4 -DI386 -DSYSV -DCC -O -g -c '-DINCLUDEDIR="/usr/include"' main.c cc -DSVR4 -DI386 -DSYSV -DCC -O -g -c '-DINCLUDEDIR="/usr/include"' parse.c "parse.c", line 239: internal compiler error: Wasted space cc: acomp failed for parse.c gmake[4]: *** [parse.o] Error 2 gmake[4]: Leaving directory `/SAP/sys/src/base/ptoc/tools/makedepend' gmake[3]: *** [all] Error 2 gmake[3]: Leaving directory `/SAP/sys/src/base/ptoc/tools' gmake[2]: *** [mktools] Error 2 .... Analysis: Can't figure out why there would be a internal compiler issue, when looking at the code, except the way how the code blocks are defined might have something to do with the problem. Another problem before i forget, your makefile has some issues, with trying to allow the usage of sun's make program. One is stuck using gmake, which has issues on its own. Output: $ which make /usr/ccs/bin/make $ make (cd sys/src/base; make && make install) cd ptoc; make all install libinstall cd tools ; make make: Fatal error in reader: ../Makedefs, line 20: Unexpected end of line seen Current working directory /SAP/sys/src/base/ptoc/tools *** Error code 1 ----- Just for info ------ If anyone has any solutions as to any way to build the devel tools above correctly, please send a mail. Thanks Sascha