digitalmars.D - How to properly compile DMD 2.053 on OSX?
- Dan Sanduleac (569/569) Jun 02 2011 boundary="------------050003080406020308010509"
- Jacob Carlborg (5/164) Jun 02 2011 You should use posix.mak when you're building Phobos. Don't know why DMD...
- Brad Roberts (7/11) Jun 02 2011 Yay, more fall out from Walter's release process not starting from a cle...
boundary="------------050003080406020308010509" This is a multi-part message in MIME format. --------------050003080406020308010509 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Binaries are provided for OSX, but when I try to compile it (using a=20 Makefile placed in dmd2/ shown below), I get linking errors due to=20 libphobos2.a whenever I try to link even a basic D program. The program=20 however links correctly if I replace my libphobos2.a with the supplied=20 osx/lib/libphobos2.a. *Linking errors:* $ dmd test.d Undefined symbols: "_D3std9exception14ErrnoException7__ClassZ", referenced from: _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in test.o _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in=20 libphobos2.a(exception_59a_102f.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in=20 libphobos2.a(exception_58e_c6a.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in=20 libphobos2.a(exception_58b_1029.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in=20 libphobos2.a(exception_599_c6c.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in=20 libphobos2.a(exception_597_c6a.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in=20 libphobos2.a(exception_590_c6f.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in=20 libphobos2.a(exception_588_102b.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in=20 libphobos2.a(exception_592_c6c.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in=20 libphobos2.a(exception_594_c75.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in=20 libphobos2.a(exception_58d_c6d.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in=20 libphobos2.a(exception_5a0_c71.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in=20 libphobos2.a(exception_4d3_d4e.o) (maybe you meant:=20 _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr) "_D3std8datetime12__ModuleInfoZ", referenced from: _D3std4file12__ModuleInfoZ in libphobos2.a(file.o) _D3std6random12__ModuleInfoZ in libphobos2.a(random.o) "_D3std9exception12__ModuleInfoZ", referenced from: _D3std5stdio12__ModuleInfoZ in libphobos2.a(stdio.o) _D3std5array12__ModuleInfoZ in libphobos2.a(array.o) _D3std4conv12__ModuleInfoZ in libphobos2.a(conv.o) _D3std6format12__ModuleInfoZ in libphobos2.a(format.o) _D3std6string12__ModuleInfoZ in libphobos2.a(string.o) _D3std5range12__ModuleInfoZ in libphobos2.a(range.o) _D3std9algorithm12__ModuleInfoZ in libphobos2.a(algorithm.o) _D3std3utf12__ModuleInfoZ in libphobos2.a(utf.o) _D3std4file12__ModuleInfoZ in libphobos2.a(file.o) _D3std8typecons12__ModuleInfoZ in libphobos2.a(typecons.o) _D3std10functional12__ModuleInfoZ in libphobos2.a(functional.o) _D3std6random12__ModuleInfoZ in libphobos2.a(random.o) _D3std9container12__ModuleInfoZ in libphobos2.a(container.o) _D3std7process12__ModuleInfoZ in libphobos2.a(process.o) _D3std7numeric12__ModuleInfoZ in libphobos2.a(numeric.o) "_D3std9exception7bailOutFAyaixAaZv", referenced from: =20 _D3std9exception173__T7enforceTbVAyaa73_2f55736572732f64616e73616e64756c6= 561632f4b6974732f444d442f646d64322f6275696c642f62696e2f2e2e2f2e2e2f737263= 2f70686f626f732f7374642f666f726d61742e64Vi668Z7enforceFbLAxaZb=20 in test.o =20 _D3std9exception173__T7enforceTbVAyaa73_2f55736572732f64616e73616e64756c6= 561632f4b6974732f444d442f646d64322f6275696c642f62696e2f2e2e2f2e2e2f737263= 2f70686f626f732f7374642f666f726d61742e64Vi802Z7enforceFbLAxaZb=20 in test.o =20 _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi886Z7enfor= ceFbLAxaZb=20 in libphobos2.a(exception_59c_a71.o) =20 _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi629Z7enfor= ceFbLAxaZb=20 in libphobos2.a(exception_596_a6c.o) =20 _D3std9exception74__T7enforceTPOS4core4stdc5stdio6_iobufVAyaa11_7374642f7= 37464696f2e64Vi446Z7enforceFPOS4core4stdc5stdio6_iobufLAxaZPOS4core4stdc5= stdio6_iobuf=20 in libphobos2.a(exception_58f_e23.o) =20 _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi587Z7enfor= ceFbLAxaZb=20 in libphobos2.a(exception_593_a6f.o) =20 _D3std9exception50__T7enforceTbVAyaa11_7374642f737464696f2e64Vi1113Z7enfo= rceFbLAxaZb=20 in libphobos2.a(exception_5a1_a91.o) =20 _D3std9exception75__T7enforceTPOS4core4stdc5stdio6_iobufVAyaa11_7374642f7= 37464696f2e64Vi1129Z7enforceFPOS4core4stdc5stdio6_iobufLAxaZPOS4core4stdc= 5stdio6_iobuf=20 in libphobos2.a(exception_5a2_e52.o) =20 _D3std9exception50__T7enforceTbVAyaa11_7374642f737464696f2e64Vi1045Z7enfo= rceFbLAxaZb=20 in libphobos2.a(exception_59d_a95.o) =20 _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi356Z7enfor= ceFbLAxaZb=20 in libphobos2.a(exception_58c_a69.o) =20 _D3std9exception44__T7enforceTbVAyaa9_7374642f7574662e64Vi313Z7enforceFbL= AxaZb=20 in libphobos2.a(exception_71e_98e.o) =20 _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi618Z7enfor= ceFbLAxaZb=20 in libphobos2.a(exception_595_a6a.o) =20 _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi871Z7enfor= ceFbLAxaZb=20 in libphobos2.a(exception_59b_a6b.o) =20 _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi542Z7enfor= ceFbLAxaZb=20 in libphobos2.a(exception_591_a66.o) =20 _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi640Z7enfor= ceFbLAxaZb=20 in libphobos2.a(exception_598_a65.o) =20 _D3std9exception49__T7enforceTkVAyaa11_7374642f737464696f2e64Vi459Z7enfor= ceFkLAxaZk=20 in libphobos2.a(exception_59f_a81.o) =20 _D3std9exception53__T7enforceTbVAyaa13_7374642f70726f636573732e64Vi544Z7e= nforceFbLAxaZb=20 in libphobos2.a(exception_4d1_b44.o) =20 _D3std9exception53__T7enforceTbVAyaa13_7374642f70726f636573732e64Vi564Z7e= nforceFbLAxaZb=20 in libphobos2.a(exception_4d2_b46.o) =20 _D3std9exception54__T7enforceTbVAyaa13_7374642f6e756d657269632e64Vi2268Z7= enforceFbLAxaZb=20 in libphobos2.a(exception_493_b6d.o) =20 _D3std9exception50__T7enforceTbVAyaa11_7374642f72616e67652e64Vi3083Z7enfo= rceFbLAxaZb=20 in libphobos2.a(exception_52e_a83.o) =20 _D3std9exception50__T7enforceTbVAyaa11_7374642f72616e67652e64Vi3114Z7enfo= rceFbLAxaZb=20 in libphobos2.a(exception_52f_a7e.o) =20 _D3std9exception50__T7enforceTbVAyaa11_7374642f72616e67652e64Vi2911Z7enfo= rceFbLAxaZb=20 in libphobos2.a(exception_52b_a82.o) =20 _D3std9exception50__T7enforceTbVAyaa11_7374642f61727261792e64Vi1660Z7enfo= rceFbLAxaZb=20 in libphobos2.a(exception_76_a94.o) =20 _D3std9exception50__T7enforceTbVAyaa11_7374642f61727261792e64Vi1664Z7enfo= rceFbLAxaZb=20 in libphobos2.a(exception_77_a98.o) =20 _D3std9exception52__T7enforceTbVAyaa12_7374642f666f726d61742e64Vi1140Z7en= forceFbLAxaZb=20 in libphobos2.a(exception_3a6_af7.o) =20 "_D3std9exception14ErrnoException6__ctorMFAyaAyakZC3std9exception14ErrnoE= xception",=20 referenced from: =20 _D3std9exception178__T12errnoEnforceTiVAyaa72_2f55736572732f64616e73616e6= 4756c6561632f4b6974732f444d442f646d64322f6275696c642f62696e2f2e2e2f2e2e2f= 7372632f70686f626f732f7374642f737464696f2e64Vi1147Z12errnoEnforceFiLAyaZi= =20 in test.o =20 _D3std9exception80__T12errnoEnforceTPOS4core4stdc5stdio6_iobufVAyaa11_737= 4642f737464696f2e64Vi848Z12errnoEnforceFPOS4core4stdc5stdio6_iobufLAyaZPO= S4core4stdc5stdio6_iobuf=20 in libphobos2.a(exception_59a_102f.o) =20 _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64Vi423Z= 12errnoEnforceFbLAyaZb=20 in libphobos2.a(exception_58e_c6a.o) =20 _D3std9exception80__T12errnoEnforceTPOS4core4stdc5stdio6_iobufVAyaa11_737= 4642f737464696f2e64Vi338Z12errnoEnforceFPOS4core4stdc5stdio6_iobufLAyaZPO= S4core4stdc5stdio6_iobuf=20 in libphobos2.a(exception_58b_1029.o) =20 _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64Vi641Z= 12errnoEnforceFbLAyaZb=20 in libphobos2.a(exception_599_c6c.o) =20 _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64Vi630Z= 12errnoEnforceFbLAyaZb=20 in libphobos2.a(exception_597_c6a.o) =20 _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64Vi446Z= 12errnoEnforceFbLAyaZb=20 in libphobos2.a(exception_590_c6f.o) =20 _D3std9exception80__T12errnoEnforceTPOS4core4stdc5stdio6_iobufVAyaa11_737= 4642f737464696f2e64Vi286Z12errnoEnforceFPOS4core4stdc5stdio6_iobufLAyaZPO= S4core4stdc5stdio6_iobuf=20 in libphobos2.a(exception_588_102b.o) =20 _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64Vi551Z= 12errnoEnforceFbLAyaZb=20 in libphobos2.a(exception_592_c6c.o) =20 _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64Vi596Z= 12errnoEnforceFbLAyaZb=20 in libphobos2.a(exception_594_c75.o) =20 _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64Vi417Z= 12errnoEnforceFbLAyaZb=20 in libphobos2.a(exception_58d_c6d.o) =20 _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64Vi475Z= 12errnoEnforceFbLAyaZb=20 in libphobos2.a(exception_5a0_c71.o) =20 _D3std9exception59__T12errnoEnforceTbVAyaa13_7374642f70726f636573732e64Vi= 566Z12errnoEnforceFbLAyaZb=20 in libphobos2.a(exception_4d3_d4e.o) ld: symbol(s) not found collect2: ld returned 1 exit status --- errorlevel 1 *Makefile:* BUILDDIR :=3D build SRCDIR :=3D src TARGETS :=3D dmd druntime phobos CONF :=3D osx/bin/dmd.conf all: $(TARGETS) =2EPHONY: dmd druntime phobos dmd: $(BUILDDIR)/bin/dmd druntime: $(BUILDDIR)/lib/libdruntime.a phobos: $(BUILDDIR)/lib/libphobos2.a $(BUILDDIR)/bin/dmd: mkdir -p $(dir $ ) make -C$(SRCDIR)/dmd -f osx.mak cp $(SRCDIR)/dmd/dmd $ cp $(CONF) $(BUILDDIR)/bin/dmd.conf $(BUILDDIR)/lib/libdruntime.a: mkdir -p $(dir $ ) make -C$(SRCDIR)/druntime -f posix.mak cp $(SRCDIR)/druntime/lib/libdruntime.a $ $(BUILDDIR)/lib/libphobos2.a: mkdir -p $(dir $ ) make -C$(SRCDIR)/phobos -f osx.mak cp $(SRCDIR)/phobos/generated/posix/release/libphobos2.a $ --------------050003080406020308010509 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv=3D"content-type" content=3D"text/html; charset=3DISO= -8859-1"> </head> <body bgcolor=3D"#ffffff Binaries are provided for OSX, but when I try to compile it (using a Makefile placed in dmd2/ shown below), I get linking errors due to <t= t>libphobos2.a</tt> whenever I try to link even a basic D program. The program however links correctly if I replace my <tt>libphobos2.a</tt> with the supplied <tt>osx/lib/libphobos2.a</tt>.<br> <br> <b>Linking errors:</b><br> <br> <tt>$ dmd test.d<br> Undefined symbols:<br> "_D3std9exception14ErrnoException7__ClassZ", referenced from= :<br> _D3std9exception14ErrnoException7__C= lassZ$non_lazy_ptr in test.o<br> _D3std9exception14ErrnoException7__C= lassZ$non_lazy_ptr in libphobos2.a(exception_59a_102f.o)<br> _D3std9exception14ErrnoException7__C= lassZ$non_lazy_ptr in libphobos2.a(exception_58e_c6a.o)<br> _D3std9exception14ErrnoException7__C= lassZ$non_lazy_ptr in libphobos2.a(exception_58b_1029.o)<br> _D3std9exception14ErrnoException7__C= lassZ$non_lazy_ptr in libphobos2.a(exception_599_c6c.o)<br> _D3std9exception14ErrnoException7__C= lassZ$non_lazy_ptr in libphobos2.a(exception_597_c6a.o)<br> _D3std9exception14ErrnoException7__C= lassZ$non_lazy_ptr in libphobos2.a(exception_590_c6f.o)<br> _D3std9exception14ErrnoException7__C= lassZ$non_lazy_ptr in libphobos2.a(exception_588_102b.o)<br> _D3std9exception14ErrnoException7__C= lassZ$non_lazy_ptr in libphobos2.a(exception_592_c6c.o)<br> _D3std9exception14ErrnoException7__C= lassZ$non_lazy_ptr in libphobos2.a(exception_594_c75.o)<br> _D3std9exception14ErrnoException7__C= lassZ$non_lazy_ptr in libphobos2.a(exception_58d_c6d.o)<br> _D3std9exception14ErrnoException7__C= lassZ$non_lazy_ptr in libphobos2.a(exception_5a0_c71.o)<br> _D3std9exception14ErrnoException7__C= lassZ$non_lazy_ptr in libphobos2.a(exception_4d3_d4e.o)<br> (maybe you meant: _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr)<br> "_D3std8datetime12__ModuleInfoZ", referenced from:<br> _D3std4file12__ModuleInfoZ in libpho= bos2.a(file.o)<br> _D3std6random12__ModuleInfoZ in libp= hobos2.a(random.o)<br> "_D3std9exception12__ModuleInfoZ", referenced from:<br> _D3std5stdio12__ModuleInfoZ in libph= obos2.a(stdio.o)<br> _D3std5array12__ModuleInfoZ in libph= obos2.a(array.o)<br> _D3std4conv12__ModuleInfoZ in libpho= bos2.a(conv.o)<br> _D3std6format12__ModuleInfoZ in libp= hobos2.a(format.o)<br> _D3std6string12__ModuleInfoZ in libp= hobos2.a(string.o)<br> _D3std5range12__ModuleInfoZ in libph= obos2.a(range.o)<br> _D3std9algorithm12__ModuleInfoZ in l= ibphobos2.a(algorithm.o)<br> _D3std3utf12__ModuleInfoZ in libphob= os2.a(utf.o)<br> _D3std4file12__ModuleInfoZ in libpho= bos2.a(file.o)<br> _D3std8typecons12__ModuleInfoZ in li= bphobos2.a(typecons.o)<br> _D3std10functional12__ModuleInfoZ in= libphobos2.a(functional.o)<br> _D3std6random12__ModuleInfoZ in libp= hobos2.a(random.o)<br> _D3std9container12__ModuleInfoZ in l= ibphobos2.a(container.o)<br> _D3std7process12__ModuleInfoZ in lib= phobos2.a(process.o)<br> _D3std7numeric12__ModuleInfoZ in lib= phobos2.a(numeric.o)<br> "_D3std9exception7bailOutFAyaixAaZv", referenced from:<br> _D3std9exception173__T7enforceTbVAyaa73_2f55736572732f64616e73616e6= 4756c6561632f4b6974732f444d442f646d64322f6275696c642f62696e2f2e2e2f2e2e2f= 7372632f70686f626f732f7374642f666f726d61742e64Vi668Z7enforceFbLAxaZb in test.o<br> _D3std9exception173__T7enforceTbVAyaa73_2f55736572732f64616e73616e6= 4756c6561632f4b6974732f444d442f646d64322f6275696c642f62696e2f2e2e2f2e2e2f= 7372632f70686f626f732f7374642f666f726d61742e64Vi802Z7enforceFbLAxaZb in test.o<br> _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi886Z= 7enforceFbLAxaZb in libphobos2.a(exception_59c_a71.o)<br> _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi629Z= 7enforceFbLAxaZb in libphobos2.a(exception_596_a6c.o)<br> _D3std9exception74__T7enforceTPOS4core4stdc5stdio6_iobufVAyaa11_737= 4642f737464696f2e64Vi446Z7enforceFPOS4core4stdc5stdio6_iobufLAxaZPOS4core= 4stdc5stdio6_iobuf in libphobos2.a(exception_58f_e23.o)<br> _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi587Z= 7enforceFbLAxaZb in libphobos2.a(exception_593_a6f.o)<br> _D3std9exception50__T7enforceTbVAyaa11_7374642f737464696f2e64Vi1113= Z7enforceFbLAxaZb in libphobos2.a(exception_5a1_a91.o)<br> _D3std9exception75__T7enforceTPOS4core4stdc5stdio6_iobufVAyaa11_737= 4642f737464696f2e64Vi1129Z7enforceFPOS4core4stdc5stdio6_iobufLAxaZPOS4cor= e4stdc5stdio6_iobuf in libphobos2.a(exception_5a2_e52.o)<br> _D3std9exception50__T7enforceTbVAyaa11_7374642f737464696f2e64Vi1045= Z7enforceFbLAxaZb in libphobos2.a(exception_59d_a95.o)<br> _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi356Z= 7enforceFbLAxaZb in libphobos2.a(exception_58c_a69.o)<br> _D3std9exception44__T7enforceTbVAyaa9_7374642f7574662e64Vi313Z7enfo= rceFbLAxaZb in libphobos2.a(exception_71e_98e.o)<br> _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi618Z= 7enforceFbLAxaZb in libphobos2.a(exception_595_a6a.o)<br> _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi871Z= 7enforceFbLAxaZb in libphobos2.a(exception_59b_a6b.o)<br> _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi542Z= 7enforceFbLAxaZb in libphobos2.a(exception_591_a66.o)<br> _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi640Z= 7enforceFbLAxaZb in libphobos2.a(exception_598_a65.o)<br> _D3std9exception49__T7enforceTkVAyaa11_7374642f737464696f2e64Vi459Z= 7enforceFkLAxaZk in libphobos2.a(exception_59f_a81.o)<br> _D3std9exception53__T7enforceTbVAyaa13_7374642f70726f636573732e64Vi= 544Z7enforceFbLAxaZb in libphobos2.a(exception_4d1_b44.o)<br> _D3std9exception53__T7enforceTbVAyaa13_7374642f70726f636573732e64Vi= 564Z7enforceFbLAxaZb in libphobos2.a(exception_4d2_b46.o)<br> _D3std9exception54__T7enforceTbVAyaa13_7374642f6e756d657269632e64Vi= 2268Z7enforceFbLAxaZb in libphobos2.a(exception_493_b6d.o)<br> _D3std9exception50__T7enforceTbVAyaa11_7374642f72616e67652e64Vi3083= Z7enforceFbLAxaZb in libphobos2.a(exception_52e_a83.o)<br> _D3std9exception50__T7enforceTbVAyaa11_7374642f72616e67652e64Vi3114= Z7enforceFbLAxaZb in libphobos2.a(exception_52f_a7e.o)<br> _D3std9exception50__T7enforceTbVAyaa11_7374642f72616e67652e64Vi2911= Z7enforceFbLAxaZb in libphobos2.a(exception_52b_a82.o)<br> _D3std9exception50__T7enforceTbVAyaa11_7374642f61727261792e64Vi1660= Z7enforceFbLAxaZb in libphobos2.a(exception_76_a94.o)<br> _D3std9exception50__T7enforceTbVAyaa11_7374642f61727261792e64Vi1664= Z7enforceFbLAxaZb in libphobos2.a(exception_77_a98.o)<br> _D3std9exception52__T7enforceTbVAyaa12_7374642f666f726d61742e64Vi11= 40Z7enforceFbLAxaZb in libphobos2.a(exception_3a6_af7.o)<br> "_D3std9exception14ErrnoException6__ctorMFAyaAyakZC3std9exception14= ErrnoException", referenced from:<br> _D3std9exception178__T12errnoEnforceTiVAyaa72_2f55736572732f64616e7= 3616e64756c6561632f4b6974732f444d442f646d64322f6275696c642f62696e2f2e2e2f= 2e2e2f7372632f70686f626f732f7374642f737464696f2e64Vi1147Z12errnoEnforceFi= LAyaZi in test.o<br> _D3std9exception80__T12errnoEnforceTPOS4core4stdc5stdio6_iobufVAyaa= 11_7374642f737464696f2e64Vi848Z12errnoEnforceFPOS4core4stdc5stdio6_iobufL= AyaZPOS4core4stdc5stdio6_iobuf in libphobos2.a(exception_59a_102f.o)<br> _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64= Vi423Z12errnoEnforceFbLAyaZb in libphobos2.a(exception_58e_c6a.o)<br> _D3std9exception80__T12errnoEnforceTPOS4core4stdc5stdio6_iobufVAyaa= 11_7374642f737464696f2e64Vi338Z12errnoEnforceFPOS4core4stdc5stdio6_iobufL= AyaZPOS4core4stdc5stdio6_iobuf in libphobos2.a(exception_58b_1029.o)<br> _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64= Vi641Z12errnoEnforceFbLAyaZb in libphobos2.a(exception_599_c6c.o)<br> _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64= Vi630Z12errnoEnforceFbLAyaZb in libphobos2.a(exception_597_c6a.o)<br> _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64= Vi446Z12errnoEnforceFbLAyaZb in libphobos2.a(exception_590_c6f.o)<br> _D3std9exception80__T12errnoEnforceTPOS4core4stdc5stdio6_iobufVAyaa= 11_7374642f737464696f2e64Vi286Z12errnoEnforceFPOS4core4stdc5stdio6_iobufL= AyaZPOS4core4stdc5stdio6_iobuf in libphobos2.a(exception_588_102b.o)<br> _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64= Vi551Z12errnoEnforceFbLAyaZb in libphobos2.a(exception_592_c6c.o)<br> _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64= Vi596Z12errnoEnforceFbLAyaZb in libphobos2.a(exception_594_c75.o)<br> _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64= Vi417Z12errnoEnforceFbLAyaZb in libphobos2.a(exception_58d_c6d.o)<br> _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64= Vi475Z12errnoEnforceFbLAyaZb in libphobos2.a(exception_5a0_c71.o)<br> _D3std9exception59__T12errnoEnforceTbVAyaa13_7374642f70726f63657373= 2e64Vi566Z12errnoEnforceFbLAyaZb in libphobos2.a(exception_4d3_d4e.o)<br> ld: symbol(s) not found<br> collect2: ld returned 1 exit status<br> --- errorlevel 1</tt><br> <br> <br> <br> <b>Makefile:</b><br> <br> <tt>BUILDDIR :=3D build<br> <br> SRCDIR :=3D src<br> TARGETS :=3D dmd druntime phobos<br> CONF :=3D osx/bin/dmd.conf<br> <br> <br> all: $(TARGETS)<br> <br> .PHONY: dmd druntime phobos<br> <br> dmd: $(BUILDDIR)/bin/dmd<br> druntime: $(BUILDDIR)/lib/libdruntime.a<br> phobos: $(BUILDDIR)/lib/libphobos2.a<br> <br> $(BUILDDIR)/bin/dmd:<br> mkdir -p $(dir $ )<br> make -C$(SRCDIR)/dmd -f osx.m= ak<br> cp $(SRCDIR)/dmd/dmd $ <br> cp $(CONF) $(BUILDDIR)/bin/dm= d.conf<br> <br> $(BUILDDIR)/lib/libdruntime.a:<br> mkdir -p $(dir $ )<br> make -C$(SRCDIR)/druntime -f = posix.mak<br> cp $(SRCDIR)/druntime/lib/lib= druntime.a $ <br> <br> <br> $(BUILDDIR)/lib/libphobos2.a:<br> mkdir -p $(dir $ )<br> make -C$(SRCDIR)/phobos -f os= x.mak<br> cp $(SRCDIR)/phobos/generated= /posix/release/libphobos2.a $ <br> <br> </tt><br> </body> </html> --------------050003080406020308010509--
Jun 02 2011
On 2011-06-02 21:33, Dan Sanduleac wrote:Binaries are provided for OSX, but when I try to compile it (using a Makefile placed in dmd2/ shown below), I get linking errors due to libphobos2.a whenever I try to link even a basic D program. The program however links correctly if I replace my libphobos2.a with the supplied osx/lib/libphobos2.a. *Linking errors:* $ dmd test.d Undefined symbols: "_D3std9exception14ErrnoException7__ClassZ", referenced from: _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in test.o _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in libphobos2.a(exception_59a_102f.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in libphobos2.a(exception_58e_c6a.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in libphobos2.a(exception_58b_1029.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in libphobos2.a(exception_599_c6c.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in libphobos2.a(exception_597_c6a.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in libphobos2.a(exception_590_c6f.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in libphobos2.a(exception_588_102b.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in libphobos2.a(exception_592_c6c.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in libphobos2.a(exception_594_c75.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in libphobos2.a(exception_58d_c6d.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in libphobos2.a(exception_5a0_c71.o) _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr in libphobos2.a(exception_4d3_d4e.o) (maybe you meant: _D3std9exception14ErrnoException7__ClassZ$non_lazy_ptr) "_D3std8datetime12__ModuleInfoZ", referenced from: _D3std4file12__ModuleInfoZ in libphobos2.a(file.o) _D3std6random12__ModuleInfoZ in libphobos2.a(random.o) "_D3std9exception12__ModuleInfoZ", referenced from: _D3std5stdio12__ModuleInfoZ in libphobos2.a(stdio.o) _D3std5array12__ModuleInfoZ in libphobos2.a(array.o) _D3std4conv12__ModuleInfoZ in libphobos2.a(conv.o) _D3std6format12__ModuleInfoZ in libphobos2.a(format.o) _D3std6string12__ModuleInfoZ in libphobos2.a(string.o) _D3std5range12__ModuleInfoZ in libphobos2.a(range.o) _D3std9algorithm12__ModuleInfoZ in libphobos2.a(algorithm.o) _D3std3utf12__ModuleInfoZ in libphobos2.a(utf.o) _D3std4file12__ModuleInfoZ in libphobos2.a(file.o) _D3std8typecons12__ModuleInfoZ in libphobos2.a(typecons.o) _D3std10functional12__ModuleInfoZ in libphobos2.a(functional.o) _D3std6random12__ModuleInfoZ in libphobos2.a(random.o) _D3std9container12__ModuleInfoZ in libphobos2.a(container.o) _D3std7process12__ModuleInfoZ in libphobos2.a(process.o) _D3std7numeric12__ModuleInfoZ in libphobos2.a(numeric.o) "_D3std9exception7bailOutFAyaixAaZv", referenced from: _D3std9exception173__T7enforceTbVAyaa73_2f55736572732f64616e73616e64756c6561632f4b6974732f444d442f646d64322f6275696c642f62696e2f2e2e2f2e2e2f7372632f70686f626f732f7374642f666f726d61742e64Vi668Z7enforceFbLAxaZb in test.o _D3std9exception173__T7enforceTbVAyaa73_2f55736572732f64616e73616e64756c6561632f4b6974732f444d442f646d64322f6275696c642f62696e2f2e2e2f2e2e2f7372632f70686f626f732f7374642f666f726d61742e64Vi802Z7enforceFbLAxaZb in test.o _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi886Z7enforceFbLAxaZb in libphobos2.a(exception_59c_a71.o) _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi629Z7enforceFbLAxaZb in libphobos2.a(exception_596_a6c.o) _D3std9exception74__T7enforceTPOS4core4stdc5stdio6_iobufVAyaa11_7374642f737464696f2e64Vi446Z7enforceFPOS4core4stdc5stdio6_iobufLAxaZPOS4core4stdc5stdio6_iobuf in libphobos2.a(exception_58f_e23.o) _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi587Z7enforceFbLAxaZb in libphobos2.a(exception_593_a6f.o) _D3std9exception50__T7enforceTbVAyaa11_7374642f737464696f2e64Vi1113Z7enforceFbLAxaZb in libphobos2.a(exception_5a1_a91.o) _D3std9exception75__T7enforceTPOS4core4stdc5stdio6_iobufVAyaa11_7374642f737464696f2e64Vi1129Z7enforceFPOS4core4stdc5stdio6_iobufLAxaZPOS4core4stdc5stdio6_iobuf in libphobos2.a(exception_5a2_e52.o) _D3std9exception50__T7enforceTbVAyaa11_7374642f737464696f2e64Vi1045Z7enforceFbLAxaZb in libphobos2.a(exception_59d_a95.o) _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi356Z7enforceFbLAxaZb in libphobos2.a(exception_58c_a69.o) _D3std9exception44__T7enforceTbVAyaa9_7374642f7574662e64Vi313Z7enforceFbLAxaZb in libphobos2.a(exception_71e_98e.o) _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi618Z7enforceFbLAxaZb in libphobos2.a(exception_595_a6a.o) _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi871Z7enforceFbLAxaZb in libphobos2.a(exception_59b_a6b.o) _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi542Z7enforceFbLAxaZb in libphobos2.a(exception_591_a66.o) _D3std9exception49__T7enforceTbVAyaa11_7374642f737464696f2e64Vi640Z7enforceFbLAxaZb in libphobos2.a(exception_598_a65.o) _D3std9exception49__T7enforceTkVAyaa11_7374642f737464696f2e64Vi459Z7enforceFkLAxaZk in libphobos2.a(exception_59f_a81.o) _D3std9exception53__T7enforceTbVAyaa13_7374642f70726f636573732e64Vi544Z7enforceFbLAxaZb in libphobos2.a(exception_4d1_b44.o) _D3std9exception53__T7enforceTbVAyaa13_7374642f70726f636573732e64Vi564Z7enforceFbLAxaZb in libphobos2.a(exception_4d2_b46.o) _D3std9exception54__T7enforceTbVAyaa13_7374642f6e756d657269632e64Vi2268Z7enforceFbLAxaZb in libphobos2.a(exception_493_b6d.o) _D3std9exception50__T7enforceTbVAyaa11_7374642f72616e67652e64Vi3083Z7enforceFbLAxaZb in libphobos2.a(exception_52e_a83.o) _D3std9exception50__T7enforceTbVAyaa11_7374642f72616e67652e64Vi3114Z7enforceFbLAxaZb in libphobos2.a(exception_52f_a7e.o) _D3std9exception50__T7enforceTbVAyaa11_7374642f72616e67652e64Vi2911Z7enforceFbLAxaZb in libphobos2.a(exception_52b_a82.o) _D3std9exception50__T7enforceTbVAyaa11_7374642f61727261792e64Vi1660Z7enforceFbLAxaZb in libphobos2.a(exception_76_a94.o) _D3std9exception50__T7enforceTbVAyaa11_7374642f61727261792e64Vi1664Z7enforceFbLAxaZb in libphobos2.a(exception_77_a98.o) _D3std9exception52__T7enforceTbVAyaa12_7374642f666f726d61742e64Vi1140Z7enforceFbLAxaZb in libphobos2.a(exception_3a6_af7.o) "_D3std9exception14ErrnoException6__ctorMFAyaAyakZC3std9exception14ErrnoException", referenced from: _D3std9exception178__T12errnoEnforceTiVAyaa72_2f55736572732f64616e73616e64756c6561632f4b6974732f444d442f646d64322f6275696c642f62696e2f2e2e2f2e2e2f7372632f70686f626f732f7374642f737464696f2e64Vi1147Z12errnoEnforceFiLAyaZi in test.o _D3std9exception80__T12errnoEnforceTPOS4core4stdc5stdio6_iobufVAyaa11_7374642f737464696f2e64Vi848Z12errnoEnforceFPOS4core4stdc5stdio6_iobufLAyaZPOS4core4stdc5stdio6_iobuf in libphobos2.a(exception_59a_102f.o) _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64Vi423Z12errnoEnforceFbLAyaZb in libphobos2.a(exception_58e_c6a.o) _D3std9exception80__T12errnoEnforceTPOS4core4stdc5stdio6_iobufVAyaa11_7374642f737464696f2e64Vi338Z12errnoEnforceFPOS4core4stdc5stdio6_iobufLAyaZPOS4core4stdc5stdio6_iobuf in libphobos2.a(exception_58b_1029.o) _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64Vi641Z12errnoEnforceFbLAyaZb in libphobos2.a(exception_599_c6c.o) _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64Vi630Z12errnoEnforceFbLAyaZb in libphobos2.a(exception_597_c6a.o) _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64Vi446Z12errnoEnforceFbLAyaZb in libphobos2.a(exception_590_c6f.o) _D3std9exception80__T12errnoEnforceTPOS4core4stdc5stdio6_iobufVAyaa11_7374642f737464696f2e64Vi286Z12errnoEnforceFPOS4core4stdc5stdio6_iobufLAyaZPOS4core4stdc5stdio6_iobuf in libphobos2.a(exception_588_102b.o) _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64Vi551Z12errnoEnforceFbLAyaZb in libphobos2.a(exception_592_c6c.o) _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64Vi596Z12errnoEnforceFbLAyaZb in libphobos2.a(exception_594_c75.o) _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64Vi417Z12errnoEnforceFbLAyaZb in libphobos2.a(exception_58d_c6d.o) _D3std9exception55__T12errnoEnforceTbVAyaa11_7374642f737464696f2e64Vi475Z12errnoEnforceFbLAyaZb in libphobos2.a(exception_5a0_c71.o) _D3std9exception59__T12errnoEnforceTbVAyaa13_7374642f70726f636573732e64Vi566Z12errnoEnforceFbLAyaZb in libphobos2.a(exception_4d3_d4e.o) ld: symbol(s) not found collect2: ld returned 1 exit status --- errorlevel 1 *Makefile:* BUILDDIR := build SRCDIR := src TARGETS := dmd druntime phobos CONF := osx/bin/dmd.conf all: $(TARGETS) .PHONY: dmd druntime phobos dmd: $(BUILDDIR)/bin/dmd druntime: $(BUILDDIR)/lib/libdruntime.a phobos: $(BUILDDIR)/lib/libphobos2.a $(BUILDDIR)/bin/dmd: mkdir -p $(dir $ ) make -C$(SRCDIR)/dmd -f osx.mak cp $(SRCDIR)/dmd/dmd $ cp $(CONF) $(BUILDDIR)/bin/dmd.conf $(BUILDDIR)/lib/libdruntime.a: mkdir -p $(dir $ ) make -C$(SRCDIR)/druntime -f posix.mak cp $(SRCDIR)/druntime/lib/libdruntime.a $ $(BUILDDIR)/lib/libphobos2.a: mkdir -p $(dir $ ) make -C$(SRCDIR)/phobos -f osx.mak cp $(SRCDIR)/phobos/generated/posix/release/libphobos2.a $You should use posix.mak when you're building Phobos. Don't know why DMD 2.053 contains individual makefiles for Linux and Mac OS X. -- /Jacob Carlborg
Jun 02 2011
On 6/2/2011 11:28 PM, Jacob Carlborg wrote:On 2011-06-02 21:33, Dan Sanduleac wrote:Yay, more fall out from Walter's release process not starting from a clean directory tree. Sorry about that. The code as represented in git hasn't had those files for a long time, just win32.mak and posix.mak. Dan, dmd doesn't support osx/64 yet. One day it almost certainly will, but not yet. Not sure what the state of gdc for osx/64 is, you'll need to ask in the digitalmars.d.gnu newsgroup. Later, Brad<snip long build failure log>You should use posix.mak when you're building Phobos. Don't know why DMD 2.053 contains individual makefiles for Linux and Mac OS X.
Jun 02 2011