| View previous topic :: View next topic |
| Author |
Message |
Treborius Guru


Joined: 18 Oct 2005 Posts: 526 Location: Berlin
|
Posted: Mon Jun 23, 2008 8:25 am Post subject: qt und icc |
|
|
hallo, ich versuche gerade qt mit dem intel-compiler zu emergen
laut qt-homepage soll das ja gehen
ich habe folgendes problem, (inkompatiblität zwischen icc, und den gcc-std-lib headers)
| Code: |
icpc -c -wd654,858,1572 -O -w -D -I../../../mkspecs/linux-icc -I. -I. -o stltest.o stltest.cpp
/usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include/g++-v4/ext/atomicity.h(51): error: identifier "__sync_fetch_and_add" is undefined
{ return __sync_fetch_and_add(__mem, __val); }
|
nun habe ich in meiner make.conf folgendes versucht :
ICCCFLAGS="-O -gcc -w -axT -parallel"
ICCCXXFLAGS="${ICCCFLAGS} -D '__sync_fetch_and_add(ptr,addend)=_InterlockedExchangeAdd(const_cast<void*>(reinterpret_cast<volatile void*>(ptr)), addend)'"
dieses makro zu definieren, hat in meinem projekt gereicht, aber irgendwie filtert das qt-ebuild dieses makro raus,
hat jemand eine ahnung wie das man umgehen kann.
Oder besser an welcher stelle dieses Marko gefiltert wird?
ich bin mir fast sicher, das ich das ganze per hand hinbekommen würde, nur per emerge will das irgendwie nicht _________________ System : Intel Core2 Quad Q6600 |
|
| Back to top |
|
 |
69719 l33t

Joined: 20 Sep 2004 Posts: 865
|
Posted: Mon Jun 23, 2008 3:13 pm Post subject: |
|
|
Sollte es nicht
| Code: |
ICCCFLAGS="-O -gcc -w -axT -parallel -D '__sync_fetch_and_add(ptr,addend)=_InterlockedExchangeAdd(const_cast<void*>(reinterpret_cast<volatile void*>(ptr)), addend)'"
ICCCXXFLAGS="${ICCCFLAGS}"
|
lauten?
Eventuell solltest du auch mal
| Code: |
ICCCFLAGS="-O -gcc -w -axT -parallel -D '__sync_fetch_and_add(ptr,addend)=_InterlockedExchangeAdd(const_cast<void*>(reinterpret_cast<volatile void*>(ptr)), addend)'"
ICCCXXFLAGS="${ICCCFLAGS}"
CFLAGS=${ICCCFLAGS}
CXXFLAGS=${ICCCXXFLAGS}
|
versuchen. |
|
| Back to top |
|
 |
Treborius Guru


Joined: 18 Oct 2005 Posts: 526 Location: Berlin
|
Posted: Tue Jun 24, 2008 6:32 am Post subject: |
|
|
eigentlich nicht,
denn das makro wird eigentlich nur für c++ files benötigt,
die übertragung der Flags wird von einem Script erledigt
(also das setzen der CFlags//CXXFLAGS)
ich habe aber irgendwie rausgefunden, das man wohl für qt garkeine
custom-cflags setzen kann,
denn es gibt doch in dem build-verzeichniss irgendwo ( bin grade nicht zu hause)
ein mkspec verzeichniss, dort sind für jedes system//compiler die
cflags von qt schon hardcoded
ohne einen patch wird das wohl nix  _________________ System : Intel Core2 Quad Q6600 |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|