Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: AW: Newest CygWin make (was Re: [cdt-dev] Managed build on Windows failswith linked folders)

Hi Norbert,

I took a look at your patch.  The idea is fine, but the problem is that the
GNU makefile generator might not be used for CygWin theoretically, and your
solution turns all Windows paths into CygWin paths.  It's entirely possible
for GNU make to be built for windows in which case windows paths will work
provided they're escaped properly should they contain spaces etc.

I'm not sure how MinGW behaves as I haven't used it at all.

I am thinking we should create a separate makefile generator for CygWin
that takes care of all the CygWin-isms.

I don't know offhand the debug related Bugzillas, but I know there are some
somewhere.

===========================

Chris Recoskie
Team Lead, IBM CDT Team
IBM Toronto
http://www.eclipse.org/cdt



                                                                       
  From:   "Ploett, Norbert" <norbert.ploett@xxxxxxxxxxx>               
                                                                       
  To:     "CDT General developers list." <cdt-dev@xxxxxxxxxxx>         
                                                                       
  Date:   22/01/2007 09:06 AM                                          
                                                                       
  Subject AW: Newest CygWin make (was Re: [cdt-dev] Managed build on   
  :       Windows   failswith linked folders)                          
                                                                       




Hi Chris,

yeah, I'm experiencing debugger problems too.

As for the build problem, this is also related to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=117013 and I have suggested a
patch for that. Can you review it?

On the debugger side the source lookup appears to be broken. I need to
manually specify a source path mapping /cygdrive/d/ --> D:\ to get the
source lookup working.

I have cooked up a modified implementation of CSourceLookupParticipant
which can handle the Cygwin /cygpath format for my internal work. I could
create a bugzilla and provide a patch but I am far from understanding the
source lookup framework and would very much appreciate somebody to review
my approach.
Do you know of any existing bugzillas for the problem?

The internal builder does not really work for me. I have excluded some
source files from the build, they are not compiled but the builder tries to
link in the corresponding object files just the same.


Thanks,


Norbert


-----Ursprüngliche Nachricht-----
Von: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] Im
Auftrag von Chris Recoskie
Gesendet: Montag, 22. Januar 2007 14:41
An: CDT General developers list.
Betreff: Newest CygWin make (was Re: [cdt-dev] Managed build on Windows
failswith linked folders)

The newer versions of CygWin have been train wrecks for both MBS and the
debugger as they've been changing behaviour all over the place.  I'm not
really sure what to do about it currently as we have to support both
behaviours.

Can you use the internal builder for now?

===========================

Chris Recoskie
Team Lead, IBM CDT Team
IBM Toronto
http://www.eclipse.org/cdt




  From:   "Ploett, Norbert" <norbert.ploett@xxxxxxxxxxx>

  To:     "CDT General developers list." <cdt-dev@xxxxxxxxxxx>

  Date:   20/01/2007 05:18 AM

  Subject [cdt-dev] Managed build on Windows fails with linked folders
  :





Hi folks,

I tried to create a managed make project which has sources in a linked
folder. To my surprise the build stopped immediately with the message
(snippet from console)

===============================
**** Build of configuration Debug for project quill-managed ****

make -k all
qhull-src/subdir.mk:94: *** target pattern contains no `%'.  Stop.
Build complete for project quill-managed

===============================

The cause is probably that the MBS translates paths for resources in a
linked folder into Windows-style absolute paths like so (snippet from
subdir.mk)

===============================
########################################################################
########
# Automatically-generated file. Do not edit!
########################################################################
########

# Add inputs and outputs from these tool invocations to the build
variables
C_SRCS += \
D:/Temp/Workshop/qhull-2003.1/src/geom.c \
D:/Temp/Workshop/qhull-2003.1/src/geom2.c \
...
===============================

The paths contain the ':' special character, and cygwin make chokes on
them. I found a message in a cygwin mailing list

http://www.cygwin.com/ml/cygwin/2006-07/msg00373.html

which indicates that this was not always so, but that make stopped to
recognize Windows-style paths in it's latest version.

Any comments on this? Can anybody show a workaround? Shall we make this
a bugzilla?


Greetings,



Norbert

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev




Back to the top