www.digitalmars.com         C & C++   DMDScript  

D.gnu - failed unittest...(phobos)

reply "Ozy" <ozy 4dm.org> writes:
Hello!
I suceeded in making gdc with gcc3.4.0 on darwin7.4.0,
and tried to make phobos.
Making libphobos.a completed smoothly.
But unittest, these errors occured.

gdc -o unittest -g -O2  -nostdinc unittest.o -L./
/usr/bin/ld: .//libphobos.a(d_os_dep.o) section's (__TEXT,__eh_frame) type
S_COALESCED does not match previous objects type S_REGULAR
/usr/bin/ld: .//libphobos.a(d_init.o) section's (__TEXT,__eh_frame) type
S_COALESCED does not match previous objects type S_REGULAR
collect2: ld returned 1 exit status
make: *** [unittest] Error 1
What shall I do for success in the unittest!?Please help me!!
Oct 04 2004
parent reply David Friedman <d3rdclsmail earthlink.net> writes:
Ozy wrote:
 Hello!
 I suceeded in making gdc with gcc3.4.0 on darwin7.4.0,
 and tried to make phobos.
 Making libphobos.a completed smoothly.
 But unittest, these errors occured.

 gdc -o unittest -g -O2  -nostdinc unittest.o -L./
 /usr/bin/ld: .//libphobos.a(d_os_dep.o) section's (__TEXT,__eh_frame) type
 S_COALESCED does not match previous objects type S_REGULAR
 /usr/bin/ld: .//libphobos.a(d_init.o) section's (__TEXT,__eh_frame) type
 S_COALESCED does not match previous objects type S_REGULAR
 collect2: ld returned 1 exit status
 make: *** [unittest] Error 1
 What shall I do for success in the unittest!?Please help me!!
 
This can happen when two different compiler versions are used (e.g. the gcc and g++ used to build Phobos don't match gdc.) David
Oct 05 2004
parent "Ozy" <ozy 4dm.org> writes:
thank you very much!!

"David Friedman" <d3rdclsmail earthlink.net> wrote in message
news:cjttht$2r2h$1 digitaldaemon.com...
 Ozy wrote:
 Hello!
 I suceeded in making gdc with gcc3.4.0 on darwin7.4.0,
 and tried to make phobos.
 Making libphobos.a completed smoothly.
 But unittest, these errors occured.

 gdc -o unittest -g -O2  -nostdinc unittest.o -L./
 /usr/bin/ld: .//libphobos.a(d_os_dep.o) section's (__TEXT,__eh_frame)
type
 S_COALESCED does not match previous objects type S_REGULAR
 /usr/bin/ld: .//libphobos.a(d_init.o) section's (__TEXT,__eh_frame) type
 S_COALESCED does not match previous objects type S_REGULAR
 collect2: ld returned 1 exit status
 make: *** [unittest] Error 1
 What shall I do for success in the unittest!?Please help me!!
This can happen when two different compiler versions are used (e.g. the gcc and g++ used to build Phobos don't match gdc.) David
Oct 05 2004