Problems building glibc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm just thinking maybe the toolchain is broken there. I'm using a sheevaplug.

I want to build glibc. I get the same problem also with eglibc.

glibc's configure tries to check if "-fexceptions" works in gcc. So it
issues this test:

  cat > conftest.c <<\EOF
_start () {}
int __eh_pc;
__throw () {}
EOF

gcc -nostdlib -nostartfiles -fexceptions conftest

Which ends this way:
/tmp/nix-build-dyvs01kjvp1k9ja2krq5xfjgcj55sgm7-eglibc-2.9.drv-0/ccCmXD2v.o:(.ARM.exidx+0x0):
undefined reference to `__aeabi_unwind_cpp_pr0'

This symbol is in libgcc_s. This file is not included in the linking
when using -nostdlib.
I test the same in my i686, and all works. I think it doesn't need
anything from libgcc_s for the tests in conftest.c.

Exceptions are needed for nptl support in glibc, and I think glibc
won't compile well without nptl (trying to disable it, I get errors
about TLS, which also I could not manage to avoid). I think I should
point to having nptl support, as it's there for arm.

Trying to add "-lgcc_s" in LDFLAGS doesn't help, because this breaks
the tests for "-static" compilations. libgcc_s is in fedora only as
shared library.

How should I build glibc or eglibc? Can I check the build scripts for
fedora's glibc somewhere?

Regards,
Lluís.

_______________________________________________
fedora-arm mailing list
fedora-arm@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-arm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM (Vger)]     [Linux ARM]     [ARM Kernel]     [Fedora User Discussion]     [Older Fedora Users Discussion]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [Linux Apps]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

Powered by Linux