L1016 Link warning

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

L1016 Link warning

2,814 Views
hucklim
Contributor III

Hello everyone,

I am having problem compiling my code. I am getting the L1016 warning, indicating that a file was found twice in project.prm. I got this warning after I backup my project into another directory. I think this is a general problem with me not knowing the architecture of Codewarrior.

 

I got this problem two days ago and the way I solved the problem was to re-export the project into xml file and then import it again, essentially generating a new project.mcp file.

 

Today this problem appear again and regenerating project.mcp file does not solve the problem and it prompted me to pose this question on this community, hoping to understand the problem and permanently solve the problem.

 

Anybody has the same experience?

 

Yours sincerely,

Huck

Labels (1)
Tags (1)
0 Kudos
Reply
12 Replies

2,563 Views
trytohelp
NXP Employee
NXP Employee

Hi Huck,

The linker L1016 message is generated when the linker detected several 2 times the same source file.

I've checked in our data base but don't find issue about L1016.

I think the problem is linked to the project management: project paths for instance.

Please can you provide us more details to reproduce the problem ?

      is there a process step by step ?

      or can you share us your example reproducing the behavior ?

Regards

Pascal

0 Kudos
Reply

2,563 Views
hucklim
Contributor III

Hello Pascal,

I do not think it is easy to produce the L1016 warning.

It has more to do with what I should do when I get this warning.

The link warning L1016 points to the project.prm's name area, but there is

nothing in that area. I do not know how to delete one of the double source file.

Do you have any instruction on how to delete the double source file?

Thanks for your reply.

Yours sincerely,

Huck

0 Kudos
Reply

2,563 Views
trytohelp
NXP Employee
NXP Employee

Hi Huck,

I tried to reproduce the problem on my side without success.

I used the last version CW for MCU V10.5.

In the Project Properties for the linker settings you can add paths.

Probably the second prm file is linked to the project through a path.

Please check the paths listed to:

pastedImage_0.png

Pascal

2,563 Views
hucklim
Contributor III

Hello Pascal,

I am trying to see the path set in the linker. However, I cannot find the path llisted and the picture you attached is for the Eclipse IDE. I am using Codewarrior for HCS12 (IDE Version 5.9.0). Can you please tell me how to find the linker path on my IDE? The only path info I find is the 'access path'.

Yours sincerely,

Huck

0 Kudos
Reply

2,563 Views
trytohelp
NXP Employee
NXP Employee

Hi Huck,

It should be in the access path.

There are ... User paths and System paths.

Please provide us your application ?

By this way we could check the problem on our side.

If you want, we can create a Service Request to continue to handle this issue.

Regards

Pascal

0 Kudos
Reply

2,563 Views
hucklim
Contributor III

Hello Pascal,

I have a screen shot of my Codewarrior IDE, which shows the L1016 warning that I am getting.

Unfortunately I am not able to send you the application because of company policy.

Let me know if you found anything.

Yours sincerely,

Huck

0 Kudos
Reply

2,563 Views
hucklim
Contributor III

Hello Pascal,

hier is the snap shot. I wonder if you can see/read the L1016 warning.

L1016.jpg

0 Kudos
Reply

2,563 Views
trytohelp
NXP Employee
NXP Employee

Hi Huck,

you're using Processor Expert too.

I don't know if the L1016 message is linked to the previous Information message saying:

      Source file "DDRY_ADC_EVENT.c" stored object file "DDRY_ADC_EVENT.c.o". This superceded the previous build dependency between source file "DDRY_ADC_EVENT.c" and that object file

Can you try to remove all objects code before to build the project ?

Do you get these 2 messages again ?

I don't think I could provide you more info/help without the project.

Regards

Pascal

0 Kudos
Reply

2,563 Views
hucklim
Contributor III

Hello Pascal,

I have remove all the objects code and build the project, it did not help. I got the same warning messages.

If I were to regenerate the project.mcp file again, either by importing my project.mcp.xml file, than the warning messages go away.

I believe the problem lies in corrupted project.mcp file.

I just want to know if I could get rid of the warning without regenerate the project.mcp file.

Thanks for your time and help anyway.

Yours sincerely,

Huck

0 Kudos
Reply

2,563 Views
trytohelp
NXP Employee
NXP Employee

Huck,

Without the project I could not help you to solve the problem.

Now it's possible to disable this message.

Please see below.

in this case the message will be listed in disabled.

pastedImage_0.png

Regards

Pascal

0 Kudos
Reply

2,563 Views
hucklim
Contributor III

Hello Pascal,

ok. Thanks for your time anyway.

I am solving the problem by re-generating the project.mcp file. That works for me.

Yours sincerely,

Huck

0 Kudos
Reply

2,563 Views
trytohelp
NXP Employee
NXP Employee

Hi Huck,

Thanks for your feedback

Pascal

0 Kudos
Reply