Building Buildroot for BBB

Hello,

I’m trying to build a cross compiler buildroot_2014_11 version, but I’m getting following error.

/…/libgcc/…/gcc -I…/…/…/libgcc/…/include -DHAVE_CC_TLS -o _thumb1_case_shi_s.o -MT _thumb1_case_shi_s.o -MD -MP -MF _thumb1_case_shi_s.dep -DSHARED -DL_thumb1_case_shi -xassembler-with-cpp -c …/…/…/libgcc/config/arm/lib1funcs.S
…/…/…/libgcc/config/arm/lib1funcs.S: Assembler messages:
…/…/…/libgcc/config/arm/lib1funcs.S:5: Error: junk at end of line, first unrecognized character is #' ../../../libgcc/config/arm/lib1funcs.S:67: Error: Bad parameter list for macro retldm’
…/…/…/libgcc/config/arm/lib1funcs.S:103: Error: Bad parameter list for macro thumb_ldiv0' ../../../libgcc/config/arm/lib1funcs.S: Assembler messages: ../../../libgcc/config/arm/lib1funcs.S:5: Error: junk at end of line, first unrecognized character is #’
…/…/…/libgcc/config/arm/lib1funcs.S:67: Error: Bad parameter list for macro retldm' ../../../libgcc/config/arm/lib1funcs.S:103: Error: Bad parameter list for macro thumb_ldiv0’
…/…/…/libgcc/config/arm/lib1funcs.S:187: …/…/…/libgcc/config/arm/lib1funcs.S:187: Error: Bad parameter list for macro arm_div_body' Error: Bad parameter list for macro arm_div_body’
…/…/…/libgcc/config/arm/lib1funcs.S:230: Error: Bad parameter list for macro arm_mod_body' ../../../libgcc/config/arm/lib1funcs.S:445: Error: junk at end of line, first unrecognized character is #’
…/…/…/libgcc/config/arm/bpabi.S:32: Error: junk at end of line, first unrecognized character is #' ../../../libgcc/config/arm/lib1funcs.S:230: ../../../libgcc/config/arm/bpabi.S:33: Error: Bad parameter list for macro test_div_by_zero’
make[2]: *** [_thumb1_case_uqi_s.o] Error 1
make[2]: *** Waiting for unfinished jobs…
Error: Bad parameter list for macro arm_mod_body' ../../../libgcc/config/arm/lib1funcs.S:445: Error: junk at end of line, first unrecognized character is #’
…/…/…/libgcc/config/arm/bpabi.S:32: Error: junk at end of line, first unrecognized character is #' ../../../libgcc/config/arm/lib1funcs.S: Assembler messages: ../../../libgcc/config/arm/lib1funcs.S:5: Error: junk at end of line, first unrecognized character is #’
…/…/…/libgcc/config/arm/bpabi.S:33: Error: Bad parameter list for macro test_div_by_zero' ../../../libgcc/config/arm/lib1funcs.S:67: Error: Bad parameter list for macro retldm’
…/…/…/libgcc/config/arm/lib1funcs.S:103: Error: Bad parameter list for macro thumb_ldiv0' make[2]: *** [_thumb1_case_sqi_s.o] Error 1 ../../../libgcc/config/arm/lib1funcs.S:187: Error: Bad parameter list for macro arm_div_body’
…/…/…/libgcc/config/arm/lib1funcs.S:230: Error: Bad parameter list for macro arm_mod_body' ../../../libgcc/config/arm/lib1funcs.S:446: Error: junk at end of line, first unrecognized character is #’
…/…/…/libgcc/config/arm/bpabi.S:32: Error: junk at end of line, first unrecognized character is #' ../../../libgcc/config/arm/bpabi.S:33: Error: Bad parameter list for macro test_div_by_zero’
make[2]: *** [_thumb1_case_shi_s.o] Error 1
make[2]: Leaving directory /home/naruto/bbb_temp/output/build/host-gcc-initial-4.8.3/build/arm-buildroot-linux-uclibcgnueabi/libgcc' make[1]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory /home/naruto/bbb_temp/output/build/host-gcc-initial-4.8.3/build’
make: *** [/home/naruto/bbb_temp/output/build/host-gcc-initial-4.8.3/.stamp_built] Error 2

what might be the problem? I believe gcc library is creating the issue. How do I tackle this?

Regards,
Bharath

Bharath

I’m using buildroot 2014.02 and 2015.05 without any issues. Does this error show up if you do a “make clean” and then “make” or did this show up after changes with menuconfig?

amf

I did “make clean” then “make menuconfig” to do some modification, later “make” to build.

What about ./configure ?

I did "make clean" then "make menuconfig" to do some modification, later
"make" to build.

See if you can build the Beaglebone configuration distributed with buildroot:

# Go all the way back to the start
make distclean

make beaglebone_defconfig
make

Don't change anything with "make menuconfig" until you can get the
default configuration working. While you're at it, I'd recommend
updating to Buildroot 2015.08.1, since you'll have an easier time
getting support from the Buildroot mailing list should you need it.

Frank