Error management issue with Eclipse Parallel [message #1220351] |
Wed, 11 December 2013 04:15  |
Eclipse User |
|
|
|
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] |
Wed, 11 December 2013 20:53   |
Eclipse User |
|
|
|
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/
|
|
|
|
Powered by
FUDForum. Page generated in 0.08474 seconds