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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,976 Views
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

Labels (1)
0 Kudos
Reply
1 Solution
1,559 Views
alexanderfedoto
NXP Employee
NXP Employee

Yes

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

gdb.7-8-2_fix-fallthrough \

View solution in original post

3 Replies
1,559 Views
alexanderfedoto
NXP Employee
NXP Employee

What Linux host do you use for build ?

At least ib tuilts on Ubuntu 16 and Fedora 22

0 Kudos
Reply
1,559 Views
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 Kudos
Reply
1,560 Views
alexanderfedoto
NXP Employee
NXP Employee

Yes

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

gdb.7-8-2_fix-fallthrough \