Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
crossdev arm glibc no TLS error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
bUscher
n00b
n00b


Joined: 02 Apr 2006
Posts: 8

PostPosted: Sun Jan 06, 2013 1:08 pm    Post subject: crossdev arm glibc no TLS error Reply with quote

Hello, I am trying to setup a crossdev for armv6j-hardfloat-linux-gnueabi (yes for rasberry pi)

Code:
crossdev -v -t armv6j-hardfloat-linux-gnueabi


 * crossdev version:      20120913
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   arm
 * Target System:         armv6j-hardfloat-linux-gnueabi
 * Stage:                 4 (C/C++ compiler)
 * ABIs:                  default

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * headers:               linux-headers-[latest]
 * libc:                  glibc-[latest]

 * CROSSDEV_OVERLAY:      /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PORTAGE_CONFIGROOT:   
 * Portage flags:          -v


it successfully emerges
cross-armv6j-hardfloat-linux-gnueabi/binutils-2.23.1
cross-armv6j-hardfloat-linux-gnueabi/linux-headers-3.7

but then fails for cross-armv6j-hardfloat-linux-gnueabi/glibc-2.15-r3

Code:
>>> Compiling source in /var/tmp/portage/cross-armv6j-hardfloat-linux-gnueabi/glibc-2.15-r3/work/glibc-2.15 ...
/var/tmp/portage/cross-armv6j-hardfloat-linux-gnueabi/glibc-2.15-r3/work/glibc-2.15/configure --disable-sanity-checks --enable-hacker-mode --enable-add-ons=nptl,ports --without-cvs --enable-bind-now --build=x86_64-pc-linux-gnu --host=armv6j-hardfloat-linux-gnueabi --with-headers=/usr/armv6j-hardfloat-linux-gnueabi/usr/include --prefix=/usr
configure: loading site script /usr/share/config.site
checking build system type... x86_64-pc-linux-gnu
checking host system type... armv6j-hardfloat-linux-gnueabi
checking for armv6j-hardfloat-linux-gnueabi-gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc... gcc
checking how to run the C preprocessor... gcc -E
checking for armv6j-hardfloat-linux-gnueabi-g++... no
checking for armv6j-hardfloat-linux-gnueabi-c++... no
checking for armv6j-hardfloat-linux-gnueabi-gpp... no
checking for armv6j-hardfloat-linux-gnueabi-aCC... no
checking for armv6j-hardfloat-linux-gnueabi-CC... no
checking for armv6j-hardfloat-linux-gnueabi-cxx... no
checking for armv6j-hardfloat-linux-gnueabi-cc++... no
checking for armv6j-hardfloat-linux-gnueabi-cl.exe... no
checking for armv6j-hardfloat-linux-gnueabi-FCC... no
checking for armv6j-hardfloat-linux-gnueabi-KCC... no
checking for armv6j-hardfloat-linux-gnueabi-RCC... no
checking for armv6j-hardfloat-linux-gnueabi-xlC_r... no
checking for armv6j-hardfloat-linux-gnueabi-xlC... no
checking for g++... g++
configure: WARNING: using cross tools not prefixed with host triplet
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
configure: running configure fragment for add-on nptl
checking add-on ports for preconfigure fragments... alpha am33 arm arm/preconfigure: Did not find ARM architecture type; using default
hppa m68k mips tile
checking for assembler gnu_indirect_function symbol type support... yes
checking whether .text pseudo-op must be used... yes
checking for assembler global-symbol directive... .globl
checking for assembler .type directive prefix... @
checking sysdep dirs... ports/sysdeps/arm/elf ports/sysdeps/unix/sysv/linux/arm/eabi/nptl ports/sysdeps/unix/sysv/linux/arm/eabi ports/sysdeps/unix/sysv/linux/arm/nptl ports/sysdeps/unix/sysv/linux/arm nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread ports/sysdeps/unix/sysv/linux sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet nptl/sysdeps/unix/sysv ports/sysdeps/unix/sysv sysdeps/unix/sysv ports/sysdeps/unix/arm nptl/sysdeps/unix ports/sysdeps/unix sysdeps/unix sysdeps/posix ports/sysdeps/arm/eabi ports/sysdeps/arm/fpu ports/sysdeps/arm/nptl ports/sysdeps/arm sysdeps/wordsize-32 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/as is GNU as... yes
checking whether /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld is GNU ld... yes
checking for /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/as... /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/as
checking version of /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/as... 2.23.1, ok
checking for /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld... /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld
checking version of /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld... 2.23.1, ok
checking for pwd... /usr/bin/pwd
checking for armv6j-hardfloat-linux-gnueabi-gcc... (cached) gcc
checking version of gcc... 4.7.2, ok
checking for gnumake... no
checking for gmake... gmake
checking version of gmake... 3.82, ok
checking for gnumsgfmt... no
checking for gmsgfmt... gmsgfmt
checking version of gmsgfmt... 0.18.1, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 4.13, ok
checking for sed... sed
checking version of sed... v. ?.??, bad
checking for armv6j-hardfloat-linux-gnueabi-readelf... armv6j-hardfloat-linux-gnueabi-readelf
checking for autoconf... autoconf
checking whether autoconf works... yes
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: sed
*** some features will be disabled.
*** Check the INSTALL file for required versions.
checking LD_LIBRARY_PATH variable... ok
checking whether GCC supports -static-libgcc... -static-libgcc
checking for bash... /bin/bash
checking for gawk... gawk
checking for perl... /usr/bin/perl
checking for install-info... /usr/bin/install-info
checking for bison... /usr/bin/bison
checking for signed size_t type... no
checking for libc-friendly stddef.h... yes
checking whether we need to use -P to assemble .S files... no
checking for .set assembler directive... yes
checking for assembler gnu_unique_object symbol type... yes
checking for .symver assembler directive... yes
checking for ld --version-script... yes
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... (cached) yes
checking for broken __attribute__((visibility()))... (cached) no
checking for broken __attribute__((alias()))... no
checking whether to put _rtld_local into .sdata section... no
checking for .preinit_array/.init_array/.fini_array support... yes
checking whether to use .ctors/.dtors header and trailer... no
checking for libunwind-support in compiler... no
checking for -z nodelete option... (cached) yes
checking for -z nodlopen option... (cached) yes
checking for -z initfirst option... (cached) yes
configure: WARNING: missing architecture parameter to check for working -z relro
checking for -Bgroup option... yes
checking for libgcc_s suffix...
checking for --as-needed option... yes
checking whether --noexecstack is desirable for .S files... yes
checking for -z combreloc... (cached) yes
checking for -z execstack... (cached) yes
checking for -fpie... yes
checking for --hash-style option... yes
checking for sufficient default -shared layout... no
checking linker output format... elf64-x86-64
checking for -fno-toplevel-reorder -fno-section-anchors... yes
checking for -fstack-protector... yes
checking for -fgnu89-inline... yes
checking whether cc puts quotes around section names... no
checking for assembler .weak directive... yes
checking whether CFI directives are supported... (cached) yes
checking for ld --no-whole-archive... yes
checking for gcc -fexceptions... yes
checking for __builtin_expect... yes
checking for __builtin_memset... yes
checking for redirection of built-in functions... yes
checking for __thread... (cached) yes
checking for tls_model attribute... yes
checking for libgd... yes
checking for is_selinux_enabled in -lselinux... no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of long double... 16
running configure fragment for ports/sysdeps/arm/elf
checking for ARM TLS support... no
configure: error: the assembler must support TLS
 * ERROR: cross-armv6j-hardfloat-linux-gnueabi/glibc-2.15-r3 failed (compile phase):
 *   failed to configure glibc
 *
 * Call stack:
 *           ebuild.sh, line   93:  Called src_compile
 *         environment, line 3241:  Called eblit-run 'src_compile'
 *         environment, line  886:  Called eblit-glibc-src_compile
 *   src_compile.eblit, line  186:  Called toolchain-glibc_headers_compile
 *   src_compile.eblit, line  174:  Called die
 * The specific snippet of code:
 *      CC=gcc \
 *      CFLAGS="-O1 -pipe" \
 *      CPPFLAGS="-U_FORTIFY_SOURCE" \
 *      "${S}"/configure ${myconf} || die "failed to configure glibc"


I don't get why there is no ARM TLS support, I am really stuck here, would be happy if you could give me some tipps :)

as for my ~amd64 system
Code:
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/ccache:          3.1.8
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54596
Location: 56N 3W

PostPosted: Sun Jan 06, 2013 1:46 pm    Post subject: Reply with quote

bUscher.

gcc-4.7.2 on your amd64 ?
Thats scary. Also you should be getting glibc-2.16 in the ARM cross development.

I'm all testing here and I still get gcc-4.6.3 on amd64 but gcc-4.7.2 in cross environment.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
bUscher
n00b
n00b


Joined: 02 Apr 2006
Posts: 8

PostPosted: Sun Jan 06, 2013 3:10 pm    Post subject: Reply with quote

nah, thats not scary at all.
But yes I manually unmasked it, so its not in ~amd64.
But that doesn't matter.

I looked into my overlay
and it didn't contain a glibc-2.16. So I just copied it from the the main portage tree and it works.
thx :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum