* [Buildroot] Compiler for arm7tdmi @ 2009-10-08 18:55 Jon Smirl 2009-10-08 19:10 ` Bernhard Reutner-Fischer 0 siblings, 1 reply; 10+ messages in thread From: Jon Smirl @ 2009-10-08 18:55 UTC (permalink / raw) To: buildroot I'm not having any luck building a compiler for arm7tdmi. I have the static_flat file format selected, I couldn't get Elf to build. My goal is to compile Contiki for a Freescale MC1322x. Now I'm hitting this problem with __fini_array_end using git head. /home/apps/buildroot/output/toolchain/gcc-4.3.4-final/./gcc/xgcc -B/home/apps/buildroot/output/toolchain/gcc-4.3.4-final/./gcc/ -B/usr/arm-linux-uclibcgnueabi/bin/ -B/usr/arm-linux-uclibcgnueabi/lib/ -isystem /usr/arm-linux-uclibcgnueabi/include -isystem /usr/arm-linux-uclibcgnueabi/sys-include -O2 -g -Os -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o ./libgcc_s.so.1.tmp -g -Os -B./ _udivsi3_s.o _divsi3_s.o _umodsi3_s.o _modsi3_s.o _bb_init_func_s.o _call_via_rX_s.o _interwork_call_via_rX_s.o _lshrdi3_s.o _ashrdi3_s.o _ashldi3_s.o _negdf2_s.o _addsubdf3_s.o _muldivdf3_s.o _cmpdf2_s.o _unorddf2_s.o _fixdfsi_s.o _fixunsdfsi_s.o _truncdfsf2_s.o _negsf2_s.o _addsubsf3_s.o _muldivsf3_s.o _cmpsf2_s.o _unordsf2_s.o _fixsfsi_s.o _fixunssfsi_s.o _floatdidf_s.o _floatdisf_s.o _floatundidf_s.o _floatundisf_s.o _aeabi_lcmp_s.o _aeabi_ulcmp_s.o _aeabi_ldivmod_s.o _aeabi_uldivmod_s.o _dvmd_lnx_s.o _muldi3_s.o _negdi2_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o _enable_execute_stack_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixtfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _fixunstfdi_s.o _floatdixf_s.o _floatditf_s.o _floatundixf_s.o _floatunditf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o bpabi_s.o unaligned-funcs_s.o unwind-arm_s.o libunwind_s.o pr-support_s.o unwind-c_s.o emutls_s.o -lc && rm -f ./libgcc_s.so && if [ -f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi && mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so /home/apps/buildroot/output/staging/usr/lib/libc.a(__uClibc_main.os): In function `__uClibc_fini': __uClibc_main.c:(.text+0x6c): undefined reference to `__fini_array_start' __uClibc_main.c:(.text+0x74): undefined reference to `__fini_array_end' /home/apps/buildroot/output/staging/usr/lib/libc.a(__uClibc_main.os): In function `__uClibc_main': __uClibc_main.c:(.text+0x250): undefined reference to `__preinit_array_start' __uClibc_main.c:(.text+0x254): undefined reference to `__preinit_array_end' __uClibc_main.c:(.text+0x25c): undefined reference to `__init_array_start' __uClibc_main.c:(.text+0x260): undefined reference to `__init_array_end' /home/apps/buildroot/output/staging/usr/arm-linux-uclibcgnueabi/bin/ld: ./libgcc_s.so.1.tmp: hidden symbol `__fini_array_end' isn't defined /home/apps/buildroot/output/staging/usr/arm-linux-uclibcgnueabi/bin/ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status make[3]: *** [libgcc_s.so] Error 1 make[3]: Leaving directory `/home/apps/buildroot/output/toolchain/gcc-4.3.4-final/arm-linux-uclibcgnueabi/libgcc' make[2]: *** [all-target-libgcc] Error 2 make[2]: Leaving directory `/home/apps/buildroot/output/toolchain/gcc-4.3.4-final' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/apps/buildroot/output/toolchain/gcc-4.3.4-final' make: *** [/home/apps/buildroot/output/toolchain/gcc-4.3.4-final/.compiled] Error 2 -- Jon Smirl jonsmirl at gmail.com ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] Compiler for arm7tdmi 2009-10-08 18:55 [Buildroot] Compiler for arm7tdmi Jon Smirl @ 2009-10-08 19:10 ` Bernhard Reutner-Fischer 2009-10-08 19:16 ` Jon Smirl 0 siblings, 1 reply; 10+ messages in thread From: Bernhard Reutner-Fischer @ 2009-10-08 19:10 UTC (permalink / raw) To: buildroot On Thu, Oct 08, 2009 at 02:55:48PM -0400, Jon Smirl wrote: >I'm not having any luck building a compiler for arm7tdmi. I have the >static_flat file format selected, I couldn't get Elf to build. My goal >is to compile Contiki for a Freescale MC1322x. I don't think that flat support is working in the official repo. I once started to add support in my repo.or.cz/w/buildroot tree, but even that is not finished yet. patches welcome.. HTH, ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] Compiler for arm7tdmi 2009-10-08 19:10 ` Bernhard Reutner-Fischer @ 2009-10-08 19:16 ` Jon Smirl 2009-10-08 19:20 ` Jon Smirl 0 siblings, 1 reply; 10+ messages in thread From: Jon Smirl @ 2009-10-08 19:16 UTC (permalink / raw) To: buildroot On Thu, Oct 8, 2009 at 3:10 PM, Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> wrote: > On Thu, Oct 08, 2009 at 02:55:48PM -0400, Jon Smirl wrote: >>I'm not having any luck building a compiler for arm7tdmi. I have the >>static_flat file format selected, I couldn't get Elf to build. My goal >>is to compile Contiki for a Freescale MC1322x. > > I don't think that flat support is working in the official repo. > I once started to add support in my repo.or.cz/w/buildroot tree, but > even that is not finished yet. Which format should I be using for arm7tdmi onto bare hardware? > > patches welcome.. > HTH, > -- Jon Smirl jonsmirl at gmail.com ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] Compiler for arm7tdmi 2009-10-08 19:16 ` Jon Smirl @ 2009-10-08 19:20 ` Jon Smirl 2009-10-08 19:22 ` Bernhard Reutner-Fischer 0 siblings, 1 reply; 10+ messages in thread From: Jon Smirl @ 2009-10-08 19:20 UTC (permalink / raw) To: buildroot On Thu, Oct 8, 2009 at 3:16 PM, Jon Smirl <jonsmirl@gmail.com> wrote: > On Thu, Oct 8, 2009 at 3:10 PM, Bernhard Reutner-Fischer > <rep.dot.nop@gmail.com> wrote: >> On Thu, Oct 08, 2009 at 02:55:48PM -0400, Jon Smirl wrote: >>>I'm not having any luck building a compiler for arm7tdmi. I have the >>>static_flat file format selected, I couldn't get Elf to build. My goal >>>is to compile Contiki for a Freescale MC1322x. >> >> I don't think that flat support is working in the official repo. >> I once started to add support in my repo.or.cz/w/buildroot tree, but >> even that is not finished yet. > > Which format should I be using for arm7tdmi onto bare hardware? The elf target fails building with: cc1: error: unrecognized command line option "-mfdpic" > >> >> patches welcome.. >> HTH, >> > > > > -- > Jon Smirl > jonsmirl at gmail.com > -- Jon Smirl jonsmirl at gmail.com ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] Compiler for arm7tdmi 2009-10-08 19:20 ` Jon Smirl @ 2009-10-08 19:22 ` Bernhard Reutner-Fischer 2009-10-08 19:23 ` Jon Smirl 0 siblings, 1 reply; 10+ messages in thread From: Bernhard Reutner-Fischer @ 2009-10-08 19:22 UTC (permalink / raw) To: buildroot On Thu, Oct 08, 2009 at 03:20:23PM -0400, Jon Smirl wrote: >On Thu, Oct 8, 2009 at 3:16 PM, Jon Smirl <jonsmirl@gmail.com> wrote: >> On Thu, Oct 8, 2009 at 3:10 PM, Bernhard Reutner-Fischer >> <rep.dot.nop@gmail.com> wrote: >>> On Thu, Oct 08, 2009 at 02:55:48PM -0400, Jon Smirl wrote: >>>>I'm not having any luck building a compiler for arm7tdmi. I have the >>>>static_flat file format selected, I couldn't get Elf to build. My goal >>>>is to compile Contiki for a Freescale MC1322x. >>> >>> I don't think that flat support is working in the official repo. >>> I once started to add support in my repo.or.cz/w/buildroot tree, but >>> even that is not finished yet. >> >> Which format should I be using for arm7tdmi onto bare hardware? > >The elf target fails building with: >cc1: error: unrecognized command line option "-mfdpic" sounds like a misconfiguration to me (of uClibc). ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] Compiler for arm7tdmi 2009-10-08 19:22 ` Bernhard Reutner-Fischer @ 2009-10-08 19:23 ` Jon Smirl 2009-10-08 19:28 ` Bernhard Reutner-Fischer 0 siblings, 1 reply; 10+ messages in thread From: Jon Smirl @ 2009-10-08 19:23 UTC (permalink / raw) To: buildroot On Thu, Oct 8, 2009 at 3:22 PM, Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> wrote: > On Thu, Oct 08, 2009 at 03:20:23PM -0400, Jon Smirl wrote: >>On Thu, Oct 8, 2009 at 3:16 PM, Jon Smirl <jonsmirl@gmail.com> wrote: >>> On Thu, Oct 8, 2009 at 3:10 PM, Bernhard Reutner-Fischer >>> <rep.dot.nop@gmail.com> wrote: >>>> On Thu, Oct 08, 2009 at 02:55:48PM -0400, Jon Smirl wrote: >>>>>I'm not having any luck building a compiler for arm7tdmi. I have the >>>>>static_flat file format selected, I couldn't get Elf to build. My goal >>>>>is to compile Contiki for a Freescale MC1322x. >>>> >>>> I don't think that flat support is working in the official repo. >>>> I once started to add support in my repo.or.cz/w/buildroot tree, but >>>> even that is not finished yet. >>> >>> Which format should I be using for arm7tdmi onto bare hardware? >> >>The elf target fails building with: >>cc1: error: unrecognized command line option "-mfdpic" > > sounds like a misconfiguration to me (of uClibc). I tool all of the defaults except for setting my CPU to arm/arm7tdmi. What should I try changing? > -- Jon Smirl jonsmirl at gmail.com ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] Compiler for arm7tdmi 2009-10-08 19:23 ` Jon Smirl @ 2009-10-08 19:28 ` Bernhard Reutner-Fischer 2009-10-08 19:32 ` Jon Smirl 0 siblings, 1 reply; 10+ messages in thread From: Bernhard Reutner-Fischer @ 2009-10-08 19:28 UTC (permalink / raw) To: buildroot On Thu, Oct 08, 2009 at 03:23:58PM -0400, Jon Smirl wrote: >On Thu, Oct 8, 2009 at 3:22 PM, Bernhard Reutner-Fischer ><rep.dot.nop@gmail.com> wrote: >> On Thu, Oct 08, 2009 at 03:20:23PM -0400, Jon Smirl wrote: >>>On Thu, Oct 8, 2009 at 3:16 PM, Jon Smirl <jonsmirl@gmail.com> wrote: >>>> On Thu, Oct 8, 2009 at 3:10 PM, Bernhard Reutner-Fischer >>>> <rep.dot.nop@gmail.com> wrote: >>>>> On Thu, Oct 08, 2009 at 02:55:48PM -0400, Jon Smirl wrote: >>>>>>I'm not having any luck building a compiler for arm7tdmi. I have the >>>>>>static_flat file format selected, I couldn't get Elf to build. My goal >>>>>>is to compile Contiki for a Freescale MC1322x. >>>>> >>>>> I don't think that flat support is working in the official repo. >>>>> I once started to add support in my repo.or.cz/w/buildroot tree, but >>>>> even that is not finished yet. >>>> >>>> Which format should I be using for arm7tdmi onto bare hardware? >>> >>>The elf target fails building with: >>>cc1: error: unrecognized command line option "-mfdpic" >> >> sounds like a misconfiguration to me (of uClibc). > >I tool all of the defaults except for setting my CPU to arm/arm7tdmi. > >What should I try changing? make uclibc-menuconfig and then search for FDPIC, i.e. type, literally: /FDPIC (followed by a newline). HTH, ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] Compiler for arm7tdmi 2009-10-08 19:28 ` Bernhard Reutner-Fischer @ 2009-10-08 19:32 ` Jon Smirl 2009-10-08 19:34 ` Jon Smirl 2009-10-08 19:48 ` Bernhard Reutner-Fischer 0 siblings, 2 replies; 10+ messages in thread From: Jon Smirl @ 2009-10-08 19:32 UTC (permalink / raw) To: buildroot On Thu, Oct 8, 2009 at 3:28 PM, Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> wrote: > On Thu, Oct 08, 2009 at 03:23:58PM -0400, Jon Smirl wrote: >>On Thu, Oct 8, 2009 at 3:22 PM, Bernhard Reutner-Fischer >><rep.dot.nop@gmail.com> wrote: >>> On Thu, Oct 08, 2009 at 03:20:23PM -0400, Jon Smirl wrote: >>>>On Thu, Oct 8, 2009 at 3:16 PM, Jon Smirl <jonsmirl@gmail.com> wrote: >>>>> On Thu, Oct 8, 2009 at 3:10 PM, Bernhard Reutner-Fischer >>>>> <rep.dot.nop@gmail.com> wrote: >>>>>> On Thu, Oct 08, 2009 at 02:55:48PM -0400, Jon Smirl wrote: >>>>>>>I'm not having any luck building a compiler for arm7tdmi. I have the >>>>>>>static_flat file format selected, I couldn't get Elf to build. My goal >>>>>>>is to compile Contiki for a Freescale MC1322x. >>>>>> >>>>>> I don't think that flat support is working in the official repo. >>>>>> I once started to add support in my repo.or.cz/w/buildroot tree, but >>>>>> even that is not finished yet. >>>>> >>>>> Which format should I be using for arm7tdmi onto bare hardware? >>>> >>>>The elf target fails building with: >>>>cc1: error: unrecognized command line option "-mfdpic" >>> >>> sounds like a misconfiguration to me (of uClibc). >> >>I tool all of the defaults except for setting my CPU to arm/arm7tdmi. >> >>What should I try changing? > > make uclibc-menuconfig > and then search for FDPIC, i.e. type, literally: > /FDPIC > (followed by a newline). > HTH, > There are four choices for output file format: ( ) FDPIC ELF ( ) STATIC FLAT ( ) STATIC FLAT (sep-data) (X) SHARED FLAT ( ) FDPIC ELF This is the default. Causes -mfdpic compile error. ( ) STATIC FLAT I tried this one and got the _fini_array_end compile error. (X) SHARED FLAT This is currently building. Jon Smirl jonsmirl at gmail.com ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] Compiler for arm7tdmi 2009-10-08 19:32 ` Jon Smirl @ 2009-10-08 19:34 ` Jon Smirl 2009-10-08 19:48 ` Bernhard Reutner-Fischer 1 sibling, 0 replies; 10+ messages in thread From: Jon Smirl @ 2009-10-08 19:34 UTC (permalink / raw) To: buildroot On Thu, Oct 8, 2009 at 3:32 PM, Jon Smirl <jonsmirl@gmail.com> wrote: > On Thu, Oct 8, 2009 at 3:28 PM, Bernhard Reutner-Fischer > <rep.dot.nop@gmail.com> wrote: >> On Thu, Oct 08, 2009 at 03:23:58PM -0400, Jon Smirl wrote: >>>On Thu, Oct 8, 2009 at 3:22 PM, Bernhard Reutner-Fischer >>><rep.dot.nop@gmail.com> wrote: >>>> On Thu, Oct 08, 2009 at 03:20:23PM -0400, Jon Smirl wrote: >>>>>On Thu, Oct 8, 2009 at 3:16 PM, Jon Smirl <jonsmirl@gmail.com> wrote: >>>>>> On Thu, Oct 8, 2009 at 3:10 PM, Bernhard Reutner-Fischer >>>>>> <rep.dot.nop@gmail.com> wrote: >>>>>>> On Thu, Oct 08, 2009 at 02:55:48PM -0400, Jon Smirl wrote: >>>>>>>>I'm not having any luck building a compiler for arm7tdmi. I have the >>>>>>>>static_flat file format selected, I couldn't get Elf to build. My goal >>>>>>>>is to compile Contiki for a Freescale MC1322x. >>>>>>> >>>>>>> I don't think that flat support is working in the official repo. >>>>>>> I once started to add support in my repo.or.cz/w/buildroot tree, but >>>>>>> even that is not finished yet. >>>>>> >>>>>> Which format should I be using for arm7tdmi onto bare hardware? >>>>> >>>>>The elf target fails building with: >>>>>cc1: error: unrecognized command line option "-mfdpic" >>>> >>>> sounds like a misconfiguration to me (of uClibc). >>> >>>I tool all of the defaults except for setting my CPU to arm/arm7tdmi. >>> >>>What should I try changing? >> >> make uclibc-menuconfig >> and then search for FDPIC, i.e. type, literally: >> /FDPIC >> (followed by a newline). >> HTH, >> > > There are four choices for output file format: > ( ) FDPIC ELF > ( ) STATIC FLAT > ( ) STATIC FLAT (sep-data) > (X) SHARED FLAT > > ( ) FDPIC ELF > This is the default. Causes -mfdpic compile error. > > ( ) STATIC FLAT > I tried this one and got the _fini_array_end compile error. > > (X) SHARED FLAT > This is currently building. fails with: cc1: error: unrecognized command line option "-mid-shared-library" > > > > Jon Smirl > jonsmirl at gmail.com > -- Jon Smirl jonsmirl at gmail.com ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] Compiler for arm7tdmi 2009-10-08 19:32 ` Jon Smirl 2009-10-08 19:34 ` Jon Smirl @ 2009-10-08 19:48 ` Bernhard Reutner-Fischer 1 sibling, 0 replies; 10+ messages in thread From: Bernhard Reutner-Fischer @ 2009-10-08 19:48 UTC (permalink / raw) To: buildroot On Thu, Oct 08, 2009 at 03:32:47PM -0400, Jon Smirl wrote: >>>>>>>>I'm not having any luck building a compiler for arm7tdmi. I have the >>>>>>>>static_flat file format selected, I couldn't get Elf to build. My goal >>>>>>>>is to compile Contiki for a Freescale MC1322x. >>>>>>> >>>>>>> I don't think that flat support is working in the official repo. >>>>>>> I once started to add support in my repo.or.cz/w/buildroot tree, but >>>>>>> even that is not finished yet. >>>>>> >>>>>> Which format should I be using for arm7tdmi onto bare hardware? --------------------------------------------------------^ >>>>> >>>>>The elf target fails building with: >>>>>cc1: error: unrecognized command line option "-mfdpic" I think that any flat will not work in current buildroot. You can only use elf, but that will not help you on bare metal AFAIK Not a uClibc issue though. ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-10-08 19:48 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-10-08 18:55 [Buildroot] Compiler for arm7tdmi Jon Smirl 2009-10-08 19:10 ` Bernhard Reutner-Fischer 2009-10-08 19:16 ` Jon Smirl 2009-10-08 19:20 ` Jon Smirl 2009-10-08 19:22 ` Bernhard Reutner-Fischer 2009-10-08 19:23 ` Jon Smirl 2009-10-08 19:28 ` Bernhard Reutner-Fischer 2009-10-08 19:32 ` Jon Smirl 2009-10-08 19:34 ` Jon Smirl 2009-10-08 19:48 ` Bernhard Reutner-Fischer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox