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: Phil Miller <mille121 AT illinois.edu>
  • To: Jozsef Bakosi <jbakosi AT gmail.com>
  • Cc: charm <charm AT lists.cs.illinois.edu>
  • Subject: Re: [charm] charmc: eval: line 1: /lib/cpp: not found
  • Date: Thu, 5 May 2016 11:54:32 -0500

Honestly, the easiest things for you to do would be either modify the conv-mach.sh for your build target, or symlink /usr/bin/cpp to /lib/cpp.

What we should probably do is not hard-code the path to /lib/cpp, but rather let the user's $PATH find it for us.

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


On Thu, May 5, 2016 at 10:42 AM, Jozsef Bakosi <jbakosi AT gmail.com> wrote:


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


This is a known issue on alpine:

Now just I would like to know what environment variable I should feed the shell so that charm++'s build finds the correct path for cpp.




Archive powered by MHonArc 2.6.16.

Top of Page