Help compiling: " fatal error: stuff.h: No such file..."


Problems running or configuring the software, commands & options, compiling, different platforms, using the interface, documentation, etc.

Mines Malingerer

Posts: 50

Joined: Tuesday, 24th December 2013, 18:44

Post Sunday, 3rd August 2014, 23:58

Help compiling: " fatal error: stuff.h: No such file..."

  Code:
sudo make install
  * If you experience any problems building Crawl, please take a second look
  * at INSTALL.txt: the solution to your problem just might be in there!
    * rebuilding crawl: new build flags or prefix
TRACK_CFLAGS = i686-linux-gnu-gcc i686-linux-gnu-g++ -O2 -pipe -Wall -Wformat-security -Wmissing-declarations -Wredundant-decls -Wundef -Wno-array-bounds -Wno-format-zero-length -Wno-parentheses -Wno-unused-parameter -Wwrite-strings -Wshadow -Wuninitialized -Iutil -I. -isystem /usr/include/lua5.1 -Irltiles -isystem /usr/include/ncursesw -DWIZARD -DASSERTS -DCLUA_BINDINGS #EOL
OLD_CFLAGS   = i686-linux-gnu-gcc i686-linux-gnu-g++ -O2 -pipe -Wall -Wformat-security -Wmissing-declarations -Wredundant-decls -DUSE_TILE -DUSE_TILE_LOCAL -DUSE_SDL -DUSE_GL -DUSE_FT -D_GNU_SOURCE=1 -D_REENTRANT -Wundef -Wno-array-bounds -Wno-format-zero-length -Wno-parentheses -Wno-unused-parameter -Wwrite-strings -Wshadow -Wuninitialized -Iutil -I. -isystem /usr/include/lua5.1 -Irltiles -isystem /usr/include/freetype2 -isystem /usr/include/SDL -isystem /usr/include/ncursesw -DWIZARD -DASSERTS -DPROPORTIONAL_FONT=\"/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf\" -DMONOSPACED_FONT=\"/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf\" -D_GNU_SOURCE=1 -D_REENTRANT -DCLUA_BINDINGS #EOL
    GEN config.h
make -C rltiles all ARCH=i686-linux-gnu TILES=
make[1]: Entering directory `/home/ian/crawl/crawl-ref/source/rltiles'
    * rebuilding tilegen: new build flags or prefix
    HOSTCXX tool/tile_colour.o
    HOSTCXX tool/tile.o
    HOSTCXX tool/tile_page.o
    HOSTCXX tool/tile_list_processor.o
    HOSTCXX tool/main.o
    HOSTLINK tool/tilegen.elf
    GEN tiledef-main.h
    GEN tiledef-dngn.h
    GEN tiledef-floor.h
    GEN tiledef-wall.h
    GEN tiledef-feat.h
    GEN tiledef-player.h
    GEN tiledef-gui.h
    GEN tiledef-icons.h
make[1]: Leaving directory `/home/ian/crawl/crawl-ref/source/rltiles'
    CXX ability.o
    CXX abyss.o
    CXX acquire.o
    CXX act-iter.o
    CXX actor-los.o
    CXX actor.o
    CXX areas.o
    CXX arena.o
    CXX artefact.o
    CXX asg.o
    CXX attack.o
    CXX attitude-change.o
    CXX beam.o
    CXX behold.o
    CXX bitary.o
    CXX branch.o
    CXX butcher.o
    CXX bloodspatter.o
    CXX chardump.o
    CXX cio.o
    CXX cloud.o
    CXX clua.o
    CXX cluautil.o
    CXX colour.o
    CXX command.o
    CXX coord.o
    CXX coord-circle.o
    CXX coordit.o
    CXX crash.o
    CXX ctest.o
    CXX dactions.o
    CXX database.o
    CXX dbg-asrt.o
    CXX dbg-maps.o
    CXX dbg-scan.o
    CXX dbg-util.o
    CXX decks.o
    CXX delay.o
    CXX describe.o
    CXX dgl-message.o
    CXX dgn-delve.o
    CXX dgn-height.o
    CXX dgn-irregular-box.o
    CXX dgn-labyrinth.o
    CXX dgn-layouts.o
    CXX dgn-overview.o
    CXX dgn-proclayouts.o
    CXX dgn-shoals.o
    CXX dgn-swamp.o
    CXX dgnevent.o
    CXX directn.o
    CXX dlua.o
    CXX dungeon.o
    CXX effects.o
    CXX end.o
    CXX errors.o
    CXX evoke.o
    CXX exclude.o
    CXX exercise.o
    CXX fearmonger.o
    CXX feature.o
    CXX fight.o
    CXX files.o
    CXX fineff.o
    CXX food.o
    CXX format.o
    CXX fprop.o
    CXX geom2d.o
    CXX ghost.o
    CXX godabil.o
    CXX godblessing.o
    CXX godcompanions.o
    CXX godconduct.o
    CXX goditem.o
    CXX godmenu.o
    CXX godpassive.o
    CXX godprayer.o
    CXX godwrath.o
    CXX hash.o
    CXX hints.o
    CXX hiscores.o
    CXX initfile.o
    CXX invent.o
    CXX item_use.o
    CXX itemname.o
    CXX itemprop.o
    CXX items.o
    CXX jobs.o
    CXX kills.o
    CXX l_colour.o
    CXX l_crawl.o
    CXX l_debug.o
    CXX l_dgn.o
    CXX l_dgnbld.o
    CXX l_dgnevt.o
    CXX l_dgngrd.o
    CXX l_dgnit.o
    CXX l_dgnlvl.o
    CXX l_dgnmon.o
    CXX l_dgntil.o
    CXX l_feat.o
    CXX l_file.o
    CXX l_food.o
    CXX l_global.o
    CXX l_item.o
    CXX l_los.o
    CXX l_mapgrd.o
    CXX l_mapmrk.o
    CXX l_moninf.o
    CXX l_mons.o
    CXX l_option.o
    CXX l_spells.o
    CXX l_subvault.o
    CXX l_travel.o
    CXX l_view.o
    CXX l_you.o
    CXX lang-fake.o
    CXX lev-pand.o
    CXX libutil.o
    CXX los.o
    CXX los_def.o
    CXX losglobal.o
    CXX losparam.o
    CXX luaterp.o
    CXX macro.o
    CXX main.o
    CXX makeitem.o
    CXX map_knowledge.o
    CXX mapdef.o
    CXX mapmark.o
    CXX maps.o
    CXX melee_attack.o
    CXX menu.o
    CXX message-stream.o
    CXX message.o
    CXX misc.o
    CXX mon-abil.o
    CXX mon-act.o
    CXX mon-behv.o
    CXX mon-cast.o
    CXX mon-chimera.o
    CXX mon-clone.o
    CXX mon-death.o
    CXX mon-ench.o
    CXX mon-gear.o
    CXX mon-grow.o
    CXX mon-info.o
    CXX mon-message.o
    CXX mon-movetarget.o
    CXX mon-pathfind.o
    CXX mon-pick.o
    CXX mon-place.o
    CXX mon-poly.o
    CXX mon-project.o
    CXX mon-speak.o
    CXX mon-stealth.o
    CXX mon-transit.o
    CXX mon-util.o
    CXX monster.o
    CXX mutation.o
    CXX newgame.o
    CXX ng-init.o
    CXX ng-input.o
    CXX ng-restr.o
    CXX ng-setup.o
    CXX ng-wanderer.o
    CXX notes.o
    CXX orb.o
    CXX ouch.o
    CXX output.o
    CXX package.o
    CXX pattern.o
    CXX perlin.o
    CXX place-info.o
    CXX place.o
    CXX player-act.o
    CXX player-equip.o
    CXX player-reacts.o
    CXX player-stats.o
    CXX player.o
    CXX potion.o
    CXX prompt.o
    CXX quiver.o
    CXX random.o
    CXX random-var.o
    CXX ranged_attack.o
    CXX ray.o
    CXX rot.o
    CXX religion.o
    CXX shopping.o
    CXX shout.o
    CXX show.o
    CXX showsymb.o
    CXX skill_menu.o
    CXX skills.o
    CXX skills2.o
    CXX species.o
    CXX spl-book.o
    CXX spl-cast.o
    CXX spl-clouds.o
    CXX spl-damage.o
    CXX spl-goditem.o
    CXX spl-miscast.o
    CXX spl-monench.o
    CXX spl-other.o
    CXX spl-pick.o
    CXX spl-selfench.o
    CXX spl-summoning.o
    CXX spl-tornado.o
    CXX spl-transloc.o
    CXX spl-util.o
    CXX spl-wpnench.o
    CXX spl-zap.o
    CXX sprint.o
    CXX sqldbm.o
    CXX stairs.o
    CXX startup.o
    CXX stash.o
    CXX state.o
    CXX status.o
    CXX stepdown.o
    CXX store.o
    CXX strings.o
    CXX syscalls.o
    CXX tags.o
    CXX target.o
    CXX teleport.o
    CXX terrain.o
    CXX throw.o
    CXX transform.o
    CXX traps.o
    CXX travel.o
    CXX tutorial.o
    CXX uncancel.o
    CXX unicode.o
    CXX view.o
    CXX viewchar.o
    CXX viewgeom.o
    CXX viewmap.o
    CXX wcwidth.o
    CXX wiz-dgn.o
    CXX wiz-fsim.o
    CXX wiz-item.o
    CXX wiz-mon.o
    CXX wiz-you.o
    CXX worley.o
    CXX xom.o
    CXX zotdef.o
    CXX tilepick.o
    CXX tileview.o
    CXX libunix.o
    CXX rltiles/tiledef-floor.o
    CXX rltiles/tiledef-wall.o
    CXX rltiles/tiledef-feat.o
    CXX rltiles/tiledef-main.o
    CXX rltiles/tiledef-player.o
    CXX rltiles/tiledef-gui.o
    CXX rltiles/tiledef-icons.o
    CXX rltiles/tiledef-dngn.o
    CXX rltiles/tiledef-unrand.o
    CXX util/levcomp.tab.o
levcomp.ypp:11:19: fatal error: stuff.h: No such file or directory
compilation terminated.
make: *** [util/levcomp.tab.o] Error 1


OS is Ubuntu and I'm using git to pull the source files. I believe I have all the necessary dependencies. I've read INSTALL.txt and tried Google for answers, but I have had no luck.

I'm probably missing something obvious, but any help would be greatly appreciated. Thanks!
User avatar

Dungeon Master

Posts: 502

Joined: Wednesday, 7th March 2012, 13:25

Location: Lexington, KY, US

Post Monday, 4th August 2014, 00:29

Re: Help compiling: " fatal error: stuff.h: No such file..."

Rep Henry Clay wrote:
  Code:
levcomp.ypp:11:19: fatal error: stuff.h: No such file or directory


OS is Ubuntu and I'm using git to pull the source files. I believe I have all the necessary dependencies. I've read INSTALL.txt and tried Google for answers, but I have had no luck.


Try doing either "rm *.d */*.d" or, simpler, "make clean" to remove all the dependency files. The stuff.h file is gone now, but our Makefile's inline dependency generation doesn't handle removed headers very well.

For this message the author neil has received thanks:
Rep Henry Clay

Mines Malingerer

Posts: 50

Joined: Tuesday, 24th December 2013, 18:44

Post Monday, 4th August 2014, 01:01

Re: Help compiling: " fatal error: stuff.h: No such file..."

"make clean" fixed it! Thank you so much for your help! :)

Ziggurat Zagger

Posts: 3163

Joined: Friday, 6th January 2012, 18:45

Post Saturday, 9th August 2014, 04:17

Re: Help compiling: " fatal error: stuff.h: No such file..."

I'm having this problem, too. Make clean didn't fix it, and nothing else I tried worked either so I nuked the directory and set up a new clone of the repository. I even cleared my ccache cache. I'm still getting the error listed above.

Hi again, btw. :) I finally got a job and am looking to get back into crawl soon.

For this message the author BlackSheep has received thanks:
neil
User avatar

Dungeon Master

Posts: 502

Joined: Wednesday, 7th March 2012, 13:25

Location: Lexington, KY, US

Post Saturday, 9th August 2014, 15:39

Re: Help compiling: " fatal error: stuff.h: No such file..."

BlackSheep wrote:I'm having this problem, too. Make clean didn't fix it, and nothing else I tried worked either so I nuked the directory and set up a new clone of the repository. I even cleared my ccache cache. I'm still getting the error listed above.

Hi again, btw. :) I finally got a job and am looking to get back into crawl soon.


Welcome back!

It looks like our prebuilt parser code fell out of sync when we removed that header. I just fixed this in trunk (0.16-a0-107-ga701d29) and prerelease (0.15-b1-54-gaa90217) so you should be good to go.

If you install bison and flex, you won't have to worry about this should they get out of sync again.

Ziggurat Zagger

Posts: 3163

Joined: Friday, 6th January 2012, 18:45

Post Saturday, 9th August 2014, 18:04

Re: Help compiling: " fatal error: stuff.h: No such file..."

Thanks much, that did the trick!

For my own education, what does installing bison and flex do for this problem?
User avatar

Dungeon Master

Posts: 502

Joined: Wednesday, 7th March 2012, 13:25

Location: Lexington, KY, US

Post Saturday, 9th August 2014, 22:06

Re: Help compiling: " fatal error: stuff.h: No such file..."

BlackSheep wrote:Thanks much, that did the trick!

For my own education, what does installing bison and flex do for this problem?


Bison is a parser generator and flex a lexical analyzer generator (the GNU versions of yacc and lex, respectively). They take the parser specification in util/levcomp.ypp and the lexer specification in util/levcomp.lpp, respectively, and use those to generate levcomp.tab.cc and levcomp.lex.cc (and levcomp.tab.h).

For the benefit of users without flex or bison, we include in the git repository a pre-generated version of levcomp.tab.cc etc, the in prebuilt/ directory. However, when we updated levcomp.ypp and .lpp after splitting up stuff.h, we forgot to regenerate and commit the copy in prebuilt.

Ziggurat Zagger

Posts: 3163

Joined: Friday, 6th January 2012, 18:45

Post Sunday, 10th August 2014, 17:14

Re: Help compiling: " fatal error: stuff.h: No such file..."

Thanks again, I understand completely now.

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 11 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.