logo       

Re: Building ghc-6.4-branch on Solaris: msg#00023

lang.haskell.glasgow.bugs

Subject: Re: Building ghc-6.4-branch on Solaris

On Thu, 2005-06-09 at 15:24 +0200, Christian Maeder wrote:
> Axel Simon wrote:
> > gcc -O -Wall -I../../../ghc/includes -I../../../ghc/rts
> > -I/core/include -c env.c -o env.p_o
> > cc1: /core/include: Not a directory
>
> My gcc does not complain about that missing directory. I was able to
> create a working installation under solaris with:
>
> ./configure --disable-opengl --disable-glut --disable-openal

Ouch, yes, that is easier than my fiddling. Thanks. Regarding my
problem, I changed the Makefile in hslibs:

Index: posix/cbits/Makefile
===================================================================
RCS file: /cvs/fptools/hslibs/posix/cbits/Makefile,v
retrieving revision 1.17
diff -r1.17 Makefile
7,8c7
< SRC_CC_OPTS += -I$(GHC_INCLUDE_DIR) -I$(GHC_RUNTIME_DIR) \
< -I$(GHC_LIB_DIR)/core/include
---
> SRC_CC_OPTS += -I$(GHC_INCLUDE_DIR) -I$(GHC_RUNTIME_DIR)

Now it works for me, too.

> if I compile the ghc without "SplitObjs=NO" in mk/build.mk I get
> annoying but probably harmless warnings during compilations:
>
> Warning: retaining unknown function `getpwuid_r' in output from C compiler
> Warning: retaining unknown function `getpwnam_r' in output from C compiler
> Warning: retaining unknown function `getgrgid_r' in output from C compiler
> Warning: retaining unknown function `getgrnam_r' in output from C compiler

I haven't overridden anything in build.mk, so I assume SplitObjs=YES.
When would I observe these warnings?

Axel.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise