Closed jiliguluss closed 4 years ago
Refer to the guide: https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html#mingw-w64. I guess something is wrong with your environment. Please make sure that you're using MinGW-w64. We do test with that version. https://github.com/microsoft/LightGBM/blob/102893a11c1dd712bb70d87b3b129ddf42daf06f/.appveyor.yml#L18
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Environment info
Operating System: win10 64
CPU/GPU model:
C++/Python/R version:
LightGBM version or commit hash:
Error message
D:\Workspace\C++\LightGBM\build>mingw32-make.exe -j4 Scanning dependencies of target _lightgbm Scanning dependencies of target lightgbm [ 1%] Building CXX object CMakeFiles/_lightgbm.dir/src/c_api.cpp.obj [ 3%] Building CXX object CMakeFiles/_lightgbm.dir/src/lightgbm_R.cpp.obj [ 4%] Building CXX object CMakeFiles/_lightgbm.dir/src/application/application.cpp.obj [ 6%] Building CXX object CMakeFiles/lightgbm.dir/src/main.cpp.obj D:\Workspace\C++\LightGBM\src\application\application.cpp:1:0: warning: -fPIC ignored for target (all code is position independent) /! ^D \Workspace\C++\LightGBM\src\c_api.cpp:1:0: warning: -fPIC ignored for target (all code is position independent) /! ^ D:\Workspace\C++\LightGBM\src\lightgbm_R.cpp:1:0: warning: -fPIC ignored for target (all code is position independent) /! ^ D:\Workspace\C++\LightGBM\src\main.cpp:1:0: warning: -fPIC ignored for target (all code is position independent) /! ^ In file included from c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\bits\postypes.h:40:0, from c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\bits\chartraits.h:40, from c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\string:40, I n f i l e from c:\minignwc\lluidbed from \cg:cc\mingw32\5.3.0\inc\lumdien\gcw++l\isbt\dgecxcc\empitn:g3w93,2 \ 5 . 3 . 0 \ i n c l u d e \ c + +f\rboimt sc\:p\omsitnygpwe\sl.ih:40:0, \ g c c \ m i n g w 3 2 \ 5 . 3 . 0f\rionmc lcu:d\e\cm++\airray:38,n g w \ l i b \ g c c \ m i n g w 3 2f\r5o.m3 .c0:\imnicnlguwd\el\icb++g\cbci\tmsi\ngcwh3a2r_5t.r3a.i0t\si.nhc:l4u0d,e c + + \ t u p le : 3 9 , f r o m c : \ m i n g w \flriobm\ gcc:c\mi\ngw\limb\igncgcw\3m2i\ng5w3.23.50.\3i.n0c\liundcel\ucd+e+\cs+t+r\ifnugn:c4ti0o,n l : 5 5 , f r o mf rDo:m/ WDo:r/kWsoprakcsep/aCc+e+//CL+i+g/hLtiGgBhMt/GiBnMc/liundcel/uLdieg/htGBML/iugthitlGsB/Ml/omge.tha:.8h,: 0 , f r o mf rDo:m/ WDo:r/kWsoprakcsep/aCc+e+//CL+i+g/hLtiGgBhMt/GiBnMc/liundcel/uLdieg/hLtiGgBhMt/GuBtMi/lcso/ncfoimgm.ohn:.1h2:,8 , f rformo mD :D/:W\oWrokrskpsapcaec/eC+C++/+L\igLhitgGhBtMG/iBnMc\lsurdc\e/lLiigghhttgGbBmM/Rb.ocopspt:i7n:g hc::8\,m n g w \ l i b \ g c c \ m i n g w 3f2r\o5m. 3D.:0\Wionrcklsupdaec\ec+C+++c\wLcihgahrt:G1B7M7\:s1r1c:\ cer_raopri:. c'p:p::w7c:s cca:t\'mi nhgaws\ lniobt\ gbcece\nm idnegcwl3a2r\e5d. 3 . 0 \uisnicnlgu d:e:\wcc+s+c\actw;c a r : 1 7 7 : 1 1 : e^r ror: 'c:::\wmcisncgawt\'l ihba\sg cnco\tm ibnegewn3 2d\e5c.l3a.r0e\di n c l uudsei\ncg+ +:\:cwwccshcaart:;1 8 : 1 1 : e r r o r^: '::wcscc:m\pm'i nhgaws\ lniobt\ gbcece\nm idnegcwl3a2r\e5d. . 0 \ iunscilnugd e:\:cw+c+s\ccmwpc;h r : 1 7 8 : 1 1 : e r^r r: ':c::w\cmsicnmgpw'\ lhiabs\ gncoct\ mbienegnw 3d2e\c5l.a3r.e0d\ n c l uudsei\ncg+ +:\:cwwccshar:179:11: errcomrp:; : : w c s c o l l ' h^a not cb:e\emni ndgewc\llairbe\dg c c \ muisnignwg3 2:\:5w.c3s.c0o\liln;c u d e \ c + + \ c w c h^a r:1c7:9\:m1i1n:g we\rlriobr\:g c'c:\:mwicnsgcwo3l2l\'5 .h3as. 0n\oit nbceleund ed\ecc+l+a\rcewdc a r : 1u8s0i:n1g 1:::wcs coellr; o r : ' : : w c s c p^y has nco:t\ mbienegnw \dleicbl\agrcecd\ m i n guws3i2n\g5 .:3:.w0c\sicnpcyl;u e \ c + + \ c w c h a r^: 80:11:c :\mingw\lib\gcc\mingw32\e5r.3r.o0r\:i n'c:l:uwdces\ccp+y+'\ chwacsh anro:t1 8b1e:e1n1 :d eecrlraorre:d : : w cusscisnpgn ': :hwacss cnpoyt; b e e n d e c l a r e^d
c :u\smiinngg w:\:lwicbs\cgscpcn\;m n g w 3 2 \ 5 . 3 . 0 \^i clucd:e\mci+n+g\wc\wlcihba\rg:c1c81:1\1m:i error: '::wcscspn' has not been dnegcwl3a2r\e5d. . 0 \ iunscilnugd e:\:cw+c+s\ccswpcnh;a : 1 8 3 : 1 1 : e r r^o r: '::cw:c\smlienng'w \hlaisb \ngoctc \bmeienng wd3e2c\l5a.r3e.d0 i n c luusdei\ncg+ +:\:cwwccshlaern:;1 3 : 1 1 : e r r o r^: '::wccs:l\emni'n ghwa\s nolti bb\egecnc \dmeicnlgawr3e2\d5 3 . 0 \uisnicnlgu d:e:\wcc+s+l\ecnw;c a r : 1 8 4 : 1 1 : e^r or: 'c:::\wmcisnngcwa\tl'i bh\agsc cn\omti nbgewe3n2 \d5e.c3l.a0r\eidn l u d eu\sci+n+g\ c:w:cwhcasrn:c1a8t4;: 1 : e r r o r : ' :^: csncact:'\ mhiansg wn\olti bb\egecnc \dmeicnlgawr3e2d\ 5 . 3 .u0s\iinngc l:u:dwec\scn+c+a\tc;w c h a r : 1 8 5 : 1 1 :^ e rcrI:on\r m:fi in'le:g :wiw\ncsclnlicubmd\peg'dc chf\armsoi mnn goDwt:3 b2ee\/W5on.rkspac3e/C++/Light.G 0Bd\Mei/cnilcnalcruleduded c/ +L +\ icugwshcithnGagBr M::/1:u8wt5ci:sl1ns1c/:mc poe;mr oo nr .: h :' 9: :: 0w ,c n c^ m ' Ih cna : s \f min ilo net g wib \ne lce ilnfbu r\ddogeemcdc c lD\fa:mrr/ioeWnmdog k3: s2/ p\W a5ouc.rse3ki/.snC0pg+\a +ic:/ne:Lc/wilCcgu+shd+nte/cG\LmBcipM+g;/+h ncG cwB lcM uh/ dai ern /:c L1l i8u g6d h:e t1/^G1L M g/ehccrto:rGn\oBfmrMii:/gn u.g'thw:i:\:l1lws3ic/,bsc gop cmy cm' \o mnh i.a nhs g: w9n 3:o 20t \, 5 e 3 e . n 0 \ dfi ern coc lml a u rDd e:e d/\ o+ r+ k\ sc upwfsacrichoneamg/r C:D:+1::+8/w/6WcL:osi1rng1kch:spt pyGea;BrceMr Cir +n: +c /l' Lu: id: gew h/c tLs Gin Bgc Mhp^/ty nB cMhl/caua:sdp\ epmn/lioLinticg gawbht\etileGoinBnb M.\d/hgec:cco8cln,\af ieg nd. g : 3 1 2 3 \ , 5u 3i .n 0g \ i: n: cw lc us fdn rec o\p mcy +; D+ \c Ww foc rrh oka msr p: Da1 :/8 Wo8 rks :1p^ aceeec\/r:CCr++om++ri\/:nLL gii'wgg:\hh:lttwiGGcbBBs\MMsg\/pcsincrn'\cc m\lhiauanpdsgpe wl/n3iLo2cit\ag 5thb.ite3oGe.nBn0\M \a/dipaenppcclpllilaucirdaceetad\it no ++n \c.uwchsha:ir:8n18,g8:
1c: :p: pwc :5s : e pDr n:r ;/o o: r k' s: p: awf ccr eso /sm Cp +nD +':^/ \ iaogsrh cktn:sGo\pBtmaM ic/bneieg\newCcn+l l+udi\debLec\i/lggLachirctGe\gBdmhM nGs gBr wMc 3/\m2uua\tsi5iin.ln.3sgc./ p0o:p\p::iew5nnc:cms u_pDdwn:er;/\a o+p r+e k\r sc. pwh ac: ch4 ea2 /r: C:8 +1: +9 ^/3e i1rg1oh:crt ::Ge\ Brm'Mrim/onuirgtn:wec \xl'l'u:i d:biew\n/cg Lscnitcago\mhkmet'isG npBhgaMawc/s3eu 2 tn\'io5slt.ts 3d/b.'oe0 de\oenis nnodct elpncuealdnmaemer\p ecad+w \ay cpp wpe ce sa. irh n:: g14s 92t:3:d::8:w1::c1 ms:eut rtoerekrox;rr r o :'c mk 'u :t; :e c' s ti on k ^'n hm ae^ssc na\ocmtei nb'gesweDt\n:dl /'idW beod\croglkecasscrp \eanmdcoi / g Cnw +a3 +m2u/e\sL 5iia.ng 3ght. ty0:Gp\:BeinM cli sun tdc oelsk\ut;cdd +/: \Lm ciu wgt che htx aG rBl :Mo 1/c 9uk 6t_^:i; 1l :/ oc ep: re\ rnm omi rpn :_g ww^'r\ :piwpbce\srgx.cfhcrD:\m: m'/Ii Wnnho garmwske3 sm2npb\oae5tcr. e 3b/f.eCu0e+n\n+ci /tndLiceiolcgnulh dat'erGv\eBocdMi+ i \ nTc chw lrcuuehsdaaiedrn/E:gLx1 ic9:ge6:hp:wtt1cGi1sBo:xMn f/Heruermtlr;ipo sr: /: o:' pC: ea: npw mtc pus _rx wef rEr axm^pc' ephrta.icsho: :n\n (moI)itn'n :gbm \emDlnb:i erbd/ \eWfgcouclrncakc\rstmepiidaon n/w C3 '+2 v+\uoids/L i5iTn.ghg3hr .te:0Ga:\BdwiMEcn/xscicxlnefucprdltmeui;\do +/H +Le \il cgp whe ctr hG: aB: rMC :/a 2up 0tt^4iu 1se1/E:ocx p:cee\ernmprmitopnirgo:wwn r('al):pi':pb:we\ s.cDchc:h:\/r3mW'5io :nrh2gka2wss:3p 2ane\cor5etr./ o3Cbr.+e:0+e \/n'iL mniducgetlhceutlxdGa'eBr \Meic/ds+i n\c ocl twu cduahes a/imrLne:igm2g b0h:e4t:r:Gw 1Bco1Msf:/c uh'etrsri;trl 'r/ p 'e :n :m wp c ssw tcr dha :rp^:'p nhria.qschu ::en\3om5lti:o n2cbg2kew:<e\ snlet irddbr:e\o:cgrmlc:uac tr\'eemmxdiu> geg wxu 3'a 2 ru\ids5s(i. ln3nog.oc 0tk:\ :ia)wn ;ccm cum hdb ree ;\r +o +f \ c' ws ct hd a' r 2 0 ^5 1 1s :ct :d^e\: riunnoigDrqw::u\/ elW'io:lbr:o\kwcgsckcps<caps\cbtmerdi/k:nC':g+ mw+hu3/at2Lse\i x5gn>.ho 3ttg.G u0Bba\Meri/ednin(cn llcdoulecdudkece\l/)caL;+ri \dh c G c B h M a / ruu :st 2ii 0nl 5gs : / 1:o 1:p :we cn esm rpp rb_ orw rkr :;a p^' : rw .c Dhs ::p /3b W5r o:k r2' k2 s:h^p a cr ern/cooC:rt+\: +m b/i'eLnmeigungwt h\edtlxeGi'cBb lM\ia/gsric encndc\o ui dna eg /wmuL3esi2mig\bnh5egt.r G3 :B.o:M0fw/\ cui'stispnltbcsdrl/'kuo ;dp \nD cm: +p/ +_W \wo crr wak cps hpp aea rrc :.e^2h/ 63+:5+1c:/1:2L:\2i m:gei hrnetrgrGowrBr\oM:lr/ i:i'b n:\'c:gmlwcuucctds\eermx/ci'Lhn irgig'wsh 3 th2nGa\oBs5tM . /n3auo. tt0mi \elbimsenb/eceonlrp u eddoneefmc\cpl+ _a+'wr\srectapwd'pcd eh .r h:D :2: 30/u56Ws::oi31rn21kg::s p:eea:rrcwrrecoo/srrCr::+c +ht'/re:L;m:i lch ast trG ecB hM ar/ r'ing cuh lma ues dn etn^/ o 1tL iicbgs:eh \etimnGni BvndMage/lwcui\ltdlai rli esb d/\ pc ecs n\t mmdupi:sngiw:wnru3gan2 pi\:pq5:eu.wre3c..shl0r:o\c3ckh5<ri:s;n3t l:: u : dem eru \rt coe +rx +:> \ ctg weu cma^hpr ra(:tl2eco0 :c7a\k:rm1gi)1un;:mg en\ rtl r i o1b r \ :ig sc ' c :i\ :nm wvi can slg siw td3 r \ 5 h . a 3 s . 0 ns\ oti tdn :c b:l euu end nie q\ duc ee+^c+ arcoewcdDck /as Wrt o:d r2:uk0:ss7mip:una1tgc1e e:x:/ >:Ce w+rgc+rus/oasLrrti:drg (;h'l G:c Bwk Mc /s) is; nt l' u dh ea /s ^L go ht t Gbc Be: Me\ /nm u i tdn ieg lcw sl\ /al ori peb ed\ n c p c \ w m rui asn pig pnw eg3^r 2 h:5:w.3cD35s:.:s/04tW\0roi:;rn slr pur ade co\ erc :+/ +C '+ lc+ ow/ ccL^khi 'rh :tw GaIcBsn:M \/nfmiouintnnc cgldtwuei\dcolelni/a bLr'\iewggdcch hctia\GnrmB _iMttn/hgui wtss3i t2lsd\sc:5/o:.opw3pec.e c\m iph n_r cw( lrwsuactdphdepa:\er:cr_u+.tn+hi\:,qc3 uw5wec:c_h4hla0aor:rc: _k et<Ir)snr't o:dfr :n cmc':utl\tiomeocixnkn> _g ''wgw \ucwlahairasbdr (_ngltocotcc \ksdm_tei)dcn;:lg wr3 ce2 sd\ c 5 hi. rn3 ( . wt0 ch\ hii asn r cl_s utc do e,p \ e +c +h \a cr w ct sh) ta' r:d : : 1cu 3:n :\i 5mq 5iu :ne g ewl r\o rlc oik rb< :\s^ gt nc:v\:ammliDuin:tdg/e wWxc3o>o2r n\kgv5sue.par3ars.cdi0e(o\/lniCo n+cfc+krl/_ouL)mdi; eg cct o+G n+B s\M tc/ wi wcn chc hal aru r:d 2e t1/ *3L ':i 5g t5h o:t G 'eB wrM cr/ hou art r:i l tis n/ 'vo ap [le -in fdm p p ec row mnr iva sep srp ise^vir ]nh f3D r5: o:/ m3W{ 4o ':rrc keowstnaruspnrtain cn wegwc/:chC sa+ucr+nh/urtLs(iec'gdo h nttvsoGat Br_'Micw/aacibshnltace<rl c_u'otdeng/s'uLt ai [rgw-dhcf'thp Gae[Brr-M_mW/tiuusnt>sui(isl_vesed/p]-o) ae rn im apc{b) lw;rer e]a}t p r e n r . w h c : ss3 ct5 hd: r:3 (:4 cu: on niw sqa tur _en c_l aio snc tgk <:< c s out nnd su: ts: em wdu c t hve aax rr> i tag *bu >la (er d _'( pgl )uo ,ac rk d _') c ; )[ W }u u s e d - ^ v r i ac b: l\ em ]i g w \ l i b s\ tg dc :c :\ um ni in qg uw e3^ _2 o5 c. k3 <s .t 0d \: i: nm cu lt ue dx e> \ cg +u +a \r cd w( cl^ho rk:_2)1c;2: 3m :i n ng ow t\ el :i b \ g ic nc i\ tm ii an lg iw z3 i2 n\ g5 . a3 r. g0 u\ mi en nc tl u 1d e^o\ cf+ +'\wccwhcahra_rt:2 1s2t:d3::: wncostceh:r ( w cihnairt_ital,i zwicnhga ra_rtg)u'm n t 1w cosfc h'rw(cwhcahrartt s td:p:,w cwscchharr(_wtc h_arc)t , w c^h rt)' c : \wmicnsgcwh\rl(iwbc\hgacrc\tm __p, wicnhgawr32t\ 5._3c.)0 \ i n c^l de\cc:++m\icnwgcwh\alri:b \Ignc cf\umnicntgiwo3n2 \'5w.c3h.a0r_itnc lsutdde:\:wccs+p+b\rckw(cwhcahra:r _Itn ,f ucnocntsito wnc h'awrc_htar)_'t: sct:d\:m:iwncgswp\blrikb(\wgcchca\rm_itng,w 3c2o\n5s.t3 .w0c\hianrc_ltud)e'\:c +c\:c\wmcihnagrw:\2l1i7b:\5g8c:c \emrirnogrw:3 2i\n5v.a3l.i0d\ icnocnlvuedres\ico+n+ \fcrwocmh a'rc:o2n1s7t: 5w8c:h aerr_rtor': tion v'awlcihda rc_otnv'e r[s-ifopne rfmriosms i'vceo]n t w c{h arre_ttur'n twoc s'pwbcrhka(rcotn*s't [c-afspte<rcmoinsssti vwec]h r _ t {> (r_e_tsu1r)n, w_cspsb2r)k;( c}o n s t cas t < c o n s t w c h a r _ t > ( s 1 ) , s 2 ) ; } ^ c : \ m i n g w \ l i b \ g c c \ m i n g w 3 2 \ 5 . 3 . 0 \ i n c^l de\c+c+:\cmwicnhgawr\:l2i1b6\:g3c:c \nmoitneg:w 3 2 \i5n.i3t.i0a\liinzcilnugd ea\rcg+u+m\ecnwtc h1a r:o2f1 6':w3c:h anrotte*: s t di:n:iwtcializing arsgpubmrekn(tw c1h aorf t'w,c hcaorn_stt wscthda:r:_wtcs)p'b k ( w cwhcasrp_btrk,( wccohnasrt_ twc h_a_rs_1t, )c'o s t wwcchsaprb_rtk*( w_chsa2r) ^
c : \ m i n g w \ l i b \ g c cf\rmoimn gDw:3/2W\o5r.k3s.p0a\cien/cCl+u+d/eL\icg+h+t\GbBiMt/si\ncchlaurd_et/rLaiigthstGB.Mh/:c3o5n8f:i2g6.:h :e1r2r,o : ' w c s l e n ' w a s n o tf rdoemc lDa:r/eWdo rikns ptahcies/ Cs+c+o/pLei h t G B M / i n{c lruedteu/rLni gwhctsGlBeMn/(b_o_oss)t;i n}g . h:8, f r o m D :^\ Workspace\C++\LightGBM\src\c_api.cpp:7: c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\bits\char_traits.h: In static member function 'static std::size_t std::char_traits::length(const char_type*)':
c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\bits\char_traits.h:358:26: error: 'wcslen' was not declared in this scope
{ return wcslen(__s); }
^
In file included from D:/Workspace/C++/LightGBM/include/LightGBM/config.h:13:0,I
f il eI n i nf ci ll ue d ei dn c fl ru odfmer doD m:f /rDWo:om/r WkDos:rp/kaWscopera/kcCse+p/+aC/c+Le+i//gCLh+it+gG/hBLtMiIG/gnBih Mntf/cGiilBlnuMecd/ leiiu/nndLcceill/guuLhdditeegG/dhBL tMifG/grBuhoMttm/iG alBDpsM:p///lcuWiotocmiramlktossin/po.canhoc.:meh9m/::oC80n+,,.+
:L 9i :g 0h ,t B M / i n c l u d e / Lff irr oog mmh t DDGf::Br\/MoWW/mooc rroDkkn:ssf\ppiWaagocc.reehk\/:sCC1p++3a++:c\/0eLL,\ii +hh +tt \GG LBB iMM g\/ hsi trn Gcc B\l Mau \pd spe rl/ ciL \ci lag ithfgitrhoGotnBmg\M ba/Dmpc:po/RlnW.ifoccirpagkpt.s:ihp7o:a:n1c c,/Dp +/: +W5 /o: Lr gsD hp: ta/ GcW Beo M/r /Ck i+s n+p c/a lLc uie fg/drhCeot+/mG+L B/iDMLg:/ig/ihhWnttocGGrlBBkuMMsd//peaia/pncLpceill/giuChcd+tae+Gt//BiLLMoii/nggu.hhthtti:GGl8BBs,MM/ uip tne icn llm sup /d cew o/r mLa mip ogp nhe .tr hG. :Bh M: I/ Anb t of morgesolmtmobi benDarg:l .\ fhWsu:ocn8rkc,ost eao :cn \' DCT :+ /+L W\i oLg rih kgt shG ptB aGM cB: eM: /\C Csof+rmr+cmo/\omLmn ia:Dgi::hn_\t._WGcSoBptrMprk/:isi5npn:gac oeuDT\d:HCe/e+/Wl+Lop\ireLgkrihs<gtpThGa, BcttMeGr//BuuCMet+>i+s:l/r:sLco/i\pogcephretaanGptmBiopM.r/c(wip)rnp(ac:cpl7opu:ned t./D hL:s:i/W4gto2hrr:tik8Gns:Bgp M&ae/)cru ertc/oioCrln+:ss+ /t/'c'Lmo:ium heoDtxn:G'./B hWMi:o/n ri Iknnnsca plmmaueecdsmeepb//aeCLcr+ie +g f/h'uLtsniGtcgBdthM'it/ oGudnBMo t/e'iisTln scnL/loioutgpd heentn/aGmLmBpieMg :wha:rt CaGBoptMmpy/mepuoretn. l:: s /A cStsot tmrgdmil:ono:ngbm.Tauholt:T e4Hsx7ec 7lol:ppo2eec7r:k< ;T :r t/r rWo uor er: >k :s' :ps oat^pco r/'aC t+io+sr/ (Ln)Dio(:gtc/h oWtanoG srBmtkMe s/mspibtanerccriel n/uogCdf&+e )+/' /LscLitoigdngh'sht 'GB :BM /u Dit :nir/cleWlstou/urdorkepns/e pLnsaimtcgpaeht/twiCGrc+Ba+Mpc//paLuesitrtgh./i4(nc2sli:tul8dde::/L :igeshtrtGsroB/odMor(/p:sue ttn'rimm)lpu)s_t;/we
oa' mp mpi oen nr ..n hha ::m 4 e 7Is 7np : a 2mc 7ee :m b' ees rrt r d of' ru :nd co 'te sis to onn d o^''t
ionsia dmn eoT tha r aet aymdpeEemx
ee rpt io ofsn tH'des:lt:pdme'ur
e: xC a lp ot curkreet;Eu
cn e ps tt ia ot ni (c )^'c
:a
tDD<::T//>WW(oosrrtkkdss:pp:aasccteeo//dCC(++s++t//rLL)ii)gg;hh
GG BB MM // ii nn cc ll uu dd ee // LL iigg hh tt GG BB MM // uu tt ii ll ss // oo pp^ee
mmpp__wwrraappppeerr..hh: I:35n: 2m2e:m beerrr ofru:n c'tmiuotn e'xv'o iids Tnhorte aadExceptionHelper::CaptureException (m)e'm:b
D :o/fW o'rsktsd'p
c e / C + +s/tLdi:g:hutnGiBqMu/ei_nlcolcukd<es/tLdi:g:hmtuGtBeMx/>u tgiulasr/do(pleoncmkp__)w;r
a p p e r . h : 3 5 : 2 2 : e r r o r : '^m
tex' iD:s/ Wnoortk sap amceem/bCe+r+ /oLfi g'hsttGdB'M
i n c l u dset/dL:i:guhntiGqBuMe/_ultoiclks</sotpde:n:mmputwerxa>p pgeura.rhd:(3l5o:c2k2:) ;e
r o r : ' m u t e x ' i s n o t a m^e
ber ofD :'/sWtodr'k
spaceD/:C/+W+o/rLkisgphatcGeB/MC/+i+n/cLliugdhet/GLBiMg/hitnGcBlMu/duet/iLlisg/hotpGeBnMm/pu_twirlasp/poepre.nhm:p3_5w:r2a2p:p eerrr.ohr::3 5':m3u2t:e xe'r riosr :n otte map lmaetmeb earr goufm e'nstt d1'
is inDv:a/lWiodr
k s p a c es/tCd+:+:/uLniigqhuteG_BlMo/cikn<csltudd:e:/mLuitgehxt>G BgMu/uatrilds(/loopceknm)p;
r a p p e r . h : 3 5 : 3 2 : e rror: temp l a t e argum e n t 1 i s i^n
alid
D : / W o rsktsdp:a:cuen/iCq+u+e/_Lliogchkt<GsBtMd/:i:nmcultuedxe>/ LgiugahrtdG(BlMo/cukti)l;s
o p e n m p w r a p p e r . h : 3 5 : 4 0 : e r r ^
r: 'loDc:k/_W'o rwkassp ancoet/ Cd+e+c/lLairgehdt GiBnM /tihnicsl usdceo/pLei
h t G B M /suttdi:l:sun/ioqpueen_mlpo_cwkr0 : geurarrodr(:l o'clkoc)k;'
w as n o t d e c l a r e d i n t h i s s c o p e
s t d : :^u
niquelocDk:</sWtodr:k:smpuatceex/>C +g+u/aLridg(hltoGcBkM/)i;n
l u d e / L i g h t G B M / u t i l s / o p e n m p _ w r a p p e r . h : 3 5 :^3
: warninDg::/ Wuonrukssepda cvea/rCi+a+b/lLei g'hgtuGaBrMd/'i n[c-lWuudneu/sLeidg-hvtaGrBiMa/bultei]l
/ o p e n msptdw:r:aupnpieqru.eh:l3o5c:k3<4s:t dw:a:rmnuitnegx:> u nguusaerdd (vlaorcikab_l)e;
g u ard' [-W u n u s e d - v a r i a b l e ]
s t d : : u n i q^u
lock guard(lock );
^
In file included from D:/Workspace/C++/LightGBM/include/LightGBM/utils/text_reader.h:9:0,
from D:/Workspace/C++/LightGBM/include/LightGBM/dataset.h:14,
from D:\Workspace\C++\LightGBM\src\application\application.cpp:8:
D:/Workspace/C++/LightGBM/include/LightGBM/utils/pipeline_reader.h: In static member function 'static sizet LightGBM::PipelineReader::Read(const char, int, const std::function<unsigned int(const char, unsigned int)>&)':
D:/Workspace/C++/LAit global scope:
tcGcB1Mp/liunsc.leuxdee:/ LwiagrhntiGnBgM:/ uutnirlesc/opginpiezleidn command line optione 'r-eWandoe-ri.ghn:o5r3e:d7-:a tetrrriobru:t e'st'h
ead' is not a member of 'std'
std::thread read_worker = std::thread(
^
D:/Workspace/C++/LightGBM/include/LightGBM/utils/pipeline_reader.h:56:8: error: expected primary-expression before ')' token
});
^
D:/Workspace/C++/LightGBM/include/LightGBM/utils/pipeline_reader.h:60:7: error: 'read_worker' was not declared in this scope
read_worker.join();
^
CMakeFiles\lightgbm.dir\build.make:62: recipe for target 'CMakeFiles/lightIgnb mf.idlier /isrncclu/dmeadi nf.cppr.oobm D:\Wjork's pfaaciel\eCd+
\LimghtGBM\sric\anpplicatiogn\awppl3ica2tio-n.cmpp:a8:0k:
eD:/.Worekspxacee/C+[+/Li2ght]GBM:/in clude/Lig*htG BM/[datCaseMt.ha: Akt gelobFal iscolpe:e
Ds:/Wor/kspacle/C++i/LigghthGBMt/ingclubde/mLig.htGdBM/idatrase/t.hs:24r6:8c: e/rromr: a'muitexn' i.n ncamepspapce .'stod' bdoejs n]ot namEe ar rtoyrp e1
std::mutex mutex_; ^ CMakeFiles\Makefile2:76: recipe for target 'CMakeFiles/lightgbm.dir/all' failed mingw32-make.exe[1]: [CMakeFiles/lightgbm.dir/all] Error 2 mingw32-make.exe[1]: Waiting for unfinished jobs.... [ 7%] Building CXX object CMakeFiles/_lightgbm.dir/src/boosting/boosting.cpp.obj In file included from D:\Workspace\C++\LightGBM\src\lightgbm_R.cpp:7:0: D:/Workspace/C++/LightGBM/include/LightGBM/utils/common.h: In member function 'T LightGBM::Common::__StringToTHelper<T, true>::operator()(const string&) const': D:/Workspace/C++/LightGBM/include/LightGBM/utils/common.h:477:27: error: 'stod' is not a member of 'std' return static_cast(std::stod(str));
^
In file included from D:/Workspace/C++/LightGBM/include/LightGBM/config.h:13:0,
from D:/Workspace/C++/LightGBM/include/LightGBM/boosting.h:8,
from D:\Workspace\C++\LightGBM\src\capi.cpp:7:
D:I/nW ofriklsep aicnec/lCu+d+e/dL ifgrhotmG BDM://iWnocrlkusdpea/cLei/gCh+t+G/BLMi/guhttiGlBsM//cionmcmlound.eh/:L iIgnh tmGeBmMb/eurt iflusn/ctteixotn r'eTa dLeirg.hht:G9B:M0:,:
o m m o n : : S t r i n g T o TfHreolmp eDr:<\TW,o rtkrsupea>c:e:\oCp+e+r\aLtiogrh(t)G(BcMo\nssrtc \sltirignhgt&g) bcmon_st'R:.
pDp::/1W0o:r
sDpa:c/eW/oCr+k+s/pLaicgeh/tCG+B+M//LiingchltuGdBeM//LiinghctlGuBdMe//uLtiiglhst/GcBoMm/muotni.lhs:/4p7i7p:2e7l: ierror: 'nset_orde'a diesr .nho:t Ian msetmabteirc omfe m'bsetrd 'f
n c t i o nr e'tsutrant static_caist(std::cs tsoidz(es_ttr )L)i;g
h t G B M : : P i p e l i n e R e a d e r : : R e a d^(
onst char, int, const std::function<unsigned int(const char, unsigned int)>&)':
D:/Workspace/C++/LightGBM/include/LightGBM/utils/pipeline_reader.h:53:7: error: 'thread' is not a member of 'std'
std::thread read_worker = std::thread(
^
D:/Workspace/C++/LightGBM/include/LightGBM/utils/pipeline_reader.h:56:8: error: expected primary-expression before ')' token
});
^
D:/Workspace/C++/LightGBM/include/LightGBM/utils/pipeline_reader.h:60:7: error: 'read_worker' was not declared in this scope
read_worker.join();
^
In file included from D:/Workspace/C++/LightGBM/include/LightGBM/utils/text_reader.h:9:0,
from D:/Workspace/C++/LightGBM/include/LightGBM/dataset.h:14,
from D:\Workspace\C++\LightGBM\src\c_api.cpp:9:
D:/Workspace/C++/LightGBM/include/LightGBM/utils/pipeline_reader.h: In static member function 'static size_t LightGBM::PipelineReader::Read(const char, int, const std::function<unsigned int(const char, unsigned int)>&)':
D:/Workspace/C++/LightGBM/include/LightGBM/utils/pipeline_reader.h:53:7: error: 'thread' is not a member of 'std'
std::thread read_worker = std::thread(
^
D:/Workspace/C++/LightGBM/include/LightGBM/utils/pipeline_reader.h:56:8: error: expected primary-expression before ')' token
});
^
D:/Workspace/C++/LightGBM/include/LightGBM/utils/pipeline_reader.h:60:7: error: 'read_worker' was not declared in this scope
read_worker.join();
^
In file included from D:\Workspace\C++\LightGBM\src\capi.cpp:9:0:
D:/Workspace/C++/LightGBM/include/LightGBM/dataset.h: At global scope:
D:/Workspace/C++/LightGBM/inclAutd gel/oLbiaglh tsGcBoMp/ed:a
acsce1tp.lhu:s2.4e6xe: w:a8r:n ienrgr: unrecognized commando liner :opt i'omnu t'e-xW'n oi-ni gnnaomreesdp-aactet r'isbtudt'e sd'o
es not name a type
std::mutex mutex;
^
D:\Workspace\C++\LightGBM\src\boosting\boosting.cpp:1:0: warning: -fPIC ignored for taCrMgaekte F(iallels \c_oldieg is photsgibm.ditr\buiioln indd.empaekndent)
: 7/6*:!
e c^i
e for target 'CMakeFiles/_lightgbm.dir/src/lightgbm_R.cpp.obj' failed
mingw32-make.exe[2]: [CMakeFiles/_lightgbm.dir/src/lightgbm_R.cpp.obj] Error 1
mingw32-make.exe[2]: Waiting for unfinished jobs....
cc1plus.exe: warning: unrecognized command line option '-Wno-ignored-attributes'
D:\Workspace\C++\LightGBM\src\capi.cpp:416:8: error: 'mutex' in namespace 'std' does not name a type
std::mutex mutex;
^
D:\Workspace\C++\LightGBM\src\c_api.cpp: In member function 'void LightGBM::Booster::MergeFrom(const LightGBM::Booster)':
D:\Workspace\C++\LightGBM\src\c_api.cpp:134:21: error: 'mutex' is not a member of 'std'
C M a stdk:e:lock_guarFdi<lsetsd\::mu_tleixg>h tlgobcmk.(dmiurt\ebxui)l;d
m a k e : 9 0 : r e c i p e f o r t a^r
et 'CDM:a\kWoerFkislpeasc/e\liCg+h+\tLgibgmh.tdGiBrM/\ssrrcc/\acp_palpiic.actpipo:n1/3a4p:p2l1i:c ateirorno.rc:p p'.moubtje'x 'f aiisl endo
a mmemibern ofg 'swtd'
2-D:m\Woarkskpacee.Ce+x+\eLig[htG2BM]src:\ c_api.cpp:134:31: error: template argument 1 is i nva[lid
M astdk::leockFguiardl<sted::smut/ex> lolck(imutgex_h);
g b m . d i r / s r^
c/Da:\Wporkpspalce\iC++c\LiaghttGBMi\src\ocanpi./cppa:13p4:3p8: lerroir: c'muatext' iwaso notn de.clarced pin pthi.s socopbe
j ] s td:E:lorck_rguaord<rstd ::m1ute
Reproducible examples
Steps to reproduce
I download the souce code zip. Then I makedir build and run "cmake -G "MinGW Makefiles" ..", both are ok. However, when I run "mingw32-make.exe -j4", it gets error. I want to know how to solve this problem, thanks.