Opened 13 years ago
Closed 13 years ago
#33438 closed defect (invalid)
ImageMagick @6.7.5-3_1 +no_x11 +perl +q16 - build failure
Reported by: | sierkb@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.4 |
Keywords: | Cc: | drkp (Dan Ports) | |
Port: | ImageMagick |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
Software: MacOSX 10.7.3, Xcode 4.3, Xcode 4.3 Command Line Tools, MacPorts 2.0.4
$ xcode-select -print-path /Applications/Xcode.app/Contents/Developer
$ sudo port outdated Password: The following installed ports are outdated: ImageMagick 6.7.4-0_0 < 6.7.5-3_1
$ sudo port upgrade -u outdated ---> Computing dependencies for ImageMagick ---> Staging ImageMagick into destroot Error: Target org.macports.destroot returned: shell command failed (see log for details) Log for ImageMagick is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ImageMagick/ImageMagick/main.log Error: Unable to upgrade port: 1 To report a bug, see <http://guide.macports.org/#project.tickets>
$ tail -n 20 -f /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ImageMagick/ImageMagick/main.log :info:destroot :info:destroot env: /Developer/usr/bin/clang: No such file or directory :info:destroot make[3]: *** [blib/arch/auto/Image/Magick/Magick.bundle] Error 127 :info:destroot make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ImageMagick/ImageMagick/work/ImageMagick-6.7.5-3/PerlMagick' :info:destroot make[2]: *** [install-exec-perl] Error 2 :info:destroot make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ImageMagick/ImageMagick/work/ImageMagick-6.7.5-3' :info:destroot make[1]: *** [install-am] Error 2 :info:destroot make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ImageMagick/ImageMagick/work/ImageMagick-6.7.5-3' :info:destroot make: *** [install] Error 2 :info:destroot make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ImageMagick/ImageMagick/work/ImageMagick-6.7.5-3' :info:destroot shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ImageMagick/ImageMagick/work/ImageMagick-6.7.5-3" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ImageMagick/ImageMagick/work/destroot " returned error 2 :error:destroot Target org.macports.destroot returned: shell command failed (see log for details) :debug:destroot Backtrace: shell command failed (see log for details) while executing "command_exec destroot" (procedure "portdestroot::destroot_main" line 2) invoked from within "$procedure $targetname" :info:destroot Warning: the following items did not execute (for ImageMagick): org.macports.install org.macports.destroot :notice:destroot Log for ImageMagick is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ImageMagick/ImageMagick/main.log
Full log file main.log, see Attachment.
Question: What to do (maybe a temporary workaround) to let MacPorts successfully build ImageMagick?
Fix appreciated!
Attachments (1)
Change History (10)
Changed 13 years ago by sierkb@…
comment:2 Changed 13 years ago by sierkb@…
@admin: if the bug reporter will be noticed via email about changes anyway, please remove the then redundant CC to my own email address. I've only CC'd myself to ensure notification not knowing if the reporter (me) will be noticed on changes.
comment:3 follow-up: 4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | sierkb@… removed |
---|---|
Description: | modified (diff) |
Keywords: | ImageMagick Xcode 4.3 MacPorts 2.0.4 build failure removed |
Owner: | changed from macports-tickets@… to ryandesign@… |
This was not a clean build attempt. Please "sudo port clean ImageMagick" and try again.
Yes, the reporter automatically receives notifications.
comment:4 follow-up: 5 Changed 13 years ago by sierkb@…
Replying to ryandesign@…:
This was not a clean build attempt. Please "sudo port clean ImageMagick" and try again.
Done. Same build failure and error messages as before.
Looking at main.log, I think this here might be the cause:
:info:destroot env: /Developer/usr/bin/clang: No such file or directory
Maybe somewhere hardcoded in the Makefile (of ImageMagick), that it's searching for clang firstly in the now non-existant /Developer directory path rather than looking dynamically into the new path below /Applications/Xcode.app or /usr/bin?
Yes, the reporter automatically receives notifications.
Thanks for removing the redundant CC.
comment:5 follow-up: 6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to sierkb@…:
Looking at main.log, I think this here might be the cause:
:info:destroot env: /Developer/usr/bin/clang: No such file or directory
Yes, that's the problem.
Maybe somewhere hardcoded in the Makefile (of ImageMagick), that it's searching for clang firstly in the now non-existant /Developer directory path rather than looking dynamically into the new path below /Applications/Xcode.app or /usr/bin?
No; it's in the libtool port; you probably installed libtool with Xcode < 4.3. Now that you have Xcode 4.3, rebuild libtool, clean ImageMagick, and try again.
sudo port clean libtool ImageMagick sudo port -n upgrade --force libtool
comment:6 Changed 13 years ago by drkp (Dan Ports)
Cc: | dports@… added |
---|
Replying to ryandesign@…:
No; it's in the libtool port; you probably installed libtool with Xcode < 4.3. Now that you have Xcode 4.3, rebuild libtool, clean ImageMagick, and try again.
I'm surprised that this would be an issue -- the compiler path in /opt/local/bin/glibtool should only come up for ports that use the hack of copying that version of libtool into ${worksrcpath}, and ImageMagick doesn't do this. ImageMagick builds fine for me...
comment:7 Changed 13 years ago by drkp (Dan Ports)
Oh, I missed the +perl variant, that's where the /Developer/usr/bin/clang reference is coming from. You'll probably need to
sudo port -n upgrade --force perl5.12
comment:8 Changed 13 years ago by sierkb@…
Fixed! Thanks for helping!
I did as advised:
sudo port clean libtool ImageMagick sudo port -n upgrade --force libtool sudo port -n upgrade --force perl5.12 sudo port upgrade -u outdated
I can't say, if rebuilding libtool has removed the cause or rebuilding perl5.12 (because of ImagMagick's Perl module variant, that I strongly need) has removed the cause or both. Finally, ImageMagick inclusive its Perl module now builds without errors.
Thanks a lot for your help! The ticket can be marked as closed.
comment:9 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
I have cleaned up the formatting in your last comment. Please remember to use WikiFormatting when writing in Trac.
I agree with Dan; rebuild perl5.12 was probably what fixed it.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ImageMagick/ImageMagick/main.log