Opened 5 years ago

Closed 4 weeks ago

#59190 closed defect (fixed)

graphviz @2.40.1_2+pangocairo+x11: not a C compiler: should compile 'int i = 1;'

Reported by: allgoth Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.1
Keywords: Cc: dubiousjim, Smattr (Matthew Fernandez), cooljeanius (Eric Gallager)
Port: graphviz

Description

iffe invocation failed leaving empty sfio file.

...
:info:build make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz/graphviz/work/graphviz-2.40.1/lib/sfio'
:info:build Making all in Sfio_f
:info:build make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz/graphviz/work/graphviz-2.40.1/lib/sfio/Sfio_f'
:info:build mkdir -p ../../../FEATURE
:info:build ../../../iffe - set cc /usr/bin/clang   : run ../../../lib/sfio/features/sfio > ../../../FEATURE/sfio
:info:build iffe: /usr/bin/clang : not a C compiler: should compile 'int i = 1;'
:info:build make[4]: *** [../../../FEATURE/sfio] Error 2
:info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz/graphviz/work/graphviz-2.40.1/lib/sfio/Sfio_f'
:info:build make[3]: *** [all-recursive] Error 1
...

Attachments (2)

main.log (289.1 KB) - added by allgoth 5 years ago.
main.log
second.log (732.5 KB) - added by dubiousjim 4 years ago.

Download all attachments as: .zip

Change History (11)

Changed 5 years ago by allgoth

Attachment: main.log added

main.log

comment:1 Changed 4 years ago by dubiousjim

I can't build this graphviz with a new install of OS X 10.15.6, Xcode 11.6. Have sudo port deactivate active; sudo port install -Nv graphviz build.jobs=1. My /opt/local/etc/macports/variants.conf has +no_x11 -x11 +quartz -universal.

Will attach log of failed install.

Changed 4 years ago by dubiousjim

Attachment: second.log added

comment:2 in reply to:  1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: dubiousjim added; ryandesign removed

Replying to dubiousjim:

I can't build this graphviz with a new install of OS X 10.15.6, Xcode 11.6.

The error you are seeing is different:

error: no member named 'min' in namespace 'std::__1'

Different errors should be in different tickets since they may need different solutions.

comment:3 Changed 4 years ago by dubiousjim

Ok sorry, created #60962.

comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: graphviz @2.40.1_2 +pangocairo+x11: Failed to build graphviz: command execution failedgraphviz @2.40.1_2+pangocairo+x11: not a C compiler: should compile 'int i = 1;'

I'm still not sure what the not a C compiler: should compile 'int i = 1;' error is about. Apparently something called "iffe" is trying to use the C compiler to compile a simple program and it is failing, but I don't know what "iffe" is and the log doesn't seem to be showing us what error message the C compiler emitted, so I don't know how to diagnose this. I don't think anyone else is experiencing this.

You might try reinstalling a version of Xcode compatible with your macOS version and the matching version of the command line tools to ensure that you have a working compiler.

comment:5 Changed 3 years ago by Smattr (Matthew Fernandez)

iffe was a quirky home grown config utility in the Graphviz build. It was removed in Graphviz commit 1a8df410a7469d962dc79c2c99846fb681e84a06, that made it into Graphviz release 2.46.0. Pulling the latest version of Graphviz into Macports should likely resolve this.

comment:6 Changed 3 years ago by Smattr (Matthew Fernandez)

Cc: Smattr added

comment:7 in reply to:  5 Changed 3 years ago by cooljeanius (Eric Gallager)

Replying to Smattr:

iffe was a quirky home grown config utility in the Graphviz build. It was removed in Graphviz commit 1a8df410a7469d962dc79c2c99846fb681e84a06, that made it into Graphviz release 2.46.0. Pulling the latest version of Graphviz into Macports should likely resolve this.

Graphviz is at 2.49.1 now.

comment:8 Changed 3 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:9 Changed 4 weeks ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Then presumably this error cannot happen anymore.

Note: See TracTickets for help on using tickets.