This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Linker in gnu arm toolchain says "group ended without start" thought there is no such option in my build

shyam@shyam:~/projects/zynq/microzed/linux_source/Test_Chips$ make
make -C  /home/shyam/projects/zynq/microzed/linux_source/Test_Chips/../dev_tools/build
make[1]: Entering directory `/home/shyam/projects/zynq/microzed/linux_source/dev_tools/build'
Making lin/dbg version of sub-directory tools/ ...
make[2]: Entering directory `/home/shyam/projects/zynq/microzed/linux_source/dev_tools/build/tools'
Making lin/dbg version of sub-directory genmakefiles/ ...
make[3]: Entering directory `/home/shyam/projects/zynq/microzed/linux_source/dev_tools/build/tools/genmakefiles'
Building dbg version of 'genmakefiles' ...
make[4]: Entering directory `/home/shyam/projects/zynq/microzed/linux_source/dev_tools/build/tools/genmakefiles'
Building executable 'genmakefiles' ...
make[5]: Entering directory `/home/shyam/projects/zynq/microzed/linux_source/dev_tools/build/tools/genmakefiles/B_linjtag_dbg'
GCC_EXEC_PREFIX=/home/shyam/projects/zynq/microzed/linux_source/Test_Chips/../dev_tools/dk_lin/gcc_armgnu/lib/gcc/ TMPDIR=/inedatmp /home/shyam/projects/zynq/microzed/linux_source/Test_Chips/../dev_tools/dk_lin/gcc_armgnu/bin/gcc -mcpu=cortex-m4 -mthumb -Wall -gstrict-dwarf -gdwarf-3 -g -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -O0 -lm -ldl   genmakefiles.o           -L/home/shyam/projects/zynq/microzed/linux_source/Test_Chips/../dev_tools/dk_lin/gcc_armgnu/lib   -Wl,-rpath  -o genmakefiles
/home/shyam/projects/zynq/microzed/linux_source/Test_Chips/../dev_tools/dk_lin/gcc_armgnu/lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld: group ended before it began (--help for usage)
collect2: error: ld returned 1 exit status
make[5]: *** [genmakefiles] Error 1
make[5]: Leaving directory `/home/shyam/projects/zynq/microzed/linux_source/dev_tools/build/tools/genmakefiles/B_linjtag_dbg'
make[4]: *** [genmakefiles] Error 2
make[4]: Leaving directory `/home/shyam/projects/zynq/microzed/linux_source/dev_tools/build/tools/genmakefiles'
make[3]: *** [genmakefiles.dbg] Error 2
make[3]: Leaving directory `/home/shyam/projects/zynq/microzed/linux_source/dev_tools/build/tools/genmakefiles'
make[2]: *** [subdirs.dbg] Error 1
make[2]: Leaving directory `/home/shyam/projects/zynq/microzed/linux_source/dev_tools/build/tools'
make[1]: *** [subdirs.dbg] Error 1
make[1]: Leaving directory `/home/shyam/projects/zynq/microzed/linux_source/dev_tools/build'
make: *** [all] Error 2

 

 

 

Hi all,

as you can see there is no option for end group or "-)" in my build but the linker says such error.

Can you please help me if im missing something.

 


Regards,

Shyam Kumar Thella

  • Hi,

    I'm not sure, but the mistake provide from this sequence :
    gcc -mcpu=cortex-m4 -mthumb -Wall -gstrict -dwarf -gdwarf -3 -g -mfpu=fpv4 -sp -d16 -mfloat -abi=softfp -O0 -lm -ldl genmakefiles.o

    i mean -g strict sequence or -l dl may the source of this error

    Try to reinstall the lastest ld-dev library before recompile
  • make[5]: Entering directory `/home/shyam/projects/zynq/microzed/linux_source/dev_tools/build/tools/genmakefiles/B_linjtag_dbg'
    GCC_EXEC_PREFIX=/home/shyam/projects/zynq/microzed/linux_source/Test_Chips/../dev_tools/dk_lin/gcc_armgnu/lib/gcc/ TMPDIR=/inedatmp /home/shyam/projects/zynq/microzed/linux_source/Test_Chips/../dev_tools/dk_lin/gcc_armgnu/bin/gcc -Wall -gstrict-dwarf -gdwarf-3 -g -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -O0 genmakefiles.o -Wl,-rpath -o genmakefiles
    /home/shyam/projects/zynq/microzed/linux_source/Test_Chips/../dev_tools/dk_lin/gcc_armgnu/lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld: group ended before it began (--help for usage)
    collect2: error: ld returned 1 exit status
  • Hi Jerome,
    Reordered options as per your suggestion but still the error.
  • Hi ShyamThella

    There is a Community on launchpad dedicated to the GNU ARM Embedded Toolchain, you might find an answer to your question there if you are having persistant issues.

    In the meantime I'll see if someone can help here.

  • Hi,

    Try passing -v to the GCC command line. This will show the collect2 command line. Adding -v to the collect2 command line will then give you the ld command line which I'm guessing will contain that closing parenthesis.

    Best regards.