From: Matthew Baulch <m.baulch@ug...> - 2007-02-05 00:01:09
When compiling on a sun4m system with Solaris 8, GHC 6.4.1
and Gtk2hs 0.9.10.6:
gcc reports: "invalid option: 't'" or words to that effect.
This can be fixed by removing all occurrences of -mt from the Makefile.
In case it's of any interest, `gcc -v` reports:
Configured with: ../sources/gcc-3.4.5/configure --prefix=/opt/csw/gcc3
--with-local-prefix=/opt/csw --without-gnu-as --with-as=/usr/ccs/bin/as
--without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix
--enable-shared --enable-multilib --enable-nls --with-included-gettext
--with-libiconv-prefix=/opt/csw --with-x --enable-java-awt=xlib
Thread model: posix
gcc version 3.4.5
On Mon, 2007-02-05 at 11:00 +1100, Matthew Baulch wrote:
> When compiling on a sun4m system with Solaris 8, GHC 6.4.1
> and Gtk2hs 0.9.10.6:
Wow, I think you're pretty lucky to have that work at all! :-)
> gcc reports: "invalid option: 't'" or words to that effect.
> This can be fixed by removing all occurrences of -mt from the Makefile.
I'm not quite sure where -mt is coming from, it's not in the Makefile.am
or in the Makefile on my sun4u system with Solaris 9. According to the
gcc man page, -mt is a synonym for -pthread on some architectures (not
Sparc). Perhaps -mt is coming from the pkg-config stuff. Try:
pkg-config --cflags --libs gtk+-2.0 gthread-2.0
if that is indeed the source of the problem then they can be overridden
with env vars. See ./configure --help.
Get latest updates about Open Source Projects, Conferences and News.