Article ID: 000076571 Content Type: Install & Setup Last Reviewed: 07/04/2014

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'

Environment

  • Quartus® II Subscription Edition
  • BUILT IN - ARTICLE INTRO SECOND COMPONENT
    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.

    Related Products

    This article applies to 1 products

    Intel® Programmable Devices