Opened 11 years ago

Last modified 4 years ago

#42294 new defect

toluapp @1.0.93_1 +universal: build failure

Reported by: cooljeanius (Eric Gallager) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: master5597@…
Port: toluapp

Description

Relevant errors:

[ 57%] Building C object CMakeFiles/toluapp_lib.dir/src/lib/tolua_push.c.o
/usr/bin/gcc-4.2  -Dtoluapp_lib_EXPORTS -pipe -Os -I/opt/local/include -arch x86_64 -arch i386  -DNDEBUG -arch x86_64 -arch i386 -fPIC -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/src/lib -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/src/bin    -o CMakeFiles/toluapp_lib.dir/src/lib/tolua_push.c.o   -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/src/lib/tolua_push.c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/src/lib/tolua_map.c: In function ‘tolua_usertype’:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/src/lib/tolua_map.c:398: warning: passing argument 2 of ‘tolua_newmetatable’ discards qualifiers from pointer target type
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/src/lib/tolua_map.c: In function ‘tolua_beginmodule’:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/src/lib/tolua_map.c:414: error: ‘LUA_GLOBALSINDEX’ undeclared (first use in this function)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/src/lib/tolua_map.c:414: error: (Each undeclared identifier is reported only once
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/src/lib/tolua_map.c:414: error: for each function it appears in.)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/src/lib/tolua_map.c: In function ‘tolua_module’:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/src/lib/tolua_map.c:448: error: ‘LUA_GLOBALSINDEX’ undeclared (first use in this function)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/src/lib/tolua_map.c: In function ‘tolua_usertype’:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/src/lib/tolua_map.c:398: warning: passing argument 2 of ‘tolua_newmetatable’ discards qualifiers from pointer target type
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/src/lib/tolua_map.c: In function ‘tolua_beginmodule’:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/src/lib/tolua_map.c:414: error: ‘LUA_GLOBALSINDEX’ undeclared (first use in this function)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/src/lib/tolua_map.c:414: error: (Each undeclared identifier is reported only once
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/src/lib/tolua_map.c:414: error: for each function it appears in.)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/src/lib/tolua_map.c: In function ‘tolua_module’:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/src/lib/tolua_map.c:448: error: ‘LUA_GLOBALSINDEX’ undeclared (first use in this function)
lipo: can't open input file: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/.tmp/cc1MAU5a.out (No such file or directory)
make[2]: *** [CMakeFiles/toluapp_lib.dir/src/lib/tolua_map.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/build'
make[1]: *** [CMakeFiles/toluapp_lib.dir/all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/build'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_toluapp/toluapp/work/toluapp-1.0.93/build" && /usr/bin/make -j2 -w all 
Exit code: 2
Error: org.macports.build for port toluapp returned: command execution failed
DEBUG: Error code: CHILDSTATUS 24078 2
DEBUG: Backtrace: command execution failed

Attachments (2)

main.log (24.3 KB) - added by cooljeanius (Eric Gallager) 11 years ago.
main.log for toluapp build failure
patch-compatible-lua-5.3.in.diff (410.1 KB) - added by master5597@… 9 years ago.
patch to fix toluapp for lua 5.2/5.3

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by cooljeanius (Eric Gallager)

Attachment: main.log added

main.log for toluapp build failure

comment:1 Changed 11 years ago by cooljeanius (Eric Gallager)

A post on the mailing list says that this is due to the upgrade of the lua port from lua51 to lua52: https://lists.macosforge.org/pipermail/macports-users/2014-March/034775.html

Edit: confirmed for sure in: https://lists.macosforge.org/pipermail/macports-users/2014-March/034777.html

Last edited 11 years ago by cooljeanius (Eric Gallager) (previous) (diff)

Changed 9 years ago by master5597@…

patch to fix toluapp for lua 5.2/5.3

comment:2 Changed 9 years ago by master5597@…

I've attache the patch file I use for my local ports. Most of the changes are from https://github.com/waltervn/toluapp at revision 51831803cdd0ddf72d9ccd54f6b111cf839ea157

Version 0, edited 9 years ago by master5597@… (next)

comment:3 Changed 9 years ago by master5597@…

Cc: master5597@… added

Cc Me!

Note: See TracTickets for help on using tickets.