[PATCH] Build error with buildworld and -j1 on a memory backed /usr/obj

Garrett Cooper yanefbsd at gmail.com
Sat Jun 26 21:43:22 UTC 2010


On Sat, Jun 26, 2010 at 2:14 PM, Garrett Cooper <yanefbsd at gmail.com> wrote:
>    The build for r209530 failed with a clean workspace and a clean
> /usr/obj/scratch. I was building with a memory-disk backed /usr/obj.
> Here's the error:
>
> ===> usr.bin/ar (depend)
> lex -t  /scratch/freebsd/current/usr.bin/ar/acplex.l > acplex.c
> yacc -d /scratch/freebsd/current/usr.bin/ar/acpyacc.y
> cp y.tab.c acpyacc.c
> rm -f .depend
> mkdep -f .depend -a    -I. -I/scratch/freebsd/current/usr.bin/ar
> /scratch/freebsd/current/usr.bin/ar/ar.c acplex.c acpyacc.c
> /scratch/freebsd/current/usr.bin/ar/read.c
> /scratch/freebsd/current/usr.bin/ar/util.c
> /scratch/freebsd/current/usr.bin/ar/write.c
> /scratch/freebsd/current/usr.bin/ar/ar.c:66:21: error: archive.h: No
> such file or directory
> /scratch/freebsd/current/usr.bin/ar/acpyacc.y:35:21: error: archive.h:
> No such file or directory
> /scratch/freebsd/current/usr.bin/ar/acpyacc.y:36:27: error:
> archive_entry.h: No such file or directory
> /scratch/freebsd/current/usr.bin/ar/read.c:33:21: error: archive.h: No
> such file or directory
> /scratch/freebsd/current/usr.bin/ar/read.c:34:27: error:
> archive_entry.h: No such file or directory
> /scratch/freebsd/current/usr.bin/ar/write.c:34:21: error: archive.h:
> No such file or directory
> /scratch/freebsd/current/usr.bin/ar/write.c:35:27: error:
> archive_entry.h: No such file or directory
> mkdep: compile failed
> *** Error code 1
>
> Stop in /scratch/freebsd/current/usr.bin/ar.
> *** Error code 1
>
> Stop in /scratch/freebsd/current/usr.bin.
> *** Error code 1
>
> Stop in /scratch/freebsd/current.
> *** Error code 1
>
> Stop in /scratch/freebsd/current.
> *** Error code 1
>
> Stop in /scratch/freebsd/current.
>
>    I think this is due to dependency issues with libarchive. I had
> some changes in my p4 workspace to address the libarchive dependency
> for libpkg (for work that's incoming in the next couple of months)
> that Warner helped me out with, and once I applied the change things
> worked. The patch is attached.
>
> Thanks,
> -Garrett
>
> PS This might also resolve some other outstanding issues related to
> build dependencies with libarchive, like with the ia64 lzma issue that
> DES and a few other folks have been munging over for a while now.

Sorry. The old patch contained some noise from other changes I was
testing out earlier. This cleans it up.
Thanks,
-Garrett
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-libarchive-dependencies.diff
Type: application/octet-stream
Size: 1800 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20100626/04ee6e02/fix-libarchive-dependencies.obj


More information about the freebsd-hackers mailing list