Skip to main content

Build error: cannot read: /JavaCodeCompact.java

7 replies [Last post]
terrencebarr
Offline
Joined: 2004-03-04

Ok, my turn to ask a question. Other people might run into this as well:

I am executing a build from bash within cygwin:

==================================
JVMBuildSpace = /home/work/phoneme-mr1-win-b04/output/cldc
JVMWorkSpace = /home/work/phoneme-mr1-win-b04/src-distro/cldc
ROMIZING = true
SHELL = /bin/sh
ENABLE_ISOLATES = true
ENABLE_MONET =
==================================
==============================
creating build tools...
==============================
make[1]: Entering directory `/home/work/phoneme-mr1-win-b04/output/cldc/win32_i386/tools'
error: cannot read: /home/work/phoneme-mr1-win-b04/src-distro/cldc/src/tools/jcc/JavaCodeCompact.java
1 error
make[1]: *** [jcc.jar] Error 1
make[1]: Leaving directory `/home/work/phoneme-mr1-win-b04/output/cldc/win32_i386/tools'
make: *** [tools] Error 2

Of course, JavaCodeCompact.java *is* readable from within the bash shell, e.g. doing
$ cat /home/work/phoneme-mr1-win-b04/src-distro/cldc/src/tools/jcc/JavaCodeCompact.java

Any ideas? Thanks,

-- Terrence

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
terrencebarr
Offline
Joined: 2004-03-04

I am not mounting any extra directories, only what cygwin mounts by default:

[code]
> mount
C:\cygwin\bin on /usr/bin type system (binmode)
C:\cygwin\lib on /usr/lib type system (binmode)
C:\cygwin on / type system (binmode)
c: on /cygdrive/c type system (binmode,noumount)

[/code]
-- Terrence

null

terrencebarr
Offline
Joined: 2004-03-04

Fixed it!

Thanks to the previous posters I can confirm that downgrading to make 3.80 as well as ensuring that [i]all[/i] paths have the format

[code]:/cygwin/home/work/phoneME_feature[/code]

fixed the problem. That means specifically all path variables defined for your build, such as JVMWorkSpace, etc. A separate TOOLS_DIR does not exist for phoneME Feature (as it does in phoneME Advanced) so there is no need to worry about it.

The error is really bizarre. In tools.make

[code]@more
/JavaCodeCompact[/code]

would work but an immediately following

[code]@javac ...
/javaCodeCompact[/code]

would not

By the way, I am using the current cygwin version from cygwin.com, *not* cyg4me.

-- Terrence

jonathan
Offline
Joined: 2003-06-12

Congratulations! So can you please confirm for me that you were able to build on Windows using cygwin without mounting any directories as cygwin drives?

I've been able to build without mounting drives using Cyg4Me but was hoping to hear that the same thing works with cygwin.

Thanks,
Jonathan

terrencebarr
Offline
Joined: 2004-03-04

The mount now works but even after changing my paths to /phoneME_feature I still get the JavaCodeCompact.java read error.

Don't we all just love Windows ;-(

-- Terrence

terrencebarr
Offline
Joined: 2004-03-04

Andreas,

Thanks. I've installed make 3.80 but it doesn't seem to help. Also, in phoneME feature I cannot use DOS-style paths, all paths have to be UNIX so some of the workarounds described for phoneME Advanced won't work.

I've tried cygwin paths "/home/work/phoneME_feature" as well as absolute "/cygdrive/c/cygwin/home/work/phoneME_feature". No help.

I've also tried mounting phoneME_feature under cygwin root:

/cygdrive/c/cygwin/home> mount -f -b c:\cygwin\home\work\phoneME_feature /phoneME_feature

but this always returns "illegal argument".

Any ideas?

-- Terrence

lua2010
Offline
Joined: 2006-11-16

Does this work?
mount -f -b c\:/cygwin/home/work/phoneME_feature /phoneME_feature

lua2010
Offline
Joined: 2006-11-16

Hi,
i had with phoneme advanced a similar build problem. make 3.81 can cause these problem.
look at
http://forums.java.net/jive/thread.jspa?threadID=22257&tstart=0

Andreas