Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Error management issue with Eclipse Parallel
Error management issue with Eclipse Parallel [message #1220351] Wed, 11 December 2013 09:15 Go to next message
Lu Zamb is currently offline Lu Zamb
Messages: 4
Registered: December 2013
Junior Member
Hi all,

I'm using Eclipse for Parallel Application Developers (Kepler Service Release 1). I have a C project on my local machine (Window 7) and I'm trying to build it on a remote machine (Linux OS). When I build it, and an error is returned, if I click on the error, Eclipse doesn't jump to the line in the code related to the error. After some analysis, I think the problem is related to my Makefile:

obj-m := module.o

kernelver ?= $(shell uname -r)
PWD ?= $(shell pwd)
KERNELDIR ?= /lib/modules/$(kernelver)/build

modules:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules


Since the file module.c is not built in its directory on the remote machine (but in the directory /lib/modules/$(kernelver)/build of the remote machine), all the errors will be returned refferred to an absolute path

/root/module.ptp/module.c:8403: error: ...

(root/module.ptp is the directory containing the project on the remote machine) instead of a relative path. So, Eclipse will be not able to link the error with the related code line on the local machine.

Is there any solution to solve this issue?

Regards,
Lu
Re: Error management issue with Eclipse Parallel [message #1220470 is a reply to message #1220351] Thu, 12 December 2013 01:53 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3189
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 12/11/2013 06:12 AM, Lu Zamb wrote:
> Hi all,
>
> I'm using Eclipse for Parallel Application Developers (Kepler Service
> Release 1). I have a C project on my local machine (Window 7) and I'm
> trying to build it on a remote machine (Linux OS). When I build it, and
> an error is returned, if I click on the error, Eclipse doesn't jump to
> the line in the code related to the error. After some analysis, I think
> the problem is related to my Makefile:
>
> obj-m := module.o
>
> kernelver ?= $(shell uname -r)
> PWD ?= $(shell pwd)
> KERNELDIR ?= /lib/modules/$(kernelver)/build
>
> modules:
> $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
>
>
> Since the file module.c is not built in its directory on the remote
> machine (but in the directory /lib/modules/$(kernelver)/build of the
> remote machine), all the errors will be returned refferred to an
> absolute path
> /root/module.ptp/module.c:8403: error: ...
> (root/module.ptp is the directory containing the project on the remote
> machine) instead of a relative path. So, Eclipse will be not able to
> link the error with the related code line on the local machine.
> Is there any solution to solve this issue?
>
> Regards,
> Lu

Sticky post at top of this forum:

http://www.eclipse.org/forums/index.php/t/161206/
Re: Error management issue with Eclipse Parallel [message #1220488 is a reply to message #1220470] Thu, 12 December 2013 07:25 Go to previous message
Lu Zamb is currently offline Lu Zamb
Messages: 4
Registered: December 2013
Junior Member
Done. Thx
Previous Topic:Debug error on eclipse
Next Topic:RTSC Package - Required files identification
Goto Forum:
  


Current Time: Wed Sep 17 15:42:37 GMT 2014

Powered by FUDForum. Page generated in 0.02879 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software