unable to compile on solaris9
Carlson, Judy
jcarlson at cincom.com
Thu Jun 2 00:38:18 CEST 2011
We continue to have problems with gmp when trying to make OpenCOBOL on
the Solaris9 platform. Do we have a successful gmp build?
1. Here is a portion of the output from the OpenCOBOL make:
/usr/ccs/bin/ld -G -z text -h libcob.so.1 -o .libs/libcob.so.1.0.0
.libs/libcob
_la-common.o .libs/libcob_la-call.o .libs/libcob_la-strings.o
.libs/libcob_la-mo
ve.o .libs/libcob_la-numeric.o .libs/libcob_la-intrinsic.o
.libs/libcob_la-filei
o.o .libs/libcob_la-termio.o .libs/libcob_la-screenio.o -lm
/usr/local/lib/libg
mp.a -lrt -lcurses -ldl -lc
Text relocation remains referenced
against symbol offset in file
__gmpz_pow_ui 0x41c
/usr/local/lib/libgmp.a(fac_ui.o
)
__gmpz_mul_2exp 0x17c
/usr/local/lib/libgmp.a(fac_ui.o
)
__gmpz_mul_2exp 0x28c
/usr/local/lib/libgmp.a(fac_ui.o
)
__gmpz_mul_2exp 0x530
/usr/local/lib/libgmp.a(fac_ui.o
)
__gmpz_set_ui 0x34
/usr/local/lib/libgmp.a(lt37-pow
_ui.o)
__gmpz_set 0x1fc
/usr/local/lib/libgmp.a(fac_ui.o
)
__gmpz_set 0x3c
/usr/local/lib/libgmp.a(lt37-pow
_ui.o)
__gmpz_mul 0x164
/usr/local/lib/libgmp.a(fac_ui.o
)
.
.
.
.
.
.
ld: fatal: relocations remain against allocatable but non-writable
sections
2. The parameters given to gmp configure:
CC=cc
export CC
./configure --disable-shared --build=ultrasparc-sun-solaris2.9
ABI=32
3. Location of cc is:
which cc
/opt/SUNWspro/WS6U2/bin/cc
4. Version of cc is:
cc -V
cc: Sun WorkShop 6 update 2 C 5.3 Patch 111679-14 2004/02/20
5. Solaris9 config:
Config.guess
ultrasparc2i-sun-solaris2.9
6. We're unable to build a gmp shared library.
Any help would be appreciated!
Thanks,
Judy Carlson
-----------------------
Received the following message from Marc Glisse:
Yes, ditch /usr/ucb. Remove it from your PATH. Make sure the cc command
refers to the proper compiler, not the historical compatibility one.
--
Marc Glisse
-----Original Message-----
From: Goslin, Paul
Sent: Thursday, May 26, 2011 2:29 PM
To: gmp-discuss at gmplib.org
Cc: Carlson, Judy
Subject: unable to compile on
Hello,
I am attempting to build/install gmp-5.0.2 (required by Open-Cobol) on a
Solaris box (config.guess > ultrasparc2i-sun-solaris2.9),
hostname=hummer. A configure succeeds, but When I attempt to compile
with 'make', it fails with:
Making all in doc
/bin/bash ./libtool --tag=CC --mode=compile cc -Xc -D__EXTENSIONS__
-Xc -D__EXTENSIONS__ -DHAVE_CONFIG_H -I. -D__GMP_WITHIN_GMP -xO4
-xarch=v8plus -xchip=ultra2i -c -o invalid.lo invalid.c
libtool: compile: cc -Xc -D__EXTENSIONS__ -Xc -D__EXTENSIONS__
-DHAVE_CONFIG_H -I. -D__GMP_WITHIN_GMP -xO4 -xarch=v8plus -xchip=ultra2i
-c invalid.c -o invalid.o
ucbcc: Warning: Option
-YP,:/usr/ucblib:/opt/SUNWspro/WS6U2/bin/../lib:/opt/SUNWspro/WS6U2/bin:
/usr/ccs/lib:/usr/lib passed to ld, if ld is invoked, ignored otherwise
ucbcc: Warning: "-Xc" redefines compatibility mode from "SunC
transition" to "strict ANSI"
"/usr/ucbinclude/signal.h", line 49: syntax error before or at: int
"/usr/ucbinclude/signal.h", line 49: warning: undefined or missing type
for: int
"/usr/ucbinclude/sys/wait.h", line 68: warning: nonportable bit-field
type
"/usr/ucbinclude/sys/wait.h", line 69: warning: nonportable bit-field
type
"/usr/ucbinclude/sys/wait.h", line 70: warning: nonportable bit-field
type
"/usr/ucbinclude/sys/wait.h", line 71: warning: nonportable bit-field
type
"/usr/ucbinclude/sys/wait.h", line 84: warning: nonportable bit-field
type
"/usr/ucbinclude/sys/wait.h", line 85: warning: nonportable bit-field
type
"/usr/ucbinclude/sys/wait.h", line 86: warning: nonportable bit-field
type
*** Error code 1
make: Fatal error: Command failed for target `invalid.lo'
Current working directory /usr/local/gmp-5.0.2
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/gmp-5.0.2
*** Error code 1
make: Fatal error: Command failed for target `all'
hummer #
---------------------------------------------------------------
Anyone have any suggestions as to how to get this to work ???
Thanks,
Paul
More information about the gmp-discuss
mailing list