Skip to content

[BUG] profile: compilation fails ("cannot honor width suffix", 2nd edition) #16739

@sumpfralle

Description

@sumpfralle

Description / Steps to reproduce the issue

Please note: this issue is identical to #16655 (same title, two weeks ago)

Thankfully, @Gary-Hobson worked on that issue in PR #16675.
Now I noticed, that the PR did not solve the issue (same compiler error is here).

But an intermediate state of the PR indeed solved the issue (see a84d685). This commit works fine for me (I just tested it now).

But the PR included only commit 156ef05.

I could not decipher the PR's discussion fully. Thus, I cannot tell, why the working commit above did not make it into the final state of the PR. Maybe just an accidental omission?

The working commit (a84d685) can be cherry-picked into the current master without problems. It compiles cleanly for rp2040.

How to reproduce:

  1. enable profiling:
    CONFIG_PROFILE_ALL=y
    CONFIG_PROFILE_MINI=y
    
  2. see compilation failing:
    CC:  dirent/lib_alphasort.c mcount.S: Assembler messages:
    mcount.S:33: Error: cannot honor width suffix -- `bic r1,lr,#1'
    mcount.S:35: Error: cannot honor width suffix -- `bic r0,r0,#1'
    mcount.S:37: Error: cannot honor width suffix -- `pop {r0,r1,r2,r3,ip,lr}'
    make[3]: *** [Makefile:151: bin/mcount.o] Error 1
    make[3]: *** Waiting for unfinished jobs....
    make[2]: *** [tools/LibTargets.mk:196: libs/libc/libc.a] Error 2
    
    

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Debian Trixie

NuttX Version

master

Issue Architecture

[Arch: arm]

Issue Area

[Area: Debugging]

Host information

nuttx-host-info.txt

Verification

  • I have verified before submitting the report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Arch: armIssues related to ARM (32-bit) architectureArea: DebuggingDebugging issuesOS: LinuxIssues related to Linux (building system, etc)Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions