[Genome] compiling ucsc genome browser on mac os x

Hiram Clawson hiram at soe.ucsc.edu
Thu Feb 8 09:40:21 PST 2007


Good Morning Gerald:

For this parasol build, you will need to create a directory:
	mkdir parasol/lib/ppc
(actually for an Intel Mac, you probably want i686 instead
	of ppc.)

Then, to get your compiler to by-pass the warnings as errors,
fixup one of the ifeq statements in src/inc/common.mk to read:
ifeq (darwin,$(findstring darwin,${OSTYPE}))
     HG_WARN_ERR = -DJK_WARN -Wall -Werror -Wno-unused-variable
else
   ifeq (solaris,$(findstring solaris,${OSTYPE}))
     HG_WARN_ERR = -DJK_WARN -Wall
   else
     HG_WARN_ERR = -DJK_WARN -Wall -Werror
   endif
endif

I just happened to fixup this ifeq darwin line yesterday.
I discovered that OSTYPE was in my environment as darwin7.0
but it had not been exported.  So, make sure your OSTYPE is
exported.  I'm curious, does the Intel Mac indicate an OSTYPE
of darwinX.x ?

Although, it looks like you would also need to eliminate the -Werror
since your new compiler is actually complaining about something else.
Usually we only have warnings about unused variables.  I'll need
to find someone here with an Intel Mac to see how well it builds
the source tree.

How did you happen to get into the parasol directory to be
creating it ?  Are you planning on using parasol to operate
a cluster ?

--Hiram

On 2007 Feb 07, , at 7:38 PM, Gerald Quon wrote:

> Hi,
>
> I'm trying to compile the genome browser on my Mac OS X on my Mac Pro
> (intel core machines).  I can't seem to compile the individual 
> programs,
> I get a lot of errors like the following:
>
>
> ------------------------------------------
> G:~/kent/src/parasol gerald$ make
> cd lib && make
> gcc -O  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
> -DMACHTYPE_ppc -DJK_WARN -Wall -Werror -I../inc -I../../inc
> -I../../../inc -I../../../../inc -I../../../../../inc  -o broadData.o 
> -c
> broadData.c
> cc1: warnings being treated as errors
> broadData.c: In function 'bdReceive':
> broadData.c:54: warning: pointer targets in passing argument 6 of
> 'recvfrom' differ in signedness
> broadData.c: In function 'bdParseSectionQueryMessage':
> broadData.c:215: warning: pointer targets in assignment differ in 
> signedness
> make[1]: *** [broadData.o] Error 1
> make: *** [all] Error 2
> -----------------------------------------
>
> I've set MACHTYPE to be 'ppc'.  any ideas?
>
> Gerald



More information about the Genome mailing list