Compiling in ubuntu 18.10

I have tried building the different ardupilot builds as shown in this step
./waf configure --board px4-v3

I get
Setting top to : /home/josheeg/ardupilot-master
Setting out to : /home/josheeg/ardupilot-master/build
Autoconfiguration : enabled
Setting board to : px4-v3
Using toolchain : arm-none-eabi
Checking for ‘g++’ (C++ compiler) : /usr/bin/arm-none-eabi-g++
Checking for ‘gcc’ (C compiler) : /usr/bin/arm-none-eabi-gcc
Checking for c flags ‘-MMD’ : yes
Checking for cxx flags ‘-MMD’ : yes
Traceback (most recent call last):
File “/home/josheeg/ardupilot-master/modules/waf/waflib/Scripting.py”, line 159, in waf_entry_point
run_commands()
File “/home/josheeg/ardupilot-master/modules/waf/waflib/Scripting.py”, line 252, in run_commands
ctx = run_command(cmd_name)
File “/home/josheeg/ardupilot-master/modules/waf/waflib/Scripting.py”, line 236, in run_command
ctx.execute()
File “/home/josheeg/ardupilot-master/modules/waf/waflib/Configure.py”, line 159, in execute
super(ConfigurationContext, self).execute()
File “/home/josheeg/ardupilot-master/modules/waf/waflib/Context.py”, line 204, in execute
self.recurse([os.path.dirname(g_module.root_path)])
File “/home/josheeg/ardupilot-master/modules/waf/waflib/Context.py”, line 286, in recurse
user_function(self)
File “/home/josheeg/ardupilot-master/wscript”, line 233, in configure
cfg.get_board().configure(cfg)
File “Tools/ardupilotwaf/boards.py”, line 751, in configure
super(px4, self).configure(cfg)
File “Tools/ardupilotwaf/boards.py”, line 44, in configure
self.configure_env(cfg, env)
File “Tools/ardupilotwaf/boards.py”, line 755, in configure_env
super(px4, self).configure_env(cfg, env)
File “Tools/ardupilotwaf/boards.py”, line 219, in configure_env
cfg.srcnode.find_dir(‘modules/uavcan/libuavcan/include’).abspath()
AttributeError: ‘NoneType’ object has no attribute ‘abspath’

Now I figured try the other options see if I get the same result?
Setting top to : /home/josheeg/ardupilot-master
Setting out to : /home/josheeg/ardupilot-master/build
Autoconfiguration : enabled
Setting board to : px4-v3
Using toolchain : arm-none-eabi
Checking for ‘g++’ (C++ compiler) : /usr/bin/arm-none-eabi-g++
Checking for ‘gcc’ (C compiler) : /usr/bin/arm-none-eabi-gcc
Checking for c flags ‘-MMD’ : yes
Checking for cxx flags ‘-MMD’ : yes
Traceback (most recent call last):
File “/home/josheeg/ardupilot-master/modules/waf/waflib/Scripting.py”, line 159, in waf_entry_point
run_commands()
File “/home/josheeg/ardupilot-master/modules/waf/waflib/Scripting.py”, line 252, in run_commands
ctx = run_command(cmd_name)
File “/home/josheeg/ardupilot-master/modules/waf/waflib/Scripting.py”, line 236, in run_command
ctx.execute()
File “/home/josheeg/ardupilot-master/modules/waf/waflib/Configure.py”, line 159, in execute
super(ConfigurationContext, self).execute()
File “/home/josheeg/ardupilot-master/modules/waf/waflib/Context.py”, line 204, in execute
self.recurse([os.path.dirname(g_module.root_path)])
File “/home/josheeg/ardupilot-master/modules/waf/waflib/Context.py”, line 286, in recurse
user_function(self)
File “/home/josheeg/ardupilot-master/wscript”, line 233, in configure
cfg.get_board().configure(cfg)
File “Tools/ardupilotwaf/boards.py”, line 751, in configure
super(px4, self).configure(cfg)
File “Tools/ardupilotwaf/boards.py”, line 44, in configure
self.configure_env(cfg, env)
File “Tools/ardupilotwaf/boards.py”, line 755, in configure_env
super(px4, self).configure_env(cfg, env)
File “Tools/ardupilotwaf/boards.py”, line 219, in configure_env
cfg.srcnode.find_dir(‘modules/uavcan/libuavcan/include’).abspath()
AttributeError: ‘NoneType’ object has no attribute ‘abspath’

That one seemed to work so I figured why not try sitl at least
well I get this error
osheeg@josheeg-Vostro-220-Series:~/ardupilot-master$ ./waf copter
Waf: Entering directory `/home/josheeg/ardupilot-master/build/sitl’
Command [’/usr/bin/git’, ‘rev-parse’, ‘–short=8’, ‘HEAD’] returned 128

What an I doing wrong?