# \[Experimental - 0.9-2022-g8468d90\] Compile fails on Ubuntu 12.04

**URL:** https://discourse.cataclysmdda.org/t/experimental-0-9-2022-g8468d90-compile-fails-on-ubuntu-12-04/4479
**Category:** The Garage
**Created:** [December 12, 2013, 11:46am UTC](https://discourse.cataclysmdda.org/t/experimental-0-9-2022-g8468d90-compile-fails-on-ubuntu-12-04/4479 "2013-12-12T11:46:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/1X/21b5d044e8473b25d0bf905d60477e25f6fbe0cf.png) [@system](https://discourse.cataclysmdda.org/u/system)
#### Post date: [December 12, 2013, 11:46am UTC](https://discourse.cataclysmdda.org/t/experimental-0-9-2022-g8468d90-compile-fails-on-ubuntu-12-04/4479/1 "2013-12-12T11:46:41Z")

</div>

Starting a few days ago, when I try to compile on Ubuntu 12.04, I get the following error:

`src/game.cpp: In member function ‘void game::process_activity()’:
src/game.cpp:1169:69: error: ‘veh’ may be used uninitialized in this function [-Werror=uninitialized]
At global scope:
cc1plus: error: unrecognized command line option "-Wno-maybe-uninitialized" [-Werror]
cc1plus: error: unrecognized command line option "-Wno-narrowing" [-Werror]
cc1plus: all warnings being treated as errors
make: *** [obj/tiles/game.o] Error 1`

I’m guessing that “-Wno-maybe-uninitialized” is only supported on newer versions of gcc.

A quick fix I’ve been using is:

[code]diff --git a/src/game.cpp b/src/game.cpp  
index d0f6bd9…1a7c46b 100644  
— a/src/game.cpp  
+++ b/src/game.cpp  
@@ -883,7 +883,7 @@ void game::process\_activity()  
it\_book\* reading;  
item\* book\_item;  
item\* reloadable;

- vehicle \*veh;

- vehicle \*veh = NULL;  
bool no\_recipes;  
if (u.activity.type != ACT\_NULL) {  
if (int(turn) % 50 == 0) {[/code]

I also suggest “-Wno-maybe-uninitialized” be removed from the compile options, as warnings about the use of uninitialized variables are worthy of attention.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/1X/21b5d044e8473b25d0bf905d60477e25f6fbe0cf.png) [@system](https://discourse.cataclysmdda.org/u/system)
#### Post date: [December 16, 2013, 3:38am UTC](https://discourse.cataclysmdda.org/t/experimental-0-9-2022-g8468d90-compile-fails-on-ubuntu-12-04/4479/2 "2013-12-16T03:38:46Z")

</div>

Looks like this has been fixed in the latest expiremental - thanks.
