Skip to Content.
Sympa Menu

charm - Re: [charm] charmc: eval: line 1: /lib/cpp: not found

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] charmc: eval: line 1: /lib/cpp: not found


Chronological Thread 
  • From: Jozsef Bakosi <jbakosi AT gmail.com>
  • To: Phil Miller <mille121 AT illinois.edu>
  • Cc: charm <charm AT lists.cs.illinois.edu>
  • Subject: Re: [charm] charmc: eval: line 1: /lib/cpp: not found
  • Date: Thu, 5 May 2016 10:42:10 -0600



On Thu, May 5, 2016 at 10:30 AM, Phil Miller <mille121 AT illinois.edu> wrote:
I believe most of our scripts depend on bash and not just a POSIX-compilant shell. If we haven't adapted them to say so explicitly, we probably should.

Is there a separate 'cpp' package containing the C preprocessor on Alpine Linux, separate from the C and C++ compilers? I'm not familiar with that distribution.


It seems like cpp (/usr/bin/cpp) is part of the gcc package:

I'm just surprised that when I install bash, I still get the busybox shell running it:
bash-4.3# echo $SHELL
/bin/ash
bash-4.3# ls -l /bin/ash
lrwxrwxrwx    1 root     root            12 Apr  1 18:56 /bin/ash -> /bin/busybox

 
On Thu, May 5, 2016 at 11:27 AM, Jozsef Bakosi <jbakosi AT gmail.com> wrote:
It's an Alpine linux with the following packages above the minimal base system: bash, m4, file, git, cmake, gfortran, gcc, g++, make, perl, grep, boost-dev zlib-dev, libexecinfo-dev. (Attempting to build minimal, fully statically linked executables, based on musl-libc instead of glibc, inside a docker container.)

I'm suspecting it is a shell issue, since on this system /bin/sh points to /bin/busybox, even after installing bash and attempting the run the build inside bash and still fails with the same error. What shell features does the build script rely on?

I'm not sure if this is of any help, but this used to work on a fairly old Charm++, released around Jun, 2015.

On Thu, May 5, 2016 at 10:08 AM, Phil Miller <mille121 AT illinois.edu> wrote:
What operating system and version is that? Does it have whatever standard packages for development utilities installed (e.g. build-essential on Debian derivatives)?

On Thu, May 5, 2016 at 11:03 AM, Jozsef Bakosi <jbakosi AT gmail.com> wrote:
Hi folks,

Building charm++, using the follwing command:

$ build;charm++;mpi-linux-x86_64;mpicxx;--disable-charmdebug;-j36;-O3 -DNDEBUG"

I'm getting this error:

../bin/charmc: eval: line 1: /lib/cpp: not found
Fatal Error by charmc in directory /quinoa/tpl/install/gnu-x86_64/charm/mpi-linux-x86_64-mpicxx/tmp
   Command /lib/cpp -P -DNDEBUG ckcallback.ci returned error code 2
charmc exiting...

Does someone have a clue what could be the problem?

Please let me know what other information I can give you to diagnose the problem.

Thanks,
Jozsef







Archive powered by MHonArc 2.6.16.

Top of Page