Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not build #2

Open
zajaklis opened this issue Apr 12, 2016 · 2 comments
Open

does not build #2

zajaklis opened this issue Apr 12, 2016 · 2 comments

Comments

@zajaklis
Copy link

wanted to test out new sunxi emac patch from DD branch
by choosing target: orange pi PC
im getting:

CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[6]: `include/generated/mach-types.h' is up to date.
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC drivers/net/ethernet/allwinner/sun8i-emac.o
drivers/net/ethernet/allwinner/sun8i-emac.c: In function 'sun8i_emac_mdio_probe':
drivers/net/ethernet/allwinner/sun8i-emac.c:906:2: error: implicit declaration of function 'phy_attached_info' [-Werror=implicit-function-declaration]
phy_attached_info(phydev);
^
drivers/net/ethernet/allwinner/sun8i-emac.c: At top level:
drivers/net/ethernet/allwinner/sun8i-emac.c:1413:13: warning: 'sun8i_emac_poll_controller' defined but not used [-Wunused-function]
static void sun8i_emac_poll_controller(struct net_device ndev)
^
cc1: some warnings being treated as errors
make[9]: *
* [drivers/net/ethernet/allwinner/sun8i-emac.o] Error 1
make[8]: *** [drivers/net/ethernet/allwinner] Error 2
make[7]: *** [drivers/net/ethernet] Error 2
make[6]: *** [drivers/net] Error 2
make[5]: *** [drivers] Error 2

@Ntemis
Copy link
Owner

Ntemis commented Apr 13, 2016

you need >4.5 kernel to be able to build right now

Ntemis pushed a commit that referenced this issue Jun 11, 2016
One of the patched files, include/unwind-cxx.h, contains windows newlines
which lead to the following failure:

  Applying ./patches/006-eabi_fix.patch using plaintext:
  patching file include/typeinfo
  patching file include/unwind-cxx.h
  Hunk #1 FAILED at 173 (different line endings).
  Hunk #2 FAILED at 181 (different line endings).

Add a fixup command to the prepare phase which normalizes the line endings
before applying source patches.

Signed-off-by: Jo-Philipp Wich <[email protected]>
@andreykyz
Copy link

andreykyz commented Jun 24, 2016

You can comment line 906 with:
phy_attached_info(phydev);
code. That is just print message.

Ntemis pushed a commit that referenced this issue Oct 5, 2016
Ntemis pushed a commit that referenced this issue Dec 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants