Discussion:
Build error on CentOS 5.10
Dennis Zheleznyak
2014-10-02 06:18:32 UTC
Permalink
Hi all,

I'm trying to build rpms of the latest slurm version on centos 5.10, but I
encounter the following error every single time:

+ /var/tmp/slurm-14.03.8-1/usr/bin/sjobexitmod --roff
/var/tmp/rpm-tmp.79119: /var/tmp/slurm-14.03.8-1/usr/bin/sjobexitmod:
/usr/bin/perl: bad interpreter: Permission denied
error: Bad exit status from /var/tmp/rpm-tmp.79119 (%install)

I tried creating an hello world script to run by perl, to check that it
works and it has.

The command I'm using to build slurm is:
rpmbuild -tb -D 'with_cflags CFLAGS="-O0 -g3"' slurm-14.03.8.tar.bz2

Thank you,
Dennis.
Christopher Samuel
2014-10-02 06:43:29 UTC
Permalink
Post by Dennis Zheleznyak
+ /var/tmp/slurm-14.03.8-1/usr/bin/sjobexitmod --roff
/usr/bin/perl: bad interpreter: Permission denied
error: Bad exit status from /var/tmp/rpm-tmp.79119 (%install)
What do the following commands say?

file /usr/bin/perl
ls -l /usr/bin/perl
getfacl /usr/bin/perl

Do you have SE Linux enabled?

cheers,
Chris
--
Christopher Samuel Senior Systems Administrator
VLSCI - Victorian Life Sciences Computation Initiative
Email: samuel-***@public.gmane.org Phone: +61 (0)3 903 55545
http://www.vlsci.org.au/ http://twitter.com/vlsci
Dennis Zheleznyak
2014-10-02 07:14:33 UTC
Permalink
Hi Chris,

* file /usr/bin/perl*
/usr/bin/perl: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for
GNU/Linux 2.6.9, dynamically linked (uses shared libs), stripped

*ls -l /usr/bin/perl*
-rwxr-xr-x 2 root root 19208 Nov 7 2013 /usr/bin/perl

*getfacl /usr/bin/perl*
getfacl: Removing leading '/' from absolute path names
# file: usr/bin/perl
# owner: root
# group: root
user::rwx
group::r-x
other::r-x

*getenforce*
Disabled

Thank you,
Dennis.
Post by Christopher Samuel
Post by Dennis Zheleznyak
+ /var/tmp/slurm-14.03.8-1/usr/bin/sjobexitmod --roff
/usr/bin/perl: bad interpreter: Permission denied
error: Bad exit status from /var/tmp/rpm-tmp.79119 (%install)
What do the following commands say?
file /usr/bin/perl
ls -l /usr/bin/perl
getfacl /usr/bin/perl
Do you have SE Linux enabled?
cheers,
Chris
--
Christopher Samuel Senior Systems Administrator
VLSCI - Victorian Life Sciences Computation Initiative
http://www.vlsci.org.au/ http://twitter.com/vlsci
Chris Samuel
2014-10-02 10:40:38 UTC
Permalink
Post by Dennis Zheleznyak
Hi Chris,
Hiya,

Those all look fine, but I've just noticed you're building RPMs there and
that's something we don't do with Slurm so I'm afraid I'm not sure I can help
there, sorry! :-(

All the best,
Chris
--
Christopher Samuel Senior Systems Administrator
VLSCI - Victorian Life Sciences Computation Initiative
Email: samuel-***@public.gmane.org Phone: +61 (0)3 903 55545
http://www.vlsci.org.au/ http://twitter.com/vlsci
Dennis Zheleznyak
2014-10-02 12:01:52 UTC
Permalink
Thank you for trying :)
Post by Chris Samuel
Post by Dennis Zheleznyak
Hi Chris,
Hiya,
Those all look fine, but I've just noticed you're building RPMs there and
that's something we don't do with Slurm so I'm afraid I'm not sure I can help
there, sorry! :-(
All the best,
Chris
--
Christopher Samuel Senior Systems Administrator
VLSCI - Victorian Life Sciences Computation Initiative
http://www.vlsci.org.au/ http://twitter.com/vlsci
Michael Jennings
2014-10-02 17:04:43 UTC
Permalink
Post by Dennis Zheleznyak
+ /var/tmp/slurm-14.03.8-1/usr/bin/sjobexitmod --roff
/usr/bin/perl: bad interpreter: Permission denied
error: Bad exit status from /var/tmp/rpm-tmp.79119 (%install)
Is your /var/tmp mounted "noexec" by any chance?

Michael
--
Michael Jennings <mej-/***@public.gmane.org>
Senior HPC Systems Engineer
High-Performance Computing Services
Lawrence Berkeley National Laboratory
Bldg 50B-3209E W: 510-495-2687
MS 050B-3209 F: 510-486-8615
Christopher Samuel
2014-10-02 23:36:41 UTC
Permalink
Post by Michael Jennings
Is your /var/tmp mounted "noexec" by any chance?
I wondered that but I don't think that'll give the errors that Dennis is
seeing, he's seeing -EACCES for /usr/bin/perl, not for something in
/var/tmp. :-(
--
Christopher Samuel Senior Systems Administrator
VLSCI - Victorian Life Sciences Computation Initiative
Email: samuel-***@public.gmane.org Phone: +61 (0)3 903 55545
http://www.vlsci.org.au/ http://twitter.com/vlsci
Michael Jennings
2014-10-02 23:52:32 UTC
Permalink
On Thu, Oct 2, 2014 at 4:37 PM, Christopher Samuel
Post by Christopher Samuel
Post by Michael Jennings
Is your /var/tmp mounted "noexec" by any chance?
I wondered that but I don't think that'll give the errors that Dennis is
seeing, he's seeing -EACCES for /usr/bin/perl, not for something in
/var/tmp. :-(
It's trying to run a script in /var/tmp that has #!/usr/bin/perl in
it. So I suspect /usr is mounted noexec.

Michael
--
Michael Jennings <mej-/***@public.gmane.org>
Senior HPC Systems Engineer
High-Performance Computing Services
Lawrence Berkeley National Laboratory
Bldg 50B-3209E W: 510-495-2687
MS 050B-3209 F: 510-486-8615
Christopher Samuel
2014-10-03 00:13:31 UTC
Permalink
Post by Michael Jennings
It's trying to run a script in /var/tmp that has #!/usr/bin/perl in
it. So I suspect /usr is mounted noexec.
Hmm, that would make life, umm, interesting. :-)

Dennis, what does "cat /proc/mounts" on this machine say?

cheers!
Chris
--
Christopher Samuel Senior Systems Administrator
VLSCI - Victorian Life Sciences Computation Initiative
Email: samuel-***@public.gmane.org Phone: +61 (0)3 903 55545
http://www.vlsci.org.au/ http://twitter.com/vlsci
Michael Jennings
2014-10-03 00:54:39 UTC
Permalink
On Thu, Oct 2, 2014 at 5:13 PM, Christopher Samuel
Post by Christopher Samuel
Post by Michael Jennings
It's trying to run a script in /var/tmp that has #!/usr/bin/perl in
it. So I suspect /usr is mounted noexec.
Hmm, that would make life, umm, interesting. :-)
Yes, indeed! :-)

That's the only way I've been able to reproduce that error, though
(apart from what you already covered) -- either noexec on the
filesystem the interpreter is on, or execute permissions on a parent
directory being missing -- and both would be fairly odd for
/usr/bin/perl! :-)

Michael
--
Michael Jennings <mej-/***@public.gmane.org>
Senior HPC Systems Engineer
High-Performance Computing Services
Lawrence Berkeley National Laboratory
Bldg 50B-3209E W: 510-495-2687
MS 050B-3209 F: 510-486-8615
Loading...