Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#42131 closed defect (invalid)

gnuplot: configure: error: cannot run C compiled programs

Reported by: netja000@… Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: gnuplot

Description

I tried to build gnuplot from my MacBook Pro 10.7.5. The Xcode version is 4.6.3, and the MacPorts base is 2.2.1. And I got following error messages:

--->  Computing dependencies for gnuplot
--->  Fetching archive for gnuplot
--->  Attempting to fetch gnuplot-4.6.4_4+aquaterm+luaterm+pangocairo+wxwidgets+x11.darwin_11.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gnuplot
--->  Attempting to fetch gnuplot-4.6.4_4+aquaterm+luaterm+pangocairo+wxwidgets+x11.darwin_11.x86_64.tbz2 from http://lil.fr.packages.macports.org/gnuplot
--->  Attempting to fetch gnuplot-4.6.4_4+aquaterm+luaterm+pangocairo+wxwidgets+x11.darwin_11.x86_64.tbz2 from http://packages.macports.org/gnuplot
--->  Fetching distfiles for gnuplot
--->  Verifying checksums for gnuplot
--->  Extracting gnuplot
--->  Applying patches to gnuplot
--->  Configuring gnuplot
Error: Failed to configure gnuplot, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gnuplot/gnuplot/work/gnuplot-4.6.4/config.log
Error: org.macports.configure for port gnuplot returned: configure failure: command execution failed
Please see the log file for port gnuplot for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gnuplot/gnuplot/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gnuplot failed

In the main.log, it seems none of the URLs is working:

http://mse.uk.packages.macports.org/sites/packages.macports.org/gnuplot

http://lil.fr.packages.macports.org/gnuplot

http://packages.macports.org/gnuplot

Please let me know what I can do to solve the problem. Thanks a lot! :-)

Yiran

Attachments (3)

gnuplot_build_main.log (74.7 KB) - added by netja000@… 11 years ago.
Gnuplot build log
gnuplot_build_config.log (12.1 KB) - added by netja000@… 11 years ago.
Gnuplot build config.log
Screen Shot 2014-01-14 at 11.58.20 AM.png (86.6 KB) - added by netja000@… 11 years ago.
Xcode screen shot

Download all attachments as: .zip

Change History (9)

Changed 11 years ago by netja000@…

Attachment: gnuplot_build_main.log added

Gnuplot build log

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

Cc: mojca@… openmaintainer@… removed
Keywords: gnuplot removed
Owner: changed from macports-tickets@… to mojca@…
Port: gnuplot added; mojca@macports.org openmaintainer@macports.org removed
Summary: Gnuplot build failuregnuplot: configure: error: cannot run C compiled programs

Replying to netja000@…:

In the main.log, it seems none of the URLs is working:

http://mse.uk.packages.macports.org/sites/packages.macports.org/gnuplot

http://lil.fr.packages.macports.org/gnuplot

http://packages.macports.org/gnuplot

Irrelevant. That's MacPorts trying to download pre-compiled binaries. Since apparently none exist for this port, it then tries to compile the source. That then fails, and that's the problem we need to investigate.

Please let me know what I can do to solve the problem. Thanks a lot! :-)

The log you attached says:

:info:configure configure: error: cannot run C compiled programs.
:info:configure If you meant to cross compile, use `--host'.
:info:configure See `config.log' for more details

So why can't you run C compiled programs? Have you installed the Xcode command line tools? See wiki:FAQ#missingxcode. What does the config.log say?

comment:2 Changed 11 years ago by mojca (Mojca Miklavec)

I'm clueless. It might help to see config.log though:

Error: Failed to configure gnuplot, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gnuplot/gnuplot/work/gnuplot-4.6.4/config.log

Please attach that one as well.

Changed 11 years ago by netja000@…

Attachment: gnuplot_build_config.log added

Gnuplot build config.log

Changed 11 years ago by netja000@…

Xcode screen shot

comment:3 in reply to:  2 Changed 11 years ago by netja000@…

Thanks for your replies.

I just attached the config.log. I also attached the screenshot of the Xcode's preference, which shows that the Xcode command line tools installed and no updates can be found.

Last edited 11 years ago by netja000@… (previous) (diff)

comment:4 Changed 11 years ago by mojca (Mojca Miklavec)

You must have installed some third-party software. Xcode doesn't install files to

/usr/local/include/stdio.h

Please try to figure out what software that is and remove it. That is: make sure that you won't have any leftovers in /usr/local/, at least not in include/ and lib/.

comment:5 Changed 11 years ago by mojca (Mojca Miklavec)

Resolution: invalid
Status: newclosed
Version: 2.2.1

comment:6 Changed 11 years ago by mojca (Mojca Miklavec)

PS: I would be intersted to know what software that is. And in case that the problem isn't solved after you remove everything from /usr/local, please open a new ticket or reopen this one.

Note: See TracTickets for help on using tickets.