Fix mpich cross compilation and clean up tagaspi #213
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	
	No description provided.
		
		Delete Branch "abonerib/jungle:fix/cross-mpich"
	
	Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
mpich seems to work (although we lose fortran support when cross compiling). This also fixed its dependants:
cross.riscv64.osumbcross.riscv64.sonarcross.riscv64.tampitagaspigpi-2 for tagaspi fails in configure phase still:Details in weasel:
http://weasel:3001/jobset/bscpkgs/fix-cross
Thanks!
Can we enable
cross = trueon those?We may be able to patch it to follow what TAMPI is doing. Not sure if anybody maintains it anymore.
89442e6af8toa17ad0417da17ad0417dtoee7daa3922ee7daa3922toa4e0c14e5cWIP: Fix mpich and tagaspi cross compilationto Fix mpich cross compilation and clean up tagaspia4e0c14e5cto31302d4a9731302d4a97to81fa5392bc81fa5392bcto00e7bafb6b00e7bafb6bto8f96735e85osu micro bencharks breaks since it uses:
With the patch to do
CC=${CC:-gcc}mpicc references itself.EDIT: I'm going to leave it as
CC=gccfor now.8f96735e85toad4d3f6719@ -35,0 +49,4 @@sed -i 's:^CC=.*:CC=${targetPackages.stdenv.cc}/bin/${targetPackages.stdenv.cc.targetPrefix}cc:' $out/bin/mpiccsed -i 's:^CXX=.*:CXX=${targetPackages.stdenv.cc}/bin/${targetPackages.stdenv.cc.targetPrefix}++:' $out/bin/mpicxx'' + lib.optionalString enableFortran ''sed -i 's:^FC=.*:FC=${targetPackages.gfortran or gfortran}/bin/${targetPackages.gfortran.targetPrefix or gfortran.targetPrefix}gfortran:' $out/bin/mpifortI noticed openmpi nixpkgs they use
targetPacages.gfortran or gfortrandaf6dc47aa/pkgs/by-name/op/openmpi/package.nix (L189)Not sure if we should also do that in our openmpi.
Currently we don't use the openmpi package of jungle, so I wouldn't change it.
4778cb3b5eto12abc41e4812abc41e48to100e4e7029100e4e7029to4752afae0c4752afae0cto32a2b87313Thanks!
@ -60,5 +70,6 @@ stdenv.mkDerivation rec {maintainers = with lib.maintainers.bsc; [ rarias ];platforms = lib.platforms.linux;license = lib.licenses.gpl3Plus;cross = false;Can we add a comment here on why is broken? Maybe also in the
--with-mpi=yesabove.Checkout
From your project repository, check out a new branch and test the changes.