Skip to content

build-stage0 fails on fedora #355

@henriqueleng

Description

@henriqueleng

Hi,
I'm returning to sabotage :), I got fedora 22 to build it. The version of gcc is 5.1.1 (I couldn't get an older), and I installed glibc-static.
It fails to build stage0_musl (in the moment of linking), the error message on the log is:
...
rm -f lib/libc.a
ar rc lib/libc.a src/aio/aio.o src/aio/aio_suspend.o src/aio/lio_listio.o src/complex/__cexp.o src/complex/__cexpf.o src/complex/cabs.o src/complex/cabsf.o src/comp$
ranlib lib/libc.a
/bin/ld: src/env/__init_tls.lo: relocation R_X86_64_PC32 against symbol `__libc' can not be used when making a shared object; recompile with -fPIC
/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
Makefile:149: recipe for target 'lib/libc.so' failed
make: *** [lib/libc.so] Error 1
make: *** Waiting for unfinished jobs....

I would like to solve this problem before trying to build in another distro, I couldn't figure why its showing up. Could you guys help?

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