yaberauneya | 2d8710f | 2009-10-25 06:35:08 +0000 | [diff] [blame] | 1 | Requirements |
subrata_modak | aba85b9 | 2008-12-11 10:30:33 +0000 | [diff] [blame] | 2 | ------------------- |
yaberauneya | fbc9045 | 2009-11-06 18:21:37 +0000 | [diff] [blame] | 3 | |
Petr Vorel | dfda9ec | 2020-05-14 19:34:48 +0200 | [diff] [blame] | 4 | Tools are needed for LTP compilation. They should be available as a |
| 5 | package in any Linux distribution (no specific version is required). |
subrata_modak | 3960cc8 | 2009-01-20 10:47:29 +0000 | [diff] [blame] | 6 | |
Petr Vorel | dfda9ec | 2020-05-14 19:34:48 +0200 | [diff] [blame] | 7 | Debian / Ubuntu |
| 8 | # apt install gcc git make pkgconf autoconf automake bison flex m4 linux-headers-$(uname -r) libc6-dev |
subrata_modak | 16147ad | 2009-01-21 11:30:52 +0000 | [diff] [blame] | 9 | |
Petr Vorel | dfda9ec | 2020-05-14 19:34:48 +0200 | [diff] [blame] | 10 | OpenSUSE / SLES |
| 11 | # zypper install gcc git make pkgconf autoconf automake bison flex m4 linux-glibc-devel glibc-devel |
subrata_modak | 16147ad | 2009-01-21 11:30:52 +0000 | [diff] [blame] | 12 | |
Petr Vorel | dfda9ec | 2020-05-14 19:34:48 +0200 | [diff] [blame] | 13 | Fedora / CentOS / RHEL |
| 14 | # yum install gcc git make pkgconf autoconf automake bison flex m4 kernel-headers glibc-headers |
subrata_modak | 3960cc8 | 2009-01-20 10:47:29 +0000 | [diff] [blame] | 15 | |
Petr Vorel | dfda9ec | 2020-05-14 19:34:48 +0200 | [diff] [blame] | 16 | These are minimal build requirements for git compilation. Some tests require |
| 17 | extra development files of some libraries, see travis/*.sh. There is also |
| 18 | support for other Linux distributions not listed here. |
yaberauneya | 4f493d8 | 2009-11-03 16:12:12 +0000 | [diff] [blame] | 19 | |
Petr Vorel | dfda9ec | 2020-05-14 19:34:48 +0200 | [diff] [blame] | 20 | autoconf, automake, m4 (autoconf requirement), git and pkgconf (or pkg-config |
| 21 | on older distros) are required only for compilation from git (used for creating |
| 22 | configure file). |
yaberauneya | 2d8710f | 2009-10-25 06:35:08 +0000 | [diff] [blame] | 23 | |
Petr Vorel | dfda9ec | 2020-05-14 19:34:48 +0200 | [diff] [blame] | 24 | pkgconf is recommended also for compilation from tarball as it |
| 25 | does automatic detection of some library support. |
yaberauneya | 2d8710f | 2009-10-25 06:35:08 +0000 | [diff] [blame] | 26 | |
Petr Vorel | dfda9ec | 2020-05-14 19:34:48 +0200 | [diff] [blame] | 27 | GNU Bison / Berkeley Yacc is required for ltp-scanner. |
Petr Vorel | b009824 | 2020-03-17 19:58:19 +0100 | [diff] [blame] | 28 | |
yaberauneya | bf3aeec | 2009-11-07 01:30:29 +0000 | [diff] [blame] | 29 | Configuration |
yaberauneya | 2d8710f | 2009-10-25 06:35:08 +0000 | [diff] [blame] | 30 | ------------------- |
Mike Frysinger | e168ad2 | 2014-06-18 01:55:46 -0400 | [diff] [blame] | 31 | |
Petr Vorel | 400ac9b | 2019-11-04 07:31:41 +0100 | [diff] [blame] | 32 | Configuration requires autoconf: |
yaberauneya | 2d8710f | 2009-10-25 06:35:08 +0000 | [diff] [blame] | 33 | |
Petr Vorel | 400ac9b | 2019-11-04 07:31:41 +0100 | [diff] [blame] | 34 | $ cd $TOP_SRCDIR |
| 35 | $ make autotools |
| 36 | $ mkdir -p $TOP_BUILDDIR |
| 37 | $ cd $TOP_BUILDDIR && ./configure # configure args go here, e.g. CC=$CC, LDFLAGS=$LDFLAGS, etc |
yaberauneya | 2d8710f | 2009-10-25 06:35:08 +0000 | [diff] [blame] | 38 | |
| 39 | - $TOP_SRCDIR and $TOP_BUILDDIR are the same for in-build-tree scenarios. |
| 40 | - $TOP_SRCDIR and $TOP_BUILDDIR differ for out-of-build-tree scenarios. |
| 41 | |
| 42 | See the In-build-tree and Out-of-build-tree sections below for more details on |
Petr Vorel | 400ac9b | 2019-11-04 07:31:41 +0100 | [diff] [blame] | 43 | what to do next. |
yaberauneya | 2d8710f | 2009-10-25 06:35:08 +0000 | [diff] [blame] | 44 | |
| 45 | Compiling LTP |
| 46 | ------------------- |
| 47 | |
| 48 | In-build-tree |
| 49 | ------------------- |
| 50 | In-build-tree support is when you build binaries (applications, binary objects) |
| 51 | in the same directory where the source files reside. |
| 52 | |
Garrett Cooper | e5387ce | 2010-08-18 02:00:52 -0700 | [diff] [blame] | 53 | $ make all |
| 54 | $ make \ |
yaberauneya | 2d8710f | 2009-10-25 06:35:08 +0000 | [diff] [blame] | 55 | "DESTDIR=$SYSROOT" \ |
| 56 | SKIP_IDCHECK=[0|1] \ |
| 57 | install |
| 58 | |
| 59 | - Specifying DESTDIR is optional, but required when installing to a non-host |
| 60 | sysroot, as opposed to the host system's sysroot. |
| 61 | - Specify SKIP_IDCHECK=1 if and when you don't want to modify /etc/{group,passwd} |
| 62 | on the target system's sysroot. |
subrata_modak | aba85b9 | 2008-12-11 10:30:33 +0000 | [diff] [blame] | 63 | |
Cyril Hrubis | 70d7e8c | 2015-09-15 12:50:31 +0200 | [diff] [blame] | 64 | If you get a build error, please report it to ltp@lists.linux.it with |
subrata_modak | 4045517 | 2009-01-05 08:35:21 +0000 | [diff] [blame] | 65 | following information, |
| 66 | |
yaberauneya | 2d8710f | 2009-10-25 06:35:08 +0000 | [diff] [blame] | 67 | 1. The error output before the failure. |
| 68 | 2. If you used configure: |
Mike Frysinger | e168ad2 | 2014-06-18 01:55:46 -0400 | [diff] [blame] | 69 | i. include/config.h |
yaberauneya | 2d8710f | 2009-10-25 06:35:08 +0000 | [diff] [blame] | 70 | ii. include/mk/config.mk |
| 71 | iii. config.log |
subrata_modak | 4045517 | 2009-01-05 08:35:21 +0000 | [diff] [blame] | 72 | |
yaberauneya | 2d8710f | 2009-10-25 06:35:08 +0000 | [diff] [blame] | 73 | Out-of-build-tree |
| 74 | ------------------- |
| 75 | Out-of-build-tree support is when you build binaries (applications, binary |
| 76 | objects, generated files) outside of the directory where the source files |
| 77 | reside. This is typically used when cross-compiling for multiple targets. |
subrata_modak | 4045517 | 2009-01-05 08:35:21 +0000 | [diff] [blame] | 78 | |
yaberauneya | 2d8710f | 2009-10-25 06:35:08 +0000 | [diff] [blame] | 79 | NOTE: This is by and large correctly implemented, but there are several corner |
Garrett Cooper | c41bb21 | 2010-02-24 13:24:15 -0800 | [diff] [blame] | 80 | cases, where this isn't implemented properly. Please see TODO for a list of |
| 81 | items which need fixing in the LTP tree. |
subrata_modak | aba85b9 | 2008-12-11 10:30:33 +0000 | [diff] [blame] | 82 | |
yaberauneya | 2d8710f | 2009-10-25 06:35:08 +0000 | [diff] [blame] | 83 | $ mkdir "$OUT_OF_BUILD_TREE_DIR" |
| 84 | $ make \ |
| 85 | -C "$OUT_OF_BUILD_TREE_DIR" \ |
| 86 | -f "$TOP_SRCDIR/Makefile" \ |
| 87 | "top_srcdir=$TOP_SRCDIR" \ |
| 88 | "top_builddir=$OUT_OF_BUILD_TREE_DIR" |
| 89 | $ make \ |
| 90 | -C "$OUT_OF_BUILD_TREE_DIR" \ |
| 91 | -f "$TOP_SRCDIR/Makefile" \ |
| 92 | "top_srcdir=$TOP_SRCDIR" \ |
| 93 | "top_builddir=$OUT_OF_BUILD_TREE_DIR" \ |
| 94 | "DESTDIR=$SYSROOT" \ |
| 95 | SKIP_IDCHECK=[0|1] |
| 96 | install |
| 97 | |
| 98 | - Specifying DESTDIR is optional, but required when installing to a non-host |
| 99 | sysroot, as opposed to the host system's sysroot. |
| 100 | - Specify SKIP_IDCHECK=1 if and when you don't want to modify /etc/{group,passwd} |
| 101 | on the target system's sysroot. |
alaffin | e15dd68 | 2000-05-08 20:31:30 +0000 | [diff] [blame] | 102 | |
nstraz | 0312c25 | 2000-09-26 20:59:21 +0000 | [diff] [blame] | 103 | Quick Start |
| 104 | ----------- |
whr | b973f2b | 2000-05-05 19:34:50 +0000 | [diff] [blame] | 105 | |
robbiew | 5740448 | 2001-09-19 16:11:23 +0000 | [diff] [blame] | 106 | 1> tar xzf ltp-XXXXXXXX.tar.gz |
nstraz | 0312c25 | 2000-09-26 20:59:21 +0000 | [diff] [blame] | 107 | 2> cd ltp |
yaberauneya | bf3aeec | 2009-11-07 01:30:29 +0000 | [diff] [blame] | 108 | 3> ./configure |
| 109 | 4> make all |
| 110 | 5> make install |
Garrett Cooper | c41bb21 | 2010-02-24 13:24:15 -0800 | [diff] [blame] | 111 | 6> /opt/ltp/runltp |
whr | b973f2b | 2000-05-05 19:34:50 +0000 | [diff] [blame] | 112 | |
yaberauneya | 934df0e | 2010-01-07 10:43:24 +0000 | [diff] [blame] | 113 | *NOTE: |
| 114 | - LTP assumes the existence of the nobody, bin, and daemon users and their |
Garrett Cooper | c41bb21 | 2010-02-24 13:24:15 -0800 | [diff] [blame] | 115 | groups. If these IDs do not exist, certain tests will fail. The respective |
| 116 | user and group IDs should be the same, i.e. if `nobody's' user ID is 99, then |
| 117 | its group ID should also be 99. The names of the groups are irrelevant. |
| 118 | - The installation directory is /opt/ltp by default. Please see |
| 119 | "Using autoconf" above and specify the appropriate path via --prefix. |
| 120 | DESTDIR= is also honored for install and will install into $DESTDIR/$prefix, |
| 121 | if you want to install into a chroot or a rootfs for instance. |
whr | b973f2b | 2000-05-05 19:34:50 +0000 | [diff] [blame] | 122 | |
nstraz | 0312c25 | 2000-09-26 20:59:21 +0000 | [diff] [blame] | 123 | Detailed Installation |
| 124 | --------------------- |
| 125 | |
| 126 | Beyond the "Quick Start" instructions, there are only a few other things |
| 127 | that should be done. The Linux Test Project build process uses a |
| 128 | minimalist approach. There is a lot of room for improvement and |
| 129 | contributions are welcome. |
| 130 | |
robbiew | b6c5fe7 | 2001-09-18 20:44:30 +0000 | [diff] [blame] | 131 | 1. Log in as root. |
| 132 | |
| 133 | 2. Untar the ltp tarball into a spare directory. There is not a |
robbiew | fc0708b | 2004-03-01 22:16:02 +0000 | [diff] [blame] | 134 | standard location for it yet. We put it in our home directory |
robbiew | 0eea352 | 2004-02-05 17:33:10 +0000 | [diff] [blame] | 135 | while we're working on it. |
subrata_modak | f43b380 | 2009-08-28 05:33:40 +0000 | [diff] [blame] | 136 | Note that the full path to this location must be accessible for |
| 137 | unprivileged users, as some tests are run as a different user than root. |
| 138 | Hence /root is not a good choice on several distributions. |
nstraz | 0312c25 | 2000-09-26 20:59:21 +0000 | [diff] [blame] | 139 | |
yaberauneya | 2d8710f | 2009-10-25 06:35:08 +0000 | [diff] [blame] | 140 | 3. Build and install everything, as described above. Note the minimum software |
| 141 | requirements above before doing so. |
nstraz | 0312c25 | 2000-09-26 20:59:21 +0000 | [diff] [blame] | 142 | |
Xiao Yang | 3b3a842 | 2016-11-14 17:55:09 +0800 | [diff] [blame] | 143 | 4. The disk I/O tests can be run by executing the diskio.sh script. In order |
robbiew | ba42204 | 2001-09-19 15:25:43 +0000 | [diff] [blame] | 144 | for these tests to successfully operate a writable high-density 3.5" floppy |
| 145 | must be in the disk drive and a CD-ROM with more than 100Mb of data must be |
| 146 | in the CD-ROM drive. The corresponding tests will fail if either disk is |
| 147 | missing. |
nstraz | 0312c25 | 2000-09-26 20:59:21 +0000 | [diff] [blame] | 148 | |
Xiao Yang | 3b3a842 | 2016-11-14 17:55:09 +0800 | [diff] [blame] | 149 | 5. The network tests are executed by running the network.sh script. The network |
Petr Vorel | 751785e | 2016-11-10 12:54:39 +0100 | [diff] [blame] | 150 | tests require some configuration for them to work correctly: |
robbiew | ba42204 | 2001-09-19 15:25:43 +0000 | [diff] [blame] | 151 | |
| 152 | i) First, there MUST be another test machine setup to act as the server |
| 153 | to these client side tests. This machine MUST have the LTP installed |
| 154 | in the same exact location, i.e. if the client has /root/ltp, then the |
| 155 | server must have /root/ltp. This is required because certain tests |
| 156 | expect to find server files in certain locations. Make sure to compile |
| 157 | the LTP on this server machine also. |
| 158 | |
robbiew | 0eea352 | 2004-02-05 17:33:10 +0000 | [diff] [blame] | 159 | ii) Second, the server must be setup to allow the client to connect using |
subrata_modak | 08978d2 | 2008-12-18 04:58:57 +0000 | [diff] [blame] | 160 | the "r" commands, such as rsh. This is done by simply creating/editing |
| 161 | the ".rhosts" file under /root. Place the hostname of the client |
| 162 | machine in this file to allow root to remotely connect without the use |
| 163 | of a password. If server has the PAM system security tool, you need |
| 164 | to add the following lines to /etc/securetty: |
| 165 | rlogin |
| 166 | rsh |
| 167 | rexec |
| 168 | pts/0 |
| 169 | pts/1 |
| 170 | : |
| 171 | pts/9 |
robbiew | ba42204 | 2001-09-19 15:25:43 +0000 | [diff] [blame] | 172 | |
robbiew | 0eea352 | 2004-02-05 17:33:10 +0000 | [diff] [blame] | 173 | iii) Next, certain services must be activated in order for certain tests to |
robbiew | ba42204 | 2001-09-19 15:25:43 +0000 | [diff] [blame] | 174 | execute. The following services are activated via inetd/xinetd: |
| 175 | rlogind |
| 176 | ftpd |
| 177 | telnetd |
| 178 | echo (stream) |
| 179 | fingerd |
| 180 | rshd |
subrata_modak | 08978d2 | 2008-12-18 04:58:57 +0000 | [diff] [blame] | 181 | Also, because certain RPC programs are tested, the "portmapper" daemon |
| 182 | MUST be started, as well as NFS server AND lock services. |
robbiew | ba42204 | 2001-09-19 15:25:43 +0000 | [diff] [blame] | 183 | |
Petr Vorel | 751785e | 2016-11-10 12:54:39 +0100 | [diff] [blame] | 184 | iv) Finally, before running the network.sh script, two variables must be |
| 185 | set: The "RHOST" variable should be set to the hostname of the server. |
| 186 | The "PASSWD" variable should be set to root's password on the server |
Petr Vorel | 5e69bdf | 2019-08-01 10:34:25 +0200 | [diff] [blame] | 187 | machine. This is necessary for tests such as telnet01.sh and ftp01.sh. |
robbiew | ba42204 | 2001-09-19 15:25:43 +0000 | [diff] [blame] | 188 | |
Petr Vorel | 751785e | 2016-11-10 12:54:39 +0100 | [diff] [blame] | 189 | You can now successfully execute the network.sh script. |
subrata_modak | 08978d2 | 2008-12-18 04:58:57 +0000 | [diff] [blame] | 190 | |
| 191 | You can run the test category which you are interested in, -h option shows |
| 192 | the list of the test category: |
Petr Vorel | 751785e | 2016-11-10 12:54:39 +0100 | [diff] [blame] | 193 | # ./network.sh -h |
vapier | 36ab22f | 2009-01-19 03:37:35 +0000 | [diff] [blame] | 194 | |
Petr Vorel | 751785e | 2016-11-10 12:54:39 +0100 | [diff] [blame] | 195 | For more info about howto run network.sh see testcases/network/README.md. |
vapier | 36ab22f | 2009-01-19 03:37:35 +0000 | [diff] [blame] | 196 | |
| 197 | Cross compiling |
| 198 | --------------- |
Mike Frysinger | e168ad2 | 2014-06-18 01:55:46 -0400 | [diff] [blame] | 199 | To cross compile, you must specify the correct variables when running configure. |
Petr Vorel | 6890f37 | 2020-05-14 20:32:39 +0200 | [diff] [blame] | 200 | e.g. CC, LDFLAGS, etc. |
| 201 | For correct pkgconf / pkg-config detection you need to set |
| 202 | PKG_CONFIG_SYSROOT_DIR=$SYSROOT |
vapier | 36ab22f | 2009-01-19 03:37:35 +0000 | [diff] [blame] | 203 | |
Mike Frysinger | e168ad2 | 2014-06-18 01:55:46 -0400 | [diff] [blame] | 204 | After configure has run, it will generate include/mk/config.mk. You can tweak |
| 205 | settings in there if need be, but you should not specificy settings on the |
| 206 | command-line when running make. |
vapier | 36ab22f | 2009-01-19 03:37:35 +0000 | [diff] [blame] | 207 | |
Petr Vorel | 6890f37 | 2020-05-14 20:32:39 +0200 | [diff] [blame] | 208 | 32 bit build on 64 bit machine |
| 209 | ------------------------------ |
| 210 | You need to set CFLAGS=-m32 LDFLAGS=-m32 and PKG_CONFIG_LIBDIR |
| 211 | |
| 212 | * RPM based distributions (openSUSE, Fedora, etc.) |
| 213 | PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig CFLAGS=-m32 LDFLAGS=-m32 ./configure |
| 214 | |
| 215 | * Debian / Ubuntu and derivates |
| 216 | PKG_CONFIG_LIBDIR=/usr/lib/i386-linux-gnu/pkgconfig CFLAGS=-m32 LDFLAGS=-m32 ./configure |
| 217 | |
| 218 | * Arch Linux |
| 219 | PKG_CONFIG_LIBDIR=/usr/lib32/pkgconfig CFLAGS=-m32 LDFLAGS=-m32 ./configure |
| 220 | |
Steven Jackson | 34a7c82 | 2017-01-16 16:41:07 +0000 | [diff] [blame] | 221 | Android Users |
| 222 | ------------- |
| 223 | Specify ANDROID=1 when calling make. Many tests which would otherwise work are |
| 224 | currently not built because they share a directory with an incompatible test. |
| 225 | |
| 226 | The shell scripts expect /bin/sh to exist, so create a symlink. |
| 227 | |
vapier | 36ab22f | 2009-01-19 03:37:35 +0000 | [diff] [blame] | 228 | Variables in Makefile |
| 229 | ---------------------- |
| 230 | |
yaberauneya | 2d8710f | 2009-10-25 06:35:08 +0000 | [diff] [blame] | 231 | The conventions enforced are standard ones. Here's a quick summary: |
vapier | 36ab22f | 2009-01-19 03:37:35 +0000 | [diff] [blame] | 232 | |
yaberauneya | 2d8710f | 2009-10-25 06:35:08 +0000 | [diff] [blame] | 233 | CFLAGS - used when compiling/linking C code, e.g. -D_GNU_SOURCE (no CPPFLAGS!) |
vapier | 36ab22f | 2009-01-19 03:37:35 +0000 | [diff] [blame] | 234 | |
yaberauneya | 2d8710f | 2009-10-25 06:35:08 +0000 | [diff] [blame] | 235 | CPPFLAGS - used when preprocessor is run (so C/C++ compiling with $(CPP) |
Garrett Cooper | e5387ce | 2010-08-18 02:00:52 -0700 | [diff] [blame] | 236 | functions, e.g. -I$SYSROOT/usr/include -I$SYSROOT/include -I$SYSROOT |
vapier | 36ab22f | 2009-01-19 03:37:35 +0000 | [diff] [blame] | 237 | |
yaberauneya | 2d8710f | 2009-10-25 06:35:08 +0000 | [diff] [blame] | 238 | LDFLAGS - linker flags, e.g. "-L$SYSROOT/usr/lib" "-L$SYSROOT/lib". DO NOT |
Garrett Cooper | e5387ce | 2010-08-18 02:00:52 -0700 | [diff] [blame] | 239 | PUT LIBRARIES IN THIS LIST (see LDLIBS for that). |
vapier | 36ab22f | 2009-01-19 03:37:35 +0000 | [diff] [blame] | 240 | |
yaberauneya | 2d8710f | 2009-10-25 06:35:08 +0000 | [diff] [blame] | 241 | LDLIBS - libraries listed after objects during link, e.g. -lc, -lpthread, |
Garrett Cooper | e5387ce | 2010-08-18 02:00:52 -0700 | [diff] [blame] | 242 | -lltp. |
vapier | 36ab22f | 2009-01-19 03:37:35 +0000 | [diff] [blame] | 243 | |
Petr Vorel | 04d0e52 | 2020-05-14 20:41:53 +0200 | [diff] [blame] | 244 | For other variables and more info about the build systems see |
| 245 | doc/build-system-guide.txt. |
yaberauneya | 9079a9f | 2009-11-05 08:38:40 +0000 | [diff] [blame] | 246 | |
| 247 | Common Issues |
| 248 | ---------------------- |
| 249 | |
yaberauneya | cef7962 | 2009-11-12 11:57:37 +0000 | [diff] [blame] | 250 | Issue: When executing configure it says: |
| 251 | |
| 252 | checking for a BSD-compatible install... /usr/bin/install -c |
| 253 | checking whether build environment is sane... yes |
| 254 | checking for gawk... gawk |
| 255 | checking whether make sets $(MAKE)... yes |
| 256 | configure: error: cannot run /bin/sh ./config.sub |
| 257 | |
yaberauneya | 44cac8e | 2009-11-12 12:08:09 +0000 | [diff] [blame] | 258 | Solution: You must upgrade autoconf to 0.10.2+ and m4 to 1.4.7+; config.guess and config.sub aren't necessarily generated with older revisions of the Gnu autotools chain. |
yaberauneya | cef7962 | 2009-11-12 11:57:37 +0000 | [diff] [blame] | 259 | |
yaberauneya | 9079a9f | 2009-11-05 08:38:40 +0000 | [diff] [blame] | 260 | Issue: When executing make [all] it says: |
| 261 | |
| 262 | " *** No rule to make target `/$*', needed by `pan-all'. Stop." |
| 263 | |
| 264 | Solution: You must upgrade to make 3.81. Please see the Requirements section above. |
| 265 | |
| 266 | Issue: When executing make [all] it says something like: |
| 267 | |
| 268 | # ... |
| 269 | install -m 00644 "/scratch/ltp-dev2/ltp/include/test.h" "/scratch/ltp-install12/include/test.h" |
| 270 | install -m 00644 "/scratch/ltp-dev2/ltp/include/tlibio.h" "/scratch/ltp-install12/include/tlibio.h" |
| 271 | install -m 00644 "/scratch/ltp-dev2/ltp/include/usctest.h" "/scratch/ltp-install12/include/usctest.h" |
| 272 | install -m 00644 "/scratch/ltp-dev2/ltp/include/write_log.h" "/scratch/ltp-install12/include/write_log.h" |
| 273 | make[1]: Leaving directory `/scratch/ltp-dev2/ltp/include' |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 274 | make -C lib -f "/scratch/ltp-dev2/ltp/lib/Makefile" all |
yaberauneya | 9079a9f | 2009-11-05 08:38:40 +0000 | [diff] [blame] | 275 | make[1]: Entering directory `/scratch/ltp-dev2/ltp/lib' |
| 276 | " *** No rule to make target `dataascii.o', needed by `libltp.a'. Stop." # <-- the error |
| 277 | |
| 278 | Solution: You cannot build LTP with -r / --no-builtin-rules and/or |
Garrett Cooper | e5387ce | 2010-08-18 02:00:52 -0700 | [diff] [blame] | 279 | -R / --no-builtin-variables specified. LTP relies heavily on built-in |
| 280 | implicit rules and variables to function properly. |
yaberauneya | 340292d | 2010-01-18 23:46:09 +0000 | [diff] [blame] | 281 | |
| 282 | Issue: When executing make (no target, 3.80), it does the following, and doesn't execute all: |
| 283 | |
| 284 | # |
| 285 | make -C testcases/realtime autotools |
| 286 | make[1]: Entering directory `/scratch/ltp/testcases/realtime' |
| 287 | autoheader |
| 288 | make[1]: Leaving directory `/scratch/ltp/testcases/realtime' |