From: SourceForge.net <no...@so...> - 2006-08-30 13:10:28
|
Bugs item #1548239, was opened at 2006-08-29 01:19 Message generated for change (Comment added) made by syntheticpp You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=396644&aid=1548239&group_id=29557 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 5 Submitted By: Sam Miller (sammiller0) >Assigned to: Peter Kuemmel (syntheticpp) Summary: make check fails on Mac OS X Initial Comment: I see there is a new Xcode build system in place for Loki, so this bug may be obsolete. Feel free to correct me. This is on my powerbook G4, running Mac OS 10.4.7 and gcc 4.0.1 provided by Apple. I've attached a simple patch that removes the hardcoded -static CPPFLAG from test/ Makefile.common farasolar:~/Documents/loki samm$ make check make -C src build-static make[1]: Nothing to be done for `build-static'. make -C src build-shared make[1]: Nothing to be done for `build-shared'. make -C test make -C DeletableSingleton g++ -MM -MT DeletableSingleton.lo -I../../include -DNDEBUG DeletableSingleton.cpp > .shared-dep/DeletableSingleton.dep g++ -MM -MT DeletableSingleton.o -I../../include -DNDEBUG DeletableSingleton.cpp > .static-dep/DeletableSingleton.dep g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion - Wpointer-arith -pedantic -g -O2 -I../../include -DNDEBUG -c -o DeletableSingleton.o DeletableSingleton.cpp g++ -L../../lib -static -o DeletableSingleton DeletableSingleton.o -lloki /usr/bin/ld: can't locate file for: -lcrt0.o collect2: ld returned 1 exit status make[2]: *** [DeletableSingleton] Error 1 make[1]: *** [DeletableSingleton] Error 2 make: *** [check] Error 2 farasolar:~/Documents/loki samm$ ---------------------------------------------------------------------- >Comment By: Peter Kuemmel (syntheticpp) Date: 2006-08-30 15:10 Message: Logged In: YES user_id=1159765 > the -static flag to gcc is not supported on Mac OS X. Ahh, I see - I've comitted the patch. Thanks Sam. ---------------------------------------------------------------------- Comment By: Sam Miller (sammiller0) Date: 2006-08-30 01:06 Message: Logged In: YES user_id=1259428 This bug is not related to statically linking Loki to the DeletableSingleton test case, the -static flag to gcc is not supported on Mac OS X. I simply removed it from the Makefile with an ifdef. ---------------------------------------------------------------------- Comment By: Peter Kuemmel (syntheticpp) Date: 2006-08-29 18:14 Message: Logged In: YES user_id=1159765 By default loki is linked statically. Is this not the case on the Mac? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=396644&aid=1548239&group_id=29557 |