From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14184 invoked by alias); 22 Jun 2012 20:29:13 -0000 Received: (qmail 14176 invoked by uid 22791); 22 Jun 2012 20:29:12 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_GF X-Spam-Check-By: sourceware.org Received: from mail-ob0-f169.google.com (HELO mail-ob0-f169.google.com) (209.85.214.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 22 Jun 2012 20:28:58 +0000 Received: by obhx4 with SMTP id x4so3115983obh.0 for ; Fri, 22 Jun 2012 13:28:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.207.98 with SMTP id lv2mr3411534obc.13.1340396937648; Fri, 22 Jun 2012 13:28:57 -0700 (PDT) Received: by 10.182.19.162 with HTTP; Fri, 22 Jun 2012 13:28:57 -0700 (PDT) Date: Fri, 22 Jun 2012 20:29:00 -0000 Message-ID: Subject: Compiler support for visibility attribute is required (Crosstool 1.15.2) From: Todd Riffel To: crossgcc@sourceware.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2012-06/txt/msg00041.txt.bz2 Hey all, I=92m new to building cross-compiler toolchains, my experience is from using pre-built binaries. I=92m trying to create my own toolchain that targets the OMAP4 processor (Cortex-A9) running a Linux 3.0.x kernel. I=92ve discovered that using crosstool is probably the best way of doing this, and I=92ve been working on it for a bit. My development environment is CentOS 6.2 which probably doesn=92t make my task any easier. I=92m using gcc and the glibc library. I=92ve gotten to the point where crosstool is trying to configure the C library, but it fails at detecting the compiler=92s support for the visibility attribute. After doing some Google research I=92ve unfortunately been unable to find a solution to my problem. Any help would be greatly appreciated. Here=92s an excerpt from the bottom of my build.log: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D Installing C library headers & start files [EXTRA] Configuring C library [DEBUG] Using gcc for target : '/home/triffel/crosstool-ng/crosstool-ng-build/.build/armeb-unknown-linux-g= nueabi/buildtools/bin/armeb-unknown-linux-gnueabi-gcc' [DEBUG] Configuring with addons : 'nptl,ports' [DEBUG] Extra config args passed: '--disable-debug --disable-sanity-checks --enable-kernel=3D3.0.30 --with-__thread --with-tls --enable-shared --with-fp --enable-add-ons=3Dnptl,ports' [DEBUG] Extra CC args passed : ' -U_FORTIFY_SOURCE -mbig-endian -march=3Darmv7 -mcpu=3Dxscale -mtune=3Dcortex-a9 -mfpu=3Dneon -mhard-float -O2 ' [DEBUG] Extra flags (multilib) : '' [DEBUG] =3D=3D> Executing: 'BUILD_CC=3Dx86_64-build_unknown-linux-gnu-gcc' 'CFLAGS=3D -U_FORTIFY_SOURCE -mbig-endian -march=3Darmv7 -mcpu=3Dxscale -mtune=3Dcortex-a9 -mfpu=3Dneon -mhard-float -O2 ' 'CC=3Darmeb-unknown-linux-gnueabi-gcc ' 'AR=3Darmeb-unknown-linux-gnueabi-ar' 'RANLIB=3Darmeb-unknown-linux-gnueabi-ranlib' '/bin/bash' '/home/triffel/crosstool-ng/crosstool-ng-build/.build/src/glibc-2.14.1/conf= igure' '--prefix=3D/usr' '--build=3Dx86_64-build_unknown-linux-gnu' '--host=3Darmeb-unknown-linux-gnueabi' '--cache-file=3D/home/triffel/crosstool-ng/crosstool-ng-build/.build/armeb-= unknown-linux-gnueabi/build/build-libc-startfiles/config.cache' '--without-cvs' '--disable-profile' '--without-gd' '--with-headers=3D/home/triffel/x-tools/armeb-unknown-linux-gnueabi/armeb-u= nknown-linux-gnueabi/sysroot/usr/include' '--disable-debug' '--disable-sanity-checks' '--enable-kernel=3D3.0.30' '--with-__thread' '--with-tls' '--enable-shared' '--with-fp' '--enable-add-ons=3Dnptl,ports' [CFG ] configure: loading cache /home/triffel/crosstool-ng/crosstool-ng-build/.build/armeb-unknown-linux-gn= ueabi/build/build-libc-startfiles/config.cache [CFG ] checking build system type... x86_64-build_unknown-linux-gnu [CFG ] checking host system type... armeb-unknown-linux-gnueabi [CFG ] checking for armeb-unknown-linux-gnueabi-gcc... armeb-unknown-linux-gnueabi-gcc [CFG ] checking for suffix of object files... o [CFG ] checking whether we are using the GNU C compiler... yes [CFG ] checking whether armeb-unknown-linux-gnueabi-gcc accepts -g.= .. no [CFG ] checking for armeb-unknown-linux-gnueabi-gcc option to accept ISO C89... unsupported [CFG ] checking for gcc... x86_64-build_unknown-linux-gnu-gcc [CFG ] checking how to run the C preprocessor... /lib/cpp [CFG ] checking for armeb-unknown-linux-gnueabi-g++... no [CFG ] checking for armeb-unknown-linux-gnueabi-c++... no [CFG ] checking for armeb-unknown-linux-gnueabi-gpp... no [CFG ] checking for armeb-unknown-linux-gnueabi-aCC... no [CFG ] checking for armeb-unknown-linux-gnueabi-CC... no [CFG ] checking for armeb-unknown-linux-gnueabi-cxx... no [CFG ] checking for armeb-unknown-linux-gnueabi-cc++... no [CFG ] checking for armeb-unknown-linux-gnueabi-cl.exe... no [CFG ] checking for armeb-unknown-linux-gnueabi-FCC... no [CFG ] checking for armeb-unknown-linux-gnueabi-KCC... no [CFG ] checking for armeb-unknown-linux-gnueabi-RCC... no [CFG ] checking for armeb-unknown-linux-gnueabi-xlC_r... no [CFG ] checking for armeb-unknown-linux-gnueabi-xlC... no [CFG ] checking for g++... g++ [CFG ] configure: WARNING: using cross tools not prefixed with host tri= plet [CFG ] checking whether we are using the GNU C++ compiler... yes [CFG ] checking whether g++ accepts -g... yes [CFG ] configure: running configure fragment for add-on nptl [CFG ] checking add-on ports for preconfigure fragments... alpha am33 arm hppa m68k mips [CFG ] checking for assembler gnu_indirect_function symbol type support... yes [CFG ] checking whether .text pseudo-op must be used... yes [CFG ] checking for assembler global-symbol directive... .globl [CFG ] checking for assembler .type directive prefix... % [CFG ] 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 [CFG ] checking for a BSD-compatible install... /home/triffel/crosstool-ng/crosstool-ng-build/.build/tools/bin/install -c [CFG ] checking whether ln -s works... yes [CFG ] checking whether /home/triffel/crosstool-ng/crosstool-ng-build/.build/armeb-unknown-linux-gn= ueabi/buildtools/lib/gcc/armeb-unknown-linux-gnueabi/4.5.3/../../../../arme= b-unknown-linux-gnueabi/bin/as is GNU as... yes [CFG ] checking whether /home/triffel/crosstool-ng/crosstool-ng-build/.build/armeb-unknown-linux-gn= ueabi/buildtools/lib/gcc/armeb-unknown-linux-gnueabi/4.5.3/../../../../arme= b-unknown-linux-gnueabi/bin/ld is GNU ld... yes [CFG ] checking for /home/triffel/crosstool-ng/crosstool-ng-build/.build/armeb-unknown-linux-gn= ueabi/buildtools/lib/gcc/armeb-unknown-linux-gnueabi/4.5.3/../../../../arme= b-unknown-linux-gnueabi/bin/as... /home/triffel/crosstool-ng/crosstool-ng-build/.build/armeb-unknown-linux-gn= ueabi/buildtools/lib/gcc/armeb-unknown-linux-gnueabi/4.5.3/../../../../arme= b-unknown-linux-gnueabi/bin/as [CFG ] checking version of /home/triffel/crosstool-ng/crosstool-ng-build/.build/armeb-unknown-linux-gn= ueabi/buildtools/lib/gcc/armeb-unknown-linux-gnueabi/4.5.3/../../../../arme= b-unknown-linux-gnueabi/bin/as... 2.21.1, ok [CFG ] checking for /home/triffel/crosstool-ng/crosstool-ng-build/.build/armeb-unknown-linux-gn= ueabi/buildtools/lib/gcc/armeb-unknown-linux-gnueabi/4.5.3/../../../../arme= b-unknown-linux-gnueabi/bin/ld... /home/triffel/crosstool-ng/crosstool-ng-build/.build/armeb-unknown-linux-gn= ueabi/buildtools/lib/gcc/armeb-unknown-linux-gnueabi/4.5.3/../../../../arme= b-unknown-linux-gnueabi/bin/ld [CFG ] checking version of /home/triffel/crosstool-ng/crosstool-ng-build/.build/armeb-unknown-linux-gn= ueabi/buildtools/lib/gcc/armeb-unknown-linux-gnueabi/4.5.3/../../../../arme= b-unknown-linux-gnueabi/bin/ld... 2.21.1, ok [CFG ] checking for pwd... /bin/pwd [CFG ] checking for armeb-unknown-linux-gnueabi-gcc... (cached) armeb-unknown-linux-gnueabi-gcc [CFG ] checking version of armeb-unknown-linux-gnueabi-gcc ... 4.5.3= , ok [CFG ] checking for gnumake... no [CFG ] checking for gmake... gmake [CFG ] checking version of gmake... 3.81, ok [CFG ] checking for gnumsgfmt... no [CFG ] checking for gmsgfmt... no [CFG ] checking for msgfmt... msgfmt [CFG ] checking version of msgfmt... 0.17, ok [CFG ] checking for makeinfo... makeinfo [CFG ] checking version of makeinfo... 4.13, ok [CFG ] checking for sed... sed [CFG ] checking version of sed... 4.2.1, ok [CFG ] checking for autoconf... autoconf [CFG ] checking whether autoconf works... yes [CFG ] checking LD_LIBRARY_PATH variable... ok [CFG ] checking whether GCC supports -static-libgcc... -static-libgcc [CFG ] checking for bash... (cached) /bin/bash [CFG ] checking for gawk... gawk [CFG ] checking for perl... /usr/bin/perl [CFG ] checking for install-info... /sbin/install-info [CFG ] checking for bison... /usr/bin/bison [CFG ] checking for signed size_t type... no [CFG ] checking for libc-friendly stddef.h... yes [CFG ] checking whether we need to use -P to assemble .S files... yes [CFG ] checking for .set assembler directive... yes [CFG ] checking for assembler gnu_unique_object symbol type... yes [CFG ] checking for .symver assembler directive... yes [CFG ] checking for ld --version-script... yes [CFG ] checking for .previous assembler directive... yes [CFG ] checking for .protected and .hidden assembler directive... yes [CFG ] checking whether __attribute__((visibility())) is supported... no [ERROR] configure: error: compiler support for visibility attribute is required [ERROR] [ERROR] >> [ERROR] >> Build failed in step 'Installing C library headers & start fil= es' [ERROR] >> called in step '(top-level)' [ERROR] >> [ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@172] [ERROR] >> called from: do_libc_backend_once[scripts/build/libc/glibc-eglibc.sh-common@347] [ERROR] >> called from: do_libc_backend[scripts/build/libc/glibc-eglibc.sh-common@143] [ERROR] >> called from: do_libc_start_files[scripts/build/libc/glibc-eglibc.sh-common@60] [ERROR] >> called from: main[scripts/crosstool-NG.sh@598] [ERROR] >> [ERROR] >> For more info on this error, look at the file: 'build.log' [ERROR] >> There is a list of known issues, some with workarounds, in: [ERROR] >> '/opt/crosstool-ng/share/doc/crosstool-ng/ct-ng.1.15.2/B - Known issues.txt' [ERROR] [ERROR] (elapsed: 11:08.50) Thanks, Todd -- For unsubscribe information see http://sourceware.org/lists.html#faq