cc语法转换gcc语法,参数转换遇到难题,请各位高手指教
我在编译oci的程序,我用了solaris5.8+oracle9.2 在编译的时候使用oracle下面的rdbms/lib/env_rdbms.mk文件,但是这个文件是根据cc 编译器设定的,我需要把它改成gcc的,但是有几个参数总是报错
1:-K PIC 不识别 ,被我改成了-fPIC,不知道对不对
2:gcc: warning: `-x O5' after last input file has no effect
3:gcc: unrecognized option `-Xa' 这个Xa用什么参数替换呢
4:gcc: language alias_level=weak not recognized 这段话是什么意思
下面是现实的编译信息,请各位帮忙
gcc -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 -xalias_level=weak -D_REENTRANT -DSS_64BIT_SER
VER -DBIT64 -DMACHINE64 -fPIC -c -I/export/home/oracle/9.2/rdbms/demo -I/export/home/oracle/9.2/rdbms/public -I/export/home/o
racle/9.2/precomp/public SMBBN0001.c -DDEBUG -xcsi -xO5
gcc: warning: `-x O5' after last input file has no effect
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/specs
gcc: unrecognized option `-Xa'
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.1
gcc: language alias_level=weak not recognized
gcc: SMBBN0001.c: linker input file unused because linking not done
gcc -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 -xalias_level=weak -D_REENTRANT -DSS_64BIT_SE
RVER -DBIT64 -DMACHINE64 -fPIC -L/opt/SUNWcluster/lib -R/opt/SUNWcluster/lib -o build -L/export/home/oracle/9.2/rdbms/lib/ -L
/export/home/oracle/9.2/lib/ -o /export/home/project/md2/home1/sp/pt_sp1/bin/SMBBN0001 SMBBN0001.o -lclntsh `cat /export/hom
e/oracle/9.2/lib/ldflags` `cat /export/home/oracle/9.2/lib/sysliblist` -R/export/home/oracle/9.2/lib -laio -lposix4 -lksta
t -lm -lthread -L/export/home/project/md2/home1/sp/pt_sp1/lib -lCMBCM9010 -lCMBCM9020 -lCMBCM9030 -xO5
gcc: SMBBN0001.o: No such file or directory
gcc: warning: `-x O5' after last input file has no effect
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/specs
gcc: unrecognized option `-Xa'
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.1
*** Error code 1
make: Fatal error: Command failed for target `build'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我顶
这好象是oracle环境的问题,我刚刚也碰到,具体的参数是env_precomp.mk文件中给的,但我的oracle环境参数都对的啊,可以启动sqlplus和svrmgrl,怎么还出这问题呢?哪位达人等指教一下,不胜感激!
邮箱:wolf_jack@163.com