Skip to content

Conversation

@ruanzhengwang
Copy link

Signed-off-by: Zhengwang Ruan rzw@meizu.com

Signed-off-by: Zhengwang Ruan <rzw@meizu.com>
@ruanzhengwang
Copy link
Author

This patch fixed the error happened while installing execltp at the end of 'make install'.

install -m 00755 "/tmp/ltp-repo/runltplite.sh" "/opt/ltp/runltplite.sh"
install -m 00755 "/tmp/ltp-repo/ver_linux" "/opt/ltp/ver_linux"
if git describe >/dev/null 2>&1; then
git describe > "Version";
else
cp /tmp/ltp-repo/VERSION "Version";
fi
install -m 00644 "/tmp/ltp-repo/Version" "/opt/ltp/Version"
install -m 00755 "/tmp/ltp-repo/execltp" "//opt/ltp/bin/execltp"
install: cannot stat `/tmp/ltp-repo/execltp': No such file or directory
make: *** [//opt/ltp/bin/execltp] Error 1

@ngie-eign
Copy link
Member

Did you run configure first?

@ruanzhengwang
Copy link
Author

I didn't obviously run 'configure' command, but did the steps introduced in INSTALL as below,

Not using autoconf:

    $ test -d "$TOP_BUILDDIR" || mkdir -p "$TOP_BUILDDIR"
    $ cp "$TOP_SRCDIR/include/config.h.default" \
         "$TOP_BUILDDIR/include/config.h"
    $ cp "$TOP_SRCDIR/include/mk/config.mk.default" \
         "$TOP_BUILDDIR/include/mk/config.mk"
    $ cp "$TOP_SRCDIR/include/mk/features.mk.default" \
         "$TOP_BUILDDIR/include/mk/features.mk"

@ngie-eign
Copy link
Member

That's the problem; execltp.in is one of the files that's templated via configure[.ac]; my bad for not adding it to the directions when I created the script :(..

INSTALL needs the following command added to the steps which will be done in order to install without configure being run:

sed -e '' 's,@prefix@,/opt/ltp,' < execltp.in > execltp

@vapier
Copy link
Member

vapier commented Jul 30, 2014

yeah, the Makefile is correct, so we don't want to go installing the raw source

@vapier vapier closed this Jul 30, 2014
@ruanzhengwang ruanzhengwang deleted the master branch July 31, 2014 07:40
jstancek added a commit that referenced this pull request May 22, 2017
Only newlib testcases support SAFE macros in cleanup().
When SAFE_UNLINK fails, it creates infinite loop between
tst_brk_ and cleanup:

 #0  tst_res__ at tst_res.c:153
 #1  0x0000000000407ba8 in tst_brk__ at tst_res.c:480
 #2  0x00000000004081fe in tst_brkm_ at tst_res.c:577
 #3  0x000000000040a7c9 in safe_unlink at safe_macros.c:358
 #4  0x0000000000404abd in cleanup () at pipeio.c:497
 #5  0x0000000000407bc7 in tst_brk__ at tst_res.c:498
 #6  0x00000000004081fe in tst_brkm_ at tst_res.c:577
 #7  0x000000000040c1d6 in def_handler at tst_sig.c:231
 #8  <signal handler called>
 #9  0x00007f29c2cbd1f7 in __GI_raise at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
 #10 0x00007f29c2cbe8e8 in __GI_abort () at abort.c:90
 #11 0x00000000004081af in tst_brkm_ at tst_res.c:581
 #12 0x000000000040a7c9 in safe_unlink at safe_macros.c:358
 #13 0x0000000000404abd in cleanup () at pipeio.c:497
 #14 0x0000000000407bc7 in tst_brk__ at tst_res.c:498
 #15 0x00000000004081fe in tst_brkm_ at tst_res.c:577
 #16 0x000000000040c1d6 in def_handler at tst_sig.c:231
 #17 <signal handler called>
 #18 0x00007f29c2cbd1f7 in __GI_raise at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
 #19 0x00007f29c2cbe8e8 in __GI_abort () at abort.c:90
 #20 0x00000000004081af in tst_brkm_ at tst_res.c:581
 #21 0x000000000040a7c9 in safe_unlink at safe_macros.c:358
 #22 0x0000000000404abd in cleanup () at pipeio.c:497
 ...

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants