[Python-Dev] Problems building python2.4 SRPM on RHEL4 x64
Hi, I appologize if this is not the right place to post this, but searching through the old archives, I ran across the same issue from 3 years ago, but I cannot find the resolution to it. Currently, I am trying to build the python2.4 SRPM from Python.org on a CentOS4.6_x64 platform, but the build is failing with a very non-descript error message. + cd /var/tmp/python2.4-2.4-root/usr/bin + mv -f pydoc pydoc2.4 + cd /var/tmp/python2.4-2.4-root/usr/bin + mv -f idle idle2.4 + echo '#!/bin/bash' + echo 'exec /usr/bin/python2.4 /usr/lib64/python2.4/idlelib/idle.py' + chmod 755 /var/tmp/python2.4-2.4-root/usr/bin/idle2.4 + cp -a Tools /var/tmp/python2.4-2.4-root/usr/lib64/python2.4 + rm -f mainpkg.files + find /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/lib-dynload -type f + sed 's|^/var/tmp/python2.4-2.4-root|/|' + grep -v -e '_tkinter.so$' error: Bad exit status from /var/tmp/rpm-tmp.55639 (%install) RPM build errors: user jafo does not exist - using root group jafo does not exist - using root user jafo does not exist - using root group jafo does not exist - using root Bad exit status from /var/tmp/rpm-tmp.55639 (%install) The old post I found about this can be found here: http://mail.python.org/pipermail/python-bugs-list/2005-October/030670.html I checked the var/tmp/python2.4-2.4-root/usr/lib64 directories and see plenty of files in there, but not sure what I should be looking for. Can anyone point me in the right direction? Am not sure what to be looking for in order to get this to work. Thanks! Eric ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Problems building python2.4 SRPM on RHEL4 x64
""Martin v. Lwis"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Eric B. schrieb: >> Hi, >> >> I appologize if this is not the right place to post this, but searching >> through the old archives, I ran across the same issue from 3 years ago, >> but >> I cannot find the resolution to it. >> >> Currently, I am trying to build the python2.4 SRPM from Python.org on a >> CentOS4.6_x64 platform, but the build is failing with a very non-descript >> error message. >> >> >> + cd /var/tmp/python2.4-2.4-root/usr/bin >> + mv -f pydoc pydoc2.4 >> + cd /var/tmp/python2.4-2.4-root/usr/bin >> + mv -f idle idle2.4 >> + echo '#!/bin/bash' >> + echo 'exec /usr/bin/python2.4 /usr/lib64/python2.4/idlelib/idle.py' >> + chmod 755 /var/tmp/python2.4-2.4-root/usr/bin/idle2.4 >> + cp -a Tools /var/tmp/python2.4-2.4-root/usr/lib64/python2.4 >> + rm -f mainpkg.files >> + find /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/lib-dynload -type >> f >> + sed 's|^/var/tmp/python2.4-2.4-root|/|' >> + grep -v -e '_tkinter.so$' >> error: Bad exit status from /var/tmp/rpm-tmp.55639 (%install) > > The last command executed imediately before the error output > seems to be > > find > "$RPM_BUILD_ROOT""%{__prefix}"/%{libdirname}/python%{libvers}/lib-dynload > -type f | > sed "s|^${RPM_BUILD_ROOT}|/|" | > grep -v -e '_tkinter.so$' >mainpkg.files > > That is not the last command in the %install script (atleast not > according to the spec file). So it is not at all clear why the > shell should stop executing at that point, and spit out > that error message. > > The only theory I can come up with is that the shell *crashed*. > Can you get hold of the rpm-tmp file (e.g. by asking RPM not > to delete it)? Then run it independently, perhaps under > strace. Forgive the "newbie-ness" to this question, but I'm not quite sure what you mean by the rpm-tmp file; I'm assuming you mean the rpm-temp.45231 shell script that is left in /var/tmp. I tried running that myself from the cmd line using # bash -x rpm-tmp.45231 and it runs properly to completion. If I try running just: # rpmbuild -bi --short-circuit /usr/src/redhat/SPECS/python-2.4.spec it (not surprisingly) exists with the same error message. If I try to run # strace rpmbuild -bi --short-circuit /usr/src/redhat/SPECS/python-2.4.spec I end up with a whole bunch of output I don't understand: . + find /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/lib-dynload -type f + sed 's|^/var/tmp/python2.4-2.4-root|/|' + grep -v -e '_tkinter.so$' [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 14779 --- SIGCHLD (Child exited) @ 0 (0) --- write(2, "error: ", 7error: ) = 7 write(2, "Bad exit status from /var/tmp/rp"..., 53Bad exit status from /var/tmp/rpm-tmp.156 (%install) ) = 53 write(1, "\n\nRPM build errors:\n", 20 RPM build errors: ) = 20 write(2, "Bad exit status from /var/tm"..., 57Bad exit status from /var/tmp/rpm-tmp.156 (%install) ) = 57 open("/usr/lib/rpm/rpmrc", O_RDONLY)= 3 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 fstat(3, {st_mode=S_IFREG|0644, st_size=11452, ...}) = 0 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a983ac000 poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 1000) = 1 read(3, "#/*! \\page config_rpmrc Default "..., 8192) = 8192 poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 1000) = 1 read(3, "t: armv4l: armv3l\narch_compat: a"..., 8192) = 3260 poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 1000) = 1 . > If it's indeed the case that the shell crashes, something > is seriously wrong with your operating system. I would be surprised if it was something wrong with the OS at is a brand spanking new install. In fact, I installed it specifically in order to build python2.4 on RHEL4 x64 so I can then install the rpm pkg on my production x64 server (I only managed to find precompiled i386 binaries for RHEL4). Is it possible I'm missing some libraries somewhere? I don't know if there is any way I can complete the rpm build manually? I've looked at the SPEC file, but don't see anything particularly special in there, nor am I sure how I can modify this rpm-tmp script that it runs to skip that line and see if it can continue without it. (Am not very well versed with building srpms). Any ideas what I can do/try next? Thanks, Eric ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Problems building python2.4 SRPM on RHEL4 x64
>>> I appologize if this is not the right place to post this, but searching >>> through the old archives, I ran across the same issue from 3 years ago, >>> but >>> I cannot find the resolution to it. >>> >>> Currently, I am trying to build the python2.4 SRPM from Python.org on a >>> CentOS4.6_x64 platform, but the build is failing with a very >>> non-descript >>> error message. >>> >>> >>> + cd /var/tmp/python2.4-2.4-root/usr/bin >>> + mv -f pydoc pydoc2.4 >>> + cd /var/tmp/python2.4-2.4-root/usr/bin >>> + mv -f idle idle2.4 >>> + echo '#!/bin/bash' >>> + echo 'exec /usr/bin/python2.4 /usr/lib64/python2.4/idlelib/idle.py' >>> + chmod 755 /var/tmp/python2.4-2.4-root/usr/bin/idle2.4 >>> + cp -a Tools /var/tmp/python2.4-2.4-root/usr/lib64/python2.4 >>> + rm -f mainpkg.files >>> + find /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/lib-dynload -type >>> f >>> + sed 's|^/var/tmp/python2.4-2.4-root|/|' >>> + grep -v -e '_tkinter.so$' >>> error: Bad exit status from /var/tmp/rpm-tmp.55639 (%install) >> >> The last command executed imediately before the error output >> seems to be >> >> find >> "$RPM_BUILD_ROOT""%{__prefix}"/%{libdirname}/python%{libvers}/lib-dynload >> -type f | >> sed "s|^${RPM_BUILD_ROOT}|/|" | >> grep -v -e '_tkinter.so$' >mainpkg.files >> >> That is not the last command in the %install script (atleast not >> according to the spec file). So it is not at all clear why the >> shell should stop executing at that point, and spit out >> that error message. I've done a little more debugging to try to determine where the problem lies and ran across some interesting things. 1) I first edited the SPECS file and commented out the find "$RPM_BUILD_ROOT""%{__prefix}"/%{libdirname}/python%{libvers}/lib-dynload -type f | sed "s|^${RPM_BUILD_ROOT}|/|" | grep -v -e '_tkinter.so$' >mainpkg.files line. If I remove this line, the rpmbuild no longer crashes, but does still fail, citing missing files in the lib64 directories. + rm -f /tmp/python-rpm-files.4859 + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip + /usr/lib/rpm/brp-strip-static-archive + /usr/lib/rpm/brp-strip-comment-note Processing files: python2.4-2.4-1pydotorg error: File not found by glob: /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/*.txt error: File not found by glob: /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/*.py* error: File not found: /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/pdb.doc error: File not found: /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/profile.doc error: File not found: /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/curses error: File not found: /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/distutils error: File not found: /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/encodings error: File not found: /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/plat-linux2 error: File not found: /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/site-packages error: File not found: /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/test error: File not found: /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/xml error: File not found: /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/email error: File not found: /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/compiler error: File not found: /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/bsddb error: File not found: /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/hotshot error: File not found: /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/logging error: File not found: /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/lib-old Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.95118 + umask 022 + cd /usr/src/redhat/BUILD + cd Python-2.4 + DOCDIR=/var/tmp/python2.4-2.4-root/usr/share/doc/python2.4-2.4 + export DOCDIR + rm -rf /var/tmp/python2.4-2.4-root/usr/share/doc/python2.4-2.4 + /bin/mkdir -p /var/tmp/python2.4-2.4-root/usr/share/doc/python2.4-2.4 + cp -pr Misc/README Misc/cheatsheet Misc/Porting /var/tmp/python2.4-2.4-root/usr/share/doc/python2.4-2.4 + cp -pr LICENSE Misc/ACKS Misc/HISTORY Misc/NEWS /var/tmp/python2.4-2.4-root/usr/share/doc/python2.4-2.4 + exit 0 Processing files: python2.4-devel-2.4-1pydotorg error: File not found: /var/tmp/python2.4-2.4-root/usr/lib64/python2.4/config Processing files: python2.4-tools-2.4-1pydotorg Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <= 3.0.3-1 Requires: /bin/bash /bin/sh /usr/bin/env 2) If I run the same find command in the /var/tmp/python2.4-2.4-root/usr/lib/python2.4/lib-dynload (instead of the lib64 directory), then I find a whole bunch of files, whereas the lib64/ directory returns no files. It seems as though the make script is either installing files in the wrong location, or the SPECS is expecting files in the lib64/ directory when instead they are in the lib/ directory. Anyone have any ideas? Thanks, Eric ___ Python-Dev mailing list Python-Dev@python.o