Mac OS X 10.5
Carlos Santander
csantander619 at gmail.com
Sun Oct 28 14:19:42 PDT 2007
I upgraded from Tiger to Leopard, and GDC seems to be working fine. I've found
two problems that don't seem to be related to GDC, but I don't know where to ask.
First, I can't build powerpc-apple-darwin9.0.0-gdc basically because I can't get
GCC 4.0.x and 4.1.x to compile. With 4.1.2, I get:
gcc -c -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
-Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute
-DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/.
-I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -I.
-I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/.
-I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include
../../gcc-4.1.2/gcc/config/rs6000/host-darwin.c -o host-ppc-darwin.o
../../gcc-4.1.2/gcc/config/rs6000/host-darwin.c:38: warning: 'struct
sigaltstack' declared inside parameter list
../../gcc-4.1.2/gcc/config/rs6000/host-darwin.c:38: warning: its scope is only
this definition or declaration, which is probably not what you want
../../gcc-4.1.2/gcc/config/rs6000/host-darwin.c:38: error: conflicting types for
'sigaltstack'
/usr/include/signal.h:89: error: previous declaration of 'sigaltstack' was here
../../gcc-4.1.2/gcc/config/rs6000/host-darwin.c: In function 'segv_handler':
../../gcc-4.1.2/gcc/config/rs6000/host-darwin.c:71: error: 'struct
__darwin_mcontext' has no member named 'ss'
../../gcc-4.1.2/gcc/config/rs6000/host-darwin.c:120: error: 'struct
__darwin_mcontext' has no member named 'es'
../../gcc-4.1.2/gcc/config/rs6000/host-darwin.c:120: error: 'struct
__darwin_mcontext' has no member named 'ss'
../../gcc-4.1.2/gcc/config/rs6000/host-darwin.c: In function
'darwin_rs6000_extra_signals':
../../gcc-4.1.2/gcc/config/rs6000/host-darwin.c:134: warning: passing argument 1
of 'sigaltstack' from incompatible pointer type
It's not a GDC problem, as I also tried to compile GCC without GDC and got the
same error. I also got the same with GCC 4.0.4. GCC 4.2.2 builds, but GDC
doesn't support it.
The other problem is more like a small annoyance:
$ gdmd
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
LANG = "UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
gdc (GCC) 4.1.2 20070214 ( gdc 0.24, using dmd 1.021)
...
Every time I run gdmd I get those horrible first 6 lines, and I have no idea how
to set up my system so that LANG = "es_EC.UTF-8" and that it shows up when I run
"locale -a".
Sorry, but I had to get it out of my chest, even if I know those are not really
issues with GDC. However, if anybody has a clue of how to solve them, I'd really
appreciate it.
--
Carlos Santander Bernal
More information about the D.gnu
mailing list