Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qt und icc
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
Treborius
Guru
Guru


Joined: 18 Oct 2005
Posts: 585
Location: Berlin

PostPosted: Mon Jun 23, 2008 8:25 am    Post subject: qt und icc Reply with quote

hallo, ich versuche gerade qt mit dem intel-compiler zu emergen

laut qt-homepage soll das ja gehen 8O

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
_________________
Systems running gentoo :
Desktop, Laptop, ZOTAC AD-10 media-center, odroid-xu4 server / wLan-router
Back to top
View user's profile Send private message
69719
l33t
l33t


Joined: 20 Sep 2004
Posts: 865

PostPosted: Mon Jun 23, 2008 3:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Treborius
Guru
Guru


Joined: 18 Oct 2005
Posts: 585
Location: Berlin

PostPosted: Tue Jun 24, 2008 6:32 am    Post subject: Reply with quote

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 :(
_________________
Systems running gentoo :
Desktop, Laptop, ZOTAC AD-10 media-center, odroid-xu4 server / wLan-router
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
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