#66720 closed defect (fixed)

metis fails to build with gcc-4.2 due to usage of WError and unsupported flags

Reported by: barracuda156 Owned by: catap (Kirill A. Korinsky)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: powerpc, rosetta, snowleopard Cc:
Port: metis

Description

cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_metis/metis/work/build/libmetis && /usr/bin/gcc-4.2 -Dmetis_EXPORTS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_metis/metis/work/METIS-94c03a6e2d1860128c2d0675cbbb86ad4f261256/include -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_metis/metis/work/METIS-94c03a6e2d1860128c2d0675cbbb86ad4f261256/libmetis/. -pipe -Os -DNDEBUG -I/opt/local/include -DLINUX -D_FILE_OFFSET_BITS=64 -std=c99 -fno-strict-aliasing -march=native -fPIC -Werror -Wall -pedantic -Wno-unused-function -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unknown-pragmas -Wno-unused-label -framework Accelerate -DNDEBUG -DNDEBUG2 -DUSE_GKREGEX -DUSE_GKRAND -DHAVE_EXECINFO_H -O3 -arch ppc -mmacosx-version-min=10.6 -fPIC -MD -MT libmetis/CMakeFiles/metis.dir/auxapi.c.o -MF CMakeFiles/metis.dir/auxapi.c.o.d -o CMakeFiles/metis.dir/auxapi.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_metis/metis/work/METIS-94c03a6e2d1860128c2d0675cbbb86ad4f261256/libmetis/auxapi.c
make[2]: *** [libmetis/CMakeFiles/metis.dir/contig.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: error: unrecognized command line option "-march=native"
cc1: error: unrecognized command line option "-Wno-unused-but-set-variable"
cc1: error: unrecognized command line option "-march=native"
cc1: error: unrecognized command line option "-Wno-unused-but-set-variable"
cc1: error: unrecognized command line option "-march=native"
cc1: error: unrecognized command line option "-Wno-unused-but-set-variable"
cc1: error: unrecognized command line option "-march=native"
cc1: error: unrecognized command line option "-Wno-unused-but-set-variable"
cc1: error: unrecognized command line option "-march=native"
cc1: error: unrecognized command line option "-Wno-unused-but-set-variable"
cc1: error: unrecognized command line option "-march=native"
cc1: error: unrecognized command line option "-Wno-unused-but-set-variable"
cc1: error: unrecognized command line option "-march=native"
cc1: error: unrecognized command line option "-Wno-unused-but-set-variable"
make[2]: *** [libmetis/CMakeFiles/metis.dir/compress.c.o] Error 1
make[2]: *** [libmetis/CMakeFiles/metis.dir/coarsen.c.o] Error 1
make[2]: *** [libmetis/CMakeFiles/metis.dir/debug.c.o] Error 1
make[2]: *** [libmetis/CMakeFiles/metis.dir/auxapi.c.o] Error 1
make[2]: *** [libmetis/CMakeFiles/metis.dir/balance.c.o] Error 1
make[2]: *** [libmetis/CMakeFiles/metis.dir/bucketsort.c.o] Error 1
make[2]: *** [libmetis/CMakeFiles/metis.dir/checkgraph.c.o] Error 1

Change History (4)

comment:1 Changed 22 months ago by kencu (Ken)

the thing to do here is to remove "-Werror", which we don't recommend any software to use in the released port version.

comment:2 Changed 22 months ago by kencu (Ken)

Summary: metis fails to build on Rosetta due to usage of wrong flagsmetis fails to build on Rosetta due to usage of WError and unsupported flags

comment:3 Changed 22 months ago by kencu (Ken)

Summary: metis fails to build on Rosetta due to usage of WError and unsupported flagsmetis fails to build with gcc-4.2 due to usage of WError and unsupported flags

comment:4 Changed 22 months ago by barracuda156

Resolution: fixed
Status: assignedclosed

In 0960ae2da87d1ba688d9a2dd3032cf2ce1c119a9/macports-ports (master):

metis: fix build on PPC, add requirement for TLS
Fixes: #66720
Signed-off-by: Sergey Fedorov <vital.had@…>

Note: See TracTickets for help on using tickets.