Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Multiple definition of `yylloc' #428

@V0rt3kz

Description

@V0rt3kz

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions