Skip to content

FTBFS on Debian #2196

Closed
Closed

Description

@mati75

Hi,

On build kernel in the Debian way with sources from this repository. Build is failed on:

/<<PKGBUILDDIR>>/drivers/char/broadcom/vc_sm/vmcs_sm.c: In function 'vc_sm_global_state_show':
/<<PKGBUILDDIR>>/drivers/char/broadcom/vc_sm/vmcs_sm.c:576:48: error: format '%X' expects argument of type 'unsigned int', but argument 3 has type 'dma_addr_t {aka long long unsigned int}' [-Werror=format=]
    seq_printf(s, "           DMA_ADDR     0x%08X\n",

The same issue is on 4.9 and 4.12.

Activity

  1. JamesH65 commented on Sep 13, 2017

    @JamesH65
    Contributor

    What system are you building on, and which version of gcc?

  2. 6by9 commented on Sep 13, 2017

    @6by9
    Contributor

    https://github.com/raspberrypi/linux/blob/rpi-4.9.y/include/linux/types.h#L142

    #ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
    typedef u64 dma_addr_t;
    #else
    typedef u32 dma_addr_t;
    #endif
    

    Why have you got CONFIG_ARCH_DMA_ADDR_T_64BIT defined, or are you trying to build a 64bit kernel?
    We don't support 64 bit kernels, and I don't know how well this driver is going to work in a 64 bit world.

    I'll investigate whether it is possible when I get a chance, but you'll have to give a bundle of information on what "the Debian way" is.

  3. mati75 commented on Sep 13, 2017

    @mati75
    Author

    @JamesH65 raspbian version of gcc-6 from stretch repo and buster repo.

    @6by9 Here is sources for packages: https://github.com/mati75/linux-rpi In the same way I was build month ago 4.12.6 and it build fine. After changes in vmcs_sm.c something is wrong.

  4. 6by9 commented on Sep 13, 2017

    @6by9
    Contributor

    Lovely repo. A few instructions would help? Which config are you actually building?

    What is "wrong" is that you're building with a different set of config options to the standard Pi builds, and your compiler is saying that printf("%u", u64) will result in truncation.
    Without any extra info you'll get a cast printf("%u", (u32)u64) which will silence the warning but isn't a fix.

  5. mati75 commented on Sep 24, 2017

    @mati75
    Author

    I found the reason of this bug.
    I build kernel for v6 and v7 in the same time. When CONFIG_BCM_VC_SM=y is enabled when build failt.
    The same problem is in Arch arm: archlinuxarm/PKGBUILDs@a34d705#comments

  6. JamesH65 commented on Dec 5, 2017

    @JamesH65
    Contributor

    @mati75 So this can be closed?

  7. added
    Waiting for external input
    on Dec 5, 2017
  8. JamesH65 commented on Jun 27, 2018

    @JamesH65
    Contributor

    Closing due to lack of activity. Please request to be reopened if you feel this issue is still relevant.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Waiting for external input

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions