[darwinbuild-dev] Build X11-0.40 fails with No rule to make target `install'

Gerald Boutwell gerald.boutwell at gmail.com
Wed Mar 5 19:50:05 PST 2008


Hello list,

I grep'd the archives but didn't see any relevant posts. I've also
done a bit of work to figure this out, but it seems to me to be an X11
package specific problem.

Vitals:
PowerPC Dual 450
Darwin 8.0.1 (Installed from Binary ISO available from Apple)
subversion 1.3.2 (compiled from scratch)
darwinbuild CVS (03-03-2008, compiled from scratch)

General Background:
I'm fairly new to Darwin. I understand that Darwin is not OS X. I've
played with various Linux distros and am marginally comfortable with
compiling from source.

I'm fairly certain that the format of the disk space used as a build
area is plain HFSPlus journaled (so breaks the darwinbuild suggestion
of UFS or HFSPlus Case-Sensitive).
I created a /Builds/8A428 folder structure, on my hard drive, where I
then performed "darwinbuild -init 8A428" and subsequent commands.

Issue Background:
My first shot at "darwinbuild X11" failed with "make: command not
found". I confirmed that there was no make in the BuildRoot
substructure. Without a good idea of how to get it there, I chose to
perform a "darwinbuild cron" which brought a large list of roots down
which included make.

After "darwinbuild cron" and "darwinbuild crontabs" I figured the make
dependency was resolved, so I fired up another "darwinbuild X11". This
one failed because make could not find an install rule.

Review of the darwinbuild shell script says that it will cd into the
SRCROOT (defined as /SourceCache/X11/X11-0.40) and try to execute
"make install ...". There is no Makefile present in
/SourceCache/X11/X11-0.40 - so the error is correct, there is no
install rule.

I looked into the xc folder (/SourceCache/X11/X11-0.40/xc) and it's
Makefile included an install rule.

I got stuck at this point because I could not figure out how to tell
darwinbuild to run the make install command in the xc folder instead
of the X11-0.40 folder. I thought about adding a Makefile to the
X11-0.40 folder, but figured this was more of a cludge than
reproducible fix. I also wondered how it could be performing a make
install without first performing make.

The full log of the no install rule failure is below.

So, what do I need to do to correctly build X11 using darwinbuild?

Log:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
BUILDING X11-0.40~4 on Wed Mar  5 23:25:53 PST 2008
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Build configuration:
    Build host:           AhLiza
    Build tool:           make
    Build action:         install
    Build number:         8A428
    Host kernel version:  Darwin Kernel Version 8.0.1: Fri Apr 29
12:15:33 PDT 2005; root:xnu-792.obj/RELEASE_PPC
    cc version:           gcc version 3.3 20030304 (Apple Computer,
Inc. build 1809)
    cctools version:      version cctools-576.obj, GNU assembler version 1.38
    make version:         GNU Make 3.80
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Build parameters:
SRCROOT: /SourceCache/X11/X11-0.40
OBJROOT: /private/var/tmp/X11/X11-0.40.obj
SYMROOT: /private/var/tmp/X11/X11-0.40.sym
DSTROOT: /private/var/tmp/X11/X11-0.40.root
RC_ProjectName: X11
RC_ProjectSourceVersion: 0.40
RC_ProjectNameAndSourceVersion: X11-0.40
RC_ProjectBuildVersion: 4
INSTALLED_PRODUCT_ASIDES: YES
MACOSX_DEPLOYMENT_TARGET: 10.4
NEXT_ROOT:
RC_ARCHS: ppc i386
RC_CFLAGS: -pipe -no-cpp-precomp -arch ppc -arch i386
RC_JASPER: YES
RC_NONARCH_CFLAGS: -pipe -no-cpp-precomp
RC_OS: macos
RC_PRIVATE: /private
RC_RELEASE: Tiger
RC_USE_GCC35_FOR_PPC64: YES
RC_XBS: YES
RC_i386: YES
RC_ppc: YES
SEPARATE_STRIP: YES
UNAME_RELEASE: 8.0
UNAME_SYSNAME: Darwin
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Environment variables:
CHROOTED=YES
DARWINBUILD_BUILD=8A428
DARWINXREF_DB_FILE=/Builds/Build8A428/.build/xref.db
DARWIN_BUILDROOT=/Builds/Build8A428
DSTROOT=/private/var/tmp/X11/X11-0.40.root
GROUP=wheel
HOME=/var/root
INSTALLED_PRODUCT_ASIDES=YES
LOGNAME=root
MACOSX_DEPLOYMENT_TARGET=10.4
NEXT_ROOT=
OBJROOT=/private/var/tmp/X11/X11-0.40.obj
PATH=/bin:/sbin:/usr/bin:/usr/sbin/:/usr/local/bin:/usr/local/sbin
RC_ARCHS=ppc i386
RC_CFLAGS=-pipe -no-cpp-precomp -arch ppc -arch i386
RC_JASPER=YES
RC_NONARCH_CFLAGS=-pipe -no-cpp-precomp
RC_OS=macos
RC_PRIVATE=/private
RC_ProjectBuildVersion=4
RC_ProjectName=X11
RC_ProjectNameAndSourceVersion=X11-0.40
RC_ProjectSourceVersion=0.40
RC_RELEASE=Tiger
RC_USE_GCC35_FOR_PPC64=YES
RC_XBS=YES
RC_i386=YES
RC_ppc=YES
SEPARATE_STRIP=YES
SHELL=/bin/sh
SRCROOT=/SourceCache/X11/X11-0.40
SYMROOT=/private/var/tmp/X11/X11-0.40.sym
UNAME_RELEASE=8.0
UNAME_SYSNAME=Darwin
USER=root
_=/usr/bin/printenv
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Installed Roots:
CF                   -> b264bbb82bdb0c7aa25bd0bb0f9f28ddbad3fd23
CarbonHeaders.hdrs   -> 93632322447548a2caac77de52fa5515a0204c01
CoreOSMakefiles      -> 1350746aa28c6ef07f0efe8f554e1748fbfdf958
Csu                  -> 6ac48934fd893ea791d9e1bc574bffc4fc72fbef
DirectoryService     -> 280f43fab451de41c8f89a385d0a745561168443
ICU                  -> 5fc5a52f209a9194a05d19c2b9f245d83b75faf8
IOKitUser            -> 1e4ead012704c8a525c57c611062e0b568a81b39
Libc_headers.hdrs    -> 2b2c02da762384afba9484594d993d1cf1b96fea
Libm                 -> e7c72b849ad9ac6022a76b9563204ee0adc00ae4
Libmx                -> b9da2b384d44f3397e652cf16a08b4101c9525b4
Libsystem            -> 8bd2c9408d92a280a353f002442001d5796ca4d7
OpenSSL              -> 3a59f4083a3d4a14c78065b97713ac81daf4491b
Security             -> 80d485d6b31df3335a795d43a9464218cfe8726b
architecture.hdrs    -> 79ce051f87c277f9e10934acc7947a85dc3ef195
bash                 -> 7cd8b8a02112e7464dd19197952883ed55fcc833
bootstrap_cmds       -> 34d620f454aa1506d7260c45b7d136ec259032b9
bsdmake              -> 8f7d9db5bb069f4ef9aa131fb22f542fa91d1495
bsm                  -> 202b1b62e85f868ee5af8dd0f75e407869e4e2e6
cctools              -> b3ce07830230187d119e9fd78427ebf33839a6a8
configd              -> 77f0b5834ce412f5c2e3543783587d2482a186a8
cxxfilt              -> 0f1c8cd05e58cd26177a799e8689fbd6e5a460d0
developer_cmds       -> 97de821bdf2d4bf6ae45dba30c883ef1df42c805
dyld                 -> 79498abcc7ddf0e64c0c95b9ae3fc197ab1b8dc5
file_cmds            -> c315ff919e144c3c0a6b6dcab27ddab963f862c5
files                -> 4b70824037e82adae9fae9ac460c4b01aa587e1d
gcc_os               -> 13a3a65cfef230944a81065b4cc2b836f1191015
gcc_select           -> b4e81cd0ef56b531db656087e45cb3fb4e38df2c
gnumake              -> 516944e5a6359a87ee20c316efed975ad885a2bb
gnuzip               -> 6bd9257162f7d8bec3ee54cf15b3efef16dba0fc
libedit              -> 8de0cfa06994ac04fe3e6a116e0012b87af5f66b
libiconv             -> 8841b8684979b72c207a7f28e7a89130577d00e7
misc_cmds            -> a044d8cb7eaf3e553b40ecbb50185a07e4acb609
ncurses              -> b2504667eb0fe184182d64daf5f0c77876bc2f42
netinfo              -> 9a4986cf8c1f30e724f1b8b0ad4f2c348cbd26e8
objc4                -> 2854b6f582e66a66302dabf61d5b7c7aa8953e38
pam                  -> ab66376a48b52e7009f7dbc853649ea10094b3c1
passwordserver_sasl  -> 206d59dfbb1daaf3b1a6a9c69cecab983fb4228f
shell_cmds           -> fbef044eafb1359dbc49142b9bf115c381332833
system_cmds          -> 5d2e40b16237a9d5525fcc287f3749c3d3fc70b5
text_cmds            -> 317b58a3b6190559c7ff33160e012e1fa1e63af1
xnu.hdrs             -> b10bb94f704d916e7568b642b20cd80caad3cdf8
zlib                 -> 447c961e74f145a75de72e0b0312e53c818fb93f
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
make install  "SRCROOT=/SourceCache/X11/X11-0.40"
"OBJROOT=/private/var/tmp/X11/X11-0.40.obj"
"SYMROOT=/private/var/tmp/X11/X11-0.40.sym"
"DSTROOT=/private/var/tmp/X11/X11-0.40.root" "RC_ProjectName=X11"
"RC_ProjectSourceVersion=0.40"
"RC_ProjectNameAndSourceVersion=X11-0.40" "RC_ProjectBuildVersion=4"
"INSTALLED_PRODUCT_ASIDES=YES" "MACOSX_DEPLOYMENT_TARGET=10.4"
"NEXT_ROOT=" "RC_ARCHS=ppc i386" "RC_CFLAGS=-pipe -no-cpp-precomp
-arch ppc -arch i386" "RC_JASPER=YES" "RC_NONARCH_CFLAGS=-pipe
-no-cpp-precomp" "RC_OS=macos" "RC_PRIVATE=/private"
"RC_RELEASE=Tiger" "RC_USE_GCC35_FOR_PPC64=YES" "RC_XBS=YES"
"RC_i386=YES" "RC_ppc=YES" "SEPARATE_STRIP=YES" "UNAME_RELEASE=8.0"
"UNAME_SYSNAME=Darwin" < /dev/null
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Build log begins here:

make: *** No rule to make target `install'.  Stop.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 BUILD TIME: 0h 0m 0s
EXIT STATUS: 2


More information about the darwinbuild-dev mailing list