[LLVMbugs] [Bug 4744] New: error compiling multilib for llvm-gcc as a cross-compiler for arm

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Aug 19 14:32:18 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=4744

           Summary: error compiling multilib for llvm-gcc as a cross-
                    compiler for arm
           Product: tools
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: timm at apple.com
                CC: llvmbugs at cs.uiuc.edu


Using binutils 2.18 and newlib 1.17

Configure args:
timMac:llvm-gcc-build timm$ ../llvm-gcc-4.2.1/configure
--prefix=/usr/local/llvm/armtools --program-prefix=llvm-
--enable-llvm=/Users/timm/armtools-build/llvm-build/ --enable-languages=c++
--host=i686-apple-darwin9 --build=i686-apple-darwin9 --target=arm-elf
--with-gxx-include-dir=/usr/include/c++/4.0.0 --enable-interwork
--enable-multilib --with-newlib
--with-header=../newlib-1.17.0/newlib/libc/include

Results:
timMac:llvm-gcc-build timm$ make all-gcc BUILDOPTIONS=LLVM_VERSION_INFO=2.5
...
/usr/local/llvm/armtools/arm-elf/bin/ar  rc ./libgcov.a libgcc/./_gcov.o
libgcc/./_gcov_merge_add.o libgcc/./_gcov_merge_single.o
libgcc/./_gcov_merge_delta.o libgcc/./_gcov_fork.o libgcc/./_gcov_execl.o
libgcc/./_gcov_execlp.o libgcc/./_gcov_execle.o libgcc/./_gcov_execv.o
libgcc/./_gcov_execvp.o libgcc/./_gcov_execve.o
libgcc/./_gcov_interval_profiler.o libgcc/./_gcov_pow2_profiler.o
libgcc/./_gcov_one_value_profiler.o
/usr/local/llvm/armtools/arm-elf/bin/ranlib ./libgcov.a
make GCC_FOR_TARGET="/Users/timm/armtools-build/llvm-gcc-build/./gcc/xgcc
-B/Users/timm/armtools-build/llvm-gcc-build/./gcc/
-B/usr/local/llvm/armtools/arm-elf/bin/ -B/usr/local/llvm/armtools/arm-elf/lib/
-isystem /usr/local/llvm/armtools/arm-elf/include -isystem
/usr/local/llvm/armtools/arm-elf/sys-include" \
          AR_FOR_TARGET="/usr/local/llvm/armtools/arm-elf/bin/ar" \
          AR_CREATE_FOR_TARGET="/usr/local/llvm/armtools/arm-elf/bin/ar  rc" \
          AR_EXTRACT_FOR_TARGET="/usr/local/llvm/armtools/arm-elf/bin/ar  x" \
          AR_FLAGS_FOR_TARGET="" \
          CC="gcc -m32" CFLAGS="-g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-Wmissing-format-attribute  " \
          BUILD_PREFIX="" \
          BUILD_PREFIX_1="" \
          LANGUAGES="" \
          LIBGCC2_CFLAGS="-O2  -O2 -g -O2  -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE
  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -fno-inline -g  -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -mthumb "  \
          LIBGCC2_STATIC_CFLAGS=""  \
          MULTILIB_CFLAGS=" -mthumb" T=thumb/ thumb/crtbegin.o thumb/crtend.o
thumb/crti.o thumb/crtn.o
make[3]: `thumb/crtbegin.o' is up to date.
make[3]: `thumb/crtend.o' is up to date.
make[3]: `thumb/crti.o' is up to date.
make[3]: `thumb/crtn.o' is up to date.
/Users/timm/armtools-build/llvm-gcc-build/./gcc/xgcc
-B/Users/timm/armtools-build/llvm-gcc-build/./gcc/
-B/usr/local/llvm/armtools/arm-elf/bin/ -B/usr/local/llvm/armtools/arm-elf/lib/
-isystem /usr/local/llvm/armtools/arm-elf/include -isystem
/usr/local/llvm/armtools/arm-elf/sys-include  -O2  -O2 -g -O2  -DIN_GCC
-DCROSS_DIRECTORY_STRUCTURE   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fno-inline -g
 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I../../llvm-gcc-4.2.1/gcc -I../../llvm-gcc-4.2.1/gcc/.
-I../../llvm-gcc-4.2.1/gcc/../include -I./../intl
-I../../llvm-gcc-4.2.1/gcc/../libcpp/include 
-I../../llvm-gcc-4.2.1/gcc/../libdecnumber -I../libdecnumber
-I/Users/timm/armtools-build/llvm-build//include
-I/Users/timm/armtools-build/llvm/include -mthumb  -fexceptions -c
../../llvm-gcc-4.2.1/gcc/unwind-dw2-fde.c -o libgcc/thumb/unwind-dw2-fde.o
/var/folders/bG/bGtEFVXRFvunPKmCQBG6o++++TI/-Tmp-//cc2YwPhz.s: Assembler
messages:
/var/folders/bG/bGtEFVXRFvunPKmCQBG6o++++TI/-Tmp-//cc2YwPhz.s:96: Error:
selected processor does not support `sxtb r5,r5'
/var/folders/bG/bGtEFVXRFvunPKmCQBG6o++++TI/-Tmp-//cc2YwPhz.s:537: Error:
selected processor does not support `sxtb r6,r6'
/var/folders/bG/bGtEFVXRFvunPKmCQBG6o++++TI/-Tmp-//cc2YwPhz.s:705: Error:
selected processor does not support `sxtb r1,r1'
/var/folders/bG/bGtEFVXRFvunPKmCQBG6o++++TI/-Tmp-//cc2YwPhz.s:711: Error:
selected processor does not support `sxtb r1,r1'
make[2]: *** [libgcc/thumb/unwind-dw2-fde.o] Error 1
make[1]: *** [stmp-multilib] Error 2
make: *** [all-gcc] Error 2

Let me know if you need more info or if I am just configuring something
incorrectly


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list