URL:
  <http://gna.org/bugs/?20095>

                 Summary: Compilation fails during tolua-5.1
                 Project: Freeciv
            Submitted by: doctorjlowe
            Submitted on: Fri 24 Aug 2012 03:42:13 PM PDT
                Category: bootstrap
                Severity: 5 - Blocker
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 2.4.0-beta1
         Discussion Lock: Any
        Operating System: Mac OS
         Planned Release: 

    _______________________________________________________

Details:

...
Making all in tolua-5.1
Making all in src
Making all in lib
  CC     tolua_event.lo
/bin/sh ../../../../libtool --preserve-dup-deps --silent --tag=CC  
--mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../.. 
-I../../../../dependencies/tolua-5.1/include
-I../../../../dependencies/lua-5.1/src -I/sw/include
-DLOCALEDIR="\"/sw/share/locale\"" -DBINDIR="\"/sw/bin\""
-DFC_CONF_PATH="\"/sw/etc/freeciv\""
-DDEFAULT_DATA_PATH="\".:data:~/.freeciv/2.4:/sw/share/freeciv\""
-DDEFAULT_SAVES_PATH="\"\""
-DDEFAULT_SCENARIO_PATH="\".:data/scenarios:~/.freeciv/2.4/scenarios:~/.freeciv/scenarios:/sw/share/freeciv/scenarios\""
 -Wall -Wpointer-arith -Wcast-align -g -O2 -I/sw/include -pthread
-fsigned-char -c -o tolua_event.lo tolua_event.c
  CC     tolua_is.lo
/bin/sh ../../../../libtool --preserve-dup-deps --silent --tag=CC  
--mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../.. 
-I../../../../dependencies/tolua-5.1/include
-I../../../../dependencies/lua-5.1/src -I/sw/include
-DLOCALEDIR="\"/sw/share/locale\"" -DBINDIR="\"/sw/bin\""
-DFC_CONF_PATH="\"/sw/etc/freeciv\""
-DDEFAULT_DATA_PATH="\".:data:~/.freeciv/2.4:/sw/share/freeciv\""
-DDEFAULT_SAVES_PATH="\"\""
-DDEFAULT_SCENARIO_PATH="\".:data/scenarios:~/.freeciv/2.4/scenarios:~/.freeciv/scenarios:/sw/share/freeciv/scenarios\""
 -Wall -Wpointer-arith -Wcast-align -g -O2 -I/sw/include -pthread
-fsigned-char -c -o tolua_is.lo tolua_is.c
  CC     tolua_map.lo
/bin/sh ../../../../libtool --preserve-dup-deps --silent --tag=CC  
--mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../.. 
-I../../../../dependencies/tolua-5.1/include
-I../../../../dependencies/lua-5.1/src -I/sw/include
-DLOCALEDIR="\"/sw/share/locale\"" -DBINDIR="\"/sw/bin\""
-DFC_CONF_PATH="\"/sw/etc/freeciv\""
-DDEFAULT_DATA_PATH="\".:data:~/.freeciv/2.4:/sw/share/freeciv\""
-DDEFAULT_SAVES_PATH="\"\""
-DDEFAULT_SCENARIO_PATH="\".:data/scenarios:~/.freeciv/2.4/scenarios:~/.freeciv/scenarios:/sw/share/freeciv/scenarios\""
 -Wall -Wpointer-arith -Wcast-align -g -O2 -I/sw/include -pthread
-fsigned-char -c -o tolua_map.lo tolua_map.c
  CC     tolua_push.lo
/bin/sh ../../../../libtool --preserve-dup-deps --silent --tag=CC  
--mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../.. 
-I../../../../dependencies/tolua-5.1/include
-I../../../../dependencies/lua-5.1/src -I/sw/include
-DLOCALEDIR="\"/sw/share/locale\"" -DBINDIR="\"/sw/bin\""
-DFC_CONF_PATH="\"/sw/etc/freeciv\""
-DDEFAULT_DATA_PATH="\".:data:~/.freeciv/2.4:/sw/share/freeciv\""
-DDEFAULT_SAVES_PATH="\"\""
-DDEFAULT_SCENARIO_PATH="\".:data/scenarios:~/.freeciv/2.4/scenarios:~/.freeciv/scenarios:/sw/share/freeciv/scenarios\""
 -Wall -Wpointer-arith -Wcast-align -g -O2 -I/sw/include -pthread
-fsigned-char -c -o tolua_push.lo tolua_push.c
  CC     tolua_to.lo
/bin/sh ../../../../libtool --preserve-dup-deps --silent --tag=CC  
--mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../.. 
-I../../../../dependencies/tolua-5.1/include
-I../../../../dependencies/lua-5.1/src -I/sw/include
-DLOCALEDIR="\"/sw/share/locale\"" -DBINDIR="\"/sw/bin\""
-DFC_CONF_PATH="\"/sw/etc/freeciv\""
-DDEFAULT_DATA_PATH="\".:data:~/.freeciv/2.4:/sw/share/freeciv\""
-DDEFAULT_SAVES_PATH="\"\""
-DDEFAULT_SCENARIO_PATH="\".:data/scenarios:~/.freeciv/2.4/scenarios:~/.freeciv/scenarios:/sw/share/freeciv/scenarios\""
 -Wall -Wpointer-arith -Wcast-align -g -O2 -I/sw/include -pthread
-fsigned-char -c -o tolua_to.lo tolua_to.c
  CCLD   libtolua.la
Making all in bin
  CC     tolua.o
gcc -DHAVE_CONFIG_H -I. -I../../../..  -I../../../../dependencies/lua-5.1/src
-I../../../../dependencies/tolua-5.1/include -I/sw/include
-DLOCALEDIR="\"/sw/share/locale\"" -DBINDIR="\"/sw/bin\""
-DFC_CONF_PATH="\"/sw/etc/freeciv\""
-DDEFAULT_DATA_PATH="\".:data:~/.freeciv/2.4:/sw/share/freeciv\""
-DDEFAULT_SAVES_PATH="\"\""
-DDEFAULT_SCENARIO_PATH="\".:data/scenarios:~/.freeciv/2.4/scenarios:~/.freeciv/scenarios:/sw/share/freeciv/scenarios\""
 -Wall -Wpointer-arith -Wcast-align -g -O2 -I/sw/include -pthread
-fsigned-char -c tolua.c
  CC     toluabind.o
gcc -DHAVE_CONFIG_H -I. -I../../../..  -I../../../../dependencies/lua-5.1/src
-I../../../../dependencies/tolua-5.1/include -I/sw/include
-DLOCALEDIR="\"/sw/share/locale\"" -DBINDIR="\"/sw/bin\""
-DFC_CONF_PATH="\"/sw/etc/freeciv\""
-DDEFAULT_DATA_PATH="\".:data:~/.freeciv/2.4:/sw/share/freeciv\""
-DDEFAULT_SAVES_PATH="\"\""
-DDEFAULT_SCENARIO_PATH="\".:data/scenarios:~/.freeciv/2.4/scenarios:~/.freeciv/scenarios:/sw/share/freeciv/scenarios\""
 -Wall -Wpointer-arith -Wcast-align -g -O2 -I/sw/include -pthread
-fsigned-char -c toluabind.c
make[5]: *** No rule to make target `-lm', needed by `tolua'.  Stop.
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

------------------------------------------------------------

Details: OSX 10.7.4, XCode 4.4.1 

$ gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/src/configure
--disable-checking --enable-werror
--prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2
--mandir=/share/man --enable-languages=c,objc,c++,obj-c++
--program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
--with-slibdir=/usr/lib --build=i686-apple-darwin11
--enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/dst-llvmCore/Developer/usr/local
--program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11
--target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

Just for good measure, i turned off parallel builds but it made no difference.
 Apparently the deal breaker is the "No rule to make target `-lm', needed by
`tolua'."




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?20095>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to