From kde-windows Tue Feb 15 00:17:09 2011 From: "Ralf Habacker" Date: Tue, 15 Feb 2011 00:17:09 +0000 To: kde-windows Subject: Re: Review Request: cannot compile qt if kderoot path is too long Message-Id: <20110215001709.8178.69134 () vidsolbach ! de> X-MARC-Message: https://marc.info/?l=kde-windows&m=129772909825693 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0140766045==" --===============0140766045== Content-Type: multipart/alternative; boundary="===============6878959024532300335==" --===============6878959024532300335== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable > On Feb. 14, 2011, 3:24 p.m., Wolfgang Rohdewald wrote: > > now I actually found a note in the wiki about a short path option in kd= esettings. > > = > > but I lost too much time with this - I do want to make sure this does n= ever happen again. emerge provides two strategies in thia area: = 1. path substition by drive letters, which has to be configured in kdesetti= ngs.bat (you already refered to this) = 2. short path usage - replace pathes by the short form. This feature is cur= rently package based and could be activated by setting self.subinfo.options= .useShortPathes - see EmergeBase.__adjustPath() and where is is used for m= ore details. = both strategies could be used together = There are several limits in this area - nmake, mingw32-make, cmake, command= line, each one has its own different limit I found some related thread: = http://lists.kde.org/?l=3Dkde-windows&m=3D125717156605667&w=3D2 http://www.cmake.org/pipermail/cmake/2008-August/023279.html http://lists.kde.org/?l=3Dkde-windows&m=3D124222975100566&w=3D2 >From my personal experience does mingw builds have more problems as msvc bu= ilds and the most annoying package is qt = Ralf = - Ralf ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://svn.reviewboard.kde.org/r/6483/#review9838 ----------------------------------------------------------- On Feb. 14, 2011, 3:18 p.m., Wolfgang Rohdewald wrote: > = > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://svn.reviewboard.kde.org/r/6483/ > ----------------------------------------------------------- > = > (Updated Feb. 14, 2011, 3:18 p.m.) > = > = > Review request for kde-windows. > = > = > Summary > ------- > = > On windows, gcc/g++ only take a maximum of 8192 chars for command line ar= guments. If they get more they will not complain but strange things will ha= ppen like compiler segfaulting or gcc misinterpreting the arguments at arou= nd position 8192. I did not report this as a gcc bug, maybe somebody else a= lready is registered wherever that can be done. I was using mingw4. > = > So emerge.py now first checks - it allows a maximum of 10 chars like in c= :\kderoot. This results in command line lengths up to around 7700 (maybe mo= re, this is what I saw). > = > I was using kderootsvn which makes gcc die when compiling c:\kderootsvn\d= ownload\svn-src\qt\src\3rdparty\sqlite\sqlite3.c, the command line having a= length of 8214 > = > When this review is closed, I will update the emerge wiki > = > = > Diffs > ----- > = > /trunk/kdesupport/emerge/bin/emerge.py 1220611 = > = > Diff: http://svn.reviewboard.kde.org/r/6483/diff > = > = > Testing > ------- > = > = > Thanks, > = > Wolfgang > = > --===============6878959024532300335== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable
This is an automatically generated e-mail. To reply, visit: http://svn.reviewb= oard.kde.org/r/6483/

On February 14th, 2011, 3:24 p.m., Wolfgang= Rohdewald wrote:

now I act=
ually found a note in the wiki about a short path option in kdesettings.

but I lost too much time with this - I do want to make sure this does never=
 happen again.
emerge prov=
ides two strategies in thia area: =


1. path substition by drive letters, which has to be configured in kdesetti=
ngs.bat (you already refered to this) =

2. short path usage - replace pathes by the short form. This feature is cur=
rently package based and could be activated by setting self.subinfo.options=
.useShortPathes -  see EmergeBase.__adjustPath() and where is is used for m=
ore details. =

both strategies could be used together =


There are several limits in this area - nmake, mingw32-make, cmake, command=
 line, each one has its own different limit

I found some related thread: =


http://lists.kde.org/?l=3Dkde-windows&m=3D125717156605667&w=3D2
http://www.cmake.org/pipermail/cmake/2008-August/023279.html
http://lists.kde.org/?l=3Dkde-windows&m=3D124222975100566&w=3D2

>From my personal experience does mingw builds have more problems as msvc bu=
ilds and the most annoying package is qt =


Ralf =



- Ralf


On February 14th, 2011, 3:18 p.m., Wolfgang Rohdewald wrote:

Review request for kde-windows.
By Wolfgang Rohdewald.

Updated Feb. 14, 2011, 3:18 p.m.

Descripti= on

On windows, gcc/g++ only take a maximum of 8192 chars for co=
mmand line arguments. If they get more they will not complain but strange t=
hings will happen like compiler segfaulting or gcc misinterpreting the argu=
ments at around position 8192. I did not report this as a gcc bug, maybe so=
mebody else already is registered wherever that can be done. I was using mi=
ngw4.

So emerge.py now first checks - it allows a maximum of 10 chars like in c:\=
kderoot. This results in command line lengths up to around 7700 (maybe more=
, this is what I saw).

I was using kderootsvn which makes gcc die when compiling c:\kderootsvn\dow=
nload\svn-src\qt\src\3rdparty\sqlite\sqlite3.c, the command line having a l=
ength of 8214

When this review is closed, I will update the emerge wiki

Diffs=

  • /trunk/kdesupport/emerge/bin/emerge.py (12= 20611)

View Diff

--===============6878959024532300335==-- --===============0140766045== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kde-windows mailing list Kde-windows@kde.org https://mail.kde.org/mailman/listinfo/kde-windows --===============0140766045==--