tring to compile batch libraries with make commang but geeting an error $ make -f retek.mk retek rms resa 2>&1 | tee libretek.log cc -DNDEBUG -I. -I/data/rmsdb/rms/oracle/lib/src -I/data/u01/app/oracle/product/10.2.0/db_1/precomp/public -I/data/u01/app/oracle/product/10.2.0/db_1/rdbms/public -I/data/u01/app/oracle/product/10.2.0/db_1/plsql/public -I/data/u01/app/oracle/product/10.2.0/db_1/sqllib/public -I/data/u01/app/oracle/product/10.2.0/db_1/network/public -I/data/u01/app/oracle/product/10.2.0/db_1/rdbms/demo -g -Xa -xstrconst -dalign -xF -xildoff -errtags=yes -v -xarch=v9 -xchip=ultra3 -W2,-AKNR_S -Wd,-xsafe=unboundsym -Wc,-Qiselect-funcalign=32 -xcode=abs44 -Wc,-Qgsched-trace_late=1 -Wc,-Qgsched-T5 -D_REENTRANT -DSS_64BIT_SERVER -DBIT64 -DMACHINE64 -K PIC -DPRECOMP -I/data/u01/app/oracle/product/10.2.0/db_1/precomp/hdrs -I/data/u01/app/oracle/product/10.2.0/db_1/precomp/public -I/data/u01/app/oracle/product/10.2.0/db_1/precomp/include -I/data/u01/app/oracle/product/10.2.0/db_1/oracore/include -I/data/u01/app/oracle/product/10.2.0/db_1/oracore/public -I/data/u01/app/oracle/product/10.2.0/db_1/oracore/port/include -I/data/u01/app/oracle/product/10.2.0/db_1/xdk/include -I/data/u01/app/oracle/product/10.2.0/db_1/xdk/public -I/data/u01/app/oracle/product/10.2.0/db_1/nlsrtl/include -I/data/u01/app/oracle/product/10.2.0/db_1/slax/include -I. -DSLMXMX_ENABLE -DSLTS_ENABLE -D_SVID_GETTOD -D_REENTRANT -c saoranumadd.c -o `basename /data/rmsdb/rms/oracle/lib/src/saoranumadd.o` cc: PIC: No such file or directory Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs cc: unrecognized option `-Xa' cc: unrecognized option `-K' Configured with: /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/ccs/bin/as --without-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared Thread model: posix gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) cc: language code=abs44 not recognized cc: saoranumadd.c: linker input file unused because linking not done *** Error code 1 make: Fatal error: Command failed for target `saoranumadd.o' ... also try to compile by gcc comman ... the famous hello word program.. $ gcc -c -Wall -D_GNU_SOURCE abhi.c -o abhi.o $ gcc -c abhi.o abhi.c gcc: abhi.o: linker input file unused because linking not done .. have tried all possible fixes urgently need to up system .. any help will be highly appreciated. Thanks,
> also try to compile by gcc comman ... the famous hello word program.. > $ gcc -c -Wall -D_GNU_SOURCE abhi.c -o abhi.o > $ gcc -c abhi.o abhi.c > gcc: abhi.o: linker input file unused because linking not done > .. > have tried all possible fixes gcc -o abhi abhi.o
(In reply to comment #0) > tring to compile batch libraries with make commang but geeting an error > $ make -f retek.mk retek rms resa 2>&1 | tee libretek.log > cc -DNDEBUG -I. -I/data/rmsdb/rms/oracle/lib/src > -I/data/u01/app/oracle/product/10.2.0/db_1/precomp/public > -I/data/u01/app/oracle/product/10.2.0/db_1/rdbms/public > -I/data/u01/app/oracle/product/10.2.0/db_1/plsql/public > -I/data/u01/app/oracle/product/10.2.0/db_1/sqllib/public > -I/data/u01/app/oracle/product/10.2.0/db_1/network/public > -I/data/u01/app/oracle/product/10.2.0/db_1/rdbms/demo -g -Xa -xstrconst > -dalign -xF -xildoff -errtags=yes -v -xarch=v9 -xchip=ultra3 -W2,-AKNR_S > -Wd,-xsafe=unboundsym -Wc,-Qiselect-funcalign=32 -xcode=abs44 > -Wc,-Qgsched-trace_late=1 -Wc,-Qgsched-T5 -D_REENTRANT -DSS_64BIT_SERVER > -DBIT64 -DMACHINE64 -K PIC -DPRECOMP > -I/data/u01/app/oracle/product/10.2.0/db_1/precomp/hdrs > -I/data/u01/app/oracle/product/10.2.0/db_1/precomp/public > -I/data/u01/app/oracle/product/10.2.0/db_1/precomp/include > -I/data/u01/app/oracle/product/10.2.0/db_1/oracore/include > -I/data/u01/app/oracle/product/10.2.0/db_1/oracore/public > -I/data/u01/app/oracle/product/10.2.0/db_1/oracore/port/include > -I/data/u01/app/oracle/product/10.2.0/db_1/xdk/include > -I/data/u01/app/oracle/product/10.2.0/db_1/xdk/public > -I/data/u01/app/oracle/product/10.2.0/db_1/nlsrtl/include > -I/data/u01/app/oracle/product/10.2.0/db_1/slax/include -I. -DSLMXMX_ENABLE > -DSLTS_ENABLE -D_SVID_GETTOD -D_REENTRANT -c saoranumadd.c -o `basename > /data/rmsdb/rms/oracle/lib/src/saoranumadd.o` > cc: PIC: No such file or directory > Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs > cc: unrecognized option `-Xa' > cc: unrecognized option `-K' > Configured with: > /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/configure > --prefix=/usr/sfw --with-as=/usr/ccs/bin/as --without-gnu-as > --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ > --enable-shared > Thread model: posix > gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) > cc: language code=abs44 not recognized > cc: saoranumadd.c: linker input file unused because linking not done > *** Error code 1 > make: Fatal error: Command failed for target `saoranumadd.o' > ... > also try to compile by gcc comman ... the famous hello word program.. > $ gcc -c -Wall -D_GNU_SOURCE abhi.c -o abhi.o > $ gcc -c abhi.o abhi.c > gcc: abhi.o: linker input file unused because linking not done > .. > have tried all possible fixes > urgently need to up system .. any help will be highly appreciated. > Thanks, (In reply to comment #1) > > also try to compile by gcc comman ... the famous hello word program.. > > $ gcc -c -Wall -D_GNU_SOURCE abhi.c -o abhi.o > > $ gcc -c abhi.o abhi.c > > gcc: abhi.o: linker input file unused because linking not done > > .. > > have tried all possible fixes > gcc -o abhi abhi.o Thanks.. it getting compiled in this manner and showed that my gcc compiler working fine but for batch libraries using make command ,I am still getting the same error as $ make -f retek.mk retek rms resa 2>&1 | tee libretek.log cc -DNDEBUG -I. -I/data/rmsdb/rms/oracle/lib/src -I/data/u01/app/oracle/product/10.2.0/db_1/precomp/public -I/data/u01/app/oracle/product/10.2.0/db_1/rdbms/public -I/data/u01/app/oracle/product/10.2.0/db_1/plsql/public -I/data/u01/app/oracle/product/10.2.0/db_1/sqllib/public -I/data/u01/app/oracle/product/10.2.0/db_1/network/public -I/data/u01/app/oracle/product/10.2.0/db_1/rdbms/demo -g -Xa -xstrconst -dalign -xF -xildoff -errtags=yes -v -xarch=v9 -xchip=ultra3 -W2,-AKNR_S -Wd,-xsafe=unboundsym -Wc,-Qiselect-funcalign=32 -xcode=abs44 -Wc,-Qgsched-trace_late=1 -Wc,-Qgsched-T5 -D_REENTRANT -DSS_64BIT_SERVER -DBIT64 -DMACHINE64 -K PIC -DPRECOMP -I/data/u01/app/oracle/product/10.2.0/db_1/precomp/hdrs -I/data/u01/app/oracle/product/10.2.0/db_1/precomp/public -I/data/u01/app/oracle/product/10.2.0/db_1/precomp/include -I/data/u01/app/oracle/product/10.2.0/db_1/oracore/include -I/data/u01/app/oracle/product/10.2.0/db_1/oracore/public -I/data/u01/app/oracle/product/10.2.0/db_1/oracore/port/include -I/data/u01/app/oracle/product/10.2.0/db_1/xdk/include -I/data/u01/app/oracle/product/10.2.0/db_1/xdk/public -I/data/u01/app/oracle/product/10.2.0/db_1/nlsrtl/include -I/data/u01/app/oracle/product/10.2.0/db_1/slax/include -I. -DSLMXMX_ENABLE -DSLTS_ENABLE -D_SVID_GETTOD -D_REENTRANT -c saoranumadd.c -o `basename /data/rmsdb/rms/oracle/lib/src/saoranumadd.o` cc: PIC: No such file or directory Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs cc: unrecognized option `-Xa' cc: unrecognized option `-K' Configured with: /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/ccs/bin/as --without-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared Thread model: posix gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) cc: language code=abs44 not recognized cc: saoranumadd.c: linker input file unused because linking not done *** Error code 1 make: Fatal error: Command failed for target `saoranumadd.o' .. Please help me in solving this issue also... Thanks,
> Please help me in solving this issue also... Your Makefile expects Sun CC and you're using GCC.
(In reply to comment #3) > > Please help me in solving this issue also... > Your Makefile expects Sun CC and you're using GCC. There should not be any difference as i directed cc to gcc $ cc -v Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs Configured with: /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/ccs/bin/as --without-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared Thread model: posix gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) Is it somthing with a Sun cc?.Do I need to install Sun cc compiler or some work around is possible.
> There should not be any difference as i directed cc to gcc Your bug. The Makefile expects Sun CC since it uses Sun CC options. So you need to use Sun CC.
(In reply to comment #5) > > There should not be any difference as i directed cc to gcc > Your bug. The Makefile expects Sun CC since it uses Sun CC options. So you > need to use Sun CC. Thanks a lot , Is there any workaround for this problem,Becouse SunCC compiler is paid. Please let me know from where I can easly get Sun CC compiler. Thanks,
> Thanks a lot , Is there any workaround for this problem,Becouse SunCC compiler > is paid. You need to read the documentation of the software you're trying to build and see whether GCC is supported; if so, follow the instructions; if not, you need to install Sun CC. > Please let me know from where I can easly get Sun CC compiler. http://www.sun.com
I changed the compiler and its works.. thanks a lot for your advice