You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2009-05-23.19:25:11.229>created_at=<Date2009-05-23.18:19:56.411>labels= ['build']
title='Python fails to build with Subversion 1.7'updated_at=<Date2014-06-28.23:15:48.955>user='https://bugs.python.org/Arfrever'
svnversion program from Subversion 1.7 (currently trunk), when invoked
on unversioned directory, prints "Unversioned directory" instead
"exported". This change in output is intentional and won't be reverted.
It causes build failure:
x86_64-pc-linux-gnu-gcc -pthread -c -fno-strict-aliasing -DNDEBUG -
-DSVNVERSION="LC_ALL=C svnversion ." -o Modules/getbuildinfo.o
./Modules/getbuildinfo.c
x86_64-pc-linux-gnu-gcc: directory": No such file or directory
: warning: missing terminating " character
./Modules/getbuildinfo.c: In function '_Py_svnversion':
./Modules/getbuildinfo.c:48: error: missing terminating " character
./Modules/getbuildinfo.c:48: error: expected expression before ';'
token
make: *** [Modules/getbuildinfo.o] Error 1
I'm attaching the patch which fixes this problem and also updates
expected output of svnversion.
Suman, Jon: This issue was closed five years ago and the fixes for it have long been out in the field. Comments on closed issues are likely to be overlooked and not acted on. If you are having a current problem, you should open a new issue, documenting in particular what OS versions and shell you are using, the pertinent values (SVNVERSION, HGVERSION) from the generated Makefile, and the output from:
echo LC_ALL=C echo Unversioned directory
FWIW, I was unable to reproduce the failure on a different Unix platform.
Activity
Arfrever commentedon May 23, 2009
svnversion program from Subversion 1.7 (currently trunk), when invoked
on unversioned directory, prints "Unversioned directory" instead
"exported". This change in output is intentional and won't be reverted.
It causes build failure:
x86_64-pc-linux-gnu-gcc -pthread -c -fno-strict-aliasing -DNDEBUG -
-DSVNVERSION="
LC_ALL=C svnversion ." -o Modules/getbuildinfo.o./Modules/getbuildinfo.c
x86_64-pc-linux-gnu-gcc: directory": No such file or directory
: warning: missing terminating " character
./Modules/getbuildinfo.c: In function '_Py_svnversion':
./Modules/getbuildinfo.c:48: error: missing terminating " character
./Modules/getbuildinfo.c:48: error: expected expression before ';'
token
make: *** [Modules/getbuildinfo.o] Error 1
I'm attaching the patch which fixes this problem and also updates
expected output of svnversion.
Arfrever commentedon May 23, 2009
I'm attaching improved patch.
benjaminp commentedon May 23, 2009
Fixed in r72871.
jimjjewett commentedon May 30, 2009
Would this patch mean that users of pre-1.7 subversion would get build
failures? Is it possible to support both forms of wording?
benjaminp commentedon May 30, 2009
2009/5/30 Jim Jewett <report@bugs.python.org>:
Yes, and it does.
sumanpas commentedon Jun 24, 2014
I am trying to install Python 2.7.7 or 2.7.3 in one of my linux machine which has RHEL 6.4.
I am getting the same error, that is mentioned in this bug. I am pasting it below. Please let me know, what should i do here.
ser Python-2.7.7]# make
gcc -pthread -c -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE
-DSVNVERSION=""
LC_ALL=C echo Unversioned directory""-DHGVERSION=""
LC_ALL=C""-DHGTAG=""
LC_ALL=C""-DHGBRANCH=""
LC_ALL=C""-o Modules/getbuildinfo.o ./Modules/getbuildinfo.c
gcc.orig: directory": No such file or directory
: warning: missing terminating " character
./Modules/getbuildinfo.c: In function ?_Py_svnversion?:
./Modules/getbuildinfo.c:63: error: missing terminating " character
./Modules/getbuildinfo.c:63: error: expected expression before ?;? token
make: *** [Modules/getbuildinfo.o] Error 1
jcon commentedon Jun 28, 2014
I encountered the same problem w/ 2.7.7.
Temporary workaround:
SVNVERSION="Unversioned directory" ./configure
make
...
ned-deily commentedon Jun 28, 2014
Suman, Jon: This issue was closed five years ago and the fixes for it have long been out in the field. Comments on closed issues are likely to be overlooked and not acted on. If you are having a current problem, you should open a new issue, documenting in particular what OS versions and shell you are using, the pertinent values (SVNVERSION, HGVERSION) from the generated Makefile, and the output from:
echo
LC_ALL=C echo Unversioned directoryFWIW, I was unable to reproduce the failure on a different Unix platform.