Symptom
Power off/on or reload device we can see below error output .
-------
%LINK-3-UPDOWN: Interface GigabitEthernet7/0/23, changed state to up
%LINK-3-UPDOWN: Interface GigabitEthernet6/0/23, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet7/0/23, changed state to up
%LINK-3-UPDOWN: Interface Port-channelx, changed state to up
%ETC-5-CANNOT_BUNDLE2: Gi6/0/23 is not compatible with Gi7/0/23 and will be suspended (trunk mode of Gi6/0/23 is access, Gi7/0/23 is trunk)
%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet6/0/23, changed state to up
-------
Conditions
1.switchport mode dynamic desirable
2.two port on different LC
Workaround
use switchport mode trunk