building (or not) OpenJDK 7 on Mac OS X

Ray Kiddy ray at ganymede.org
Thu Dec 10 21:49:51 UTC 2009


On Dec 10, 2009, at 9:05 AM, Andrew John Hughes wrote:

> 2009/12/10 Ray Kiddy <ray at ganymede.org>:
>>
>> I just wanted to update build people on this issue. There are pages  
>> on the
>> wiki for building on Mac OS X 10.5.8 and on Snow Leopard. See the  
>> "Building
>> from source" section of http://wikis.sun.com/display/OpenJDK/ 
>> BSDPort. I have
>> updated http://wikis.sun.com/display/OpenJDK/Darwin9Build with  
>> information
>> from an external post of Landon Fuller's. (FYI, I checked with him  
>> about the
>> copying and he was ok with it.) Since I am not using Snow Leopard,  
>> I am
>> leaving that page to someone else.
>>
> <snip>

> Sounds like a bug from b74.  Is your bsd-port tree up-to-date?
>
> You can work around it by setting ALT_JDK_IMPORT_PATH to the same as
> ALT_BOOTDIR but you shouldn't need to do so generally.
> -- 
> Andrew :-)
>


If I do "hg fupdate" in the bsd-ports directory, I get nothing new and  
if I do "hg tags", I get

% hg tags
tip                              153:d7f4d0dd8d30
jdk7-b74                         150:2c88089b6e1c
...

So i think I am current.

I added "ALT_JDK_IMPORT_PATH=(same value as ALT_BOOTDIR)" to my  
build.sh. I got farther before it broke.

I remembered that I usually remove or do not install X11 to try to  
save space, so I went back to my DevTools dmg  
(iphone_sdk_3.1.2_with_xcode_3.1.4__leopard__9m2809.dmg) and installed  
the X11SDK.pkg. And I got farther before I broke.

Then I see it is trying to find an X11 library because I can see "-L/ 
usr/X11R6/lib" and I only have /usr/X11/lib. So, I added " X11_PATH=/ 
usr/X11" to my build.sh. The build still broke.

I tried setting ALT_X11_PATH and I still get the same error. The weird  
thing is that I can look is /usr/X11/lib and I see both libXext.la and  
libX11.la.

Full log is at http://www.wykiwyk.com/openjdk/buildLogs/log_openjdk7_20091210_1254.txt

I will update the wiki as I see something that works.

cheers - ray

/usr/bin/gcc  -O2   -fno-strict-aliasing -fPIC -W -Wall  -Wno-unused - 
Wno-parentheses -m32 -fno-omit-frame-pointer -D_LITTLE_ENDIAN - 
mstackrealign  -DSPLASHSCREEN -DWITH_X11 -DNDEBUG -Di586 - 
DARCH='"i586"' -D_ALLBSD_SOURCE -DRELEASE='"1.7.0-internal"' - 
D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -I. -I/Users/ray/ 
Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/ 
CClassHeaders -I../../../src/solaris/javavm/export -I../../../src/ 
share/javavm/export -I../../../src/share/native/common -I../../../src/ 
solaris/native/common -I../../../src/share/native/sun/awt -I../../../ 
src/solaris/native/sun/awt   -I/usr/X11/include -I/usr/X11/include/X11/ 
extensions -I../../../src/solaris/native/sun/awt/splashscreen - 
I../../../src/share/native/sun/awt/splashscreen -I../../../src/share/ 
native/sun/awt/image/jpeg -I../../../src/share/native/java/util/zip/ 
zlib-1.2.3 -DPNG_NO_MMX_CODE  -m32  -L/Users/ray/Projects/OpenJDK/bsd- 
port/build/bsd-i586/lib/i386   -dynamiclib  -o /Users/ray/Projects/ 
OpenJDK/bsd-port/build/bsd-i586/lib/i386/libsplashscreen.dylib    / 
Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/java_awt_SplashScreen.o    /Users/ray/Projects/ 
OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/ 
splashscreen_gfx_impl.o    /Users/ray/Projects/OpenJDK/bsd-port/build/ 
bsd-i586/tmp/sun/sun.awt/splashscreen/obj/splashscreen_gif.o    /Users/ 
ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/splashscreen_impl.o    /Users/ray/Projects/OpenJDK/ 
bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/ 
splashscreen_jpeg.o    /Users/ray/Projects/OpenJDK/bsd-port/build/bsd- 
i586/tmp/sun/sun.awt/splashscreen/obj/splashscreen_png.o    /Users/ray/ 
Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/ 
obj/splashscreen_sys.o    /Users/ray/Projects/OpenJDK/bsd-port/build/ 
bsd-i586/tmp/sun/sun.awt/splashscreen/obj/png.o    /Users/ray/Projects/ 
OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/ 
pngerror.o    /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/ 
sun/sun.awt/splashscreen/obj/pngget.o    /Users/ray/Projects/OpenJDK/ 
bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/pngmem.o    / 
Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/pngpread.o    /Users/ray/Projects/OpenJDK/bsd-port/ 
build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/pngread.o    /Users/ 
ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/pngrio.o    /Users/ray/Projects/OpenJDK/bsd-port/ 
build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/pngrtran.o    /Users/ 
ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/pngrutil.o    /Users/ray/Projects/OpenJDK/bsd-port/ 
build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/pngset.o    /Users/ray/ 
Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/ 
obj/pngtrans.o    /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/ 
tmp/sun/sun.awt/splashscreen/obj/pngwio.o    /Users/ray/Projects/ 
OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/ 
pngwrite.o    /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/ 
sun/sun.awt/splashscreen/obj/pngwtran.o    /Users/ray/Projects/OpenJDK/ 
bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/ 
pngwutil.o    /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/ 
sun/sun.awt/splashscreen/obj/dgif_lib.o    /Users/ray/Projects/OpenJDK/ 
bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/gif_err.o    / 
Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/gifalloc.o    /Users/ray/Projects/OpenJDK/bsd-port/ 
build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/jcomapi.o    /Users/ 
ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/jdapimin.o    /Users/ray/Projects/OpenJDK/bsd-port/ 
build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/jdapistd.o    /Users/ 
ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/jdcoefct.o    /Users/ray/Projects/OpenJDK/bsd-port/ 
build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/jdcolor.o    /Users/ 
ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/jddctmgr.o    /Users/ray/Projects/OpenJDK/bsd-port/ 
build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/jdhuff.o    /Users/ray/ 
Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/ 
obj/jdinput.o    /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/ 
tmp/sun/sun.awt/splashscreen/obj/jdmainct.o    /Users/ray/Projects/ 
OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/ 
jdmarker.o    /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/ 
sun/sun.awt/splashscreen/obj/jdmaster.o    /Users/ray/Projects/OpenJDK/ 
bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/jdmerge.o    / 
Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/jdphuff.o    /Users/ray/Projects/OpenJDK/bsd-port/ 
build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/jdpostct.o    /Users/ 
ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/jdsample.o    /Users/ray/Projects/OpenJDK/bsd-port/ 
build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/jerror.o    /Users/ray/ 
Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/ 
obj/jidctflt.o    /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/ 
tmp/sun/sun.awt/splashscreen/obj/jidctfst.o    /Users/ray/Projects/ 
OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/ 
jidctint.o    /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/ 
sun/sun.awt/splashscreen/obj/jidctred.o    /Users/ray/Projects/OpenJDK/ 
bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/jmemmgr.o    / 
Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/jmemnobs.o    /Users/ray/Projects/OpenJDK/bsd-port/ 
build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/jquant1.o    /Users/ 
ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/jquant2.o    /Users/ray/Projects/OpenJDK/bsd-port/ 
build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/jutils.o    /Users/ray/ 
Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/ 
obj/jcapimin.o    /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/ 
tmp/sun/sun.awt/splashscreen/obj/jcapistd.o    /Users/ray/Projects/ 
OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/ 
jccoefct.o    /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/ 
sun/sun.awt/splashscreen/obj/jccolor.o    /Users/ray/Projects/OpenJDK/ 
bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/ 
jcdctmgr.o    /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/ 
sun/sun.awt/splashscreen/obj/jchuff.o    /Users/ray/Projects/OpenJDK/ 
bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/jcinit.o    / 
Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/jcmainct.o    /Users/ray/Projects/OpenJDK/bsd-port/ 
build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/jcmarker.o    /Users/ 
ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/jcmaster.o    /Users/ray/Projects/OpenJDK/bsd-port/ 
build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/jcparam.o    /Users/ 
ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/jcphuff.o    /Users/ray/Projects/OpenJDK/bsd-port/ 
build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/jcprepct.o    /Users/ 
ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/jcsample.o    /Users/ray/Projects/OpenJDK/bsd-port/ 
build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/jctrans.o    /Users/ 
ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/jdtrans.o    /Users/ray/Projects/OpenJDK/bsd-port/ 
build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/jfdctflt.o    /Users/ 
ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/jfdctfst.o    /Users/ray/Projects/OpenJDK/bsd-port/ 
build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/jfdctint.o    /Users/ 
ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/compress.o    /Users/ray/Projects/OpenJDK/bsd-port/ 
build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/deflate.o    /Users/ 
ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/gzio.o    /Users/ray/Projects/OpenJDK/bsd-port/build/ 
bsd-i586/tmp/sun/sun.awt/splashscreen/obj/infback.o    /Users/ray/ 
Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/ 
obj/inffast.o    /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/ 
tmp/sun/sun.awt/splashscreen/obj/inflate.o    /Users/ray/Projects/ 
OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/ 
inftrees.o    /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/ 
sun/sun.awt/splashscreen/obj/trees.o    /Users/ray/Projects/OpenJDK/ 
bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/uncompr.o    / 
Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/ 
splashscreen/obj/zadler32.o    /Users/ray/Projects/OpenJDK/bsd-port/ 
build/bsd-i586/tmp/sun/sun.awt/splashscreen/obj/zcrc32.o    /Users/ray/ 
Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/sun/sun.awt/splashscreen/ 
obj/zutil.o   -liconv -L/usr/X11/lib -lX11 -lXext -lm -pthread
ld: library not found for -lX11
collect2: ld returned 1 exit status
make[4]: *** [/Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/lib/ 
i386/libsplashscreen.dylib] Error 1
make[3]: *** [all] Error 1
make[2]: *** [all] Error 1
make[1]: *** [jdk-build] Error 2
make: *** [build_product_image] Error 2

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/build-dev/attachments/20091210/6597d272/attachment.html>


More information about the build-dev mailing list