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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,975件の閲覧回数
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,558件の閲覧回数
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,558件の閲覧回数
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,558件の閲覧回数
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,559件の閲覧回数
alexanderfedoto
NXP Employee
NXP Employee

Yes

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

gdb.7-8-2_fix-fallthrough \