SCons can't compile with msp430-elf-gcc

Description

SCons can't compile with msp430-elf-gcc because folders are owned by root OR when sudo is used, msp430-elf-gcc is not added to root bashrc:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 vagrant@vagrant:~/Desktop/openwsn-fw$ scons board=MoteISTv5 toolchain=mspgcc datamodel=small oos_openwsn scons: Reading SConscript files ... ___ _ _ _ ___ _ _ | . | ___ ___ ._ _ | | | |/ __>| \ | | | || . \/ ._>| ' || | | |\__ \| | `___'| _/\___.|_|_||__/_/ <___/|_\_| |_| openwsn.org none scons: done reading SConscript files. scons: Building targets ... Compiling build/MoteISTv5_mspgcc/projects/common/03oos_openwsn/03oos_openwsn.o build/MoteISTv5_mspgcc/projects/common/03oos_openwsn/03oos_openwsn.c:13:5: warning: no previous prototype for 'mote_main' [-Wmissing-prototypes] int mote_main(void) { ^ build/MoteISTv5_mspgcc/projects/common/03oos_openwsn/03oos_openwsn.c:28:6: warning: no previous prototype for 'sniffer_setListeningChannel' [-Wmissing-prototypes] void sniffer_setListeningChannel(uint8_t channel){return;} ^ Assembler messages: Fatal error: can't create build/MoteISTv5_mspgcc/projects/common/03oos_openwsn/03oos_openwsn.o: Permission denied scons: *** [build/MoteISTv5_mspgcc/projects/common/03oos_openwsn/03oos_openwsn.o] Error 1 scons: building terminated because of errors. vagrant@vagrant:~/Desktop/openwsn-fw$

Sudo error

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 vagrant@vagrant:~/Desktop/openwsn-fw$ sudo scons board=MoteISTv5 toolchain=mspgcc datamodel=small oos_openwsn scons: Reading SConscript files ... ___ _ _ _ ___ _ _ | . | ___ ___ ._ _ | | | |/ __>| \ | | | || . \/ ._>| ' || | | |\__ \| | `___'| _/\___.|_|_||__/_/ <___/|_\_| |_| openwsn.org none scons: done reading SConscript files. scons: Building targets ... Compiling build/MoteISTv5_mspgcc/projects/common/03oos_openwsn/03oos_openwsn.o sh: 1: msp430-elf-gcc: not found scons: *** [build/MoteISTv5_mspgcc/projects/common/03oos_openwsn/03oos_openwsn.o] Error 127 scons: building terminated because of errors.

Environment

None

Status

Assignee

Unassigned

Reporter

Diogo Guerra

Labels

None

Priority

Normal