How to fix -xarch deprecation warning for Solaris sample makefiles? (Doc ID 1116076.1)

Last updated on JULY 17, 2017

Applies to:

Precompilers - Version 10.2.0.1 to 11.2.0.1 [Release 10.2 to 11.2]
Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.1.0 [Release 10.2 to 11.2]
Oracle Solaris on SPARC (64-bit)
Oracle Solaris on SPARC (32-bit)
***Checked for relevance on 26-Nov-2013***

Symptoms

Using the Oracle makefile, you see output including the warning:

make -f demo_proc.mk build EXE=sample1 OBJS=sample1.o
...
cc -xarch=v9 -o sample1 sample1.o -L/opt/64bit/app/oracle/product/10.2.0.4.0/lib/ -lclntsh `cat /opt/64bit/app/oracle/product/10.2.0.4.0/lib/ldflags` `cat /opt/64bit/app/oracle/product/10.2.0.4.0/lib/sysliblist` -R/opt/64bit/app/oracle/product/10.2.0.4.0/lib -laio -lposix4 -lm -lthread
cc: Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms