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

Multiple definition of `yylloc' #428

Open
V0rt3kz opened this issue Aug 11, 2022 · 1 comment
Open

Multiple definition of `yylloc' #428

V0rt3kz opened this issue Aug 11, 2022 · 1 comment

Comments

@V0rt3kz
Copy link

V0rt3kz commented Aug 11, 2022

The current version of Odroidc2 is returning an issue related to `yylloc'

Error:

/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x50): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [scripts/Makefile.host:127: scripts/dtc/dtc] Error 1
make[1]: *** [scripts/Makefile.build:404: scripts/dtc] Error 2
make: *** [Makefile:563: scripts] Error 2
make: *** Waiting for unfinished jobs....

How to reproduce?

git clone https://github.com/hardkernel/linux.git -b odroidc2-v3.16.y odroid-3.16
cd odroid-3.16/
make odroidc2_defconfig
make -j8

How to fix it?

Modify line 640 in scripts/dtc/dtc-lexer.lex.c and add at the begining of the line "extern"

@moonlinux
Copy link

Plz, intergrade this upstream patch to resolve this issue.
https://lkml.org/lkml/2020/4/1/1206

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

2 participants