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.1 EDK、GNU - long long 変数を使用すると MB-GCC で問題が発生する

説明

キーワード : XPS, compile, コンパイル

long long 変数および定数を使用するソフトウェア アプリケーションで次のようなエラー メッセージが表示されます。

"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."

ソリューション

この問題は、最新版の EDK 7.1i サービス パックで修正されています。サービス パックは次のサイトから入手できます。
http://www.xilinx.co.jp/xlnx/xil_sw_updates_home.jsp
この修正は EDK 7.1i サービス パック 1 以降に含まれます。
AR# 21337
日付 04/13/2007
ステータス アーカイブ
種類 一般
このページをブックマークに追加