Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Custom Toolchain(Seeking help on creating custom toolchain.)
Custom Toolchain [message #636697] Tue, 02 November 2010 09:49 Go to next message
Eclipse UserFriend
Hi,

I'm new to this forum (and CDT plugins) so please forgive me if I have posted to the wrong place.

I am interested in creating a custom toolchain but want to start from the ground up. I have followed the tutorial in the Managed Build System Extensibility Document (6 Tutorial: An Example Tool Integration) and have got the basic toolchain working. I think the tutorial does a good job of guiding you through the process of creating a basic toolchain but it is calling a non-existent command (ccc) and therefore doesn't do anything.

I thought that the natural next step would be to try to get it to do something and so I changed ccc to gcc. However, it isn't quite working yet. Here is my output after trying to build a source file:

**** Build of configuration Test Release for project Test ****

make all
'Building file: ../Test.c'
'Invoking: Compiler'
gcc -o"Test.o" "../Test.c"
'Finished building: ../Test.c'
' '
cc Test.o -o Test
process_begin: CreateProcess(NULL, cc Test.o -o Test, ...) failed.
make (e=2): The system cannot find the file specified.

make: *** [Test] Error 2

I think the problem is that it is trying to invoke the cc compiler when I don't have it installed. The Test.o output file is created successfully and I can run it, so I guess I'm not sure why this next step in the process is happening and how to resolve the error.

Here is my plugin.xml file:
<extension
id="org.eclipse.cdt.example.toolchain"
name="Example Tool"
point="org.eclipse.cdt.managedbuilder.core.buildDefinitions ">
<projectType
id="example.toolchain.executable"
isAbstract="false"
isTest="false"
name="Example Executable">
<configuration
cleanCommand="rm -f"
errorParsers=" org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GC CErrorParser; "
id="example.toolchain.configuration.release"
name="Test Release">
<toolChain
id="example.toolchain.toolchain"
isAbstract="false"
name="Example Tool-chain"
osList="win32">
<builder
id="example.toolchain.builder"
isAbstract="false"
isVariableCaseSensitive="false"
name="Example Builder">
</builder>
<targetPlatform
binaryParser="org.eclipse.cdt.core.PE"
id="example.toolchain.targetplatform"
isAbstract="false"
name="Example Target Platform"
osList="win32">
</targetPlatform>
<tool
command="gcc"
id="example.toolchain.compiler"
isAbstract="false"
name="Compiler"
natureFilter="both"
outputFlag="-o">
<inputType
dependencyCalculator=" org.eclipse.cdt.managedbuilder.makegen.internal.DefaultIndex erDependencyCalculator "
dependencyContentType="org.eclipse.cdt.core.cHeader"
id="example.toolchain.compiler.input"
name="Compiler Input"
primaryInput="true"
sourceContentType="org.eclipse.cdt.core.cSource">
</inputType>
<outputType
buildVariable="OBJS"
id="example.toolchain.compiler.output"
name="Compiler Output"
outputs="o"
primaryOutput="true">
</outputType>
</tool>
</toolChain>
</configuration>
</projectType>
</extension>

Can anyone help?

Thanks,
Alan
Re: Custom Toolchain [message #651009 is a reply to message #636697] Thu, 27 January 2011 07:49 Go to previous messageGo to next message
Eclipse UserFriend
Hi Again,

I just came across my old post and thought that I would tie up the loose end.

I did manage to get my toolchain working eventually. The reason that I was getting the above error was to do with my gcc configuration. A reinstall of gcc (MinGW) and a restart of the machine fixed it for me.

Just in case anyone else is struggling with a similar problem - try executing gcc manually from the command line and see if you get this error... if so, then maybe a reinstall of gcc will help.

Alan
Re: Custom Toolchain [message #717786 is a reply to message #651009] Mon, 22 August 2011 07:08 Go to previous messageGo to next message
Eclipse UserFriend
Hi there,

I am not sure, if you are still available, still I am trying my luck.

I am also trying to build a custom toolchain to build my project. I also followed the tutorial for the CDT MBS. I have the plugin.xml file exactly same as you except that mine is for Linux i.e. osList="linux".

I tried exactly the same was as you have tried changing ccc to gcc and building a project with a hello.c file. Unfortunately, its not working. I get the following error:

make: ***No rule to make target 'test', needed by 'all'.

Do you have any suggestions?

Re: Custom Toolchain [message #720455 is a reply to message #651009] Tue, 30 August 2011 11:54 Go to previous message
Eclipse UserFriend
Hi Alan,

I am REALLY REALLY hoping (with my finger crossed) that you will get message and you can reply to me.

I came across your post about custom toolchain in Eclipse forum. I am also trying to build a custom toolchain to build our toolchain. As you said, I also followed the tutorial for the CDT MBS. I have the plugin.xml file exactly same as you except that mine is for Linux i.e. osList="linux". And, the target platform as follows:

<targetPlatform
archList="all"
binaryParser="org.eclipse.cdt.core.ELF"
id="bluebee.toolchain.targetplatform"
isAbstract="false"
name="Bluebee Target Platform"
osList="linux">
</targetPlatform>

I tried exactly the same was as you have tried changing ccc to gcc and building a project with a simple helloworld.c file. Unfortunately, its not working. I get the following error:

**** Build of configuration Test Release for project test ****

make all
make: *** No rule to make target `test', needed by `all'. Stop.

**** Build Finished ****

Could you please help me what should I do to solve this issue? I am struggling with it already for so long. I would be very grateful if you could point out anything.

Thanks a lot in advance!
Kamana
Previous Topic:Indigo CDT, Build Console, log file location, support variables?
Next Topic:can I do graphics programming with Eclipse on a Macintosh
Goto Forum:
  


Current Time: Mon Jul 07 19:54:07 EDT 2025

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

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

Back to the top