Bug 39671 - solaris 10 with gcc 3.4.3
Summary: solaris 10 with gcc 3.4.3
Status: VERIFIED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 3.4.3
: P3 blocker
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-07 09:25 UTC by abhinav
Modified: 2009-04-10 05:29 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description abhinav 2009-04-07 09:25:14 UTC
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,
Comment 1 Eric Botcazou 2009-04-07 10:08:11 UTC
> 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
Comment 2 abhinav 2009-04-07 10:39:15 UTC
(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,

Comment 3 Eric Botcazou 2009-04-07 10:42:29 UTC
> Please help me in solving this issue also...

Your Makefile expects Sun CC and you're using GCC.
Comment 4 abhinav 2009-04-07 11:46:20 UTC
(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.
Comment 5 Eric Botcazou 2009-04-07 13:29:00 UTC
> 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.
Comment 6 abhinav 2009-04-07 13:34:12 UTC
(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,

Comment 7 Eric Botcazou 2009-04-07 13:38:03 UTC
> 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
Comment 8 abhinav 2009-04-10 05:29:02 UTC
I changed the compiler and its works.. thanks a lot for your advice