Skip to content

[BUG] Build fail with RF-2016.4 for CNL #2145

Closed

Description

@singalsu

Describe the bug

[ 69%] Building C object CMakeFiles/sof.dir/src/audio/pcm_converter/pcm_converter_hifi3.c.o
/home/singalsu/tmp/sof/src/audio/pcm_converter/pcm_converter_hifi3.c: In function ‘pcm_convert_s24_to_s16’:
/home/singalsu/tmp/sof/src/audio/pcm_converter/pcm_converter_hifi3.c:169: error: perhaps a TIE conversion macro (from int to ae_int16x4) is missing
/home/singalsu/tmp/sof/src/audio/pcm_converter/pcm_converter_hifi3.c:169: error: incompatible type for argument 1 of ‘AE_S16_0_XC’

To Reproduce
Build for CNL with configuration X6H3CNL_2016_4_linux and xt-xcc version RF-2016.4

Reproduction Rate
Always

Expected behavior
A clear and concise description of what you expected to happen.

Impact
What impact does this issue have on your progress (e.g., annoyance, showstopper)

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
  2. Name of the topology file
    • Topology: N/A
  3. Name of the platform(s) on which the bug is observed.
    • Platform: CNL

Screenshots or console output
If applicable, add a screenshot (drag-and-drop an image), or console logs
(cut-and-paste text and put a code fence (```) before and after, to help
explain the issue.

Please also include the relevant sections from the firmware log and kernel log in the report (and attach the full logs for complete reference). Kernel log is taken from dmesg and firmware log from sof-logger. See https://thesofproject.github.io/latest/developer_guides/debugability/logger/index.html

Activity

  1. added
    bugSomething isn't working as expected
    CNLApplies to Cannonlake platform
    on Nov 27, 2019
  2. added
    P1Blocker bugs or important features
    on Nov 27, 2019
  3. lbetlej commented on Nov 27, 2019

    @lbetlej
    Collaborator

    @singalsu Is the issue reproduced with RG-2017.8 compiler ? I recommend you to update toolchain to RG-2017.8.

  4. singalsu commented on Nov 27, 2019

    @singalsu
    CollaboratorAuthor

    @singalsu Is the issue reproduced with RG-2017.8 compiler ? I recommend you to update toolchain to RG-2017.8.

    I just installed RG-2017.8 and it builds OK.

    Should I just close this issue?

  5. lgirdwood commented on Nov 27, 2019

    @lgirdwood
    Member

    @singalsu is xtensa-build.sh updated to use the new CC ?

  6. singalsu commented on Nov 27, 2019

    @singalsu
    CollaboratorAuthor

    @lgirdwood Yes, it is up to date.

  7. paulstelian97 commented on Nov 28, 2019

    @paulstelian97
    Collaborator

    @singalsu i.MX8 also is on 2016.4 and I'm not sure I can update. @dbaluta Does NXP have a newer toolchain we can use?

  8. paulstelian97 commented on Nov 28, 2019

    @paulstelian97
    Collaborator

    @lgirdwood Will send scripts update for i.MX8 when the compiler is readily available in NXP.

    @Mihaix Be aware that this issue affects us and RG-2017.8 fixes it for us as well.

  9. dbaluta commented on Nov 28, 2019

    @dbaluta
    Collaborator

    @singalsu why don't you upgrade to a newer version? We've seen RI-2019.1 out there.

  10. lgirdwood commented on Nov 28, 2019

    @lgirdwood
    Member

    @paulstelian97 @dbaluta is it worth adding a compiler.h that will reject building certain platforms if the compiler is a certain version (like Linux does ?)

  11. singalsu commented on Nov 28, 2019

    @singalsu
    CollaboratorAuthor

    @dbaluta Personally I'd prefer newest compiler too (should have advantage in code speed etc.) but since our CI and official builds use some long time ago decided version I've installed those.

    @lgirdwood I've got myself similar build errors too. Build for CNL has been more picky with the types for intrinsics. It should be a simple fix for pcm_converter_hifi3.c to avoid this, possibly just add a manual type cast when compiler does not know what to do with various AE vs. C integer types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

CNLApplies to Cannonlake platformP1Blocker bugs or important featuresbugSomething isn't working as expected

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions