Re: [petsc-users] compiler related error (configuring Petsc)

2023-08-02 Thread Matthew Knepley
On Wed, Aug 2, 2023 at 9:32 AM maitri ksh wrote: > I could compile petsc using the newer version of gnu compiler. > However, there is some unusual error when I tried to test petsc using a > print 'hello' file. I could not interpret what the error ('*error.txt*') > is, but it says something

Re: [petsc-users] compiler related error (configuring Petsc)

2023-08-02 Thread maitri ksh
I could compile petsc using the newer version of gnu compiler. However, there is some unusual error when I tried to test petsc using a print 'hello' file. I could not interpret what the error ('*error.txt*') is, but it says something related to MATLAB (which is not used in the ' *hello.c*'

Re: [petsc-users] compiler related error (configuring Petsc)

2023-08-02 Thread maitri ksh
Okay, thank you. On Tue, Aug 1, 2023 at 9:43 PM Satish Balay wrote: > > gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) > > Is it possible for you to use a newer version GNU compilers? > > If not - your alternative is to build PETSc with --with-cxx=0 option > > But then - you can't use

Re: [petsc-users] compiler related error (configuring Petsc)

2023-08-02 Thread maitri ksh
Ok, thanks for the clarification. On Wed, Aug 2, 2023 at 8:27 AM Pierre Jolivet wrote: > Right, so configure did the proper job and told you that your compiler > does not (fully) work with C++11, there is no point in trying to add extra > flags to bypass this limitation. > As Satish suggested:

Re: [petsc-users] compiler related error (configuring Petsc)

2023-08-01 Thread Pierre Jolivet
Right, so configure did the proper job and told you that your compiler does not (fully) work with C++11, there is no point in trying to add extra flags to bypass this limitation. As Satish suggested: either use a newer g++ or configure --with-cxx=0 Thanks, Pierre > On 2 Aug 2023, at 6:42 AM,

Re: [petsc-users] compiler related error (configuring Petsc)

2023-08-01 Thread Jacob Faibussowitsch
>> Initially I got an error related >> to 'C++11' flag, Can you send the configure.log for this as well Best regards, Jacob Faibussowitsch (Jacob Fai - booss - oh - vitch) > On Aug 1, 2023, at 14:42, Satish Balay via petsc-users > wrote: > >> gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) > >

Re: [petsc-users] compiler related error (configuring Petsc)

2023-08-01 Thread Satish Balay via petsc-users
> gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) Is it possible for you to use a newer version GNU compilers? If not - your alternative is to build PETSc with --with-cxx=0 option But then - you can't use --download-superlu_dist or any pkgs that need c++ [you could try building them separately