Skip to main content



      Home
Home » Newcomers » Newcomers » Error management issue with Eclipse Parallel
Error management issue with Eclipse Parallel [message #1220351] Wed, 11 December 2013 04:15 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 02:25 Go to previous message
Eclipse UserFriend
Done. Thx
Previous Topic:Debug error on eclipse
Next Topic:RTSC Package - Required files identification
Goto Forum:
  


Current Time: Fri Jun 20 01:26:57 EDT 2025

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

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

Back to the top