public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
* Build problem on ABM AIX + solution
@ 2001-12-19 13:20 eric.van.der.velde
  2001-12-19 13:20 ` Brian Gough
  2001-12-19 13:20 ` Build problem on ABM AIX + solution gsl-discuss
  0 siblings, 2 replies; 14+ messages in thread
From: eric.van.der.velde @ 2001-12-19 13:20 UTC (permalink / raw)
  To: gsl-discuss

Trying to make gsl on an IBM AIX 4.3 (xlc) system failed in the file
test/results.c (problems concerning the va_list)

The problem is that __STDC__ is not defined on an AIX system (which should
be), and the prepocessor takes the 'wrong' decision.
To solve this problem I modified the test/results file all the occurences
of

#ifdef __STDC__

to

#if defined(__STDC__) || defined(AIX)

Then I added -DAIX to the CFLAGS and ran ./configure again (followed by a
make)

I hope this can solve you build problems on AIX in the future



Here some info on the AIX compiler:

the IBM C compiler doesn't define __STDC__ (despite the fact
that its entirely ANSI compatible - actually it does define __STDC__ if
you put it in "strict" mode, but then it treats an allocation of an "int"
to an "unsigned int" as a severe error and stops. Thus nobody uses the
strict mode, thus __STDC__ is rarely defined. In addition it generates an
error message if you define __STDC__ manually....) Therefore could you put
in a || defined (AIX) to all your #ifdef __STDC__...?

Eric




___________________________________________________________________________

This e-mail is sent for the sole attention of the identified addressee and its
contents are provided for information purposes only. Fortis Bank makes no
warranty or representation as to the accuracy and completeness of any
information and does not assume whatever commitment hereby. Legally binding
obligation can only arise for, or be entered into on behalf of, Fortis Bank by
means of a written instrument, signed by two duly authorised representatives of
Fortis Bank. Fortis Bank excludes any liability whatsoever for any direct or
consequential loss arising from the use, or reliance on, this e-mail or its
contents.
___________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: how do you build a 64-bit library on IRIX
@ 2001-12-19 13:20 Charlie Zender
  0 siblings, 0 replies; 14+ messages in thread
From: Charlie Zender @ 2001-12-19 13:20 UTC (permalink / raw)
  To: GSL Discussion List; +Cc: Charles Yee

It looks to me like you are using the correct flags (-mabi=64)
but that somewhere, somehow, you are attempting to link to a 32 bit
object file. Many IRIX systems keep the 32-bit and 64-bit versions
in different locations so make sure you are pointing to the correct
ABI libraries (with -L flag to linker)

Here are the flags I use to build 64 bit libraries on IRIX with gcc:

C++ := g++ -w
CC := gcc
GCC_ABI_FLG := -mabi=64
GCC_LDFLAGS_SZ_SPC := ${GCC_ABI_FLG} -mips4 -L/usr/local/lib/mabi=64
LDFLAGS += $(GCC_LDFLAGS_SZ_SPC)
CFLAGS += ${GCC_ABI_FLG} -O2 -Wall
C++FLAGS := ${CFLAGS}

Good luck,
Charlie
-- 
Charlie Zender zender@uci.edu (949) 824-2987/FAX-3256, Department of
Earth System Science, University of California, Irvine CA 92697-3100

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2001-12-19 13:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-19 13:20 Build problem on ABM AIX + solution eric.van.der.velde
2001-12-19 13:20 ` Brian Gough
2001-12-19 13:20   ` gsl-discuss
2001-12-19 13:20     ` Brian Gough
2001-12-19 13:20     ` how do you build a 64-bit library on IRIX Charles Yee
2001-12-19 13:20       ` Brian Gough
2001-12-19 13:20       ` gsl-discuss
2001-12-19 13:20         ` Brian Gough
2001-12-19 13:20           ` William Brower
2001-12-19 13:20             ` Brian Gough
2001-12-19 13:20         ` Charles Yee
2001-12-19 13:20           ` Brian Gough
2001-12-19 13:20 ` Build problem on ABM AIX + solution gsl-discuss
  -- strict thread matches above, loose matches on Subject: below --
2001-12-19 13:20 how do you build a 64-bit library on IRIX Charlie Zender

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).