This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Compiler support for visibility attribute is required (Crosstool 1.15.2)


Hey all,

I’m new to building cross-compiler toolchains, my experience is from
using pre-built binaries.  I’m trying to create my own toolchain that
targets the OMAP4 processor (Cortex-A9) running a Linux 3.0.x kernel.
I’ve discovered that using crosstool is probably the best way of doing
this, and I’ve been working on it for a bit.  My development
environment is CentOS 6.2 which probably doesn’t make my task any
easier.  I’m using gcc and the glibc library.  I’ve gotten to the
point where crosstool is trying to configure the C library, but it
fails at detecting the compiler’s support for the visibility
attribute.  After doing some Google research I’ve unfortunately been
unable to find a solution to my problem.  Any help would be greatly
appreciated.

Here’s an excerpt from the bottom of my build.log:

======================================================
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-gnueabi/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=3.0.30 --with-__thread
--with-tls --enable-shared --with-fp --enable-add-ons=nptl,ports'
[DEBUG]    Extra CC args passed    : ' -U_FORTIFY_SOURCE  -mbig-endian
-march=armv7  -mcpu=xscale -mtune=cortex-a9 -mfpu=neon -mhard-float
-O2 '
[DEBUG]    Extra flags (multilib)  : ''
[DEBUG]    ==> Executing:
'BUILD_CC=x86_64-build_unknown-linux-gnu-gcc' 'CFLAGS=
-U_FORTIFY_SOURCE  -mbig-endian -march=armv7  -mcpu=xscale
-mtune=cortex-a9 -mfpu=neon -mhard-float  -O2 '
'CC=armeb-unknown-linux-gnueabi-gcc    '
'AR=armeb-unknown-linux-gnueabi-ar'
'RANLIB=armeb-unknown-linux-gnueabi-ranlib' '/bin/bash'
'/home/triffel/crosstool-ng/crosstool-ng-build/.build/src/glibc-2.14.1/configure'
'--prefix=/usr' '--build=x86_64-build_unknown-linux-gnu'
'--host=armeb-unknown-linux-gnueabi'
'--cache-file=/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=/home/triffel/x-tools/armeb-unknown-linux-gnueabi/armeb-unknown-linux-gnueabi/sysroot/usr/include'
'--disable-debug' '--disable-sanity-checks' '--enable-kernel=3.0.30'
'--with-__thread' '--with-tls' '--enable-shared' '--with-fp'
'--enable-add-ons=nptl,ports'
[CFG  ]    configure: loading cache
/home/triffel/crosstool-ng/crosstool-ng-build/.build/armeb-unknown-linux-gnueabi/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 triplet
[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-gnueabi/buildtools/lib/gcc/armeb-unknown-linux-gnueabi/4.5.3/../../../../armeb-unknown-linux-gnueabi/bin/as
is GNU as... yes
[CFG  ]    checking whether
/home/triffel/crosstool-ng/crosstool-ng-build/.build/armeb-unknown-linux-gnueabi/buildtools/lib/gcc/armeb-unknown-linux-gnueabi/4.5.3/../../../../armeb-unknown-linux-gnueabi/bin/ld
is GNU ld... yes
[CFG  ]    checking for
/home/triffel/crosstool-ng/crosstool-ng-build/.build/armeb-unknown-linux-gnueabi/buildtools/lib/gcc/armeb-unknown-linux-gnueabi/4.5.3/../../../../armeb-unknown-linux-gnueabi/bin/as...
/home/triffel/crosstool-ng/crosstool-ng-build/.build/armeb-unknown-linux-gnueabi/buildtools/lib/gcc/armeb-unknown-linux-gnueabi/4.5.3/../../../../armeb-unknown-linux-gnueabi/bin/as
[CFG  ]    checking version of
/home/triffel/crosstool-ng/crosstool-ng-build/.build/armeb-unknown-linux-gnueabi/buildtools/lib/gcc/armeb-unknown-linux-gnueabi/4.5.3/../../../../armeb-unknown-linux-gnueabi/bin/as...
2.21.1, ok
[CFG  ]    checking for
/home/triffel/crosstool-ng/crosstool-ng-build/.build/armeb-unknown-linux-gnueabi/buildtools/lib/gcc/armeb-unknown-linux-gnueabi/4.5.3/../../../../armeb-unknown-linux-gnueabi/bin/ld...
/home/triffel/crosstool-ng/crosstool-ng-build/.build/armeb-unknown-linux-gnueabi/buildtools/lib/gcc/armeb-unknown-linux-gnueabi/4.5.3/../../../../armeb-unknown-linux-gnueabi/bin/ld
[CFG  ]    checking version of
/home/triffel/crosstool-ng/crosstool-ng-build/.build/armeb-unknown-linux-gnueabi/buildtools/lib/gcc/armeb-unknown-linux-gnueabi/4.5.3/../../../../armeb-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 files'
[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]