Building with cygwin
Salter, Thomas A
Thomas.Salter at unisys.com
Fri Jan 8 20:49:21 UTC 2010
Actually, I can't just run with that one. I've a minor change to make related to tabs that's needed in my environment. Is that make any different than the version from GNU with the CYGWIN option turned on? I've tried that combination.
I suspect I need to back up and try to build the open jdk source as-is, without changes, using cygwin. I was trying to skip directly from using MKS, while leaving private changes in the make files and source.
That said, the problems I'm seeing do look like quote problems.
By the way, the readme at http://hg.openjdk.java.net/jdk7/build/raw-file/tip/README-builds.html#gmake still says to avoid gmake 3.81.
What about the cygwin version? The readme just says 1.5.12 or newer. I'm using 1.7.1, which seems to be quite new.
-----Original Message-----
From: Kelly.Ohair at Sun.COM [mailto:Kelly.Ohair at Sun.COM]
Sent: Friday, January 08, 2010 1:21 PM
To: Salter, Thomas A
Cc: build-dev at openjdk.java.net
Subject: Re: Building with cygwin
OK. Humm...
I know that GNU make 3.81 has some shell problems with MKS, but I thought
cygwin was fine. And the problem was around the way the bash shell does quotes.
Can you try the GNU make at
http://cr.openjdk.java.net/~ohair/MakeBinaries/cygwin-windows-i586/
Which should be the same as: http://www.cmake.org/files/cygwin/make.exe
-kto
Salter, Thomas A wrote:
> That wasn't it. The path I'm using is:
> Visual Studio (several directories)
> GNU Make
> usr/bin
> JDK/bin
> Windows & Windows/System
>
> The only echo.exe on my system is in cygwin/bin.
> In any case the Windows echo is built-in to the cmd shell.
>
>
>
> -----Original Message-----
> From: Kelly.Ohair at Sun.COM [mailto:Kelly.Ohair at Sun.COM]
> Sent: Thursday, January 07, 2010 7:22 PM
> To: Salter, Thomas A
> Cc: build-dev at openjdk.java.net
> Subject: Re: Building with cygwin
>
> On both these problems I would suspect that somehow you have the
> wrong "echo", and maybe it thinks it's the windows cmd echo?
>
> So check your PATH setting and make sure that /usr/bin is
> before any Windows version of echo.
>
> -kto
>
>
> Salter, Thomas A wrote:
>> I've been building the JDK for years through the Sun partner program
>> using MKS. Now I'm trying to build it using cygwin. I've gotten
>> through the obvious path errors to the point that the make starts to
>> run. I'm getting a lot of errors, but two in particular seem like they
>> should be easy to diagnose. I'm sure I'm missing something simple.
>>
>> 1. Errors that seem related to parameter parsing by gnumake or bash:
>>
>> C:/Java/Jdkdrive/cygwin/bin/tr: missing operand after `[A-Z] [a-z]'
>> Two strings must be given when translating.
>> Try `C:/Java/Jdkdrive/cygwin/bin/tr --help' for more information.
>>
>> This translate pattern only seems to appear once in the various JDK make
>> files:
>>
>> jdk\make\common\shared\Defs-control.gmk:
>> BUNDLE_DATE := $(shell $(DATE) '+%d_%b_%Y' | $(TR) "[A-Z]" "[a-z]")
>>
>> It seems as though two parameters were collapsed into one.
>>
>>
>> 2. Problem with printf in make files:
>>
>> This string appears in the output many times:
>> n%-60.60snn#####
>>
>> This seems to originate from this or similar code in make\Defs-internal.gmk:
>>
>> define MakeStart
>> $(PRINTF) "\n\n%s\n%s\n##### %-60.60s #####\n%s\n" \
>> "########################################################################" \
>> "########################################################################" \
>> "Entering $1 for target $2" \
>> "########################################################################"
>> endef
>>
>>
>>
>> Any ideas what I might have done wrong?
>>
>> Software versions:
>>
>> * latest cygwin, version 1.7.1, which I just downloaded this week.
>> * GNU Make is version 3.80, source downloaded from GNU a long time
>> ago. Rebuilt this week setting the cygwin option instead of the
>> mks option.
>> * Windows 7, 64-bit OS. (but I'm using 32-bit versions of the
>> utilities).
>>
>>
>>
>>
More information about the build-dev
mailing list