public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Darwin vs. libstdc++
@ 2001-10-08 23:50 Bryce McKinlay
  2001-10-09  6:19 ` Stan Shebs
  2001-10-09 10:30 ` Phil Edwards
  0 siblings, 2 replies; 9+ messages in thread
From: Bryce McKinlay @ 2001-10-08 23:50 UTC (permalink / raw)
  To: gcc

I've been trying to build GCC on darwin, at least to get it as far as 
the libjava build. It seems that there are issues with libstdc++.

First, why does t-darwin want to multilib? I dont know if this causes 
any actual problems, but it does suck waiting for multilibs to build.

Index: t-darwin
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/rs6000/t-darwin,v
retrieving revision 1.4
diff -u -r1.4 t-darwin
--- t-darwin    2001/06/28 19:55:53     1.4
+++ t-darwin    2001/10/09 06:14:25
@@ -21,10 +21,10 @@
             $(TM_P_H)
         $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<

-# Build the libraries for both hard and soft floating point
+# Don't build the libraries for both hard and soft floating point

-MULTILIB_OPTIONS = msoft-float
-MULTILIB_DIRNAMES = soft-float
+MULTILIB_OPTIONS =
+MULTILIB_DIRNAMES =

  LIBGCC = stmp-multilib
  INSTALL_LIBGCC = install-multilib


Next, theres big problems when we hit libstdc++ proper, starting with 
basic_file.cc:

/Users/bryce/cvs/gcc/build/gcc/xgcc -B/Users/bryce/cvs/gcc/build/gcc/ 
-nostdinc++ -L/Users/bryce/cvs/gcc/build/powerpc-apple-
darwin1.4/libstdc++-v3/src 
-L/Users/bryce/cvs/gcc/build/powerpc-apple-
darwin1.4/libstdc++-v3/src/.libs 
-B/Users/bryce/devo/gcc/powerpc-apple-darwin1.4/bin/ 
-B/Users/bryce/devo/gcc/powerpc-apple-darwin1.4/lib/ -isystem 
/Users/bryce/devo/gcc/powerpc-apple-darwin1.4/include -nostdinc++ 
-I/Users/bryce/cvs/gcc/build/powerpc-apple-
darwin1.4/libstdc++-v3/include/powerpc-apple-darwin1.4 
-I/Users/bryce/cvs/gcc/build/powerpc-apple-
darwin1.4/libstdc++-v3/include -I../../../../libstdc++-v3/libsupc++ 
-I../../../../libstdc++-v3/libmath -g -O2 -fno-implicit-templates -Wall 
-Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once 
-g -c basic_file.cc -o basic_file.o
In file included from /Users/bryce/cvs/gcc/build/powerpc-apple-
darwin1.4/libstdc++-v3/include/bits/localefwd.h:43,
                  from /Users/bryce/cvs/gcc/build/powerpc-apple-
darwin1.4/libstdc++-v3/include/bits/std_ios.h:43,
                  from /Users/bryce/cvs/gcc/build/powerpc-apple-
darwin1.4/libstdc++-v3/include/bits/basic_file.h:40,
                  from basic_file.cc:34:
/Users/bryce/cvs/gcc/build/powerpc-apple-
darwin1.4/libstdc++-v3/include/bits/std_cctype.h:57: `isalnum' not 
declared
/Users/bryce/cvs/gcc/build/powerpc-apple-
darwin1.4/libstdc++-v3/include/bits/std_cctype.h:58: `isalpha' not 
declared
/Users/bryce/cvs/gcc/build/powerpc-apple-
darwin1.4/libstdc++-v3/include/bits/std_cctype.h:59: `iscntrl' not 
declared
[ blah blah blah ]

It seems that libstdc++ expects these ctype declarations to be real 
functions, but darwin's /usr/include/ctype.h only defines them as 
macros! Apparently every other platform that libstdc++ must declare 
these as functions, so this is a bug with darwin? I was able to work 
around it by patching darwin's header as below.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2001-10-09 23:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-08 23:50 Darwin vs. libstdc++ Bryce McKinlay
2001-10-09  6:19 ` Stan Shebs
2001-10-09 23:58   ` Bryce McKinlay
2001-10-09 10:30 ` Phil Edwards
2001-10-09 11:01   ` Stan Shebs
2001-10-09 11:18     ` Neil Booth
2001-10-09 11:29       ` Stan Shebs
2001-10-09 11:59       ` Dale Johannesen
2001-10-09 13:13         ` Geoff Keating

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).