[CMake] The input line is too long (MinGW)

Brad King brad.king at kitware.com
Fri Sep 22 09:24:18 EDT 2006


Martin Dobias wrote:
> On 9/21/06, Brad King <brad.king at kitware.com> wrote:
>> Martin Dobias wrote:
>> > I try to build executable in my project (using about 150 source files)
>> > with CMake and MinGW. When it comes to linking I get an error message
>> > from system saying:
>> >
>> > The input line is too long.
>>
>> What version of CMake are you using?  This has been fixed in CVS CMake
>> and will be fixed in 2.4.4 but I don't remember if the fix is already in
>> 2.4.3.
>>
>> -Brad
> 
> I'm using 2.4.3. However latest CVS version still doesn't work and the
> error is still there.

I'll assume you're using the MSYS Makefiles generator.  Please let me
know if this is not the case.

In your CVS checkout try editing cmGlobalMSYSMakefileGenerator.cxx and
change the line

  this->UseLinkScript = false;

to

  this->UseLinkScript = true;

and report to me what happens.

> Moreover I've found some more problems in CVS version:
[snip]
> - CMakeSetup from CSV has been crashing when clicked Configure...

Please try to strip your project down to a minimal example that
reproduces the crash and post it here.

Thanks,
-Brad


More information about the CMake mailing list