Question about stand alone compiler

Question about stand alone compiler

Hello!  I have been able to successfully build and run an Android project in Eclipse using the Intel compiler.  And it launches with no problems on the device.  I was trying to use the standalone compiler but am having some weird issues.

I open up the included compiler's command prompt and attempt to build like so:

icpc -c appName.cpp

icpc -shared -o libappName.so appName.o

but then I still need to build with ndk-build correct?  so I do that like so (although my gut tells me I am repeating something here):

ndk-build NDK_TOOLCHAIN=x86-icc APP_ABI=x86

and then... I get this:

>> ndk-build -j4 NDK_TOOLCHAI
N=x86-icc APP_ABI=x86"
[x86] Compile++ x86  : juce_jni <= ap.cpp
[x86] Compile++ x86  : juce_jni <= ialglib.cpp
[x86] Compile++ x86  : juce_jni <= AddTrackWindow.cpp
[x86] Compile++ x86  : juce_jni <= ActivateUserDialog.cpp
icpc: command line warning #10006: ignoring unknown option '-Wno-psabi'
icpc: command line warning #10006: ignoring unknown option '-Wno-psabi'
icpc: command line warning #10006: ignoring unknown option '-Wno-psabi'
icpc: warning #10181: disabling optimization; frame pointiecrpc :omis scion igno
red
ommand line warning i#c1p0c0:0 6w: airgnnionrgi n#g1 0u1n8k1n:o wdni soapbtliion
ng  'o-pWntoi-mpiszabait'i
n; frame picopcin: wartninge #10181: disabling optimization; frame poirn tomissi
one igr onmission ignoored
red
icpc: warning #10181: disabling optimization; frame pointer omission ignored
In file included from C:/Users/Claudia/stagelight2/trunk/builds/android//jni/../
../../aIlngli bf/iilael gilnicbl.ucdped pf(r5):
nC :of/miU lsCee: r/isUn/scCellruasdu/edCdil aaf/ursdotimaa g/Ce:sl/tiUgshetra2s
g//etClrliuagnuhkdt/i2ba/u/tisrltudansgk/e/albnidguildrhsto/2i/dt/ra/unjndnkri/o
/bi.ud.i//l/.dj.sn//i.a/.n./d.sr/to.di.ad/f/.x/..j/hna(il9/g).l:.i /bc./a.at/pa.
.s.ct/prApoc(pt2hi2iv)ca: t
rUCrs:oe/rrU:Ds iecaralsno/ngCo.ltca puopdp(ie1)n: a
/oCu:r/cUess etfraisgl/eeCl l"aJuuidcgiehaHte/asdtea2rg/.ethlr"iu
hk t/ 2b#/uitinrlcudlnsuk/d/aebn ud"irJloduiscd/e/aH/nejdanrdioe/ir.d../h//".j
/i ./ .. /. s/ t. d. a/ f. x. ./ hs (t 9d )a :f  x c. ah t( a9 s) t: r  oc pa^ht

cs
errorpohri:c  cearnrnoort:  ocpaennn osto uorpceen  fsourice lfei l"eJuceHea d"e
Jru.che"H
a  d#eirn.chl"u
e   "#JiunccelHuedaed e"rJ.uhcc"eo
ep ai dl ea rt .i ho "n
a  b  o  r  t  e  d     f  o  r     C  :  /  U  s^ e
 s
 C l a u d^i
/
tagelight2/trunk/builds/android//jni/../../../alglib/ialglib.cpp (code 4)
compilation aborted for C:/Ucsoemrpsi/lCaltaiuodni aa/bsotratgeedl ifgohrt 2C/:t
/rUusnekr/sb/uCilladusd/anidar/ositdm/aa/kgjeen.liei/x.e.:g/ h..*/t*.2*./ /t[ArC
cu:tn/ikUv/sabteueriUsls/deCsrl/Daaiunaddliroaog/i.sdct/pa/pgj en(lici/og.dh.et/
 2.4/.)t/
u.n/ka/lbguliilbd/sa/pa.ncdprpo i(dc/o/doeb j4/)l
cal/x86/objs/juce_jni/algIn lfiibl/ei ailngclliubd.eod]  Efrrroomr  C4:/
sers/Cmlaakued.ieax/es:t ag*e*l*i gWhati2t/itnrgu nfko/rb uuinlfdisn/iasnhderdo
ijdo/b/sj.n.i./.../
./../AddTmraakcek.Weixned:o w.c*p*p*( 1[)C::
UCs:e/rUss/eCrlsa/uCdliaau/dsitaa/gsetlaiggehlti2g/httr2u/ntkr/ubnuki/lbdusi/lad
nsd/raoniddr/o/iobdj//l/ocjanli//x.8.6//.o.b/j.s.//jsutcdea_fjxn.ih/(a9l)g:l cia
bt/aaspt.roo]p hEircr oerr r4or
 cannot opemna kseo.uerxcee:  fil*e* *" [JCu:c/eUHseeardse/rC.lha"u
i  a#/isntcalguedlei g"hJtu2c/etHreuandke/rb.uhi"l
s / a n d r o i d / / o b j /  l o c a l /   x 8^6
o
js/juce_jni/ActivateUserDialog.o] Error 4
compilation aborted for C:/Users/Claudia/stagelight2/trunk/builds/android//jni/.
./../../AddTrackWindow.cpp (code 4)
make.exe: *** [C:/Users/Claudia/stagelight2/trunk/builds/android//obj/local/x86/
objs/juce_jni/AddTrackWindow.o] Error 4

C:\Users\Claudia\stagelight2\trunk\builds\android\jni>ndk-build -j4 NDK_TOOLCHAI
N=x86-icc APP_ABI=x86"
[x86] Compile++ x86  : juce_jni <= ap.cpp
[x86] Compile++ x86  : juce_jni <= ialglib.cpp
[x86] Compile++ x86  : juce_jni <= ActivateUserDialog.cpp
[x86] Compile++ x86  : juce_jni <= AddTrackWindow.cpp
icpc: command line warning #10006: ignoring unknown option '-Wno-psabi'
icpc: command line warning #10006: ignoring unknown option '-Wno-psabi'
icpc: warning #10181: disabling optimization; frame pointer omission ignored
icpc: warning #10181: disabling optimiziacptci:o nc;o mfmraanmde  lpionien twear
r noimnigs s#i1o0n0 0i6g: ingonroerdi
g unknown option '-Wno-psabi'
icpc: command line warning #10006: ignoring unknown option '-Wno-psabi'
icpc: warning #10181: disabling optimization; frame pointer omission ignored
icpc: warning #10181: disabling optimization; frame pointer omission ignored
In file included from C:/Users/Claudia/stagelight2/trunk/builds/android//jni/../
../../alglib/ap.cpp(22):
C:/Users/Claudia/stagelight2/trunk/builds/android//jni/../../../stdafx.h(9): cat
astrophic error: cannot open source file "JuceHeader.h"
  #include "JuceHeInade r.h"f
l e in   clu d    e d from C : / U s e r s / C l a  udia/stageligh t 2^/
r
nk/builds/android//jni/../../../alglib/ialglib.cpp(5):
C:/Users/Claudia/stagelight2/trunk/builds/android//jni/../../../stdafx.h(9): cat
astrophic error: cannot open source file "JuceHeader.h"
  #include "JuceHeader.h"
                         ^

compilation aborted for C:/Users/Claudia/stagelight2/trunk/builds/android//jni/.
./../..I/na lfgliilbe/ iianlcglluidbe.dc pfpr o(mc oCd:e/ U4s)e
rs/Claudia/stagelight2/trunk/builds/android//jni/../../../AddTrackWindow.cpp(1):

C:/Umsaekres./eCxlea:u dia*/*s*t a[gCe:l/iUgshetr2s//tCrluanukd/ibau/isltdasg/ea
lnigdhrto2i/dtr/u/nkj/nbiuil/d.s.//a.n.d/r.o.i/ds/t/doabfjx/.lho(c9a)l:/ xc8a6t/
aosbtjrso/pjhuicce _ejrnrio/ra:l gclainbn/oita logpleinb .soo]u rEcrer ofri l4e

JuceHmeaakdee.re.xhe":
I n  *#f*ii*nl ceWl auiidnteci ln"ugJd uefcdoe rHf eruaondmfe irCn.:ih/s"Uh
ed r  sj /o Cb ls a. u. d. i. a / s
 a g e l i g  h t2 / t r^u
k
builds/android//jni/../../../ActivateUserDialog.cpp(1):
C:/Users/Clcoamupdiilaa/tsitoang ealbiogrted for C:ch/otUm2sp/eitrlrsau/tnCiklo/
anbu udaiiblaod/rsst/teaadng defrlooirig dhC/t:/2/j/Untsire/ur.ns.k///C.bl.ua/iu
.ld.dis/a/s/atsndtdaarfgoxei.ldhi/(g/9hj)tn:2i //ct.ar.tu/an.sk.t//rb.ou.pi/hlAi
ddcsd /TearrnardcorkroW:ii dnc/da/onjwnn.oict/p .po. p/(e.cn.o /ds.eo. u/4ra)cl
 lfiibl/ea p".Jcupcpe H(ecaoddeer .4h)"

  #include "JuceHeader.h"
                         ^
m
ke.exe: *** [C:/Users/Claudia/stagelight2/trunk/builds/android//obj/local/x86/co
obmjpsi/ljautcieo_nj naib/oArdtdeTdr afcokrW iCn:d/oUws.eor]s /ECrlraourd i4a/s
agelight2/trmuankke/.beuxiel:d s/a*n*d*r o[iCd:///Ujsneir/s./.C/l.a.u/d.i.a//Asc
ttaigvealtiegUhste2r/Ditarlougn.kc/pbpu i(lcdosd/ea n4d)r
id//obj/local/x86/objs/juce_jni/alglib/ap.o] Error 4
make.exe: *** [C:/Users/Claudia/stagelight2/trunk/builds/android//obj/local/x86/
objs/juce_jni/ActivateUserDialog.o] Error 4

 

 I have no idea what is going on...does anyone have any hints??

Thanks!

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi,

We're checking on this and will back to you shortly.

Regards,

Neal

Hi Claudia,

I am starting to look at the issue. Are you blocked on this issue? Can you please try installing the Android Compiler Update 2 and check? https://software.intel.com/en-us/c-compiler-android

Also, What is the environment variable ANDROID_NDK_DIR point to in your system?

Thanks,

Karthi

Leave a Comment

Please sign in to add a comment. Not a member? Join today