Build path has a 54/55 characters limit

Diego 'Flameeyes' Pettenò flameeyes at gmail.com
Wed May 9 18:49:34 UTC 2007


Another problem I've seen with OpenJDK build on Gentoo Linux AMD64 is
with the limit of the path for the build directory.
With a one on a million chance, the default path used by Portage
(/var/tmp/portag/dev-java/openjdk-1.7.0.0_alpha12/work/openjdk) to
extract the sources and then to build, is long the exact limit for that
path.
On x86 the path is good enough to complete the build, but as on amd64
the name used to identify the build is "amd64", whereas on x86 is
"i486", the single extra character there makes the build fail in a few
calls to javac with "Argument list too long" error from execve().
If the path is longer, there are even more calls to fail.

At first I thought it was an use case for xargs, but the problem comes
from execve() so it might be just impossible to solve the issue as it
is. Maybe the link stages might be split up in intermediate files?

-- 
Diego "Flameeyes" Pettenò
http://farragut.flameeyes.is-a-geek.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20070509/4cd7538a/signature.asc>


More information about the build-dev mailing list