UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 21337

7.1i EDK, GNU - MB-GCC problem with long long constants in 7.1.0

Description

Keywords: XPS, compile

Software applications that use "long long" variables and constants generate the following error when compiled:

"Command make -f system.make program Started...
mb-gcc -O2 ../../sw/standalone/xrom/src/gpio.c ../../sw/standalone/xrom/src/gpio_iic.c ../../sw/standalone/xrom/src/gpio_iic_low_level.c ../../sw/standalone/xrom/src/manu_test_iic_rom.c ../../sw/standalone/xrom/src/MC24LC04B.c ../../sw/standalone/xrom/src/sleep.c ../../sw/standalone/xrom/src/template.c ../../sw/standalone/xrom/src/xrom_ddr_test.c ../../sw/standalone/xrom/src/xrom_dip_switch.c ../../sw/standalone/xrom/src/xrom_flash_test.c ../../sw/standalone/lib/src/flash/xflash_intel_l.c ../../sw/standalone/xrom/src/xrom_input.c ../../sw/standalone/xrom/src/xrom_lcd.c ../../sw/standalone/xrom/src/xrom_led.c ../../sw/standalone/xrom/src/xrom_main.c ../../sw/standalone/xrom/src/xrom_ps2.c ../../sw/standalone/xrom/src/xrom_push_button.c ../../sw/standalone/xrom/src/xrom_sma.c ../../sw/standalone/xrom/src/xrom_tests.c ../../sw/standalone/xrom/src/xrom_vga.c ../../sw/standalone/xrom/src/xrom_zbt_test.c -o microblaze_0/code/xrom.elf \
-Wl,-defsym -Wl,_STACK_SIZE=5k -mno-xl-soft-mul -I./microblaze_0/include/ -I../../sw/standalone/xrom/src/ -I../../sw/standalone/lib/src/flash/ -L./microblaze_0/lib/ \
-xl-mode-executable \
-DBOARDNUM=403
../../sw/standalone/xrom/src/gpio_iic.c: In function `CheckForIIC_Error':
../../sw/standalone/xrom/src/gpio_iic.c:594: warning: integer constant is too large for "long" type
../../sw/standalone/xrom/src/gpio_iic.c:600: warning: integer constant is too large for "long" type
../../sw/standalone/xrom/src/gpio_iic.c:606: warning: integer constant is too large for "long" type
../../sw/standalone/xrom/src/gpio_iic_low_level.c:333: warning: integer constant is too large for "long" type
../../sw/standalone/xrom/src/gpio_iic_low_level.c:334: warning: integer constant is too large for "long" type
../../sw/standalone/xrom/src/gpio_iic_low_level.c:363: warning: integer constant is too large for "long" type
../../sw/standalone/xrom/src/gpio_iic_low_level.c:366: warning: integer constant is too large for "long" type
../../sw/standalone/xrom/src/gpio_iic_low_level.c:371: warning: integer constant is too large for "long" type
../../sw/standalone/xrom/src/gpio_iic_low_level.c: In function `gpio_iic_read_data8':
../../sw/standalone/xrom/src/gpio_iic_low_level.c:806: warning: integer constant is too large for "long" type
../../sw/standalone/xrom/src/gpio_iic_low_level.c: In function `convert_read8_to_8':
../../sw/standalone/xrom/src/gpio_iic_low_level.c:655: internal compiler error: in gen_rtx_SUBREG, at emit-rtl.c:618
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://support.xilinx.com> for instructions.
../../sw/standalone/xrom/src/MC24LC04B.c: In function `MC24LC04B_writeByte':
../../sw/standalone/xrom/src/MC24LC04B.c:174: warning: integer constant is too large for "long" type
../../sw/standalone/xrom/src/xrom_dip_switch.c:87:2: warning: no newline at end of file
../../sw/standalone/xrom/src/xrom_input.c:146:2: warning: no newline at end of file
../../sw/standalone/xrom/src/xrom_zbt_test.c:393:2: warning: no newline at end of file
Done."

Solution

This problem has been fixed in the latest EDK 7.1i Service Pack available at:
http://www.xilinx.com/xlnx/xil_sw_updates_home.jsp
The first service pack containing the fix is EDK 7.1i Service Pack 1.
AR# 21337
Date Created 04/27/2005
Last Updated 04/13/2007
Status Archive
Type General Article