Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

imagemagick dependency fail - libwmf error during build. #193

Closed
grzegorzkazulak opened this issue Dec 10, 2009 · 11 comments
Closed

imagemagick dependency fail - libwmf error during build. #193

grzegorzkazulak opened this issue Dec 10, 2009 · 11 comments

Comments

@grzegorzkazulak
Copy link

I get this while trying to install imagemagick dependency - libwmf

/Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2 -O4 -march=core2 -mmmx -msse4.1 -w -pipe -I/usr/X11/include/freetype2 -I/usr/X11/include -Wl,-framework -Wl,CoreServices -Wl,-framework -Wl,ApplicationServices -o .libs/wmf2gd wmf2gd.o -L/private/tmp/homebrew-libwmf-0.2.8.4-8Pxr/libwmf-0.2.8.4/src/.libs -L/usr/X11/lib -L/usr/X11R6/lib ../.libs/libwmf.dylib /private/tmp/homebrew-libwmf-0.2.8.4-8Pxr/libwmf-0.2.8.4/src/.libs/libwmflite.dylib -lfreetype -lX11 -lexpat -ljpeg -lpng -lz ../.libs/libwmflite.dylib -lm
lto-llvm.s:285:suffix or operands invalid for `movq'
lto-llvm.s:740:FATAL:Symbol _main already defined.
ld: could not do LTO codegen: error in assembly
collect2: ld returned 1 exit status
make[3]: *** [wmf2x] Error 1
make[3]: *** Waiting for unfinished jobs....
i686-apple-darwin10-gcc-4.2.1: lto-llvm.s: No such file or directory
i686-apple-darwin10-gcc-4.2.1: warning: '-x assembler' after last input file has no effect
i686-apple-darwin10-gcc-4.2.1: no input files
ld: could not do LTO codegen: error in assembly
collect2: ld returned 1 exit status
make[3]: *** [wmf2gd] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/libwmf.rb#L11
==> Environment
HOMEBREW_VERSION: 0.5
HEAD: b2fd885
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_CACHE: /Library/Caches/Homebrew
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: dual-core 64-bit penryn
OS X: 10.6
Kernel Architecture: i386
Ruby: 1.8.7-72
GCC-4.2: build 5646
LLVM: build 2206
MacPorts or Fink? false
Exit status: 2
Error: Failure while executing: make

@grzegorzkazulak
Copy link
Author

strange thing is that it built ok as a standalone package (ie. brew install libwmf)

@mxcl
Copy link
Contributor

mxcl commented Dec 22, 2009

Hmm, that is strange.

@mxcl
Copy link
Contributor

mxcl commented Dec 22, 2009

Can you try adding ENV.gcc_4_2 to the top of the install function in libwmf and then reinstalling imagemagick (of course brew rm libwmf first).

@trevorturk
Copy link
Contributor

I was unable to install imagemagick as well. Here's my errors:

http://gist.github.com/274574

I tried the "ENV.gcc_4_2" edit as well, and that didn't work.

I'm going to try installing X11 as this ticket suggests:

http://github.com/mxcl/homebrew/issues/#issue/145

@trevorturk
Copy link
Contributor

I can confirm that libwmf installs correctly on SL if X11 is installed from the SL installation disc. Having some kind of messaging around this would definitely be helpful, though ;)

@gerhard
Copy link

gerhard commented Jan 15, 2010

I did install X11 form the SL installation disc but this still isn't working. Arghhhh! http://gist.github.com/278047

@trevorturk
Copy link
Contributor

Hmm - sorry, but I don't know what might be wrong. The only thing I changed was installing X11 from the SL disc and it worked for me, so I expected that would work for everyone. Maybe there's something else going on in your case, too...

@mxcl
Copy link
Contributor

mxcl commented Jan 16, 2010

Just pushed code that doesn't use libwmf dependency if X11 isn't installed correctly.

Which is the case for you lot, I certainly don't understand what's going on. But ImageMagick must work. And now it will. brew update

@gerhard
Copy link

gerhard commented Jan 16, 2010

Thanks for the update, but it's still not working for me... http://gist.github.com/278964

@gerhard
Copy link

gerhard commented Jan 16, 2010

OK, I fixed the x11? problem, still getting the freetype related error. I've updated the gist with the git diff and the freetype error: http://gist.github.com/278047

@mxcl
Copy link
Contributor

mxcl commented Jan 16, 2010

Hmm, I can't of tested it before I pushed. I distinctly remember testing it though, which is possibly more worrying.

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants