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