Opened 12 years ago

Closed 12 years ago

#32444 closed defect (fixed)

p5.12-net-ssleay: fails to create Makefile when perl's configured cc is not available

Reported by: jonstef1667@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: pope (K. Adam Christensen), sheppy@…, joseph.ray@…, peimei@…
Port: p5.12-net-ssleay

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I have been getting the following error when I run port upgrade outdated. I even get it after uninstalling MacPorts and reinstalling. I am running MacPorts 2.03 on Snow Leopard 10.6.8.

--->  Computing dependencies for git-core
--->  Dependencies to be installed: p5.12-libwww-perl p5.12-lwp-protocol-https p5.12-io-socket-ssl p5.12-net-ssleay p5.12-mozilla-ca p5.12-net-http p5.12-www-robotrules p5.12-svn-simple subversion-perlbindings apr apr-util db46 sqlite3 libedit cyrus-sasl2 neon serf1 subversion p5.12-term-readkey pcre bzip2 python27 python_select rsync popt
--->  Building p5.12-net-ssleay
Error: Target org.macports.build returned: shell command failed (see log for details)
Error: Failed to install p5.12-net-ssleay
Log for p5.12-net-ssleay is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-net-ssleay/p5.12-net-ssleay/main.log
Error: The following dependencies were not installed: p5.12-libwww-perl p5.12-lwp-protocol-https p5.12-io-socket-ssl p5.12-net-ssleay p5.12-mozilla-ca p5.12-net-http p5.12-www-robotrules p5.12-svn-simple subversion-perlbindings apr apr-util db46 sqlite3 libedit cyrus-sasl2 neon serf1 subversion p5.12-term-readkey pcre bzip2 python27 python_select rsync popt
Error: Status 1 encountered during processing.

Here is the content of main.log

version:1
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 503
:debug:main Executing org.macports.main (p5.12-net-ssleay)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.archivefetch (p5.12-net-ssleay)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (p5.12-net-ssleay)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (p5.12-net-ssleay)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (p5.12-net-ssleay)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (p5.12-net-ssleay)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.configure (p5.12-net-ssleay)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Wed Dec  7 10:21:08 PST 2011
:notice:build --->  Building p5.12-net-ssleay
:debug:build Executing org.macports.build (p5.12-net-ssleay)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-net-ssleay/p5.12-net-ssleay/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-net-ssleay/p5.12-net-ssleay/work/Net-SSLeay-1.42" && /usr/bin/make -j4 -w all'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-net-ssleay/p5.12-net-ssleay/work/Net-SSLeay-1.42" && /usr/bin/make -j4 -w all 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-net-ssleay/p5.12-net-ssleay/work/Net-SSLeay-1.42'
:info:build make: *** No rule to make target `all'.  Stop.
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-net-ssleay/p5.12-net-ssleay/work/Net-SSLeay-1.42'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-net-ssleay/p5.12-net-ssleay/work/Net-SSLeay-1.42" && /usr/bin/make -j4 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for p5.12-net-ssleay): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install p5.12-net-ssleay
:debug:build couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory
    while executing
"open [file join $dir tclIndex]"
:notice:build Log for p5.12-net-ssleay is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-net-ssleay/p5.12-net-ssleay/main.log

Attachments (4)

main.log (8.2 KB) - added by pope (K. Adam Christensen) 12 years ago.
After clean and rebuild
main.2.log (10.9 KB) - added by jonstef1667@… 12 years ago.
p5.12-net-ssleay main.log after failed install
port-debug.log (55.6 KB) - added by jonstef1667@… 12 years ago.
main.3.log (17.4 KB) - added by henrik_pilz@… 12 years ago.

Download all attachments as: .zip

Change History (22)

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

Description: modified (diff)
Port: p5.12-net-ssleay added; git-core removed
Summary: Failed to install p5.12-net-ssleay dependency for git-core portp5.12-net-ssleay: No rule to make target `all'. Stop.

Please use WikiFormatting.

Clean p5.12-net-ssleay and try again; if it fails again, attach the entire main.log.

Changed 12 years ago by pope (K. Adam Christensen)

Attachment: main.log added

After clean and rebuild

comment:2 Changed 12 years ago by pope (K. Adam Christensen)

I attached the log I see after a clean build.

comment:3 Changed 12 years ago by pope (K. Adam Christensen)

Cc: pope@… added

Cc Me!

Changed 12 years ago by jonstef1667@…

Attachment: main.2.log added

p5.12-net-ssleay main.log after failed install

comment:4 Changed 12 years ago by jonstef1667@…

I ran the following commands. I'm still unable to install git-core due to a problem with p5.12-net-ssleay (see main.2.log attachment).

$ sudo port clean --all p5.12-net-ssleay
$ sudo port install git-core +bash_completion +svn

comment:5 Changed 12 years ago by sheppy@…

I'm seeing this exact same problem trying to install ssleay on OS X 10.6.8 Server.

comment:6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: clang added

Also reported in comment:ticket:32835:12. Presumably an incompatibility with the stricter clang compiler we're using as of Xcode 4.2. Try using a different compiler.

comment:7 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: sheppy@… added

comment:8 Changed 12 years ago by jonstef1667@…

I have XCode 4.2 installed. I tried installing git-core with with llvm-gcc-4.2 and apple-gcc42. It is still failing. I am attaching the output from sudo port -d install git-core +bash_completion +svn.

Changed 12 years ago by jonstef1667@…

Attachment: port-debug.log added

comment:9 Changed 12 years ago by martynovs@…

I have Snow Leopard 10.6.8 and MacPorts 2.0.3

There is no Makefile in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-net-ssleay/p5.12-net-ssleay/work/Net-SSLeay-1.42

Here is output from ls -1: Changes Credits MANIFEST MANIFEST.SKIP META.yml* Makefile.PL QuickRef README README.Win32 RECIPE.Win32 SSLeay.xs TODO constants.c examples/ inc/ lib/ ppport.h t/ typemap

thats why make fail with: * No rule to make target `all'. Stop.

comment:10 Changed 12 years ago by joseph.ray@…

Cc: joseph.ray@… added

Cc Me!

comment:11 in reply to:  8 Changed 12 years ago by joseph.ray@…

Replying to jonstef1667@…:

I have XCode 4.2 installed. I tried installing git-core with with llvm-gcc-4.2 and apple-gcc42. It is still failing. I am attaching the output from sudo port -d install git-core +bash_completion +svn.

I'm getting the same output running the same commands

comment:12 Changed 12 years ago by jason@…

has this been resolved? i've tried everything above also, but still getting the error (os 10.6.8 Snow Leopard, xCode 4.2, MacPorts 2.1.1)

Changed 12 years ago by henrik_pilz@…

Attachment: main.3.log added

comment:13 Changed 12 years ago by henrik_pilz@…

Have the same problem. XCode version is 4.2. Logfile attached.

comment:14 in reply to:  6 Changed 12 years ago by ibadinov@…

Replying to ryandesign@…:

Also reported in comment:ticket:32835:12. Presumably an incompatibility with the stricter clang compiler we're using as of Xcode 4.2. Try using a different compiler.

grep -r /usr/bin/gcc-4.2 ${prefix}
showed that there are loads of references (in configuration files) to /usr/bin/gcc-4.2 which does not exist at all
adding symlinks for gcc-4.2 and g++-4.2 and reinstalling ports solved the problem, but this workaround is really ugly
please consider fixing problems with compiler detection

comment:15 Changed 12 years ago by jmroot (Joshua Root)

Keywords: clang removed
Resolution: fixed
Status: newclosed
Summary: p5.12-net-ssleay: No rule to make target `all'. Stop.p5.12-net-ssleay: fails to create Makefile when perl's configured cc is not available

comment:16 Changed 12 years ago by peimei@…

Resolution: fixed
Status: closedreopened

r94915 doesn't help =( Same error.

comment:17 Changed 12 years ago by peimei@…

Cc: peimei@… added

Cc Me!

comment:18 Changed 12 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.