Cannot build project on Cygwin

1,083 views
Skip to first unread message

Vaijayanti Korde

unread,
Feb 21, 2012, 6:08:01 AM2/21/12
to firebre...@googlegroups.com
prep2010.cmd FBTestPlugin fails to build on cygwin whereas it builds seamlessly on windows (DOS prompt).

The following is the error message:

     [exec]   1>C:\Program Files
     [exec]   (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(147,5):
     [exec]   error MSB6001: Invalid command line switch for "CL.exe".  Item has already
     [exec]   been added.  Key in dictionary: 'tmp' Key being added: 'TMP'

I went through the MSDN blogs, http://qa.social.msdn.microsoft.com/Forums/en-IE/msbuild/thread/06881761-5586-43a8-8c2f-6e54994792c6. I also tried removing TMP env variable to avoid any duplicate env entries (though env variables are case insensitive), but it didn't work.

On DOS prompt the project builds as expected whereas on cygwin it gives the above error.
Has anyone encountered such problem in the past?

Thank you.

Best Regards,
Vaijayanti

--
C programmers never die. They are just cast into void --Edsger Dijkstra

Richard Bateman

unread,
Feb 21, 2012, 10:43:08 AM2/21/12
to firebre...@googlegroups.com

I run the prep scripts from a cygwin prompt all the time, and I have never had any issues like this.  Wish I had any ideas for you :-/

Richard

Binh Dao Duy

unread,
Feb 25, 2012, 11:53:47 AM2/25/12
to firebre...@googlegroups.com

Cygwin adds environment variables 'tmp' and 'temp' (those are different from Windows variables). I noticed that caused some problems recently, maybe a new Cygwin update?  Try to disable those variable in /etc/bash.profile and i will work again.

Reply all
Reply to author
Forward
0 new messages