Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Unknown Referenced Nature
Unknown Referenced Nature [message #1844096] Wed, 01 September 2021 08:12 Go to next message
Md Mubdiul Hasan is currently offline Md Mubdiul HasanFriend
Messages: 10
Registered: July 2021
Junior Member
Hello There,

I am getting a build error .
My project was built in Eclipse for sure.
I wanted to build exiting project in

Version: 2021-06 (4.20.0)
Build id: 20210612-2011

While someone was trying to build this project with following history ,
SESSION 2021-07-15 08:52:39.276 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ko_KR
Framework arguments:  -product com.ti.ccstudio.branding.product -product com.ti.ccstudio.branding.product -product com.ti.ccstudio.branding.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product com.ti.ccstudio.branding.product -product com.ti.ccstudio.branding.product -data C:\Users\user\OneDrive\workspace -product com.ti.ccstudio.branding.product


I am using C:\MinGW\include and I am using following tool chain editor
GCC Assembler
GCC Archiver
GCC C++ Compiler
GCC C Compiler
MinGW C Linker
MinGW C++ Linker

My error console says,
Info: Internal Builder is used for build
gcc "-IC:\\MinGW\\include" -O2 -g -Wall -c -fmessage-length=0 -o F2806x_PieCtrl.o "..\\..\\F2806x_common\\source\\F2806x_PieCtrl.c" 
gcc: error: ..\..\F2806x_common\source\F2806x_PieCtrl.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.

16:53:40 Build Finished. 0 errors, 0 warnings. (took 113ms)

[Updated on: Wed, 01 September 2021 23:45]

Report message to a moderator

Re: Unknown Referenced Nature [message #1844184 is a reply to message #1844096] Sun, 05 September 2021 12:50 Go to previous messageGo to next message
David VavraFriend
Messages: 1407
Registered: October 2012
Senior Member
The build wants source from a directory parallel to whatever
the current build configuration is being used.
The build configuration directory becomes the working directory.

The build configuration directory is displayed on the console with
**** Build of configuration XXX for project ...
Where XXX is the build configuration.
Did you omit this?

Did you forget to select a current build configuration?

It's possible you didn't import the project correctly.
There was a similar issue published 10+ years ago.
Apparently there is a quick start guide.
Did you follow it?
https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/111798/ccsv4-error-gmake-no-rule-to-make-target



Re: Unknown Referenced Nature [message #1844187 is a reply to message #1844184] Mon, 06 September 2021 01:06 Go to previous messageGo to next message
Md Mubdiul Hasan is currently offline Md Mubdiul HasanFriend
Messages: 10
Registered: July 2021
Junior Member
Quote:
The build wants source from a directory parallel to whatever
the current build configuration is being used.


Yes, I am curious about it. The project history say that java or other platform is taking place.

Quote:
The build configuration directory becomes the working directory.

Not sure what you wanted to tell. May be its a fault.

Quote:
The build configuration directory is displayed on the console with
**** Build of configuration XXX for project ...
Where XXX is the build configuration.
Did you omit this?


Yes, I did see this statement when building the project now a days. Right at this moment I am trying to set the project properties.
Now there was a error like " Nothing to build the project".
I have select the tool chain and its telling "Build not configured correctly"

Now if I go Project>Properties> Builder > a check list shows CDT core builder.

In Project>Properties>C/C++ build a error massage comes as follows

Orphaned configuration. No base extension cfg exists for com.ti.ccstudio.buildDefinitions.C2000.Debug.
I went throught the ti.e2e forum and saw its not a problem at all.

In Project>Properties>C/C++ build> Build Variables> I checked the show system variable and I know the BuildArtifactFile name and BuildArtifactFilePath should be located but I didnt find any thing BuildArtifactFile Path, I did see in ccs v.5.

What would be setting for Project>Properties>C/C++ build> Settings?
Do you want me to add library path in Project>Properties>C/C++ build> Paths and Symbols> Libraries and Library paths?

Quote:
Apparently there is a quick start guide.
Did you follow it?

Yes, I am also trying to build this project in ccs. Seems like this project was build in both. I had experience in Ecilipse, do you think ccs is better than Ecilipse ? Which version is perfect of this project ? Currently I have installed Eclipse C/C++ developer.
Re: Unknown Referenced Nature [message #1844194 is a reply to message #1844187] Mon, 06 September 2021 07:10 Go to previous messageGo to next message
David VavraFriend
Messages: 1407
Registered: October 2012
Senior Member
One of us is very confused.

**** Build of configuration XXX for project ...
is telling you that XXX is the current build directory
XXX will be the current working directory when the build is performed.
The error you got was gcc: error: ..\..\F2806x_common\source\F2806x_PieCtrl.c: No such file or directory

..\..\F2806x_common\source\F2806x_PieCtrl.c is relative to the current working directory which is also the build directory.
For whatever reason, the project expects to have directory F2806x _common two directories up from the build directory.

Which is to say if the build directory is : A\B\build
then you need to have the F2806x common files in A\F2806x _common

As for CCS I have no opinion.
I only linked to that page because of the similarities with your issue.
If your Eclipse project is a different structure than the CCS project you will have to resolve the discrepancies.


Re: Unknown Referenced Nature [message #1844197 is a reply to message #1844194] Mon, 06 September 2021 08:33 Go to previous messageGo to next message
Md Mubdiul Hasan is currently offline Md Mubdiul HasanFriend
Messages: 10
Registered: July 2021
Junior Member
Quote:
**** Build of configuration XXX for project ...
is telling you that XXX is the current build directory
XXX will be the current working directory when the build is performed.
The error you got was gcc: error: ..\..\F2806x_common\source\F2806x_PieCtrl.c: No such file or directory


Dear Sir,
I am getting the attached problem now. Console says 'Build not configured correctly"
  • Attachment: error.JPG
    (Size: 27.17KB, Downloaded 12 times)
Re: Unknown Referenced Nature [message #1844209 is a reply to message #1844197] Mon, 06 September 2021 11:24 Go to previous messageGo to next message
David VavraFriend
Messages: 1407
Registered: October 2012
Senior Member
Well, that's a different problem.
The unknown referenced nature likely means
whatever plugin is expected for ccs is not installed.

And the build is now trying to use the external builder "make"
instead of the internal builder which you used before.
You probably will need to install "make" for MinGW.
You must have changed something. What was it?


Can't help you on the plug-in.
I'm guessing maintenance on it stopped about 10 years ago
and probably won't work with the newer CDT versions.

If you are going to use a current version of Eclipse/CDT with this code
you'll have to figure out how to migrate it to standard CDT
and forego any plug-in

Or switch to a standalone CCS if you can find it.

[Updated on: Mon, 06 September 2021 12:23]

Report message to a moderator

Re: Unknown Referenced Nature [message #1844235 is a reply to message #1844209] Mon, 06 September 2021 23:57 Go to previous messageGo to next message
Md Mubdiul Hasan is currently offline Md Mubdiul HasanFriend
Messages: 10
Registered: July 2021
Junior Member
Quote:
The unknown referenced nature likely means
whatever plugin is expected for ccs is not installed.


Do you mean any ccs partial program need to install?

Quote:
And the build is now trying to use the external builder "make"
instead of the internal builder which you used before.
You probably will need to install "make" for MinGW.
You must have changed something. What was it?


At project>properties> C/C++ build>Builder setting , I can see builder type is written as internal and pop up is inactivate, I cant click on it.
I already installed MinGW. What kind of 'make "need to install?
I have change tool chain setting. see the attachment.

Do you think, project>properties> C/C++ build> Settings>tool setting> I need to select MinGW C++ linker?


Quote:
If you are going to use a current version of Eclipse/CDT with this code you'll have to figure out how to migrate it to standard CDT
and forego any plug-in


Can you send me any reference guideline ?

Re: Unknown Referenced Nature [message #1844236 is a reply to message #1844235] Tue, 07 September 2021 01:52 Go to previous messageGo to next message
David VavraFriend
Messages: 1407
Registered: October 2012
Senior Member
The Texas Instruments Piccolo F2806x architecture is unlikely the same
as the one you are using to run Windows and MinGW. In fact, it looks to be a
C28x device. You'll have to find a compiler and linker for it and learn to use it
from the command line. Then you can tell Eclipse what to do with it.
That's probably why there was a plug-in for it.

Try a web search for F2806x compiler
Maybe here? https://www.ti.com/tool/C2000-CGT
or? https://software-dl.ti.com/trainingTTO/trainingTTO_public_sw/c28x28035/C28x_Piccolo_MDW_2-1.pdf

I have never used one and can't help you much further.

---

As for What kind of 'make "need to install?

MinGW has a Windows version of GNU Make.
From your error messages, it doesn't seem to be installed
or it's not in the execution path list (system PATH variable).


[Updated on: Tue, 07 September 2021 01:54]

Report message to a moderator

Re: Unknown Referenced Nature [message #1844239 is a reply to message #1844236] Tue, 07 September 2021 04:12 Go to previous messageGo to next message
Md Mubdiul Hasan is currently offline Md Mubdiul HasanFriend
Messages: 10
Registered: July 2021
Junior Member
Quote:
The Texas Instruments Piccolo F2806x architecture is unlikely the same as the one you are using to run Windows and MinGW. In fact, it looks to be a C28x device


Yes , I am going with a similar customized board like Piccolo F2806x. I am trying to debug WARE 2000 also.

Quote:
That's probably why there was a plug-in for it.

Yes. Broken files are proof of Eclipse IDE.

Quote:
MinGW has a Windows version of GNU Make.
From your error messages, it doesn't seem to be installed
or it's not in the execution path list (system PATH variable).

Well. That means my toolchain is not correct.
I have installed C:\MinGW\bin;C:\MinGW\msys\1.0\bin
A install manager of MinGW is available. Dont you mean to install in such wayhttps://www.ics.uci.edu/~pattis/common/handouts/mingweclipse/mingw.html


Again I want to mention, In Project>Properties>C/C++ build> Build Variables> I checked the show system variable and I know the BuildArtifactFile name and BuildArtifactFilePath should be located but I didnt find any thing BuildArtifactFile Path, I did see in ccs v.5.

[Updated on: Tue, 07 September 2021 04:31]

Report message to a moderator

Re: Unknown Referenced Nature [message #1844247 is a reply to message #1844239] Tue, 07 September 2021 06:10 Go to previous messageGo to next message
David VavraFriend
Messages: 1407
Registered: October 2012
Senior Member
Quote:
A install manager of MinGW is available. Dont you mean to install in such way <link>

Got me. I haven't used MinGW in years.
All I know is that you got a message saying 'make' not found.
So, you either don't have it or your system path needs to be modified.

Quote:
Again I want to mention, ... , I did see in ccs v.5.

You are asking about a plugin that is not controlled by Eclipse.
One that's clearly outdated and likely no longer maintained.
You are going to have to find help with it elsewhere. It's unlikely
anyone here can be of aid.

If you can find the compiler, etc. and it has a command line interface
then you can modify one of the tool settings. But eclipse toolchains mostly
only understand GCC or one of its derivatives. So unless it has options
that look like GCC options you won't be able to generate makefiles and
will need to run create your own.


Re: Unknown Referenced Nature [message #1844280 is a reply to message #1844247] Tue, 07 September 2021 23:35 Go to previous messageGo to next message
Md Mubdiul Hasan is currently offline Md Mubdiul HasanFriend
Messages: 10
Registered: July 2021
Junior Member
Quote:
So, you either don't have it or your system path needs to be modified.

You mean Environment variable path in PC right? People had similar problem many times I can see them in online.

Quote:
It's unlikely anyone here can be of aid.

Well said. Its somewhat difficult to track down.

Quote:
If you can find the compiler, etc. and it has a command line interface
then you can modify one of the tool settings. But eclipse toolchains mostly
only understand GCC or one of its derivatives. So unless it has options
that look like GCC options you won't be able to generate makefiles and
will need to run create your own.


I saw some post where Project>Properties>C/C++ General >Paths and Symbol >GNU C and GNU C++ include directories need entry.
Re: Unknown Referenced Nature [message #1844284 is a reply to message #1844280] Wed, 08 September 2021 06:39 Go to previous messageGo to next message
David VavraFriend
Messages: 1407
Registered: October 2012
Senior Member
Quote:
You mean Environment variable path in PC right?

Yes but somehow gcc was found but not make
so I think that means you don't have make.

Quote:
I saw some post where ...

You seem to have missed what I said.

In GCC an include path is specified as "-I<some path>" but
VisualC wants to see it as "/I..." and "-I..." will confuse it (at least it did at one time)
Some compilers might want a ":" or "=" or "<space>" to separate the path from the option flag.

Windows programs generally use a "/" to flag an option but GCC uses "-".
Windows paths are separated by "\" but Linux paths by "/"
Note that for MinGW the paths conform to Windows.

The toolchain you use expects you to be using the compiler it was built for.
You can change the actual compiler used but can't change what the toolchain thinks it wants.

The toolchain is only used when generating a makefile.
If you are using your own makefile, the toolchain is mostly irrelavent.

Project>Properties>C/C++ General >Paths is what I meant by manually entering the include paths.
It will alert the Indexer in addition to alerting the toolchain so you would probably still use it.

As far as I know, only the GCC compilers can tell you what its builtins are.
With GCC toolchains, Eclipse tries to use the toolchain compiler to get the builtins.
For most editing, using the GCC includes will probably work but
anything else will need manual entry to keep the Indexer happy.

Re: Unknown Referenced Nature [message #1844289 is a reply to message #1844284] Wed, 08 September 2021 08:31 Go to previous messageGo to next message
Md Mubdiul Hasan is currently offline Md Mubdiul HasanFriend
Messages: 10
Registered: July 2021
Junior Member
Quote:
You seem to have missed what I said

Dear Sir,
I had long history to build program in Eclipse.
It makes puzzled because number of unknown files need to install.
This takes a long way to go.

I have stared things in ccs 10.3, without any difficulties but following console error comes

fatal error #16000: object files have incompatible formats
   ("C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/lib/rts2800_fpu32
   .lib<boot28.asm.obj>" = TI-COFF, "./DEMO.obj" = ELF)
Re: Unknown Referenced Nature [message #1844296 is a reply to message #1844289] Wed, 08 September 2021 11:10 Go to previous message
David VavraFriend
Messages: 1407
Registered: October 2012
Senior Member
I'm not sure what my attempted clarification has to do
with your last post.

The latest error appears to be a linker error.
You either used the wrong linker or at least one of your
object files was compiled with the wrong compiler or
you linked the wrong library.

I can't say what for sure.
Besides, it's off-topic for this forum which is for issues
caused by Eclipse/CDT or for setting up the IDE. It's not
for questions about using your tools.

I suggest you post those questions in a more appropriate
forum. What that may be I don't know.

Previous Topic:Is it possible to generate libs and app from the same project?
Next Topic:environment variables to #define
Goto Forum:
  


Current Time: Tue Dec 07 16:42:42 GMT 2021

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

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

Back to the top