Re: [petsc-users] Exhausted all shared linker guesses. Could not determine how to create a shared library!

2021-03-10 Thread Barry Smith
Excellent, thanks for letting me know. It is a bit miraculous since I could not reproduce your problem (and was not willing to install Conda myself). https://gitlab.com/petsc/petsc/-/merge_requests/3703 > On Mar 10, 2021, at 8:46 PM, Fande Kong wrote: > > Thanks Barry, > > Your branch

Re: [petsc-users] Exhausted all shared linker guesses. Could not determine how to create a shared library!

2021-03-10 Thread Fande Kong
Thanks Barry, Your branch works very well. Thanks for your help!!! Could you merge it to upstream? Fande On Wed, Mar 10, 2021 at 6:30 PM Barry Smith wrote: > > Fande, > > Before send the files I requested in my last email could you try with > the branch

Re: [petsc-users] Exhausted all shared linker guesses. Could not determine how to create a shared library!

2021-03-10 Thread Barry Smith
Fande, Before send the files I requested in my last email could you try with the branch barry/2021-03-10/handle-pie-flag-conda/release and send its configure.log if it fails. Thanks Barry > On Mar 10, 2021, at 5:59 PM, Fande Kong wrote: > > Do not know what the fix should

Re: [petsc-users] Exhausted all shared linker guesses. Could not determine how to create a shared library!

2021-03-10 Thread Barry Smith
> On Mar 10, 2021, at 5:59 PM, Fande Kong wrote: > > Do not know what the fix should look like, but this works for me Please clarify. Is this using the mpicc that has a -pie in the show or not? Is this using the first "fix" I sent you also? Please send your entire

Re: [petsc-users] Exhausted all shared linker guesses. Could not determine how to create a shared library!

2021-03-10 Thread Fande Kong
Do not know what the fix should look like, but this works for me @staticmethod @@ -1194,7 +1194,6 @@ class Configure(config.base.Configure): output.find('unrecognized command line option') >= 0 or output.find('unrecognized option') >= 0 or output.find('unrecognised option') >= 0 or

Re: [petsc-users] Exhausted all shared linker guesses. Could not determine how to create a shared library!

2021-03-10 Thread Fande Kong
On Wed, Mar 10, 2021 at 1:36 PM Satish Balay wrote: > Can you use a different MPI for this conda install? > We control how to build MPI. If I take "-pie" options out of LDFLAGS, conda can not compile mpich. > > Alternative: > > ./configure CC=x86_64-apple-darwin13.4.0-clang

Re: [petsc-users] Exhausted all shared linker guesses. Could not determine how to create a shared library!

2021-03-10 Thread Fande Kong
On Wed, Mar 10, 2021 at 12:05 PM Barry Smith wrote: > Fande, > >Please add in config/BuildSystem/config/framework.py line 528 two new > lines > > # pgi dumps filename on stderr - but returns 0 errorcode' > lines = [s for s in lines if lines != 'conftest.c:'] > # in case

Re: [petsc-users] Exhausted all shared linker guesses. Could not determine how to create a shared library!

2021-03-10 Thread Satish Balay via petsc-users
Can you use a different MPI for this conda install? Alternative: ./configure CC=x86_64-apple-darwin13.4.0-clang COPTFLAGS="-march=core2 -mtune=haswell" CPPFLAGS=-I/Users/kongf/miniconda3/envs/testpetsc/include LDFLAGS="-Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs

Re: [petsc-users] Exhausted all shared linker guesses. Could not determine how to create a shared library!

2021-03-10 Thread Fande Kong
I guess it was encoded in mpicc petsc % mpicc -show x86_64-apple-darwin13.4.0-clang -march=core2 -mtune=haswell -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/kongf/miniconda3/envs/testpetsc/lib -L/Users/kongf/miniconda3/envs/testpetsc/lib

Re: [petsc-users] Exhausted all shared linker guesses. Could not determine how to create a shared library!

2021-03-10 Thread Satish Balay via petsc-users
> LDFLAGS_LD=-pie -headerpad_max_install_names -dead_strip_dylibs -rpath > /Users/kongf/miniconda3/envs/testpetsc/lib > -L/Users/kongf/miniconda3/envs/testpetsc/lib Does conda compiler pick up '-pie' from this env variable? If so - perhaps its easier to just modify it? Or is it encoded in

Re: [petsc-users] Exhausted all shared linker guesses. Could not determine how to create a shared library!

2021-03-10 Thread Barry Smith
Fande, Please add in config/BuildSystem/config/framework.py line 528 two new lines # pgi dumps filename on stderr - but returns 0 errorcode' lines = [s for s in lines if lines != 'conftest.c:'] # in case -pie is always being passed to linker lines = [s for s in lines

Re: [petsc-users] Exhausted all shared linker guesses. Could not determine how to create a shared library!

2021-03-10 Thread Satish Balay via petsc-users
On Wed, 10 Mar 2021, Fande Kong wrote: > On Wed, Mar 10, 2021 at 9:34 AM Satish Balay wrote: > > > On Wed, 10 Mar 2021, Fande Kong wrote: > > > > > Thanks, Barry, > > > > > > It seems PETSc works fine with manually built compilers. We are pretty > > much > > > sure that the issue is related to

Re: [petsc-users] Exhausted all shared linker guesses. Could not determine how to create a shared library!

2021-03-10 Thread Satish Balay via petsc-users
On Wed, 10 Mar 2021, Fande Kong wrote: > Thanks, Barry, > > It seems PETSc works fine with manually built compilers. We are pretty much > sure that the issue is related to conda. Conda might introduce extra flags. > > We still need to make it work with conda because we deliver our package via >