Opened 12 years ago
Closed 12 years ago
#38775 closed defect (fixed)
metis @5.1.0: cc1: error: unrecognized command line option "-Wno-unused-but-set-variable"
Reported by: | precioso.p.gabrillo@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | Cc: | cooljeanius (Eric Gallager) | |
Port: | metis |
Description
After installing dependencies, I tried to install octave using the wiki instruction:
sudo port install octave-devel +atlas+docs
However, ran into this error:
Error: org.macports.build for port metis returned: command execution failed Please see the log file for port metis for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_metis/metis/main.log Error: Unable to upgrade port: 1 Error: Unable to execute port: upgrade metis failed
Found another ticket with metis issue and tried the solution there:
sudo port clean metis Password: ---> Cleaning metis
sudo port -s destroot metis build.jobs=1 ---> Computing dependencies for metis ---> Fetching distfiles for metis ---> Verifying checksum(s) for metis ---> Extracting metis ---> Applying patches to metis ---> Configuring metis ---> Building metis Error: org.macports.build for port metis returned: command execution failed Please see the log file for port metis for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_metis/metis/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port metis failed
Attach the log from the latest try. This overwrote the previous log file but I uploaded to the poppler ticket so both are available.
Attachments (2)
Change History (12)
Changed 12 years ago by precioso.p.gabrillo@…
comment:1 Changed 12 years ago by precioso.p.gabrillo@…
comment:2 Changed 12 years ago by cooljeanius (Eric Gallager)
but I uploaded to the poppler ticket
The poppler ticket mentioned here is #38762, for other's reference.
comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Port: | metis added; octave merit removed |
---|---|
Summary: | metis @5.1.0 (math) Error: org.macports.build for port metis returned: command execution failed → metis @5.1.0: cc1: error: unrecognized command line option "-Wno-unused-but-set-variable" |
comment:5 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
I'm guessing that the developers of metis starting using the option -Wno-unused-but-set-variable
in 5.1.0 to suppress some errors they didn't want to see, not realizing that this flag may not be compatible with older versions of gcc such as the one you're using in Xcode 3.2.6. You should report this problem to the developers of metis so that they can fix it.
comment:6 Changed 12 years ago by michaelld (Michael Dickens)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in r105190. Maybe upstream will fix this issue, but just removing that -W setting is easy enough and changes nothing about the resulting binaries or installed files.
comment:7 Changed 12 years ago by precioso.p.gabrillo@…
I tried and getting the same error. What I did:
sudo port clean octave ---> Cleaning octave sudo port clean metis ---> Cleaning metis
Using the same install instruction: sudo port install octave-devel +atlas+docs
Error same as last time.
port info metis metis @5.1.0 (math) Variants: openmpi, universal Description: METIS is a set of programs for partitioning graphs and for producing fill reducing orderings for sparse matrices. The algorithms implemented by METIS are based on the multilevel graph partitioning scheme described in [KK95a] and [KK95e]. METIS provides high quality partitions, is extremely fast, and produces low fill orderings. Homepage: http://glaros.dtc.umn.edu/gkhome/metis/metis/overview Build Dependencies: cmake Platforms: darwin License: Restrictive Maintainers: nomaintainer@macports.org
Tried the following:
sudo port clean metis ---> Cleaning metis
sudo port -s destroot metis build.jobs=1 ---> Computing dependencies for metis ---> Fetching distfiles for metis ---> Verifying checksum(s) for metis ---> Extracting metis ---> Applying patches to metis ---> Configuring metis ---> Building metis Error: org.macports.build for port metis returned: command execution failed Please see the log file for port metis for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_metis/metis/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port metis failed
Log is attached.
Changed 12 years ago by precioso.p.gabrillo@…
Attachment: | main.2.log added |
---|
comment:8 follow-up: 9 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | fixed |
---|---|
Status: | closed → reopened |
You need to run sudo port selfupdate
first to receive the fixes that were committed.
comment:9 Changed 12 years ago by precioso.p.gabrillo@…
Replying to ryandesign@…:
You need to run
sudo port selfupdate
first to receive the fixes that were committed.
Ahh, miss this in the docs.
After doing this and install, it made it through although a lot of Warning:Error {...} lines:
---> Updating database of binaries: 0.9% Warning: Error determining file type of `/opt/local/bin/pcre-config': lstat(/opt/local/bin/pcre-config):no such file or directory Warning: A file belonging to the `pcre' port is missing or unreadable. Consider reinstalling it. ---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 100.0% ---> No broken files found.
But it works. Thank you for the help.
which octave /opt/local/bin/octave octave GNU Octave, version 3.6.4 Copyright (C) 2013 John W. Eaton and others.
comment:10 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
As the message says, a file that's supposed to be part of the pcre port is missing. Consider reinstalling it, i.e.:
sudo port clean pcre sudo port -n upgrade --force pcre
Forgot to add: using Mac OSX 10.6.8 with XCode 3.2.6