Closed barracuda156 closed 1 year ago
This is a problem with the sed version you are using. What kind of OS and sed are you using? For MacOS, butterflypack should be able to autodetect the sed version by https://github.com/liuyangzhuan/ButterflyPACK/blob/6082f26ee2c06fc23bb1388d0242a8a92bf8ba02/CMakeLists.txt#L406 https://github.com/liuyangzhuan/ButterflyPACK/blob/6082f26ee2c06fc23bb1388d0242a8a92bf8ba02/CMakeLists.txt#L433 If other unix system, GNU sed is used by default https://github.com/liuyangzhuan/ButterflyPACK/blob/6082f26ee2c06fc23bb1388d0242a8a92bf8ba02/CMakeLists.txt#L439
It is macOS 10.6.8, but apparently either detect does not work or the code fails. I can try using gsed
instead.
What does sed --version give you?
On Tue, May 9, 2023 at 12:18 PM Sergey Fedorov @.***> wrote:
It is macOS 10.6.8, but apparently either detect does not work or the code fails. I can try using gsed instead.
— Reply to this email directly, view it on GitHub https://github.com/liuyangzhuan/ButterflyPACK/issues/14#issuecomment-1540761922, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABT6SCX7WKWSXY4O7OJEAIDXFKKBDANCNFSM6AAAAAAX3WT56Q . You are receiving this because you commented.Message ID: @.***>
-- Yang Liu Research Scientist Lawrence Berkeley National Laboratory
I have tried gsed now, and it fails badly:
[ 12%] Building C object SRC_DOUBLE/CMakeFiles/dbutterflypack.dir/dMAGMA_offset.c.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLE && /opt/local/bin/mpicc-mpich-gcc12 -Ddbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLE -pipe -Os -DNDEBUG -I/opt/local/include -arch ppc -mmacosx-version-min=10.6 -fPIC -DDAT=1 -MD -MT SRC_DOUBLE/CMakeFiles/dbutterflypack.dir/dMAGMA_offset.c.o -MF CMakeFiles/dbutterflypack.dir/dMAGMA_offset.c.o.d -o CMakeFiles/dbutterflypack.dir/dMAGMA_offset.c.o -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLE/dMAGMA_offset.c
[ 12%] Building C object SRC_COMPLEX/CMakeFiles/cbutterflypack.dir/cMAGMA_offset.c.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_COMPLEX && /opt/local/bin/mpicc-mpich-gcc12 -Dcbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_COMPLEX -pipe -Os -DNDEBUG -I/opt/local/include -arch ppc -mmacosx-version-min=10.6 -fPIC -DDAT=2 -MD -MT SRC_COMPLEX/CMakeFiles/cbutterflypack.dir/cMAGMA_offset.c.o -MF CMakeFiles/cbutterflypack.dir/cMAGMA_offset.c.o.d -o CMakeFiles/cbutterflypack.dir/cMAGMA_offset.c.o -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_COMPLEX/cMAGMA_offset.c
[ 12%] Building Fortran object SRC_DOUBLECOMPLEX/CMakeFiles/zbutterflypack.dir/zLAPACK_dgeqp3mod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLECOMPLEX && /opt/local/bin/mpif90-mpich-gcc12 -Dzbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLECOMPLEX -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=0 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLECOMPLEX/zLAPACK_dgeqp3mod.f -o CMakeFiles/zbutterflypack.dir/zLAPACK_dgeqp3mod.f.o
[ 13%] Building Fortran object SRC_SINGLE/CMakeFiles/sbutterflypack.dir/sSCALAPACK_pzgeqpfmod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_SINGLE && /opt/local/bin/mpif90-mpich-gcc12 -Dsbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_SINGLE -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=3 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_SINGLE/sSCALAPACK_pzgeqpfmod.f -o CMakeFiles/sbutterflypack.dir/sSCALAPACK_pzgeqpfmod.f.o
[ 14%] Building Fortran object SRC_SINGLE/CMakeFiles/sbutterflypack.dir/sSCALAPACK_psgeqpfmod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_SINGLE && /opt/local/bin/mpif90-mpich-gcc12 -Dsbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_SINGLE -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=3 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_SINGLE/sSCALAPACK_psgeqpfmod.f -o CMakeFiles/sbutterflypack.dir/sSCALAPACK_psgeqpfmod.f.o
[ 14%] Building Fortran object SRC_DOUBLE/CMakeFiles/dbutterflypack.dir/dLAPACK_dgeqp3mod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLE && /opt/local/bin/mpif90-mpich-gcc12 -Ddbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLE -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=1 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLE/dLAPACK_dgeqp3mod.f -o CMakeFiles/dbutterflypack.dir/dLAPACK_dgeqp3mod.f.o
[ 14%] Building Fortran object SRC_COMPLEX/CMakeFiles/cbutterflypack.dir/cLAPACK_dgeqp3mod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_COMPLEX && /opt/local/bin/mpif90-mpich-gcc12 -Dcbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_COMPLEX -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=2 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_COMPLEX/cLAPACK_dgeqp3mod.f -o CMakeFiles/cbutterflypack.dir/cLAPACK_dgeqp3mod.f.o
[ 15%] Building Fortran object SRC_DOUBLECOMPLEX/CMakeFiles/zbutterflypack.dir/zLAPACK_zgeqp3mod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLECOMPLEX && /opt/local/bin/mpif90-mpich-gcc12 -Dzbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLECOMPLEX -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=0 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLECOMPLEX/zLAPACK_zgeqp3mod.f -o CMakeFiles/zbutterflypack.dir/zLAPACK_zgeqp3mod.f.o
[ 15%] Building Fortran object SRC_SINGLE/CMakeFiles/sbutterflypack.dir/sSCALAPACK_pcgeqpfmod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_SINGLE && /opt/local/bin/mpif90-mpich-gcc12 -Dsbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_SINGLE -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=3 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_SINGLE/sSCALAPACK_pcgeqpfmod.f -o CMakeFiles/sbutterflypack.dir/sSCALAPACK_pcgeqpfmod.f.o
[ 16%] Building Fortran object SRC_COMPLEX/CMakeFiles/cbutterflypack.dir/cLAPACK_zgeqp3mod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_COMPLEX && /opt/local/bin/mpif90-mpich-gcc12 -Dcbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_COMPLEX -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=2 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_COMPLEX/cLAPACK_zgeqp3mod.f -o CMakeFiles/cbutterflypack.dir/cLAPACK_zgeqp3mod.f.o
[ 17%] Building Fortran object SRC_DOUBLE/CMakeFiles/dbutterflypack.dir/dLAPACK_zgeqp3mod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLE && /opt/local/bin/mpif90-mpich-gcc12 -Ddbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLE -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=1 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLE/dLAPACK_zgeqp3mod.f -o CMakeFiles/dbutterflypack.dir/dLAPACK_zgeqp3mod.f.o
/opt/local/bin/cmake -E cmake_copy_f90_mod SRC_SINGLE/bpack_linkedlist.mod SRC_SINGLE/CMakeFiles/sbutterflypack.dir/bpack_linkedlist.mod.stamp GNU
/opt/local/bin/cmake -E cmake_copy_f90_mod SRC_SINGLE/magma_utilities.mod SRC_SINGLE/CMakeFiles/sbutterflypack.dir/magma_utilities.mod.stamp GNU
Error copying Fortran module "SRC_SINGLE/bpack_linkedlist.mod". Tried "SRC_SINGLE/BPACK_LINKEDLIST.mod" and "SRC_SINGLE/bpack_linkedlist.mod".
make[2]: *** [SRC_SINGLE/CMakeFiles/sbutterflypack.dir/bpack_linkedlist.mod.stamp] Error 1
make[2]: *** Waiting for unfinished jobs....
Error copying Fortran module "SRC_SINGLE/magma_utilities.mod". Tried "SRC_SINGLE/MAGMA_UTILITIES.mod" and "SRC_SINGLE/magma_utilities.mod".
make[2]: *** [SRC_SINGLE/CMakeFiles/sbutterflypack.dir/magma_utilities.mod.stamp] Error 1
[ 17%] Building Fortran object SRC_DOUBLECOMPLEX/CMakeFiles/zbutterflypack.dir/zLAPACK_sgeqp3mod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLECOMPLEX && /opt/local/bin/mpif90-mpich-gcc12 -Dzbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLECOMPLEX -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=0 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLECOMPLEX/zLAPACK_sgeqp3mod.f -o CMakeFiles/zbutterflypack.dir/zLAPACK_sgeqp3mod.f.o
[ 18%] Building Fortran object SRC_COMPLEX/CMakeFiles/cbutterflypack.dir/cLAPACK_cgeqp3mod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_COMPLEX && /opt/local/bin/mpif90-mpich-gcc12 -Dcbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_COMPLEX -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=2 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_COMPLEX/cLAPACK_cgeqp3mod.f -o CMakeFiles/cbutterflypack.dir/cLAPACK_cgeqp3mod.f.o
[ 18%] Building Fortran object SRC_COMPLEX/CMakeFiles/cbutterflypack.dir/cLAPACK_sgeqp3mod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_COMPLEX && /opt/local/bin/mpif90-mpich-gcc12 -Dcbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_COMPLEX -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=2 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_COMPLEX/cLAPACK_sgeqp3mod.f -o CMakeFiles/cbutterflypack.dir/cLAPACK_sgeqp3mod.f.o
[ 19%] Building Fortran object SRC_DOUBLE/CMakeFiles/dbutterflypack.dir/dLAPACK_sgeqp3mod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLE && /opt/local/bin/mpif90-mpich-gcc12 -Ddbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLE -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=1 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLE/dLAPACK_sgeqp3mod.f -o CMakeFiles/dbutterflypack.dir/dLAPACK_sgeqp3mod.f.o
[ 20%] Building Fortran object SRC_COMPLEX/CMakeFiles/cbutterflypack.dir/cSCALAPACK_pdgeqpfmod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_COMPLEX && /opt/local/bin/mpif90-mpich-gcc12 -Dcbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_COMPLEX -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=2 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_COMPLEX/cSCALAPACK_pdgeqpfmod.f -o CMakeFiles/cbutterflypack.dir/cSCALAPACK_pdgeqpfmod.f.o
[ 21%] Building Fortran object SRC_DOUBLECOMPLEX/CMakeFiles/zbutterflypack.dir/zLAPACK_cgeqp3mod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLECOMPLEX && /opt/local/bin/mpif90-mpich-gcc12 -Dzbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLECOMPLEX -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=0 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLECOMPLEX/zLAPACK_cgeqp3mod.f -o CMakeFiles/zbutterflypack.dir/zLAPACK_cgeqp3mod.f.o
[ 21%] Building Fortran object SRC_COMPLEX/CMakeFiles/cbutterflypack.dir/cSCALAPACK_pzgeqpfmod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_COMPLEX && /opt/local/bin/mpif90-mpich-gcc12 -Dcbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_COMPLEX -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=2 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_COMPLEX/cSCALAPACK_pzgeqpfmod.f -o CMakeFiles/cbutterflypack.dir/cSCALAPACK_pzgeqpfmod.f.o
[ 22%] Building Fortran object SRC_COMPLEX/CMakeFiles/cbutterflypack.dir/cSCALAPACK_psgeqpfmod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_COMPLEX && /opt/local/bin/mpif90-mpich-gcc12 -Dcbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_COMPLEX -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=2 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_COMPLEX/cSCALAPACK_psgeqpfmod.f -o CMakeFiles/cbutterflypack.dir/cSCALAPACK_psgeqpfmod.f.o
[ 22%] Building Fortran object SRC_DOUBLE/CMakeFiles/dbutterflypack.dir/dLAPACK_cgeqp3mod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLE && /opt/local/bin/mpif90-mpich-gcc12 -Ddbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLE -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=1 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLE/dLAPACK_cgeqp3mod.f -o CMakeFiles/dbutterflypack.dir/dLAPACK_cgeqp3mod.f.o
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build'
make[1]: *** [SRC_SINGLE/CMakeFiles/sbutterflypack.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 23%] Building Fortran object SRC_DOUBLECOMPLEX/CMakeFiles/zbutterflypack.dir/zSCALAPACK_pdgeqpfmod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLECOMPLEX && /opt/local/bin/mpif90-mpich-gcc12 -Dzbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLECOMPLEX -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=0 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLECOMPLEX/zSCALAPACK_pdgeqpfmod.f -o CMakeFiles/zbutterflypack.dir/zSCALAPACK_pdgeqpfmod.f.o
[ 23%] Building Fortran object SRC_COMPLEX/CMakeFiles/cbutterflypack.dir/cSCALAPACK_pcgeqpfmod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_COMPLEX && /opt/local/bin/mpif90-mpich-gcc12 -Dcbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_COMPLEX -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=2 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_COMPLEX/cSCALAPACK_pcgeqpfmod.f -o CMakeFiles/cbutterflypack.dir/cSCALAPACK_pcgeqpfmod.f.o
[ 24%] Building Fortran object SRC_DOUBLE/CMakeFiles/dbutterflypack.dir/dSCALAPACK_pdgeqpfmod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLE && /opt/local/bin/mpif90-mpich-gcc12 -Ddbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLE -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=1 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLE/dSCALAPACK_pdgeqpfmod.f -o CMakeFiles/dbutterflypack.dir/dSCALAPACK_pdgeqpfmod.f.o
/opt/local/bin/cmake -E cmake_copy_f90_mod SRC_COMPLEX/bpack_linkedlist.mod SRC_COMPLEX/CMakeFiles/cbutterflypack.dir/bpack_linkedlist.mod.stamp GNU
Error copying Fortran module "SRC_COMPLEX/bpack_linkedlist.mod". Tried "SRC_COMPLEX/BPACK_LINKEDLIST.mod" and "SRC_COMPLEX/bpack_linkedlist.mod".
make[2]: *** [SRC_COMPLEX/CMakeFiles/cbutterflypack.dir/bpack_linkedlist.mod.stamp] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 24%] Building Fortran object SRC_DOUBLE/CMakeFiles/dbutterflypack.dir/dSCALAPACK_pzgeqpfmod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLE && /opt/local/bin/mpif90-mpich-gcc12 -Ddbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLE -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=1 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLE/dSCALAPACK_pzgeqpfmod.f -o CMakeFiles/dbutterflypack.dir/dSCALAPACK_pzgeqpfmod.f.o
[ 24%] Building Fortran object SRC_DOUBLECOMPLEX/CMakeFiles/zbutterflypack.dir/zSCALAPACK_pzgeqpfmod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLECOMPLEX && /opt/local/bin/mpif90-mpich-gcc12 -Dzbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLECOMPLEX -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=0 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLECOMPLEX/zSCALAPACK_pzgeqpfmod.f -o CMakeFiles/zbutterflypack.dir/zSCALAPACK_pzgeqpfmod.f.o
[ 25%] Building Fortran object SRC_DOUBLE/CMakeFiles/dbutterflypack.dir/dSCALAPACK_psgeqpfmod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLE && /opt/local/bin/mpif90-mpich-gcc12 -Ddbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLE -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=1 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLE/dSCALAPACK_psgeqpfmod.f -o CMakeFiles/dbutterflypack.dir/dSCALAPACK_psgeqpfmod.f.o
[ 26%] Building Fortran object SRC_DOUBLECOMPLEX/CMakeFiles/zbutterflypack.dir/zSCALAPACK_psgeqpfmod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLECOMPLEX && /opt/local/bin/mpif90-mpich-gcc12 -Dzbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLECOMPLEX -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=0 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLECOMPLEX/zSCALAPACK_psgeqpfmod.f -o CMakeFiles/zbutterflypack.dir/zSCALAPACK_psgeqpfmod.f.o
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build'
make[1]: *** [SRC_COMPLEX/CMakeFiles/cbutterflypack.dir/all] Error 2
[ 26%] Building Fortran object SRC_DOUBLE/CMakeFiles/dbutterflypack.dir/dSCALAPACK_pcgeqpfmod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLE && /opt/local/bin/mpif90-mpich-gcc12 -Ddbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLE -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=1 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLE/dSCALAPACK_pcgeqpfmod.f -o CMakeFiles/dbutterflypack.dir/dSCALAPACK_pcgeqpfmod.f.o
/opt/local/bin/cmake -E cmake_copy_f90_mod SRC_DOUBLE/bpack_linkedlist.mod SRC_DOUBLE/CMakeFiles/dbutterflypack.dir/bpack_linkedlist.mod.stamp GNU
Error copying Fortran module "SRC_DOUBLE/bpack_linkedlist.mod". Tried "SRC_DOUBLE/BPACK_LINKEDLIST.mod" and "SRC_DOUBLE/bpack_linkedlist.mod".
make[2]: *** [SRC_DOUBLE/CMakeFiles/dbutterflypack.dir/bpack_linkedlist.mod.stamp] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 26%] Building Fortran object SRC_DOUBLECOMPLEX/CMakeFiles/zbutterflypack.dir/zSCALAPACK_pcgeqpfmod.f.o
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLECOMPLEX && /opt/local/bin/mpif90-mpich-gcc12 -Dzbutterflypack_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLECOMPLEX -DHAVE_FINAL -DHAVE_MPI3 -DHAVE_OPENMP -fopenmp -DHAVE_TASKLOOP -fallow-argument-mismatch -cpp -fno-range-check -ffree-line-length-none -ffixed-line-length-none -fimplicit-none -lpthread -pipe -Os -fallow-argument-mismatch -m32 -mmacosx-version-min=10.6 -fPIC -DDAT=0 -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/ButterflyPACK-2.2.2/SRC_DOUBLECOMPLEX/zSCALAPACK_pcgeqpfmod.f -o CMakeFiles/zbutterflypack.dir/zSCALAPACK_pcgeqpfmod.f.o
/opt/local/bin/cmake -E cmake_copy_f90_mod SRC_DOUBLECOMPLEX/bpack_linkedlist.mod SRC_DOUBLECOMPLEX/CMakeFiles/zbutterflypack.dir/bpack_linkedlist.mod.stamp GNU
/opt/local/bin/cmake -E cmake_copy_f90_mod SRC_DOUBLECOMPLEX/magma_utilities.mod SRC_DOUBLECOMPLEX/CMakeFiles/zbutterflypack.dir/magma_utilities.mod.stamp GNU
Error copying Fortran module "SRC_DOUBLECOMPLEX/bpack_linkedlist.mod". Tried "SRC_DOUBLECOMPLEX/BPACK_LINKEDLIST.mod" and "SRC_DOUBLECOMPLEX/bpack_linkedlist.mod".
Error copying Fortran module "SRC_DOUBLECOMPLEX/magma_utilities.mod". Tried "SRC_DOUBLECOMPLEX/MAGMA_UTILITIES.mod" and "SRC_DOUBLECOMPLEX/magma_utilities.mod".
make[2]: *** [SRC_DOUBLECOMPLEX/CMakeFiles/zbutterflypack.dir/bpack_linkedlist.mod.stamp] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [SRC_DOUBLECOMPLEX/CMakeFiles/zbutterflypack.dir/magma_utilities.mod.stamp] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build'
Answering to the question, the second (i.e. this one) report was using this:
36-55% /opt/local/bin/gsed --version
/opt/local/bin/gsed (GNU sed) 4.9
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Jay Fenlason, Tom Lord, Ken Pizzini,
Paolo Bonzini, Jim Meyering, and Assaf Gordon.
This sed program was built without SELinux support.
GNU sed home page: <https://www.gnu.org/software/sed/>.
General help using GNU software: <https://www.gnu.org/gethelp/>.
E-mail bug reports to: <bug-sed@gnu.org>.
The system one (first one) does not take --version or -v:
36-55% /usr/bin/sed --version
/usr/bin/sed: illegal option -- -
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
P. S. I do not really expect you to debug old native sed
of 10.6, but can compilation with gsed
be fixed?
Indeed, the sed part still fails. GNU sed 4.9 (the one you are using) should be good to go. Can you send me the complete cmake build log? You should be seeing GNU 4.8 version printed by Cmake.
On Tue, May 9, 2023 at 12:53 PM Sergey Fedorov @.***> wrote:
P. S. I do not really expect you to debug old native sed of 10.6, but can compilation with gsed be fixed?
— Reply to this email directly, view it on GitHub https://github.com/liuyangzhuan/ButterflyPACK/issues/14#issuecomment-1540806219, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABT6SCR2DR7YECGTVP7HJDTXFKODVANCNFSM6AAAAAAX3WT56Q . You are receiving this because you commented.Message ID: @.***>
-- Yang Liu Research Scientist Lawrence Berkeley National Laboratory
Sure, here are the logs. Notice, that the main one contains several attempts (the last one where gsed
is correctly recognized is at 20400):
main (1).log
CMakeCache (1).txt
Could it be because you didn't start a clean build? I mean, it's always safe to rm -rf build to make sure the files previously generated from macsed is not used.
I just tried GNU sed 4.9 on my machine and it works correctly.
On Tue, May 9, 2023 at 1:35 PM Sergey Fedorov @.***> wrote:
Sure, here are the logs. Notice, that the main one contains several attempts (the last one where gsed is correctly recognized is at 20400): main (1).log https://github.com/liuyangzhuan/ButterflyPACK/files/11435948/main.1.log CMakeCache (1).txt https://github.com/liuyangzhuan/ButterflyPACK/files/11435950/CMakeCache.1.txt
— Reply to this email directly, view it on GitHub https://github.com/liuyangzhuan/ButterflyPACK/issues/14#issuecomment-1540855466, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABT6SCQGIHPHVKLGXOU7GILXFKTAVANCNFSM6AAAAAAX3WT56Q . You are receiving this because you commented.Message ID: @.***>
-- Yang Liu Research Scientist Lawrence Berkeley National Laboratory
Ah, besides, if it matters, I was trying to build 2.2.2 release, not latest commit (but you probably noticed that from the log anyway).
2.2.2 release has no difference compared to the latest commit for the sed part. Just give clean build a try. If it still doesn't work, maybe send me the generated PrecisionPreprocessing_mac.sh under the root folder.
On Tue, May 9, 2023 at 2:56 PM Sergey Fedorov @.***> wrote:
Ah, besides, if it matters, I was trying to build 2.2.2 release, not latest commit (but you probably noticed that from the log anyway).
— Reply to this email directly, view it on GitHub https://github.com/liuyangzhuan/ButterflyPACK/issues/14#issuecomment-1540940180, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABT6SCQHUAWFAYJK2C4Q3F3XFK4PDANCNFSM6AAAAAAX3WT56Q . You are receiving this because you commented.Message ID: @.***>
-- Yang Liu Research Scientist Lawrence Berkeley National Laboratory
UPD. Tried to clean and rebuild, no luck. Also tried to add and remove -DUSING_MACOS_SED=OFF
(when using gsed
), identical failure.
This is from gsed
build (not fi
/fin
error):
PrecisionPreprocessing_mac.txt
(renamed to text for GH to allow it)
Sorry about the confusion. I just went through the commits and indeed v2.2.2 release is missing a bug fix in https://github.com/liuyangzhuan/ButterflyPACK/commit/121b802eb27a5bcd72ab696d786353087f673800
Do you mind trying again with the latest commit and use macos sed (not gnu sed). The above commit should fix your initial problem. I still don't understand why gnu sed doesn't work. But macos sed should work for you now.
On Tue, May 9, 2023 at 3:11 PM Sergey Fedorov @.***> wrote:
UPD. Tried to clean and rebuild, no luck. Also tried to add and remove -DUSING_MACOS_SED=OFF (when using gsed), identical failure.
This is from gsed build (not fi/fin error): PrecisionPreprocessing_mac.txt https://github.com/liuyangzhuan/ButterflyPACK/files/11436561/PrecisionPreprocessing_mac.txt (renamed to text for GH to allow it)
— Reply to this email directly, view it on GitHub https://github.com/liuyangzhuan/ButterflyPACK/issues/14#issuecomment-1540953920, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABT6SCXEWHTUJI3MK4L3KODXFK6JXANCNFSM6AAAAAAX3WT56Q . You are receiving this because you commented.Message ID: @.***>
-- Yang Liu Research Scientist Lawrence Berkeley National Laboratory
It seems 2.2.2 has it already. I.e.,
sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi\\n c$CONFIG_FILE.fi/g" $CSRCDIR/CMakeLists.txt
etc.
Hmm. How about retrying mac sed, but before "make", change the first few lines of SRC_DOUBLE/CMakeLists.txt to
set(headers dC_BPACK_wrapper.h ButterflyPACK_config.fi dButterflyPACK_config.fi
)
SRC_SINGLE/CMakeLists.txt to set(headers sC_BPACK_wrapper.h ButterflyPACK_config.fi sButterflyPACK_config.fi
)
SRC_COMPLEX/CMakeLists.txt to set(headers cC_BPACK_wrapper.h ButterflyPACK_config.fi cButterflyPACK_config.fi
)
SRC_DOUBLECOMPLEX/CMakeLists.txt to set(headers zC_BPACK_wrapper.h ButterflyPACK_config.fi zButterflyPACK_config.fi
)
As you mentioned in the first message, the following line sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi\n c$CONFIG_FILE.fi/g" is broken for your system. It should replace e.g. ButterflyPACK_config.fi with ButterflyPACK_config.fi dButterflyPACK_config.fi
But instead your system generates ButterflyPACK_config.fin dButterflyPACK_config.fi
Maybe you could just manually do that.
On Tue, May 9, 2023 at 3:59 PM Sergey Fedorov @.***> wrote:
It seems 2.2.2 has it already. I.e.,
sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi\n c$CONFIG_FILE.fi/g" $CSRCDIR/CMakeLists.txt
etc.
— Reply to this email directly, view it on GitHub https://github.com/liuyangzhuan/ButterflyPACK/issues/14#issuecomment-1540993272, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABT6SCWWYTQ625AYIG3JBWDXFLD5LANCNFSM6AAAAAAX3WT56Q . You are receiving this because you commented.Message ID: @.***>
-- Yang Liu Research Scientist Lawrence Berkeley National Laboratory
@liuyangzhuan Perhaps it is in fact unsupported in Mac sed, and the code should be changed: https://stackoverflow.com/questions/24275070/sed-not-giving-me-correct-substitute-operation-for-newline-with-mac-difference
This actually works for the macSED on my machine. But as you said, maybe it's safer to use
sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi c$CONFIG_FILE.fi/g"
Can you try if this works for you? If so, I can push some changes.
On Tue, May 9, 2023 at 4:43 PM Sergey Fedorov @.***> wrote:
@liuyangzhuan https://github.com/liuyangzhuan Perhaps it is in fact unsupported in Mac sed, and the code should be changed: https://stackoverflow.com/questions/24275070/sed-not-giving-me-correct-substitute-operation-for-newline-with-mac-difference
— Reply to this email directly, view it on GitHub https://github.com/liuyangzhuan/ButterflyPACK/issues/14#issuecomment-1541025725, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABT6SCT6M32FYUAQIWVK6XTXFLJDBANCNFSM6AAAAAAX3WT56Q . You are receiving this because you were mentioned.Message ID: @.***>
-- Yang Liu Research Scientist Lawrence Berkeley National Laboratory
Yes, now it builds fine. There are some warnings (besides mismatching types):
-- detecting sed version...
--
-- sed command [/usr/bin/sed -i ""]
-- generating macro definition header ...
-- copy and modify SRC dir ...
-- processing SRC_DOUBLECOMPLEX ...
sed: 1: "s/ButterflyPACK_config. ...": unescaped newline inside substitute pattern
-- processing SRC_DOUBLE ...
sed: 1: "s/ButterflyPACK_config. ...": unescaped newline inside substitute pattern
-- processing SRC_COMPLEX ...
sed: 1: "s/ButterflyPACK_config. ...": unescaped newline inside substitute pattern
-- processing SRC_SINGLE ...
sed: 1: "s/ButterflyPACK_config. ...": unescaped newline inside substitute pattern
-- Configuring done (44.4s)
-- Generating done (0.7s)
Needs some ending character like \
?
And in the very end:
-- Installing: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/destroot/opt/local/lib/EXAMPLE/ie2d
/usr/bin/install_name_tool: more than one input file specified (/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLECOMPLEX and -delete_rpath)
Usage: /usr/bin/install_name_tool [-change old new] ... [-id name] input
-- Installing: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/destroot/opt/local/lib/EXAMPLE/ie3deigen
/usr/bin/install_name_tool: more than one input file specified (/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLECOMPLEX and -delete_rpath)
Usage: /usr/bin/install_name_tool [-change old new] ... [-id name] input
-- Installing: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/destroot/opt/local/lib/EXAMPLE/ie3dporteigen
/usr/bin/install_name_tool: more than one input file specified (/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLECOMPLEX and -delete_rpath)
Usage: /usr/bin/install_name_tool [-change old new] ... [-id name] input
-- Installing: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/destroot/opt/local/lib/EXAMPLE/ie3dport
/usr/bin/install_name_tool: more than one input file specified (/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build/SRC_DOUBLECOMPLEX and -delete_rpath)
Usage: /usr/bin/install_name_tool [-change old new] ... [-id name] input
make: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_bpack/bpack/work/build'
Finally, it installs EXAMPLES folder into prefix/lib (!), perhaps that should go into prefix/share or alike? But this I can fix on my end.
This works nicely:
--- PrecisionPreprocessing.sh.orig 2022-10-18 01:48:19.000000000 +0800
+++ PrecisionPreprocessing.sh 2023-05-10 08:15:08.000000000 +0800
@@ -142,7 +142,8 @@
fi
fi
done
-sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi\\n z$CONFIG_FILE.fi/g" $ZSRCDIR/CMakeLists.txt # still keep ButterflyPACK_config.fi for backward compatibility
+sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi \
+z$CONFIG_FILE.fi/g" $ZSRCDIR/CMakeLists.txt # still keep ButterflyPACK_config.fi for backward compatibility
sed -i -e "s/butterflypack/zbutterflypack/g" $ZSRCDIR/CMakeLists.txt
sed -i -e "s/ButterflyPACKLIB/ZButterflyPACKLIB/g" $ZSRCDIR/Makefile
sed -i -e "s/-DDAT/-DDAT=0/g" $ZSRCDIR/CMakeLists.txt
@@ -188,7 +189,8 @@
fi
fi
done
-sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi\\n d$CONFIG_FILE.fi/g" $DSRCDIR/CMakeLists.txt # still keep ButterflyPACK_config.fi for backward compatibility
+sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi \
+d$CONFIG_FILE.fi/g" $DSRCDIR/CMakeLists.txt # still keep ButterflyPACK_config.fi for backward compatibility
sed -i -e "s/butterflypack/dbutterflypack/g" $DSRCDIR/CMakeLists.txt
sed -i -e "s/ButterflyPACKLIB/DButterflyPACKLIB/g" $DSRCDIR/Makefile
sed -i -e "s/-DDAT/-DDAT=1/g" $DSRCDIR/CMakeLists.txt
@@ -234,7 +236,8 @@
fi
fi
done
-sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi\\n c$CONFIG_FILE.fi/g" $CSRCDIR/CMakeLists.txt # still keep ButterflyPACK_config.fi for backward compatibility
+sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi \
+c$CONFIG_FILE.fi/g" $CSRCDIR/CMakeLists.txt # still keep ButterflyPACK_config.fi for backward compatibility
sed -i -e "s/butterflypack/cbutterflypack/g" $CSRCDIR/CMakeLists.txt
sed -i -e "s/ButterflyPACKLIB/CButterflyPACKLIB/g" $CSRCDIR/Makefile
sed -i -e "s/-DDAT/-DDAT=2/g" $CSRCDIR/CMakeLists.txt
@@ -279,7 +282,8 @@
fi
fi
done
-sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi\\n s$CONFIG_FILE.fi/g" $SSRCDIR/CMakeLists.txt # still keep ButterflyPACK_config.fi for backward compatibility
+sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi \
+s$CONFIG_FILE.fi/g" $SSRCDIR/CMakeLists.txt # still keep ButterflyPACK_config.fi for backward compatibility
sed -i -e "s/butterflypack/sbutterflypack/g" $SSRCDIR/CMakeLists.txt
sed -i -e "s/ButterflyPACKLIB/SButterflyPACKLIB/g" $SSRCDIR/Makefile
sed -i -e "s/-DDAT/-DDAT=3/g" $SSRCDIR/CMakeLists.txt
And put examples in some sensible place:
--- EXAMPLE/CMakeLists.txt.orig 2023-05-10 08:17:48.000000000 +0800
+++ EXAMPLE/CMakeLists.txt 2023-05-10 08:44:37.000000000 +0800
@@ -24,7 +24,7 @@
set(FZEXM1 EMCURV_Driver.f90 EMCURV_Module.f90)
add_executable(ie2d ${FZEXM1})
target_link_libraries(ie2d ${all_link_libs_z})
-install(TARGETS ie2d RUNTIME DESTINATION "${CMAKE_INSTALL_LIBDIR}/EXAMPLE")
+install(TARGETS ie2d RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/share/bpack/examples")
set(FZEXM2 EMCURV_Eigen_Driver.f90 EMCURV_Module.f90)
add_executable(ie2deigen ${FZEXM2})
@@ -39,7 +39,7 @@
add_executable(ie3deigen ${FZEXM4})
target_link_libraries(ie3deigen ${all_link_libs_z})
add_dependencies(ie3deigen ie3d)
-install(TARGETS ie3deigen RUNTIME DESTINATION "${CMAKE_INSTALL_LIBDIR}/EXAMPLE")
+install(TARGETS ie3deigen RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/share/bpack/examples")
set(FZEXM5 SMAT_Driver.f90)
add_executable(smat ${FZEXM5})
@@ -66,14 +66,14 @@
add_executable(ie3dporteigen ${FZEXM9})
target_link_libraries(ie3dporteigen ${all_link_libs_z})
add_dependencies(ie3dporteigen ie3d)
-install(TARGETS ie3dporteigen RUNTIME DESTINATION "${CMAKE_INSTALL_LIBDIR}/EXAMPLE")
+install(TARGETS ie3dporteigen RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/share/bpack/examples")
set(FZEXM10 EMSURF_Port_Driver.f90 EMSURF_Port_Module.f90 DoCubicInterp2D.c)
add_executable(ie3dport ${FZEXM10})
target_link_libraries(ie3dport ${all_link_libs_z})
add_dependencies(ie3dport ie3dporteigen)
-install(TARGETS ie3dport RUNTIME DESTINATION "${CMAKE_INSTALL_LIBDIR}/EXAMPLE")
+install(TARGETS ie3dport RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/share/bpack/examples")
########################################### double Fortran drivers
Thank you! I've incorporated the fix for PrecisionPreprocessing.sh in the latest commit. https://github.com/liuyangzhuan/ButterflyPACK/commit/bf96d37e550fe87e46a0ce3d9c89721b1c4da464
Regarding the example directory, it was designed such that spack installation can easily find these executables so I will still need to keep them in ${CMAKE_INSTALL_LIBDIR}/EXAMPLE. But feel free to change them as you see fit. I'm closing this issue now.
On Tue, May 9, 2023 at 6:02 PM Sergey Fedorov @.***> wrote:
This works nicely:
--- PrecisionPreprocessing.sh.orig 2022-10-18 01:48:19.000000000 +0800 +++ PrecisionPreprocessing.sh 2023-05-10 08:15:08.000000000 +0800 @@ -142,7 +142,8 @@ fi fi done -sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi\n z$CONFIG_FILE.fi/g" $ZSRCDIR/CMakeLists.txt # still keep ButterflyPACK_config.fi for backward compatibility +sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi \ +z$CONFIG_FILE.fi/g" $ZSRCDIR/CMakeLists.txt # still keep ButterflyPACK_config.fi for backward compatibility sed -i -e "s/butterflypack/zbutterflypack/g" $ZSRCDIR/CMakeLists.txt sed -i -e "s/ButterflyPACKLIB/ZButterflyPACKLIB/g" $ZSRCDIR/Makefile sed -i -e "s/-DDAT/-DDAT=0/g" $ZSRCDIR/CMakeLists.txt @@ -188,7 +189,8 @@ fi fi done -sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi\n d$CONFIG_FILE.fi/g" $DSRCDIR/CMakeLists.txt # still keep ButterflyPACK_config.fi for backward compatibility +sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi \ +d$CONFIG_FILE.fi/g" $DSRCDIR/CMakeLists.txt # still keep ButterflyPACK_config.fi for backward compatibility sed -i -e "s/butterflypack/dbutterflypack/g" $DSRCDIR/CMakeLists.txt sed -i -e "s/ButterflyPACKLIB/DButterflyPACKLIB/g" $DSRCDIR/Makefile sed -i -e "s/-DDAT/-DDAT=1/g" $DSRCDIR/CMakeLists.txt @@ -234,7 +236,8 @@ fi fi done -sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi\n c$CONFIG_FILE.fi/g" $CSRCDIR/CMakeLists.txt # still keep ButterflyPACK_config.fi for backward compatibility +sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi \ +c$CONFIG_FILE.fi/g" $CSRCDIR/CMakeLists.txt # still keep ButterflyPACK_config.fi for backward compatibility sed -i -e "s/butterflypack/cbutterflypack/g" $CSRCDIR/CMakeLists.txt sed -i -e "s/ButterflyPACKLIB/CButterflyPACKLIB/g" $CSRCDIR/Makefile sed -i -e "s/-DDAT/-DDAT=2/g" $CSRCDIR/CMakeLists.txt @@ -279,7 +282,8 @@ fi fi done -sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi\n s$CONFIG_FILE.fi/g" $SSRCDIR/CMakeLists.txt # still keep ButterflyPACK_config.fi for backward compatibility +sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi \ +s$CONFIG_FILE.fi/g" $SSRCDIR/CMakeLists.txt # still keep ButterflyPACK_config.fi for backward compatibility sed -i -e "s/butterflypack/sbutterflypack/g" $SSRCDIR/CMakeLists.txt sed -i -e "s/ButterflyPACKLIB/SButterflyPACKLIB/g" $SSRCDIR/Makefile sed -i -e "s/-DDAT/-DDAT=3/g" $SSRCDIR/CMakeLists.txt
And put examples in some sensible place:
--- EXAMPLE/CMakeLists.txt.orig 2023-05-10 08:17:48.000000000 +0800 +++ EXAMPLE/CMakeLists.txt 2023-05-10 08:44:37.000000000 +0800 @@ -24,7 +24,7 @@ set(FZEXM1 EMCURV_Driver.f90 EMCURV_Module.f90) add_executable(ie2d ${FZEXM1}) target_link_libraries(ie2d ${all_link_libs_z}) -install(TARGETS ie2d RUNTIME DESTINATION "${CMAKE_INSTALL_LIBDIR}/EXAMPLE") +install(TARGETS ie2d RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/share/bpack/examples")
set(FZEXM2 EMCURV_Eigen_Driver.f90 EMCURV_Module.f90) add_executable(ie2deigen ${FZEXM2}) @@ -39,7 +39,7 @@ add_executable(ie3deigen ${FZEXM4}) target_link_libraries(ie3deigen ${all_link_libs_z}) add_dependencies(ie3deigen ie3d) -install(TARGETS ie3deigen RUNTIME DESTINATION "${CMAKE_INSTALL_LIBDIR}/EXAMPLE") +install(TARGETS ie3deigen RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/share/bpack/examples")
set(FZEXM5 SMAT_Driver.f90) add_executable(smat ${FZEXM5}) @@ -66,14 +66,14 @@ add_executable(ie3dporteigen ${FZEXM9}) target_link_libraries(ie3dporteigen ${all_link_libs_z}) add_dependencies(ie3dporteigen ie3d) -install(TARGETS ie3dporteigen RUNTIME DESTINATION "${CMAKE_INSTALL_LIBDIR}/EXAMPLE") +install(TARGETS ie3dporteigen RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/share/bpack/examples")
set(FZEXM10 EMSURF_Port_Driver.f90 EMSURF_Port_Module.f90 DoCubicInterp2D.c) add_executable(ie3dport ${FZEXM10}) target_link_libraries(ie3dport ${all_link_libs_z}) add_dependencies(ie3dport ie3dporteigen) -install(TARGETS ie3dport RUNTIME DESTINATION "${CMAKE_INSTALL_LIBDIR}/EXAMPLE") +install(TARGETS ie3dport RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/share/bpack/examples")
########################################### double Fortran drivers
— Reply to this email directly, view it on GitHub https://github.com/liuyangzhuan/ButterflyPACK/issues/14#issuecomment-1541096843, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABT6SCQE4WN7X4TPYKWRQ6TXFLSKHANCNFSM6AAAAAAX3WT56Q . You are receiving this because you were mentioned.Message ID: @.***>
-- Yang Liu Research Scientist Lawrence Berkeley National Laboratory
Then the build fails, because no such headers exist.
Maybe this is broken?
sed -i -e "s/$CONFIG_FILE.fi/$CONFIG_FILE.fi\\n c$CONFIG_FILE.fi/g"