Skip to main content

File not found - X-*

3 replies [Last post]
mrothman
Offline
Joined: 2005-07-14
Points: 0

This is a message I'm getting repeatedly during the j2se portion of the build. I'm on win32. I don't know if there's a connection, but some of the tools don't build properly - the class files associated with them don't seem to get built at all. For example, javah and javadoc. Others seem to be built fine. Has anyone seen anything like this? I have searched fairly rigourously into the make files, but before I get down to putting in my own echo statements, I thought I'd see if someone has an idea. (At the risk of stating the obvious, the source files do seem to all be where I'd expect them to be). Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mrothman
Offline
Joined: 2005-07-14
Points: 0

Thanks. The clues you gave were enough to track down the issue: I had set an ALT_OUTPUTDIR, and apparently not every case in the makefiles consults that. As soon as I let it use the default output directory, everything started humming along.

kellyohair
Offline
Joined: 2004-09-03
Points: 0

You should be able to set ALT_OUTPUTDIR, but it does need to be an absolute path, not a relative path. In fact, all ALT* paths should be absolute paths because they get passed around to Makefiles in other directories and relative paths won't make any sense once you are outside the directory it is relative to.

-kto

kellyohair
Offline
Joined: 2004-09-03
Points: 0

You haven't provided much to go on, but I can provide a little background.

There are some template Java source files that need to be processed before being sent to javac, usually they have names that end with '-template.java', or sometimes they start with 'X-' or contain '-X-' in their names. Once processed, the resulting processed Java sources will show up in the build/tmp/gensrc area somewhere. Unfortunately these template files are kept with the normal java source, so when it comes time to run javac, we want the normal Java sources from the src/ tree (minus the template files), plus all the generated sources from the build/tmp/gensrc tree.

The makefiles use a 'find' command and a -prune command to filter these files out of the list. But I don't know why 'find' would fail like this.

There is one other place where it might be filtering out the 'X-' files, and that would be in the creation of the src.zip file. That area of the makefiles has changed recently, but changed to also use a 'find' command with a prune filter. You might look into the file j2se/make/common/Release.gmk and see if maybe something could be wrong with the filtering of the 'X-' files out of src.zip.

Can you send me the exact messages (last 10-20 lines) that the build produces when this error happens?

-kto