PrincetonUniversity / openpiton

The OpenPiton Platform
http://www.openpiton.org
643 stars 216 forks source link

Build script doesn't check /scratch exists or is writable #30

Open mithro opened 5 years ago

mithro commented 5 years ago
tansell@tansell-glaptop:~/github/PrincetonUniversity/openpiton$ source piton/ariane_setup.sh 

----------------------------------------------------------------------
openpiton/ariane path setup
----------------------------------------------------------------------

make sure that you source this script in a bash shell in the root folder of OpenPiton

----------------------------------------------------------------------
setup complete. do not forget to run the following script             
if you run the setup for the first time: ./piton/ariane_build_tools.sh
----------------------------------------------------------------------

tansell@tansell-glaptop:~/github/PrincetonUniversity/openpiton$ ./piton/ariane_build_tools.sh 

----------------------------------------------------------------------
building RISCV toolchain and tests (if not existing)
----------------------------------------------------------------------
.....
g++-7 -L.  -Wl,-rpath,/scratch/tansell/riscv_install/lib  -o elf2hex elf2hex.o  -lfesvr -lpthread 
../scripts/mk-install-dirs.sh /scratch/tansell/riscv_install/include/fesvr
mkdir /scratch
mkdir: cannot create directory ‘/scratch’: Permission denied
mkdir /scratch/tansell
mkdir: cannot create directory ‘/scratch/tansell’: No such file or directory
mkdir /scratch/tansell/riscv_install
mkdir: cannot create directory ‘/scratch/tansell/riscv_install’: No such file or directory
mkdir /scratch/tansell/riscv_install/include
mkdir: cannot create directory ‘/scratch/tansell/riscv_install/include’: No such file or directory
mkdir /scratch/tansell/riscv_install/include/fesvr
mkdir: cannot create directory ‘/scratch/tansell/riscv_install/include/fesvr’: No such file or directory
Makefile:336: recipe for target 'install-hdrs' failed
make: *** [install-hdrs] Error 1
zhanyan110 commented 3 years ago

Yes, I met the same issue. the solution is I have to create the /scratch, and chmod 777 to /scratch