 Hi,

I am trying to compile R-2.2.1 on Solaris 2.9 with a 64-bit build. Following
the instructions in "R Installation and Adminstration", I changed the
following settings in "config.site":
 CC="gcc -m64"
F77="g77 -64"
CXX="g++ -m64"
LDFLAGS="-L/usr/local/lib/sparcv9 -L/usr/local/lib"

But I got the following error messages:
configure:3987: gcc -m64  -I/usr/local/include -L/usr/local/lib/sparcv9
-L/usr/local/lib conftest.c  >&5
/usr/ccs/bin/ld: skipping incompatible /work/net-local-b/sparc-
sun-solaris2.9/bin/../lib/gcc/sparc-sun-solaris2.9/3.4.2/sparcv9/libgcc.a
when search
ing for -lgcc
/usr/ccs/bin/ld: skipping incompatible /work/net-local-b/sparc-
sun-solaris2.9/bin/../lib/gcc/sparc-sun-solaris2.9/3.4.2/sparcv9/libgcc_eh.a
when sea
rching for -lgcc_eh
/usr/ccs/bin/ld: skipping incompatible /lib/sparcv9/libc.so when searching
for -lc
/usr/ccs/bin/ld: skipping incompatible /usr/lib/sparcv9/libc.so when
searching for -lc
/usr/ccs/bin/ld: skipping incompatible /usr/lib/sparcv9/libc.so when
searching for -lc
/usr/ccs/bin/ld: skipping incompatible /work/net-local-b/sparc-
sun-solaris2.9/bin/../lib/gcc/sparc-sun-solaris2.9/3.4.2/sparcv9/libgcc.a
when search
ing for -lgcc
/usr/ccs/bin/ld: skipping incompatible /work/net-local-b/sparc-
sun-solaris2.9/bin/../lib/gcc/sparc-sun-solaris2.9/3.4.2/sparcv9/libgcc_eh.a
when sea
rching for -lgcc_eh
/usr/ccs/bin/ld: skipping incompatible /lib/sparcv9/libc.so when searching
for -lc
/usr/ccs/bin/ld: skipping incompatible /usr/lib/sparcv9/libc.so when
searching for -lc
/usr/ccs/bin/ld: skipping incompatible /usr/lib/sparcv9/libc.so when
searching for -lc
/usr/ccs/bin/ld: warning: sparc:v9 architecture of input file
`/work/net-local-b/sparc-sun-solaris2.9/bin/../lib/gcc/sparc-sun-solaris2.9
/3.4.2/spar
cv9/crt1.o' is incompatible with sparc output
/usr/ccs/bin/ld: warning: sparc:v9 architecture of input file
`/work/net-local-b/sparc-sun-solaris2.9/bin/../lib/gcc/sparc-sun-solaris2.9
/3.4.2/spar
cv9/crti.o' is incompatible with sparc output
/usr/ccs/bin/ld: warning: sparc:v9 architecture of input file
`/usr/ccs/lib/sparcv9/values-Xa.o' is incompatible with sparc output
/usr/ccs/bin/ld: warning: sparc:v9 architecture of input file
`/work/net-local-b/sparc-sun-solaris2.9/bin/../lib/gcc/sparc-sun-solaris2.9
/3.4.2/spar
cv9/crtbegin.o' is incompatible with sparc output
/usr/ccs/bin/ld: warning: sparc:v9 architecture of input file
`/var/tmp//cckWp3Sb.o' is incompatible with sparc output
/usr/ccs/bin/ld: warning: sparc:v9 architecture of input file
`/work/net-local-b/sparc-sun-solaris2.9/bin/../lib/gcc/sparc-sun-solaris2.9
/3.4.2/spar
cv9/crtend.o' is incompatible with sparc output
/usr/ccs/bin/ld: warning: sparc:v9 architecture of input file
`/work/net-local-b/sparc-sun-solaris2.9/bin/../lib/gcc/sparc-sun-solaris2.9
/3.4.2/spar
cv9/crtn.o' is incompatible with sparc output
configure:3990: $? = 0
configure:4036: result: a.out
configure:4041: checking whether the C compiler works
configure:4047: ./a.out
configure: line 1: 25817 Bus Error               (core dumped) ./$ac_file
configure:4050: $? = 138
configure:4059: error: cannot run C compiled programs.

I would appreciate any help with resolving the problem.

Thanks,

Min

	[[alternative HTML version deleted]]

