[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Subversion Compiler Optimizations Affect Execution

From: Mike Schroll <svn_at_LogicX.us>
Date: 2005-04-07 15:45:38 CEST

Configuring Subversion on a new i386 FreeBSD 5.3-RELEASE box I decided
to turn on the following optimizations in make.conf:

CPUTYPE?=p4
CFLAGS= -Os -pipe

gcc (GCC) 3.4.2 [FreeBSD] 20040728

While compiling the subversion port subversion-1.1.3 with these flags,
compilation succeeds w/o error, however errors occur during execution.
While using TortoiseSVN on windows, and doing an svn+ssh checkout I
consistently get 'svn: Malformed network data' errors at a point, and am
unable to further the checkout process on repeated attempts.

I've found the only way to resolve this issue was by recompiling
subversion with the following:

CPUTYPE?=p4
CFLAGS= -O -pipe

This information may be handy for anyone else getting this nondescript
error from subversion. I'm not knowledgeable enough in debugging to try
to tackle where the problem might be. I encourage anyone else to try to
duplicate this issue. I get the same issue when doing -O2.

P.S.
from IRC: OneOfOne <irc://irc.freenode.net/OneOfOne,isnick>
-march=pentium4 -mtune=pentium4 -O2 -ftracer -pipe -fomit-frame-pointer
-mfpmath=sse -ffast-math -funit-at-a-time << my cflags (gcc v3.4.3-20050110)
In some quick, informal testing, no errors are apparant.
This may lead to being a FreeBSD issue, or perhaps just my particular
system.

-Mike Schroll

Applied Networking System Administration Major
Rochester Institute of Technology
Rochester, NY

Information Sciences and Technology Major
Penn State University
University Park, PA

svn@LogicX.us
AIM: L0g1cX
http://MSchroll.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 7 15:46:40 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.