On 26.05.2010 16:33, John Peterson wrote: > On Wed, May 26, 2010 at 8:47 AM, Kirk, Benjamin (JSC-EG311) > <[email protected]> wrote: > >> On 5/26/10 7:02 AM, "Mladen Jurak"<[email protected]> wrote: >> >> >>> On 25.05.2010 20:03, John Peterson wrote: >>> >>>> On Tue, May 25, 2010 at 12:34 PM, Mladen Jurak<[email protected]> wrote: >>>> >>>> >>>>> Dear Libmesh team, >>>>> >>>>> I cannot build the library from the SVN repository on Debian system. >>>>> File "include/base/libmesh_config.h" contains special characters after >>>>> each "LIBMESH_" identifier, which prevents the compilation. >>>>> Any ideas what might be the problem? >>>>> >>>>> >>>> What special characters? >>>> >>>> You did run configure, right? >>>> >>>> >>>> >>> Dear Libmesh team. >>> >>> I located the problem that I have in compiling the library. >>> It is in configure file. The line >>> echo "s/#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef >>> $ac_prefix_conf_UPP""_\\1/"> conftest.prefix >>> and the following similar lines (form the line 15838 in configure file) >>> are executed under /bin/sh instead of /bin/bash, and /bin/sh does not >>> interprete \\1 correctly. >>> That is the reason why I have "include/base/libmesh_config.h" file >>> corrupted. >>> >> Can you regenerate the configure sccript on your platform? >> >> $ autoconf >> $ autoheader >> >> in the top-level source? >> >> I have no idea why this is happening either, but it *may* be that rebuilding >> the script with the autotools on your platform will fix the issue. >> > Actually if you try this, better run the "bootstrap" script in the > top-level libmesh directory. > >
Running bootstrap didn't help. The problem is that configure file takes the first existing shell from the sequence "sh bash ksh sh5", so it usually takes sh. On my system (Debian/squeeze) sh=dash and this is an inadequate choice. I solved it by changing the order of the shell sequence to "bash ksh sh5 sh". Regards, Mladen ------------------------------------------------------------------------------ _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
