Opened 10 years ago

Closed 10 years ago

#44571 closed defect (invalid)

gmp @6.0.0: configure fails

Reported by: erik.mccaffrey@… Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc:
Port: gmp

Description

Hello. I am trying to install OpenFOAM on my 2010 macbook pro i5 running 10.6.8.

I am following the directions from here: http://openfoamwiki.net/index.php/Installation/Mac_OS/OpenFOAM_2.1.x#Get_the_OpenFOAM_source_code_and_patches

I get to step 5 to install GCC 4.6 and I enter 'sudo port install gcc46' into terminal.

Last login: Thu Aug  7 20:09:04 on ttys000
Erik-McCaffreys-MacBook-Pro:~ erikmccaffrey$ sudo port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.3.1 installed,
MacPorts base version 2.3.1 downloaded.
--->  Updating the ports tree
sudo port install gcc46
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
Erik-McCaffreys-MacBook-Pro:~ erikmccaffrey$ sudo port install gcc46
^[[A^[[D--->  Computing dependencies for gcc46^[[D^[[D^[[B^[[C
--->  Dependencies to be installed: cctools cctools-headers llvm-3.4 libffi llvm_select cloog gmp isl gcc_select ld64 libgcc libiconv libmpc mpfr ppl glpk zlib
--->  Fetching archive for cctools-headers
--->  Attempting to fetch cctools-headers-855_0.darwin_10.noarch.tbz2 from http://packages.macports.org/cctools-headers
--->  Attempting to fetch cctools-headers-855_0.darwin_10.noarch.tbz2.rmd160 from http://packages.macports.org/cctools-headers
--->  Installing cctools-headers @855_0
--->  Activating cctools-headers @855_0
--->  Cleaning cctools-headers
--->  Fetching archive for libffi
--->  Attempting to fetch libffi-3.1_4.darwin_10.x86_64.tbz2 from http://packages.macports.org/libffi
--->  Attempting to fetch libffi-3.1_4.darwin_10.x86_64.tbz2.rmd160 from http://packages.macports.org/libffi
--->  Installing libffi @3.1_4
--->  Activating libffi @3.1_4
--->  Cleaning libffi
--->  Fetching archive for llvm_select
--->  Attempting to fetch llvm_select-1.0_0.darwin_10.noarch.tbz2 from http://packages.macports.org/llvm_select
--->  Attempting to fetch llvm_select-1.0_0.darwin_10.noarch.tbz2.rmd160 from http://packages.macports.org/llvm_select
--->  Installing llvm_select @1.0_0
--->  Activating llvm_select @1.0_0
--->  Cleaning llvm_select
--->  Fetching archive for llvm-3.4
--->  Attempting to fetch llvm-3.4-3.4.2_0.darwin_10.x86_64.tbz2 from http://packages.macports.org/llvm-3.4
--->  Attempting to fetch llvm-3.4-3.4.2_0.darwin_10.x86_64.tbz2.rmd160 from http://packages.macports.org/llvm-3.4
--->  Installing llvm-3.4 @3.4.2_0
--->  Activating llvm-3.4 @3.4.2_0
--->  Cleaning llvm-3.4
--->  Fetching archive for cctools
--->  Attempting to fetch cctools-855_1+llvm34.darwin_10.x86_64.tbz2 from http://packages.macports.org/cctools
--->  Attempting to fetch cctools-855_1+llvm34.darwin_10.x86_64.tbz2.rmd160 from http://packages.macports.org/cctools
--->  Installing cctools @855_1+llvm34
--->  Activating cctools @855_1+llvm34
--->  Cleaning cctools
--->  Fetching distfiles for gmp
--->  Attempting to fetch gmp-6.0.0a.tar.bz2 from ftp://ftp.gnu.org/gnu/gmp
--->  Verifying checksums for gmp                                               
--->  Extracting gmp
--->  Configuring gmp
Error: Failed to configure gmp, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.0.0/config.log
Error: org.macports.configure for port gmp returned: configure failure: command execution failed
Error: Failed to install gmp
Please see the log file for port gmp for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/main.log
Error: The following dependencies were not installed: cloog gmp isl gcc_select ld64 libgcc libiconv libmpc mpfr ppl glpk zlib
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gcc46 failed
Erik-McCaffreys-MacBook-Pro:~ erikmccaffrey$ sudo port clean
Password:
Can't map the URL 'file://.' to a port description file ("Could not find Portfile in /Users/erikmccaffrey").
Please verify that the directory and portfile syntax are correct.
To use the current port, you must be in a port's directory.
Erik-McCaffreys-MacBook-Pro:~ erikmccaffrey$ 

I have tried re-inputting the install command, per the suggestions on the first help page, which picks up the install at the point of failure.

Last login: Thu Aug  7 20:12:48 on ttys000
Erik-McCaffreys-MacBook-Pro:~ erikmccaffrey$ sudo port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.3.1 installed,
MacPorts base version 2.3.1 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
Erik-McCaffreys-MacBook-Pro:~ erikmccaffrey$ sudo port install gcc46
--->  Computing dependencies for gcc46
--->  Dependencies to be installed: cloog gmp isl gcc_select ld64 libgcc libiconv libmpc mpfr ppl glpk zlib
--->  Configuring gmp
Error: Failed to configure gmp, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.0.0/config.log
Error: org.macports.configure for port gmp returned: configure failure: command execution failed
Error: Failed to install gmp
Please see the log file for port gmp for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/main.log
Error: The following dependencies were not installed: cloog gmp isl gcc_select ld64 libgcc libiconv libmpc mpfr ppl glpk zlib
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gcc46 failed

I have tried searching for gmp install failure and failure to configure gmp.

I am a complete noob at using terminal, so assume I know absolutely nothing (because I don't know anything).

Thank you for your help.

Attachments (2)

main.log (7.0 KB) - added by erik.mccaffrey@… 10 years ago.
Main log per request by helper
config.log (11.5 KB) - added by erik.mccaffrey@… 10 years ago.

Download all attachments as: .zip

Change History (13)

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

Owner: changed from macports-tickets@… to mcalhoun@…
Port: gmp added
Summary: gmp Error installing GCC 4.6gmp @6.0.0: configure fails

Please "sudo port clean gmp", then try again, then when it fails again, attach the main.log file to this ticket.

Changed 10 years ago by erik.mccaffrey@…

Attachment: main.log added

Main log per request by helper

comment:2 Changed 10 years ago by erik.mccaffrey@…

Thank you for replying so quickly.

I tried the command and it did not improve anything. It appears to be the same error:

Last login: Thu Aug  7 20:20:41 on ttys001
Erik-McCaffreys-MacBook-Pro:~ erikmccaffrey$ sudo port clean gmp
Password:
--->  Cleaning gmp
Erik-McCaffreys-MacBook-Pro:~ erikmccaffrey$ sudo port install gcc46
--->  Computing dependencies for gcc46
--->  Dependencies to be installed: cloog gmp isl gcc_select ld64 libgcc libiconv libmpc mpfr ppl glpk zlib
--->  Fetching distfiles for gmp
--->  Verifying checksums for gmp
--->  Extracting gmp
--->  Configuring gmp
Error: Failed to configure gmp, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.0.0/config.log
Error: org.macports.configure for port gmp returned: configure failure: command execution failed
Error: Failed to install gmp
Please see the log file for port gmp for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/main.log
Error: The following dependencies were not installed: cloog gmp isl gcc_select ld64 libgcc libiconv libmpc mpfr ppl glpk zlib
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gcc46 failed
Erik-McCaffreys-MacBook-Pro:~ erikmccaffrey$ 

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

The log says:

error: could not find a working compiler, see config.log for details

The obvious question would be: did you install Xcode? It is required.

If that's not it, please attach the config.log.

Changed 10 years ago by erik.mccaffrey@…

Attachment: config.log added

comment:4 Changed 10 years ago by erik.mccaffrey@…

I installed Xcode and also installed macports via installer. I just opened Xcode and it is working.

Attached is the config.log that I found through Spotlight.

comment:5 Changed 10 years ago by neverpanic (Clemens Lang)

Your problem likely is

conftest.c:6:38: error: /usr/local/include/string.h: Permission denied

You cannot safely have files in /usr/local while using MacPorts, especially none shadowing system headers like string.h. Please move this file out of the way or outright delete it. You can also use trace mode sudo port -t install --unrequested gmp for this installation, which will have a performance overhead, but avoid problems like these.

comment:6 Changed 10 years ago by erik.mccaffrey@…

I do not see the file string.h in the directory. I see this for files in there:

faac.h
faaccfg.h
>fuse
	>fuse_common_compat.h
	>fuse_common.h
	>fuse_compat.h
	>fuse_darwin.h
	>fuse_lowlevel_compat.h
	>fuse_lowlevel.h
	>fuse_opt.h
	>fuse.h
fuse.h

I have files in the /usr/local folder for other purposes (Active perl, Remote software access etc). Should I move those elsewhere temporarily while installing this?

comment:7 Changed 10 years ago by neverpanic (Clemens Lang)

/usr/local/include/string.h does not have to exist for this error message to be printed – your /usr/local/include or /usr/local directory might lack read and execute permissions for the macports user, which would cause the same issues. Please check the permissions.

You should always have an empty /usr/local when using MacPorts – that's because MacPorts cannot easily prevent compilers and configure scripts from picking up headers and libraries in /usr/local. In practice, the damage potential isn't that high if you only have a few obscure things in /usr/local and don't build ports that use those. In your case, e.g., having fuse headers in /usr/local could cause problems with anything using fuse in MacPorts. Same for FAAC.

That being said, MacPorts does have a generic method to avoid stuff in /usr/local, which, however, comes at a performance overhead due to how it is implemented – and that's trace mode. I think repeating your installation using sudo port clean gmp; sudo port -t install --unrequested gmp should successfully finish.

comment:8 Changed 10 years ago by erik.mccaffrey@…

Thanks for all your help! I was able to get this step to work. I did what you said and I also altered the permissions for the folder so that I could write to it.

Unfortunately I ran afoul in later steps of the install when the patches I had to install via terminal would not properly execute. Oh well. I really appreciate you helping me though, and I learned about terminal and had a peak under the Mac OSX hood, so to speak.

comment:9 Changed 10 years ago by neverpanic (Clemens Lang)

Am I correct in assuming that the failing patches are not related to MacPorts and this ticket can be closed?

comment:10 Changed 10 years ago by erik.mccaffrey@…

Yes that is correct. Once again, thank you for your help. Please close the ticket.

comment:11 Changed 10 years ago by neverpanic (Clemens Lang)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.