I find this works for me. Removing the CC / CXX references from the make line causes the printf issues whilst compiling hotspot, so I assume that, when specified, they are working as advertised.
Cheers Dave -- crimson:~ dave$ cat jdk7/bsd-port/build.sh export LC_ALL=C export LANG=C unset CLASSPATH unset JAVA_HOME make \ ALT_BOOTDIR=/Users/dave/jdk7/soylatte16-i386-1.0.3 \ ALT_FREETYPE_HEADERS_PATH=/usr/X11R6/include \ ALT_FREETYPE_LIB_PATH=/usr/X11R6/lib \ ALT_JIBX_LIBS_PATH=/Users/dave/jdk7/jibx/lib \ ALT_CUPS_HEADERS_PATH=/usr/include \ ANT_HOME=/usr/share/ant \ ARCH_DATA_MODEL=32 \ NO_DOCS=true \ CC="gcc-4.0" \ CXX="g++-4.0" \ HOTSPOT_BUILD_JOBS=2 On 08/10/2009, at 8:34 AM, John Rose wrote: > Are you sure you're getting the right compilers? I haven't said > this yet, but I found I had to hack harder to override them: > > -------- > export ALT_COMPILER_PATH=$(pwd -P)/ALT_COMPILER_PATH/ > -------- > ls -la ALT_COMPILER_PATH/ > total 24 > drwxr-xr-x 5 jrose staff 170 Oct 3 16:59 . > drwxr-xr-x 30 jrose staff 1020 Oct 7 14:30 .. > lrwxr-xr-x 1 jrose staff 8 Oct 3 16:58 .SOURCE -> /usr/bin > lrwxr-xr-x 1 jrose staff 15 Oct 3 16:59 g++ -> .SOURCE/g++-4.0 > lrwxr-xr-x 1 jrose staff 15 Oct 3 16:59 gcc -> .SOURCE/gcc-4.0 > -------- > > Maybe that's your problem too? (And maybe there's a better way than > mine to fix it?) Basically, the forest-level makefile does not > respect those environment variables, although the hotspot repo. > makefiles do. It's confusing, but apparently the forest-level > makefiles refer to the jdk repo. makefiles, which in turn have the > names "gcc", "g++" hard-coded, and require a setting to > ALT_COMPILER_PATH to override. > > I think the philosophy here (Kelly O'Hair would know for sure) is to > minimize the environmental inputs to the makefiles, making them be > clearly marked, hence the "ALT_" convention. > > -- John > > On Oct 7, 2009, at 1:31 PM, Brett Hoerner wrote: > >> Hi guys, >> >> Sorry I'm adding more to this (as some of you seem to have it working >> now) but I'm trying to round up the process of successfully building >> Java 7 on Snow Leopard into one place so it can put on a wiki or >> blogged or something. > >