PowerPC VLE GCC 4.9.4 : Compilation issue on __attribute__ ((fallthrough));

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

PowerPC VLE GCC 4.9.4 : Compilation issue on __attribute__ ((fallthrough));

跳至解决方案
1,974 次查看
wan35fr
Contributor III

Hello ,

thanks for sharing your gcc source code (4.9.4).

I have tried to compile the gcc on linux version

(gdb part)

i have some errors 

libtool: compile: i686-pc-mingw32-gcc -DHAVE_CONFIG_H -I. -D__USE_MINGW_FSEEK -I. -I. -I./../include -DHAVE_powerpc_elf32_vec -DHAVE_rs6000_xcoff_vec -DHAVE_powerpc_elf32_le_vec -DHAVE_powerpc_boot_vec -DHAVE_elf32_le_vec -DHAVE_elf32_be_vec -DHAVE_plugin_vec -DBINDIR=\"/opt/freescale/gcc-4.9.4-Ee200-eabivle/i686-mingw32/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wno-format -Werror -g -O2 -D__USE_MINGW_ACCESS -MT coffgen.lo -MD -MP -MF .deps/coffgen.Tpo -c coffgen.c -o coffgen.o
coffgen.c: In function ‘coff_print_symbol’:
coffgen.c:2118:5: error: empty declaration [-Werror]
__attribute__ ((fallthrough));
^
coffgen.c:2139:5: error: empty declaration [-Werror]
__attribute__ ((fallthrough));
^

do we need the last version of gcc to compile or not ?

         Best regards

                     Erwan

标签 (1)
0 项奖励
回复
1 解答
1,557 次查看
alexanderfedoto
NXP Employee
NXP Employee

Yes

Remove this line from list of pathes in "f-sources/F494"

gdb.7-8-2_fix-fallthrough \

在原帖中查看解决方案

3 回复数
1,557 次查看
alexanderfedoto
NXP Employee
NXP Employee

What Linux host do you use for build ?

At least ib tuilts on Ubuntu 16 and Fedora 22

0 项奖励
回复
1,557 次查看
wan35fr
Contributor III

Hello Alexander ,

I am using Ubuntu 14.04.5 LTS linux kernel 3.13.0-71-generic x86_64

i think that this following attribute only for gcc7

__attribute__((fallthrough));

Maybe , you have used gcc7 to compile powerpc-vle-gcc-4.9.4 ?

     Best regards

                 Erwan

0 项奖励
回复
1,558 次查看
alexanderfedoto
NXP Employee
NXP Employee

Yes

Remove this line from list of pathes in "f-sources/F494"

gdb.7-8-2_fix-fallthrough \