|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
*** Error code 1 building OpenBSD 5.1-stable from source
After successfully installing 5.1, I had a lot of trouble building 5.1-stable from source.
I built the kernel ok in /usr/sys and rebooted fine. But when I tried a "make build" of userland in /usr/src then this error appeared: Quote:
After trying different things for several days, I came upon this thread in gmane which fixed the problem: http://permalink.gmane.org/gmane.os.openbsd.tech/16531 I had to edit the /cvs/src/gnu/usr.bin/binutils/gdb/Makefile.in and change the execution of observer.sh to have "sh -e" in front: observer.h: observer.sh doc/observer.texi - ${srcdir}/observer.sh h ${srcdir}/doc/observer.texi observer.h + sh -e ${srcdir}/observer.sh h ${srcdir}/doc/observer.texi observer.h observer.inc: observer.sh doc/observer.texi - ${srcdir}/observer.sh inc ${srcdir}/doc/observer.texi observer.inc + sh -e ${srcdir}/observer.sh inc ${srcdir}/doc/observer.texi observer.inc |
|
|||
/usr/src/sys
Quote:
|
|
|||
Thank you ocicat and jggimi for the responses.
Quote:
The DESTDIR is a possible issue. Before building 5.1-stable, I successfully built 5.0-stable and left two exports in the root .profile from building the 5.0-stable distribution: export DESTDIR=/usr/dest export RELEASEDIR=/usr/rel I had to remove these before the 5.1 "make build" would allow the world to be built but they were probably in place during the "make distrib-dirs" cd /usr/src/etc && env DESTDIR=/ make distrib-dirs Doesn't the env DESTDIR override the previous export DESTDIR? I did not really have any problems with the "make build" except the observer.sh script. The observer.sh shell script would not execute without an explicit "sh" in front of it. After the "make build" failed I looked at the execute permissions on the script and they appeared to be 755. The build ran for over two hours making everything ok up to the point where the Gnu gdb debugger was built and the observer.sh script was part of the gdb build. Quote:
Is there a checksum somewhere for the src.tar.gz, and sys.tar.gz files? In the recent past I successfully built 5.0-stable using the patch method. For 5.1-stable I tried both the patch method and the CVS method and both failed with the observer.sh script. The usual cause of this kind of problem is a lack of execute permissions on the file. But why only the observer.sh script? And why did the build work fine for two hours before it got to the Gnu gdb part and the observer.sh script? And why did not any other scripts fail? I changed the execution of observer.sh to "sh -e observer.sh" and the whole build worked fine. |
|
|||
Quote:
Quote:
|
|
||||
I missed this question, and wanted to take a moment to answer it.
Quote:
These tarballs are -release sources, converted from a CVS working directory into a standard file hierarchy via the cvs(1) export command. To use them, you would have unpacked these tarballs, and then converted the directory structure back into a CVS working directory with a cvs(1) checkout command. The process is described under FAQ 5.3.3 in "Pre-loading the tree" and in the AnonCVS FAQ under "Getting Started with Anonymous CVS". Last edited by jggimi; 14th May 2012 at 05:14 PM. Reason: clarity |
|
|||
Thank you ocicat and jggimi.
Quote:
As a new step in my userland build process I now do this: unset DESTDIR unset RELEASEDIR And I am now able to build userland without modifying any makefiles. (I just built the kernel and userland from sources with a manual patch.) This bug has caught others in the past as well: http://www.monkey.org/openbsd/archiv.../msg00346.html http://www.mail-archive.com/misc@ope.../msg54292.html And Amaud who created a work-around: http://permalink.gmane.org/gmane.os.openbsd.tech/16531 After searching Google, Amaud's fix worked for me. But perhaps the 'unset DESTDIR' and 'unset RELEASEDIR' commands should be put into the FAQ? Or even better yet put into the userland 'make build' process itself? Last edited by comet--berkeley; 17th May 2012 at 05:53 AM. Reason: spelling |
|
||||
The unset is articulated in release(8).
To propose any FAQ change, I recommend you:
Last edited by jggimi; 16th May 2012 at 03:33 PM. Reason: typo |
|
|||
I had not seen the release(8) man page before.
It clearly shows doing the unset DESTDIR RELEASEDIR immediately after the make release And it probably is best not to set DESTDIR and RELEASEDIR in the .profile as ocicat says: Quote:
Maybe the FAQ needs to show the unset after the make release and explain that leaving them set can mess up the port builds as well. Thanks again guys. Last edited by comet--berkeley; 17th May 2012 at 06:23 AM. Reason: spelling |
|
||||
Quote:
|
|
|||
Quote:
Made changes to faq/faq5.html and used cvs diff -u to create a unified diff. |
|
|||
Quote:
Stick with our latest release and apply the patches by hand. http://www.openbsd.org/stable.html That is what I have done in the past without having to use CVS. In that case it would be nice to have a checksum for both the source tarballs and for the patches. |
|
||||
There are three bullets, and that is one of your three choices for maintenance. That choice is often refereed to as "-release plus errata" to distinguish it from -stable, which is the patch branch. There are stable patches which are committed, from time to time, without being posted as errata on the project website. There may be differences, then, ibetween the two options for maintenance.
Nice job on the Email to www@. Last edited by jggimi; 19th May 2012 at 02:20 AM. Reason: typo, missing sentence |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PHP.net breach: Concern over safety of source code | J65nko | News | 2 | 24th March 2011 09:57 AM |
explore source code for installed program | bsdnewbie999 | OpenBSD General | 1 | 23rd February 2009 06:13 AM |
Trying to compile GLUT source code on freebsd. | welkin | Programming | 0 | 11th January 2009 03:15 PM |
Error building world 6.3 -> 6.4 | chavez243 | FreeBSD Installation and Upgrading | 1 | 7th January 2009 02:31 PM |
Source code for ed? | matt | FreeBSD Ports and Packages | 1 | 21st October 2008 08:18 PM |