[Insight-developers] WrapITK GCC_XML Argument list too long issue
Bradley Lowekamp
blowekamp at mail.nih.gov
Fri Jun 8 11:55:51 EDT 2012
Hello,
Some WrapITK builds are producing the following error:
"../../Generators/GccXML/gccxml/bin/gccxml" "-fxml-start=_cable_" "-fxml=/playpen/blowekamp/MacOSX-WrapITK/ITK-build/Wrapping/Modules/ITKFiniteDifference/itkDenseFiniteDifferenceImageFilter.xml" "--gccxml-gcc-options" "/playpen/blowekamp/MacOSX-WrapITK/ITK-build/Wrapping/Modules/ITKFiniteDifference/gcc_xml.inc" "-DCSWIG" "-DCABLE_CONFIGURATION" "-DITK_MANUAL_INSTANTIATION" "/playpen/blowekamp/MacOSX-WrapITK/ITK-build/Wrapping/Modules/ITKFiniteDifference/itkDenseFiniteDifferenceImageFilter.cxx"
Error: Could not run /playpen/blowekamp/MacOSX-WrapITK/ITK-build/Wrapping/Generators/GccXML/gccxml/bin/gccxml_cc1plus:
Argument list too long
The likely problem is in the file gcc_xml.inc, which is over 400kb is size exceeding the 256kb ARG_MAX limit.
Now the systems that don't seem to be reporting this error have enabled ITK_USE_CCACHE. To here is the difference in the command:
if(ITK_USE_CCACHE)
add_custom_command(
OUTPUT ${xml_file}
COMMAND "${CCACHE_EXECUTABLE}" "${GCCXML}"
-c
-fxml-start=_cable_
-o ${xml_file}
${CONFIG_GCCXML_INC_CONTENTS}
-DCSWIG
-DCABLE_CONFIGURATION
-DITK_MANUAL_INSTANTIATION
${cxx_file}
DEPENDS ${GCCXML} ${cxx_file}
)
else(ITK_USE_CCACHE)
add_custom_command(
OUTPUT ${xml_file}
COMMAND ${GCCXML}
-fxml-start=_cable_
-fxml=${xml_file}
--gccxml-gcc-options ${gccxml_inc_file}
-DCSWIG
-DCABLE_CONFIGURATION
-DITK_MANUAL_INSTANTIATION
${cxx_file}
DEPENDS ${GCCXML} ${cxx_file} ${gccxml_inc_file}
)
endif(ITK_USE_CCACHE)
I am not sure what the solution to this problem is. But I think it's a lower priority for the release, so I am mostly posting to recored what I know, and see if there is an obvious solution to some one else.
Brad
========================================================
Bradley Lowekamp
Medical Science and Computing for
Office of High Performance Computing and Communications
National Library of Medicine
blowekamp at mail.nih.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-developers/attachments/20120608/aa9e0dad/attachment.htm>
More information about the Insight-developers
mailing list