Opened 9 years ago

Closed 9 years ago

#48839 closed defect (duplicate)

arm-none-linux-gnueabi-gcc: error: duplicate case value '0'

Reported by: 275438859@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: stuartwesterman (Stuart Westerman)
Port: arm-none-linux-gnueabi-gcc

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hi,everybody!

I wanna install arm-none-linux-gnueabi-gcc for my mountain lion(10.8.5) with macport.But I encounter error while it is installing.How could I fix the problem?

here is the return of the error:

--->  Fetching distfiles for arm-none-linux-gnueabi-gcc
--->  Verifying checksums for arm-none-linux-gnueabi-gcc
--->  Extracting arm-none-linux-gnueabi-gcc
--->  Applying patches to arm-none-linux-gnueabi-gcc
--->  Configuring arm-none-linux-gnueabi-gcc
--->  Building arm-none-linux-gnueabi-gcc
Error: org.macports.build for port arm-none-linux-gnueabi-gcc returned: command execution failed

And here is the log of the port:

:info:build /usr/bin/clang -c   -pipe -Os -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long     -DHAVE_CONFIG_H    -I. -Icp -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/../include -I../intl /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c -o cp/error.o
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:336:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:370:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:351:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:359:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:393:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:399:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:406:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:602:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:603:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:604:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:611:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:614:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:696:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:697:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:698:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:705:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:708:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build ./gtype-cp.h:431:14: error: duplicate case value '0'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:817:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:842:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:795:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:934:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:892:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:942:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:927:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:896:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:860:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:938:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build ./gtype-cp.h:879:14: error: duplicate case value '0'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1783:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1778:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1784:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1829:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1701:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1326:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1415:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1737:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1361:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1321:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1857:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1853:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1308:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1733:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1806:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1825:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1310:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1741:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1763:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1766:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1760:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1769:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1816:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/cp/error.c:1863:10: warning: case value not in enumerated type 'enum tree_code' [-Wswitch]
:info:build ./gtype-cp.h:1511:10: error: duplicate case value '0'
:info:build 65 warnings and 3 errors generated.
:info:build make[1]: *** [cp/decl.o] Error 1
:info:build make: *** [all-gcc] Error 2
:error:build org.macports.build for port arm-none-linux-gnueabi-gcc returned: command execution failed
:debug:build Error code: CHILDSTATUS 516  

Change History (1)

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: stuartwesterman@… added
Description: modified (diff)
Port: arm-none-linux-gnueabi-gcc added
Resolution: duplicate
Status: newclosed
Summary: encounter error while it is installing arm-none-linux-gnueabi-gcc for my mountain lion with macportarm-none-linux-gnueabi-gcc: error: duplicate case value '0'

Duplicate of #35112.

Note: See TracTickets for help on using tickets.