Skip to content

Error in linux/drivers/usb/host/dwc_common_port/Makefile #97

Closed

Description

@HemantJoshi

I checked out raspberrypi linux rpi-3.2.27. As usual was trying to build the kernel. During compilation, make gave error with following message:
"Must give "KDIR=/path/to/kernel/source" on command line or in environment"

So I opened the file in emacs to see the said Makefile and found that around (before) line 34, there was a pink band visible. This appears to me some text formatting characters accidentally got inserted. After removing this band, the compilation was through. Some other editors may not show this typo. Hence will be difficult to know what is wrong.

Activity

  1. ghollingworth commented on Aug 31, 2012

    @ghollingworth

    Can you do a clean git checkout and try again? It is most likely a git issue because I don't believe it is in the code... But I've not yet been able to build it because I running with local changes...

  2. popcornmix commented on Sep 9, 2012

    @popcornmix
    Collaborator

    I've removed the check for KDIR as it doesn't seem necessary when building from within kernel.

  3. HemantJoshi commented on Sep 9, 2012

    @HemantJoshi
    Author

    Thanks. But did you see the pink color band (formatting) characters appearing in there (seen in Emacs)?
    After a fresh checkout last week, I found the pink band still present was causing error.

    -Hemant


    From: popcornmix notifications@github.com
    To: raspberrypi/linux linux@noreply.github.com
    Cc: HemantJoshi hemantnjoshi@yahoo.com
    Sent: Sunday, September 9, 2012 6:27 PM
    Subject: Re: [linux] Error in linux/drivers/usb/host/dwc_common_port/Makefile (#97)

    I've removed the check for KDIR as it doesn't seem necessary when building from within kernel.
    —
    Reply to this email directly or view it on GitHub.

  4. popcornmix commented on Sep 9, 2012

    @popcornmix
    Collaborator

    I don't believe there is problem. emacs is probably just hightlighting whitespace.

  5. HemantJoshi commented on Sep 9, 2012

    @HemantJoshi
    Author

    No I don't think so. There are a couple of white spaces throughout the file. Emacs doesn't show all of those.
    Additionally removing the pink band, causes compilation to complete successfully. But keeping the pink band causes error.

    -Hemant


    From: popcornmix notifications@github.com
    To: raspberrypi/linux linux@noreply.github.com
    Cc: HemantJoshi hemantnjoshi@yahoo.com
    Sent: Sunday, September 9, 2012 7:57 PM
    Subject: Re: [linux] Error in linux/drivers/usb/host/dwc_common_port/Makefile (#97)

    I don't believe there is problem. emacs is probably just hightlighting whitespace.
    —
    Reply to this email directly or view it on GitHub.

  6. popcornmix commented on Sep 9, 2012

    @popcornmix
    Collaborator

    Can you delete all lines except the pink band and then run
    od -t x1 Makefile
    so I can see the characters you are refererring to.

  7. popcornmix commented on Sep 15, 2012

    @popcornmix
    Collaborator

    Not convinced there is a problem here. No one else has complained.
    Please reopen if more evidence is found.

  8. 16 remaining items

  9. added a commit that references this issue on Jan 30, 2024
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions