[LLVMdev] llvm-gcc configure options for ARM target at llvm-gcc build time

Jin Gu Kang jaykang10 at imrc.kist.re.kr
Tue Oct 6 23:22:26 PDT 2009


Dear LLVM members.

I am building llvm-gcc in version 2.5 for ARM target.

I used command line option as following:

>../src/configure --prefix=/home/jaykang10/Projects/LLVM/front_end_test/bin/ --enable-languages=c,c++ --enable-checking --enable-llvm=/home/jaykang10/Projects/LLVM/bin/ --disable-bootstrap --disable-multilib --target=arm-eabi

And I got a error message as following:
...
gcc -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../src/gcc -I../../src/gcc/build -I../../src/gcc/../include -I../../src/gcc/../libcpp/include  -I../../src/gcc/../libdecnumber -I../libdecnumber -I/home/jaykang10/Projects/LLVM/bin//include -I/home/jaykang10/HardDisk2/Projects/LLVM/src/llvm-2.5/include -DENABLE_LLVM -I/home/jaykang10/HardDisk2/Projects/LLVM/bin/include -DARM_COFF_KIST -DARM_KIST_BUG_FIX -D_DEBUG  -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS   -o build/gencondmd.o build/gencondmd.c
../../src/gcc/config/arm/arm.md:4788: error: ‘MACHO_DYNAMIC_NO_PIC_P’ undeclared here (not in a function)
../../src/gcc/config/arm/arm.md:4789: warning: missing initializer
../../src/gcc/config/arm/arm.md:4789: warning: (near initialization for ‘insn_conditions[15].value’)
../../src/gcc/config/arm/arm.md:4703: warning: missing initializer
../../src/gcc/config/arm/arm.md:4703: warning: (near initialization for ‘insn_conditions[56].value’)
../../src/gcc/config/arm/arm.md:4789: warning: missing initializer
../../src/gcc/config/arm/arm.md:4789: warning: (near initialization for ‘insn_conditions[86].value’)
...

To use "MACHO_DYNAMIC_NO_PIC_P", I guess that --target option have to include -darwin

In gcc/config.gcc file
...
# Common parts for widely ported systems.
case ${target} in
*-*-darwin*)
  tm_file="${tm_file} darwin.h"
...

At llvm-gcc build time, I would like to know configure option for ARM target.
and I want to know whether llvm-gcc have bitcode's difference between -darwin and other configure options.
(ex: -eabi, -elf, etc...)

Thanks

Best regards,
Jin-Gu Kang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091007/fc25e9dc/attachment.html>


More information about the llvm-dev mailing list