Linker error "not found, cannot display source"

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Linker error "not found, cannot display source"

跳至解决方案
5,102 次查看
breel
Contributor I


I'm getting the following errors with the linker during the build of a project in CodeWarrior 10.6.4 that is just the basic bareboard project for MCF54452. I only get these errors when the build settings for coldfire linker Output has the "Generate Listing File" box checked.

There was another thread where someone had similar problems and was told to rebuild the runtime library (https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-quot-cannot-display-source-quot-with-source...) which I have done with no change.

Does anyone have an idea what else it could be?

 

**** Build of configuration RAM for project Y8 ****

"C:\\Freescale\\CW MCU v10.6.4\\gnu\\bin\\mingw32-make" -j16 all
'Building target: Y8.elf'
'Executing target #6 Y8.elf'
'Invoking: ColdFire Linker'
"C:/Freescale/CW MCU v10.6.4/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf" -o "Y8.elf" @@"Y8.args"
C:/Freescale/CW MCU v10.6.4/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\printf.c" not
>found, cannot display source
C:/Freescale/CW MCU v10.6.4/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\printf.c" not
>found, cannot display source
C:/Freescale/CW MCU v10.6.4/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\include\cctype" not
>found, cannot display source
C:/Freescale/CW MCU v10.6.4/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\mem.c" not
>found, cannot display source
C:/Freescale/CW MCU v10.6.4/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\string.c" not
>found, cannot display source
C:/Freescale/CW MCU v10.6.4/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\string.c" not
>found, cannot display source
C:/Freescale/CW MCU v10.6.4/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\printformat.c"
>not found, cannot display source
C:/Freescale/CW MCU v10.6.4/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\printformat.c"
>not found, cannot display source
C:/Freescale/CW MCU v10.6.4/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\printformat.c"
>not found, cannot display source
C:/Freescale/CW MCU v10.6.4/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\printformat.c"
>not found, cannot display source
C:/Freescale/CW MCU v10.6.4/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\printformat.c"
>not found, cannot display source
C:/Freescale/CW MCU v10.6.4/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file
>"D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\coldfire\uart_console_io_cf.
>c" not found, cannot display source
>"D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\coldfire\uart_console_io_cf.
>c" not found, cannot display source
>"D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_Runtime\Runtime_ColdFire\Source\ab

0 项奖励
回复
1 解答
4,962 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

Thanks for the patience.

Our CodeWarrior expert provided a quick workaround:

 It is necessary to add the next paths to Linker Settings -> Library Search Path:

"${MCUToolsBaseDir}/ColdFire_Support/ewl/EWL_C/src"

"${MCUToolsBaseDir}/ColdFire_Support/ewl/EWL_C/include"

"${MCUToolsBaseDir}/ColdFire_Support/ewl/EWL_C/src/coldfire"

Also see picture attached.

Hui_Ma_0-1627022158913.png

With above workaround I could pass project build and with below warning info:

Hui_Ma_1-1627022245623.png

Wish it helps.

Mike

在原帖中查看解决方案

8 回复数
4,751 次查看
marceli1
Contributor III

Import from the path C:\Freescale\CW MCU v11.1\MCU\ColdFire_Support\ewl project and make a clean build.

 

0 项奖励
回复
5,098 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

Are you using a project you bring from another computer? In this case please use option clean before building the project.
If this does not solve your problem please create a new bareboard project and let me know if you have the same warning. Thanks.

best regards,

Mike

0 项奖励
回复
5,090 次查看
breel
Contributor I

Hi Mike,

I am creating a new bareboard project, not bringing project over. I am creating bareboard project type application for MCF54452, P&E USB MultiLink connection, full board support, no optimizations.

Clean project/build project does not solve the problem. I still get the same warnings. 

I don't know if it helps, but I do not have a "D:" directory and did not either at the time of installing CodeWarrior.

 

 

 

 

0 项奖励
回复
5,084 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

I tried with CodeWarrior for MCU V11.1 without meet related issue.

I would recommend to install the latest CodeWarrior V11.1 software and test if there with related issue or not.

Wish it helps.

Mike

0 项奖励
回复
5,078 次查看
breel
Contributor I

Thank you for responding. At your suggestion, I installed CodeWarrior V11.1 found at your link. 

Again, I am creating a new bareboard project, not bringing project over. I am creating bareboard project type application for MCF54452, P&E USB MultiLink connection, full board support, no optimizations.

When the project is generated I can build the project, and it builds with no errors... but I need a listing to be generated. When I check the box in the build settings for coldfire linker Output to "Generate Listing File" then also V11.1 fails and gives the following errors, same as V10.6.4 :

 


**** Build of configuration RAM for project y8 ****

"C:\\Freescale\\CW MCU v11.1\\gnu\\bin\\mingw32-make" -j16 all
'Building target: y8.elf'
'Executing target #6 y8.elf'
'Invoking: ColdFire Linker'
"C:/Freescale/CW MCU v11.1/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf" -o "y8.elf" @@"y8.args"
C:/Freescale/CW MCU v11.1/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\printf.c" not
>found, cannot display source
C:/Freescale/CW MCU v11.1/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\printf.c" not
>found, cannot display source
C:/Freescale/CW MCU v11.1/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\include\cctype" not
>found, cannot display source
C:/Freescale/CW MCU v11.1/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\mem.c" not
>found, cannot display source
C:/Freescale/CW MCU v11.1/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\string.c" not
>found, cannot display source
C:/Freescale/CW MCU v11.1/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\string.c" not
>found, cannot display source
C:/Freescale/CW MCU v11.1/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\printformat.c"
>not found, cannot display source
C:/Freescale/CW MCU v11.1/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\printformat.c"
>not found, cannot display source
C:/Freescale/CW MCU v11.1/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\printformat.c"
>not found, cannot display source
C:/Freescale/CW MCU v11.1/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\printformat.c"
>not found, cannot display source
C:/Freescale/CW MCU v11.1/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\printformat.c"
>not found, cannot display source
C:/Freescale/CW MCU v11.1/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning
>Source file
>"D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\coldfire\uart_console_io_cf.
>c" not found, cannot display source
>"D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\coldfire\uart_console_io_cf.
>c" not found, cannot display source
>"D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_Runtime\Runtime_ColdFire\Source\ab

 

0 项奖励
回复
4,963 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

Thanks for the patience.

Our CodeWarrior expert provided a quick workaround:

 It is necessary to add the next paths to Linker Settings -> Library Search Path:

"${MCUToolsBaseDir}/ColdFire_Support/ewl/EWL_C/src"

"${MCUToolsBaseDir}/ColdFire_Support/ewl/EWL_C/include"

"${MCUToolsBaseDir}/ColdFire_Support/ewl/EWL_C/src/coldfire"

Also see picture attached.

Hui_Ma_0-1627022158913.png

With above workaround I could pass project build and with below warning info:

Hui_Ma_1-1627022245623.png

Wish it helps.

Mike

4,944 次查看
breel
Contributor I

This worked. Thank you!

0 项奖励
回复
5,072 次查看
stanish
NXP Employee
NXP Employee

Hi,

This is caused by the ewl libs delivered as pre-compiled with this path "D:\w\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\printf.c" to the source file.

In order to change it you should rebuild the ewl libs on your machine. This will change the original absolute path to the source file to your pathsa and you can generate disassembly including lib source C statements.

Note:

The debugger can show the source code properly even without rebuild due to path mapping set. See below:

stanish_0-1625177087738.png

Hope it helps.

Stan

0 项奖励
回复