Re: time.h vs Time.h
Re: time.h vs Time.h
- Subject: Re: time.h vs Time.h
- From: Massimo Marino <email@hidden>
- Date: Thu, 26 Aug 2004 11:12:19 +0200
On Aug 25, 2004, at 8:57 PM, Shawn Erickson wrote:
>
> On Aug 25, 2004, at 9:09 AM, Massimo Marino wrote:
>
>> Is not an issue when compiling in the terminal.
>
> So what are the difference between how you are calling gcc and how
> xcode is calling gcc. You can see what xcode is doing if you open the
> build window ("Detailed Build Results") and pull up the slider at the
> bottom (second from the bottom in 1.5) to show what calls it actually
> is doing.
>
- This is on a OS X 10.3.5 with Xcode 1.5 and latest Developer Tools -
So, here is on CLI:
>> Compiling
/Users/marino/SEAL/SEAL_1_5_1_pre1/src/Dictionary/Reflex/src/Any.cpp
/usr/bin/g++ -c -I/sw/include
-I/Users/marino/SEAL/SEAL_1_5_1_pre1/osx103_gcc33/include
-I/Users/marino/SEAL/SEAL_1_5_1_pre1/./src/Dictionary/Reflex/.
-I/Users/marino/SEAL/SEAL_1_5_1_pre1/src
-I/Users/marino/SEAL/SEAL_1_5_1_pre1/src -I/sw/include -pipe -ansi
-pedantic -W -Wall -Wno-non-virtual-dtor -Wno-long-long
-Wno-long-double -Wwrite-strings -Wpointer-arith -Woverloaded-virtual
-ftemplate-depth-64 -fmessage-length=0 -g -fPIC
/Users/marino/SEAL/SEAL_1_5_1_pre1/src/Dictionary/Reflex/src/Any.cpp -o
Any_pic.o
and no warning or errors. It proceeds with the rest to finally build
the dylib.
and here is what Xcode does for same package:
Native Build of Target "liblcg_Reflex"
CompileC
/Users/marino/SEAL/SEAL_1_5_1_pre1/osx103_gcc33/SEAL_1_5_0_pre1.build/
liblcg_Reflex.build/Objects-normal/ppc/Any.o
../../SEAL/SEAL_1_5_1_pre1/src/Dictionary/Reflex/src/Any.cpp normal ppc
c++ com.apple.compilers.gcc.3_3
mkdir -p
/Users/marino/SEAL/SEAL_1_5_1_pre1/osx103_gcc33/SEAL_1_5_0_pre1.build/
liblcg_Reflex.build/Objects-normal/ppc
cd /Users/marino/Xcode/SEAL_1_5_0_pre1
/usr/bin/distcc /usr/bin/gcc-3.3 -x c++ -arch ppc -pipe
-Wno-trigraphs -faltivec -g -O1 -fwritable-strings -mtune=G4
-Wunknown-pragmas -pedantic -W -Wall -Wno-long-double -Wno-long-long
-fmessage-length=0 -ffix-and-continue -fpch-preprocess
-F/Users/marino/SEAL/SEAL_1_5_1_pre1/osx103_gcc33
-I/Users/marino/SEAL/SEAL_1_5_1_pre1/osx103_gcc33/include -I/sw/include
-I/Users/marino/SEAL/SEAL_1_5_1_pre1/src/Dictionary/Reflex
-I/Users/marino/SEAL/SEAL_1_5_1_pre1/osx103_gcc33/
SEAL_1_5_0_pre1.build/liblcg_Reflex.build/DerivedSources
-Wp,-header-mapfile,/Users/marino/SEAL/SEAL_1_5_1_pre1/osx103_gcc33/
SEAL_1_5_0_pre1.build/liblcg_Reflex.build/liblcg_Reflex.hmap -c
/Users/marino/Xcode/SEAL_1_5_0_pre1/../../SEAL/SEAL_1_5_1_pre1/src/
Dictionary/Reflex/src/Any.cpp -o
/Users/marino/SEAL/SEAL_1_5_1_pre1/osx103_gcc33/SEAL_1_5_0_pre1.build/
liblcg_Reflex.build/Objects-normal/ppc/Any.o
On CLI the compilation goes without issues, on Xcode (the first of
similar problems with <header.h> include statements in system header
files(!)) build starts barfing with:
In file included from /usr/include/pthread.h:60,
from
/usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/gthr-default.h:37,
from
/usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/gthr.h:98,
from
/usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/c++io.h:37,
from /usr/include/gcc/darwin/3.3/c++/bits/fpos.h:44,
from /usr/include/gcc/darwin/3.3/c++/iosfwd:49,
from /usr/include/gcc/darwin/3.3/c++/ios:44,
from /usr/include/gcc/darwin/3.3/c++/ostream:45,
from
/Users/marino/SEAL/SEAL_1_5_1_pre1/src/Dictionary/Reflex/Reflex/Any.h:
25,
from
/Users/marino/SEAL/SEAL_1_5_1_pre1/src/Dictionary/Reflex/src/Any.cpp:2:
/Users/marino/SEAL/SEAL_1_5_1_pre1/src/Foundation/SealBase/SealBase/
sysapi/Time.h:6:30: SealBase/config.h: No such file or directory
/usr/include/pthread.h at line 60 has:
#include <time.h>
at which point Xcode build phase reacts with fetching SealBase/Time.h
from inside the project instead of using <time.h>, i.e.
/usr/include/time.h .
Of course I cannot modify /usr/include/pthread.h so to have #include
</usr/include/time.h>
SealBase/Time.h is in the project but I have yet to create a target for
that package. The existing (only one) target - which tries to build a
dylib out of Reflex - does not contain SealBase/Time.h nor the Header
Search path points to it. I tried to have this last point to
/usr/include to no avail.
Xcode gives same results as CLI (ie build successfully) as soon as I
remove from the project the Foundation/SealBase group. The Build
template I am using is the "C++ tool".
Unless I miss something obvious - that is always a possibility and I
hope there is a clear blunder of mine - something fundamentally wrong
is in place here. This would simply stop further look into Xcode I am
afraid.
Cheers
o#?
Dr. Massimo Marino
NERSC Division - HPC Department
Lawrence Berkeley National Laboratory
On leave at CERN, PH Dept., Atlas & SEAL
b: (+41) 22 767-1288 fax: (+41) 22 767-8350 b: 32-R-C24
b : marinoATnerscDOTgov, MassimoDOTMarinoATcernDOTch
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.