Knowledge Base Article

Error (23024): Unknown long option --32bit. Refer to --help for legal options XPCOMGlueLoad error for file /usr/lib/firefox/libxul.so: &lt:Quartus II installation path>/linux/libstdc .so.6: version (' and /usr/bin/sh: -c: line 0: ceilf'

Description

When linking a custom HAL driver in the Quartus® II software version 13.1, a undefined reference linker error maybe seen to math.h functions such as ceilf() or floorf() although the project has linking with "-lm”.

This issue is caused by the nios2-elf-g "-msys-lib=hal_bsp" flag.

The "--start-group -lsmallc -lgcc -lhal_bsp --end-group" is added to the end of the "collect2" linking call and it doesn't see the "-lm" flag.

Resolution

To workaround this issue , manually add "m" to ALT_BSP_DEP_LIBRARY_NAMES in the application’s Makefile which is located in “<project>\software\test_project\Makefile”

  • Before: ALT_BSP_DEP_LIBRARY_NAMES :=
  • After:   ALT_BSP_DEP_LIBRARY_NAMES := m

This problem is scheduled to be fixed in a future release of the Quartus II software.

Updated 2 months ago
Version 3.0
No CommentsBe the first to comment