Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Need help for error parser
Need help for error parser [message #230426] Tue, 17 February 2009 23:49 Go to next message
Linh Ha is currently offline Linh HaFriend
Messages: 2
Registered: July 2009
Junior Member
I'm working with CUDA, the new computational platform from NVIDIA. I found
eclipse an excellent IDE, I have all thing i need except an error parse
for nvcc, the CUDA compiler, I wonder if people have solution for CUDA.

I would try to write an error parser for NVCC, it seem to be very trivial
but i could not find any simple tutorial for that. All the help that I
found online says to create an extension for
org.eclipse.cdt.core.ErrorParser. I have looked through the Eclipse
directory and can not find that directory. Can some help me out or point
me in the right direction.

The sample of the output from CUDA

make
../common/image2D.cu(943): warning: variable "timer" was declared but
never referenced

../common/image2D.cu(944): warning: variable "nIter" was declared but
never referenced

../common/image3D.cu(934): warning: variable "memSize" was declared but
never referenced

../common/image3D.cu(1022): warning: variable "memSize" was declared but
never referenced

test.cu(68): error: identifier "cutGetCmdLi" is undefined

test.cu(68): error: expected a ")"

test.cu(63): warning: variable "n" was declared but never referenced

test.cu(162): warning: variable "timer" was declared but never referenced

test.cu(163): warning: variable "nIter" was declared but never referenced

../common/compact.cu(787): warning: variable "blockSize" was declared but
never referenced
detected during:
instantiation of "void cplvCompactMap_4<T,blockSize>(T *, T *,
uint *, uint *, uint, uint) [with T=uint, blockSize=512]"
(912): here
instantiation of "void cplvCompact2<T,cmp>(T *, T *, T, uint
&, uint) [with T=uint, cmp=CmpOperator<uint, CMP_LESS>]"
(998): here

2 errors detected in the compilation of
"/tmp/tmpxft_00005bd7_00000000-4_test.cpp1.ii".
make: *** [obj/release/test.cu.o] Error 255


Any help is appreciated
Re: Need help for error parser [message #230436 is a reply to message #230426] Wed, 18 February 2009 02:34 Go to previous messageGo to next message
Andrew Gvozdev is currently offline Andrew GvozdevFriend
Messages: 256
Registered: July 2009
Senior Member
Linh Ha wrote:

> I would try to write an error parser for NVCC, it seem to be very trivial
> but i could not find any simple tutorial for that. All the help that I
> found online says to create an extension for
> org.eclipse.cdt.core.ErrorParser. I have looked through the Eclipse
> directory and can not find that directory. Can some help me out or point
> me in the right direction.

There is pretty laconic description
http://wiki.eclipse.org/CDT/User/FAQ#How_do_I_add_an_Error_P arser_.28or_The_project_seems_to_build_file.2C_but_doesn.27t _parse_my_error_output_what_can_I_do.3F.29
but many other useful info.

If you have never written a plugin before you could go in eclipse to
Help->Help Contents->Platform Plugin Development Guide->Simple Plugin
Example
or Help->Cheat Sheets->Plugin Development->Creating Eclipse Plugin.

Once you created a minimal plugin, open plugin.xml, tab plugin.xml - to
edit in text mode - and add the XML fragment from the link in there. If
you go to Extensions tab the copied extension point should appear in there.

When you run your plugin in debug mode, go to
Windows->Preferences->C/C++->New CDT project Wizard->Makefile Project->
tab Error Parsers and your error parser should be in the list. This won't
help for old projects though, you would need to go and enable it in
project properties.

Hope this helps,
Andrew
Re: Need help for error parser [message #230489 is a reply to message #230426] Thu, 19 February 2009 09:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mba.cosmigo.ru

Hi,

When I was in need of writing the error parser, I have downloaded the
CDT sources and looked through the code of existing error parsers.
This was really enough. I can send you sources of my simple error parser
if you need them..

Linh Ha wrote:
> I'm working with CUDA, the new computational platform from NVIDIA. I
> found eclipse an excellent IDE, I have all thing i need except an error
> parse for nvcc, the CUDA compiler, I wonder if people have solution for
> CUDA.
>
> I would try to write an error parser for NVCC, it seem to be very
> trivial but i could not find any simple tutorial for that. All the help
> that I found online says to create an extension for
> org.eclipse.cdt.core.ErrorParser. I have looked through the Eclipse
> directory and can not find that directory. Can some help me out or point
> me in the right direction.

--
Best regards
Mikhail Barg


ICQ: 132560784
Re: Need help for error parser [message #230583 is a reply to message #230489] Sat, 21 February 2009 04:57 Go to previous messageGo to next message
Linh Ha is currently offline Linh HaFriend
Messages: 2
Registered: July 2009
Junior Member
Yes it is really helpful for a novice like me to have a simple and easy to
understand example to start with. Could you sent it to me, simple
explanations would be great. Thank you
Re: Need help for error parser [message #232011 is a reply to message #230489] Fri, 20 March 2009 18:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse_news.aon.at

hi mikhail,

i am also in need of writing my own compiler error parser and i have not found a really good
starting point. it would be a great help for me, if u could send me your error parser
sources (all other sources i have found so far, do not work).

thanks for your help,
christoph



Mikhail Barg schrieb:
> Hi,
>
> When I was in need of writing the error parser, I have downloaded the
> CDT sources and looked through the code of existing error parsers.
> This was really enough. I can send you sources of my simple error parser
> if you need them..
>
> Linh Ha wrote:
>> I'm working with CUDA, the new computational platform from NVIDIA. I
>> found eclipse an excellent IDE, I have all thing i need except an
>> error parse for nvcc, the CUDA compiler, I wonder if people have
>> solution for CUDA.
>>
>> I would try to write an error parser for NVCC, it seem to be very
>> trivial but i could not find any simple tutorial for that. All the
>> help that I found online says to create an extension for
>> org.eclipse.cdt.core.ErrorParser. I have looked through the Eclipse
>> directory and can not find that directory. Can some help me out or
>> point me in the right direction.
>
Re: Need help for error parser [message #232059 is a reply to message #232011] Tue, 24 March 2009 10:57 Go to previous messageGo to next message
Marko Klopcic is currently offline Marko KlopcicFriend
Messages: 16
Registered: July 2009
Junior Member
> i am also in need of writing my own compiler error parser and i have not found a really good
> starting point. it would be a great help for me, if u could send me your error parser
> sources (all other sources i have found so far, do not work).

You can find customizable error parserhere:

http://www.isystem.com/content/5653/288/

EPL license, sources available.

Regards,

Marko
Re: Need help for error parser [message #232123 is a reply to message #232011] Thu, 26 March 2009 07:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mba.cosmigo.ru

Hi Christoph,

Sorry for long delay, Just haven't noticed your message in newsgroup.

I have tried to send you my sources to your mail (eclipse_news@aon.at)
but get a delivery failure from your server. If you still need my
sources, write me to my mail address.

Christoph K. wrote:
> hi mikhail,
>
> i am also in need of writing my own compiler error parser and i have not found a really good
> starting point. it would be a great help for me, if u could send me your error parser
> sources (all other sources i have found so far, do not work).
>
> thanks for your help,
> christoph
>
>
>
> Mikhail Barg schrieb:
>> Hi,
>>
>> When I was in need of writing the error parser, I have downloaded the
>> CDT sources and looked through the code of existing error parsers.
>> This was really enough. I can send you sources of my simple error parser
>> if you need them..
>>
>> Linh Ha wrote:
>>> I'm working with CUDA, the new computational platform from NVIDIA. I
>>> found eclipse an excellent IDE, I have all thing i need except an
>>> error parse for nvcc, the CUDA compiler, I wonder if people have
>>> solution for CUDA.
>>>
>>> I would try to write an error parser for NVCC, it seem to be very
>>> trivial but i could not find any simple tutorial for that. All the
>>> help that I found online says to create an extension for
>>> org.eclipse.cdt.core.ErrorParser. I have looked through the Eclipse
>>> directory and can not find that directory. Can some help me out or
>>> point me in the right direction.

--
Best regards
Mikhail Barg


ICQ: 132560784
Re: Need help for error parser [message #232762 is a reply to message #232059] Wed, 08 April 2009 18:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse_news.aon.at

hi marko,

i know the errorparser from isystems. bt the error parser is only thing i need. the error parser
output/result along with project statistics should be displayed in a new view. there fore i think
its easier to develop a new one.

rgds, christoph


Marko Klopcic schrieb:
>> i am also in need of writing my own compiler error parser and i have
>> not found a really good
>> starting point. it would be a great help for me, if u could send me
>> your error parser
>> sources (all other sources i have found so far, do not work).
>
> You can find customizable error parserhere:
>
> http://www.isystem.com/content/5653/288/
>
> EPL license, sources available.
>
> Regards,
>
> Marko
Re: Need help for error parser [message #897600 is a reply to message #232123] Tue, 24 July 2012 16:38 Go to previous message
camelia valuch is currently offline camelia valuchFriend
Messages: 6
Registered: May 2012
Junior Member
Hei,

I posted my problem here: http://www.eclipse.org/forums/index.php/m/897591/#msg_897591

It seems like someone from here has some error parser examples and I ask him for sending to me too.

Thanks in advance !

Camelia
Previous Topic:Missing Tooltips from Juno on Linux Redhat 64
Next Topic:Save run-time warnings in Console window
Goto Forum:
  


Current Time: Fri Nov 28 04:28:37 GMT 2014

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

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