Skip to content

failed to compile v3.8 with LTO #3

@xming

Description

@xming

hi,

the same toolchain can compile c3.6 and v3.7 just fine, but fails to compile v3.8 on 2 machines here, during linking there are tons of undefined references.

I use this to compile "PATH=/opt/binutils-2.23.51.0.9/bin:$PATH make CC=gcc472 LD=ld-plugin", what am I doing wrong?

e.g.

/tmp/ccNbewVh.ltrans13.ltrans.o: In function `acpi_init.1100031':
ccNbewVh.ltrans13.o:(.init.text+0x126d): undefined reference to `kobject_create_and_add'
ccNbewVh.ltrans13.o:(.init.text+0x1654): undefined reference to `kobject_create_and_add'
ccNbewVh.ltrans13.o:(.init.text+0x1673): undefined reference to `kobject_create_and_add'
ccNbewVh.ltrans13.o:(.init.text+0x171c): undefined reference to `kobject_put'
ccNbewVh.ltrans13.o:(.init.text+0x1b0a): undefined reference to `kobject_uevent'
ccNbewVh.ltrans13.o:(.init.text+0x1b18): undefined reference to `kobject_uevent'
.
.
.
/tmp/ccNbewVh.ltrans14.ltrans.o: In function `rescan_partitions':
ccNbewVh.ltrans14.o:(.text+0x12a81): undefined reference to `snprintf'
ccNbewVh.ltrans14.o:(.text+0x12a89): undefined reference to `strlen'
ccNbewVh.ltrans14.o:(.text+0x12a94): undefined reference to `_ctype'
ccNbewVh.ltrans14.o:(.text+0x12bf5): undefined reference to `kobject_uevent'
ccNbewVh.ltrans14.o:(.text+0x12c5a): undefined reference to `strlcat'
ccNbewVh.ltrans14.o:(.text+0x12cc5): undefined reference to `strlcat'
.
.
.

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