Ticket #4 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

make -f Makefile.gdc.posix fails on Mac OSX 10.4.8 intel in rev 343

Reported by: rene Assigned to: somebody
Priority: major Milestone:
Component: DSSS Version:
Keywords: Cc:

Description

hi!

i just checked out rev 343 and figured make -f Makefile.gdc.posix should be the right one for my platform. unfortunately, i get the following (i tried with the 0.50 download as well, same error)

mia:~/trunk $ make -f Makefile.gdc.posix
cd rebuild && \
make
g++ -O2 -g -c idgen.c -o idgen.o
g++ -O2 -g  idgen.o -o idgen
./idgen
g++ -O2 -g -c impcnvgen.c -o impcnvgen.o
g++ -O2 -g  impcnvgen.o -o impcnvgen
./impcnvgen
g++ -O2 -g -D_DH -DIN_DMDFE -c access.c -o access.o
...
g++ -O2 -g -D_DH -DIN_DMDFE -c expression.c -o expression.o
expression.c: In function 'int RealEquals(real_t, real_t)':
expression.c:1297: error: 'isnan' was not declared in this scope
expression.c: In function 'void realToMangleBuffer(OutBuffer*, real_t)':
expression.c:1402: error: 'isnan' was not declared in this scope
expression.c: In member function 'virtual void StringExp::toMangleBuffer(OutBuffer*)':
expression.c:2409: error: invalid conversion from 'unsigned int*' to 'size_t*'
expression.c:2409: error:   initializing argument 3 of 'char* utf_decodeWchar(short unsigned int*, size_t, size_t*, dchar_t*)'
make[1]: *** [expression.o] Error 1
make: *** [rebuild/rebuild] Error 2
mia:~/trunk $ 

my compiler is:

mia:~/trunk $ g++ -v
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic --program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5367)

i tested it on gentoo linux as well, there expression.c compiles!

if there is any additional information i should provide, please let me know!

Attachments

expression.output.zip (52.6 kB) - added by rene on 02/11/07 18:05:47.
preprocessor output for expression.c (gcc -E expression.c > expression.output)

Change History

02/11/07 17:04:15 changed by rene

i tested it again on a second machine, same error.

02/11/07 18:05:47 changed by rene

  • attachment expression.output.zip added.

preprocessor output for expression.c (gcc -E expression.c > expression.output)

02/12/07 14:20:54 changed by ctp

just had the same behaviour on OSX - after about 5 mins of investigation, adding this seems to cure the 'isnan' error:

Index: rebuild/expression.c
===================================================================
--- rebuild/expression.c        (revision 343)
+++ rebuild/expression.c        (working copy)
@@ -30,6 +30,7 @@
 
 #ifdef __APPLE__
 #define integer_t dmd_integer_t
+using std::isnan;
 #endif
 
 #if IN_GCC || IN_DMDFE

...although this is most certainly the wrong place to put the 'using std::isnan', and seems rather hacky. Has anyone else tried building on any other *BSD's, or is this just an OSX problem?

'toMangleBuffer' errors are *not* fixed by this, however. As I am new to this, I am not sure whether the 'rebuild' source 'belongs' to the DSSS package (I only read about DSSS about half an hour ago) or not, so what should I do for patch guidelines if I choose to investigate further?

compiler:

Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5367)

02/19/07 13:51:03 changed by Gregor

  • status changed from new to closed.
  • resolution set to fixed.

Fixed. Sorry I forgot to respond here. I've never been good at ticket systems :)

02/23/07 19:02:21 changed by rene

hey, cool! thanks! (did not check back for a while, either... ;-)