Subject: pkgsrc/lang/gcc3-{c,c++} on dreamcast (Re: Dynamic linking is go (again))
To: None <port-sh3@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-dreamcast
Date: 07/10/2003 01:18:23
Just FYI,
I tried to build pkgsrc/lang/gcc3-c on my dreamcast,
and it works with the following patch:
(it requires --disable-shared on configure)
---
Index: lang/gcc3-c/Makefile.common
===================================================================
RCS file: /cvsroot/pkgsrc/lang/gcc3-c/Makefile.common,v
retrieving revision 1.2
diff -u -r1.2 Makefile.common
--- lang/gcc3-c/Makefile.common 2003/07/08 16:39:51 1.2
+++ lang/gcc3-c/Makefile.common 2003/07/09 16:07:56
@@ -65,16 +65,24 @@
#. include "../../devel/binutils/buildlink2.mk"
.endif
-.if ${OPSYS} == "NetBSD" || ${OPSYS} == "Linux"
+.if ${OPSYS} == "NetBSD"
+. if ${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb"
+CONFIGURE_ARGS+= --disable-shared
+. else
CONFIGURE_ARGS+= --enable-shared
+. endif
.else
-. if ${OPSYS} == "SunOS"
+. if ${OPSYS} == "Linux"
CONFIGURE_ARGS+= --enable-shared
. else
+. if ${OPSYS} == "SunOS"
+CONFIGURE_ARGS+= --enable-shared
+. else
CONFIGURE_ARGS+= --disable-shared
-. endif
-. if ${CC:M*gcc*} == ""
+. endif
+. if ${CC:M*gcc*} == ""
ALL_TARGET= bootstrap
+. endif
. endif
.endif
---
But lang/gcc3-c++ fails with the following errors during
configure in libstdc++-v3:
---
[...]
checking for ISO C99 support in <stdlib.h>... no
checking for additional ISO C99 support in <wchar.h>... no
checking for enabled ISO C99 support... no
checking for enabled long long I/O support... no
checking for thread model used by GCC... posix
checking for exception model to use... configure: error: unable to detect exception model
gmake: *** [configure-target-libstdc++-v3] Error 1
*** Error code 2
Stop.
make: stopped in /work/pkgsrc/lang/gcc3-c++
*** Error code 1
Stop.
make: stopped in /work/pkgsrc/lang/gcc3-c++
#
---
Maybe we should pass --disable-sjlj_exceptions to
libstdc++-v3/configure, but I don't know how to fix it..
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp