Homebrew / legacy-homebrew

💀 The former home of Homebrew/homebrew (deprecated)
https://brew.sh
26.99k stars 11.36k forks source link

libsigc++ failed to build on 10.6.8 #24099

Closed kensanata closed 10 years ago

kensanata commented 10 years ago

Relevant info: https://gist.github.com/kensanata/7378121

I'm trying to build inkscape.

==> Installing inkscape dependency: libsigc++ ... checking whether we are cross compiling... configure: error: in `/private/tmp/libsigc++-IZQB/libsigc++-2.3.1': configure: error: cannot run C++ compiled programs.

All the details are in the gist.

Thanks for Homebrew!

mistydemeo commented 10 years ago

The error:

configure:3297: g++-4.2 -o conftest conftest.cpp >&5
Undefined symbols:
"___gxx_personality_v0", referenced from:
___gxx_personality_v0$non_lazy_ptr in ccBXdHDC.o
(maybe you meant: ___gxx_personality_v0$non_lazy_ptr)
ld: symbol(s) not found
collect2: ld returned 1 exit status
configure:3301: $? = 1
configure:3308: ./conftest
./configure: line 3310: ./conftest: No such file or directory
mistydemeo commented 10 years ago

As a data point, looks like you're on a 32-bit only system.

Can you retry with --env=std and see if that works? Wonder if this is a superenv issue.

kensanata commented 10 years ago

That worked! https://gist.github.com/kensanata/7378121#comment-946874

I continued my attempt at building inkscape and ran into a similar problem for glibmm. I'll open another issue for that.

mistydemeo commented 10 years ago

If you don't mind the build time, can you try brew reinstalling libsigc++ without --env=std? There was a bug with c++ compiler selection that was fixed recently and I'm wondering if that's the culprit.

kensanata commented 10 years ago

Success! :)

alex@Pyrobombus:~$ brew update
Updated Homebrew from 61b75927 to 143d5474.
==> Updated Formulae
cairo       gambit-scheme   grails      libewf
erlang      git     imake       libkml
fbida       glog        lftp        macvim
alex@Pyrobombus:~$ brew reinstall libsigc++
==> Reinstalling libsigc++ 
==> Downloading http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.3/libsigc++-2
Already downloaded: /Library/Caches/Homebrew/libsigc++-2.3.1.tar.xz
==> ./configure --prefix=/usr/local/Cellar/libsigc++/2.3.1
==> make
==> make check
==> make install
/usr/local/Cellar/libsigc++/2.3.1: 619 files, 13M, built in 75 seconds