(MSYS2) crawl won't compile


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

Temple Termagant

Posts: 5

Joined: Wednesday, 2nd May 2018, 20:15

Post Wednesday, 2nd May 2018, 21:19

(MSYS2) crawl won't compile

I was trying to compile the branch of crawl with the faerie dragon species proposed by Realz, but for console instead of tiles, and I got this message:

  Code:
$ make
cat: util/release_ver: No such file or directory
  * 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!
    * Need to build contribs: pcre zlib lua/src sqlite
make[1]: Entering directory '/crawlfd/crawl-ref/source/contrib'
**********************************************************

The 'pcre' directory exists, but the Makefile is missing!
Did 'git submodule update' work properly?
(It's probably better to install all native dependencies instead.)

**********************************************************
make[1]: *** [Makefile:23: pcre] Error 1
make[1]: Leaving directory '/crawlfd/crawl-ref/source/contrib'
make: *** [Makefile:1578: .contrib-libs] Error 2


I have done all the relevant instructions in the installation guide, and I tried "git submodule update" and got this:

  Code:
$ git submodule update
fatal: not a git repository (or any of the parent directories): .git


Please help a noob out?

Dungeon Master

Posts: 388

Joined: Monday, 18th August 2014, 20:04

Post Wednesday, 2nd May 2018, 21:24

Re: (MSYS2) crawl won't compile

FickleAvocado wrote:I have done all the relevant instructions in the installation guide, and I tried "git submodule update" and got this:

  Code:
$ git submodule update
fatal: not a git repository (or any of the parent directories): .git


Please help a noob out?


The first thing to do is to make sure you are running that command while the current directory is somewhere in your copy of the crawl repository :). But if you followed the installation instructions, you might have done this already (under the "Source Code Checkout" section).

Temple Termagant

Posts: 5

Joined: Wednesday, 2nd May 2018, 20:15

Post Wednesday, 2nd May 2018, 21:44

Re: (MSYS2) crawl won't compile

I still haven't had any luck. Where is the crawl folder supposed to go?

Temple Termagant

Posts: 5

Joined: Wednesday, 2nd May 2018, 20:15

Post Thursday, 3rd May 2018, 00:10

Re: (MSYS2) crawl won't compile

OK, it starts compiling now, but I keep getting make error 127.

  Code:
make: *** [Makefile:1587: art-data.h] Error 127


How do I fix this? Thanks for your help.

Dungeon Master

Posts: 388

Joined: Monday, 18th August 2014, 20:04

Post Thursday, 3rd May 2018, 12:41

Re: (MSYS2) crawl won't compile

FickleAvocado wrote:I still haven't had any luck. Where is the crawl folder supposed to go?


What I was talking about wasn't the location of the crawl folder, but your current location when running the git command (you can see your working directory in the terminal by typing `pwd`.) If you run `git submodule --init update` from the same location you are running make from, for example, it should work -- that error will happen if you're running the git command from your home directory or something.

FickleAvocado wrote:OK, it starts compiling now, but I keep getting make error 127.

  Code:
make: *** [Makefile:1587: art-data.h] Error 127


How do I fix this? Thanks for your help.


You'll need to paste a bit more, there should be some previous messages showing exactly what went wrong in art-data.h.

Temple Termagant

Posts: 5

Joined: Wednesday, 2nd May 2018, 20:15

Post Thursday, 3rd May 2018, 15:41

Re: (MSYS2) crawl won't compile

  Code:
$ make
  * 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!
    * Need to build contribs: pcre zlib lua/src sqlite
make[1]: Entering directory '/crawl-1.8-beta/crawl-ref/source/contrib'
make[2]: Entering directory '/crawl-1.8-beta/crawl-ref/source/contrib/pcre'
    * rebuilding pcre: new build flags or prefix
    CC pcre_byte_order.o
    CC pcre_chartables.o
    CC pcre_compile.o
    CC pcre_config.o
    CC pcre_dfa_exec.o
    CC pcre_exec.o
    CC pcre_fullinfo.o
    CC pcre_get.o
    CC pcre_globals.o
    CC pcre_jit_compile.o
    CC pcre_maketables.o
    CC pcre_newline.o
    CC pcre_ord2utf8.o
    CC pcre_refcount.o
    CC pcre_string_utils.o
    CC pcre_study.o
    CC pcre_tables.o
    CC pcre_ucd.o
    CC pcre_valid_utf8.o
    CC pcre_version.o
    CC pcre_xclass.o
    AR libpcre.a
    RANLIB libpcre.a
make[2]: Leaving directory '/crawl-1.8-beta/crawl-ref/source/contrib/pcre'
make[2]: Entering directory '/crawl-1.8-beta/crawl-ref/source/contrib/pcre'
    INSTALL libpcre.a
    INSTALL doc/pcre.3
    INSTALL doc/pcre_compile.3
    INSTALL doc/pcre_assign_jit_stack.3
    INSTALL doc/pcre_compile2.3
    INSTALL doc/pcre_config.3
    INSTALL doc/pcre_copy_named_substring.3
    INSTALL doc/pcre_copy_substring.3
    INSTALL doc/pcre_dfa_exec.3
    INSTALL doc/pcre_exec.3
    INSTALL doc/pcre_free_study.3
    INSTALL doc/pcre_free_substring.3
    INSTALL doc/pcre_free_substring_list.3
    INSTALL doc/pcre_fullinfo.3
    INSTALL doc/pcre_get_named_substring.3
    INSTALL doc/pcre_get_stringnumber.3
    INSTALL doc/pcre_get_stringtable_entries.3
    INSTALL doc/pcre_get_substring.3
    INSTALL doc/pcre_get_substring_list.3
    INSTALL doc/pcre_jit_exec.3
    INSTALL doc/pcre_jit_stack_alloc.3
    INSTALL doc/pcre_jit_stack_free.3
    INSTALL doc/pcre_maketables.3
    INSTALL doc/pcre_pattern_to_host_byte_order.3
    INSTALL doc/pcre_refcount.3
    INSTALL doc/pcre_study.3
    INSTALL doc/pcre_utf16_to_host_byte_order.3
    INSTALL doc/pcre_utf32_to_host_byte_order.3
    INSTALL doc/pcre_version.3
    INSTALL doc/pcreapi.3
    INSTALL doc/pcrebuild.3
    INSTALL doc/pcrecallout.3
    INSTALL doc/pcrecompat.3
    INSTALL doc/pcrecpp.3
    INSTALL doc/pcredemo.3
    INSTALL doc/pcrejit.3
    INSTALL doc/pcrelimits.3
    INSTALL doc/pcrematching.3
    INSTALL doc/pcrepartial.3
    INSTALL doc/pcrepattern.3
    INSTALL doc/pcreperform.3
    INSTALL doc/pcreposix.3
    INSTALL doc/pcreprecompile.3
    INSTALL doc/pcresample.3
    INSTALL doc/pcrestack.3
    INSTALL doc/pcresyntax.3
    INSTALL doc/pcreunicode.3
    INSTALL pcre.h
make[2]: Leaving directory '/crawl-1.8-beta/crawl-ref/source/contrib/pcre'
make[2]: Entering directory '/crawl-1.8-beta/crawl-ref/source/contrib/zlib'
    * rebuilding zlib: new build flags or prefix
    CC adler32.o
    CC crc32.o
    CC deflate.o
    CC infback.o
    CC inffast.o
    CC inflate.o
    CC inftrees.o
    CC trees.o
    CC zutil.o
    CC compress.o
    CC uncompr.o
    CC gzclose.o
    CC gzlib.o
    CC gzread.o
    CC gzwrite.o
    AR libz.a
    RANLIB libz.a
make[2]: Leaving directory '/crawl-1.8-beta/crawl-ref/source/contrib/zlib'
make[2]: Entering directory '/crawl-1.8-beta/crawl-ref/source/contrib/zlib'
    INSTALL zlib.h
    INSTALL zconf.h
    INSTALL libz.a
make[2]: Leaving directory '/crawl-1.8-beta/crawl-ref/source/contrib/zlib'
make[2]: Entering directory '/crawl-1.8-beta/crawl-ref/source/contrib/lua/src'
    * rebuilding lua: new build flags or prefix
    CC lapi.o
    CC lcode.o
    CC ldebug.o
    CC ldo.o
    CC ldump.o
    CC lfunc.o
    CC lgc.o
    CC llex.o
    CC lmem.o
    CC lobject.o
    CC lopcodes.o
    CC lparser.o
    CC lstate.o
    CC lstring.o
    CC ltable.o
    CC ltm.o
    CC lundump.o
    CC lvm.o
    CC lzio.o
    CC lauxlib.o
    CC lbaselib.o
    CC ldblib.o
    CC liolib.o
    CC lmathlib.o
    CC loslib.o
    CC ltablib.o
    CC lstrlib.o
    CC loadlib.o
    CC linit.o
    AR liblua.a
    RANLIB liblua.a
make[2]: Leaving directory '/crawl-1.8-beta/crawl-ref/source/contrib/lua/src'
make[2]: Entering directory '/crawl-1.8-beta/crawl-ref/source/contrib/lua/src'
    INSTALL lua.h
    INSTALL luaconf.h
    INSTALL lualib.h
    INSTALL lauxlib.h
    INSTALL liblua.a
make[2]: Leaving directory '/crawl-1.8-beta/crawl-ref/source/contrib/lua/src'
make[2]: Entering directory '/crawl-1.8-beta/crawl-ref/source/contrib/sqlite'
    * rebuilding sqlite: new build flags or prefix
    CC sqlite3.o
    AR libsqlite3.a
    RANLIB libsqlite3.a
make[2]: Leaving directory '/crawl-1.8-beta/crawl-ref/source/contrib/sqlite'
make[2]: Entering directory '/crawl-1.8-beta/crawl-ref/source/contrib/sqlite'
    INSTALL sqlite3.h
    INSTALL libsqlite3.a
make[2]: Leaving directory '/crawl-1.8-beta/crawl-ref/source/contrib/sqlite'
make[1]: Leaving directory '/crawl-1.8-beta/crawl-ref/source/contrib'
util/art-data.pl
make: *** [Makefile:1587: art-data.h] Error 127

Dungeon Master

Posts: 388

Joined: Monday, 18th August 2014, 20:04

Post Thursday, 3rd May 2018, 16:44

Re: (MSYS2) crawl won't compile

FickleAvocado wrote:
  Code:
util/art-data.pl
make: *** [Makefile:1587: art-data.h] Error 127


Ok, this probably means one of three things (in order of decreasing likelihood): (i) perl isn't in your path (or the path being used by the build process) for some reason, (ii) perl isn't installed, or (iii) the script that it is trying to call in the util subdirectory isn't there. What happens when you type `perl -v` at the command line? Just to doublecheck, at some point did you run `pacman -S base-devel git` and say yes to all questions? This should've installed perl I think; you may also need to have added it to your path following the instructions in INSTALL.txt. Does `/crawl-1.8-beta/crawl-ref/source/util/art-data.pl` exist? What happens if, while pwd is the source directory, you type `./util/art-data.pl`?

Temple Termagant

Posts: 5

Joined: Wednesday, 2nd May 2018, 20:15

Post Friday, 4th May 2018, 00:01

Re: (MSYS2) crawl won't compile

It works now. I think it was because I was using msys2.exe instead of mingw64.exe. Thanks again for your help.

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 5 guests

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