Re: [MacPorts] #67799: lua54 fails on 32-bit: lmathlib.c: error: integer constant is too large for ‘unsigned long’ type

MacPorts noreply at macports.org
Sun Mar 24 22:27:13 UTC 2024


#67799: lua54 fails on 32-bit: lmathlib.c: error: integer constant is too large for
‘unsigned long’ type
---------------------------+---------------------------------
  Reporter:  barracuda156  |      Owner:  MarcusCalhoun-Lopez
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.8.1
Resolution:                |   Keywords:  powerpc, i386
      Port:  lua54         |
---------------------------+---------------------------------

Comment (by barracuda156):

 Replying to [comment:1 ryandesign]:
 > It succeeded on the Mac OS X 10.6 i386 buildbot worker though.
 >
 >
 https://build.macports.org/builders/ports-10.6_i386-builder/builds/122442/steps
 /install-port/logs/stdio

 No, it does not build on i386 cpu, apparently. This is on CoreDuo:
 {{{
 --->  Building lua54
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua54/work/lua-5.4.6"
 && /usr/bin/make -w echo macosx MACPORTS_PREFIX=/opt/local
 MYLDFLAGS="$LDFLAGS" MACPORTS_VERSION=5.4.6 TO_LIB=liblua5.4.a
 MACPORTS_BRANCH=5.4
 CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua54/work/compwrap/cxx/usr/bin/g++-4.2"
 OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua54/work/compwrap/objc/usr/bin/gcc-4.2"
 OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua54/work/compwrap/objcxx/usr/bin/g++-4.2"
 INSTALL="/usr/bin/install -c" CC=/usr/bin/g++-4.2 MYCFLAGS="$CPPFLAGS
 $CXXFLAGS" MYLDFLAGS="$LDFLAGS " LUA_A=liblua5.4-c++.a
 MACPORTS_SHARED_LIB=liblua5.4-c++.dylib
 make: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua54/work/lua-5.4.6'
 make[1]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua54/work/lua-5.4.6/src'
 PLAT= guess
 CC= /usr/bin/g++-4.2
 CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_3  -I/opt/local/include -Os -arch
 i386
 LDFLAGS=  -L/opt/local/lib -Wl,-headerpad_max_install_names -arch i386
 LIBS= -lm
 AR= ar rcu
 RANLIB= ranlib
 RM= rm -f
 UNAME= uname
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua54/work/lua-5.4.6/src'
 PLAT= guess
 V= 5.4
 R= 5.4.6
 TO_BIN= lua luac
 TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
 TO_LIB= liblua5.4.a
 TO_MAN= lua.1 luac.1
 INSTALL_TOP= /usr/local
 INSTALL_BIN= /usr/local/bin
 INSTALL_INC= /usr/local/include
 INSTALL_LIB= /usr/local/lib
 INSTALL_MAN= /usr/local/man/man1
 INSTALL_LMOD= /usr/local/share/lua/5.4
 INSTALL_CMOD= /usr/local/lib/lua/5.4
 INSTALL_EXEC= /usr/bin/install -c -m 0755
 INSTALL_DATA= /usr/bin/install -c -m 0644
 make[1]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua54/work/lua-5.4.6/src'
 /usr/bin/make all SYSCFLAGS="-DLUA_USE_MACOSX -DLUA_USE_READLINE"
 SYSLIBS="-lreadline"
 make[2]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua54/work/lua-5.4.6/src'
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o lapi.o lapi.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386  -c lcode.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o lctype.o lctype.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o ldebug.o ldebug.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o ldo.o ldo.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o ldump.o ldump.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o lfunc.o lfunc.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o lgc.o lgc.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386  -c llex.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o lmem.o lmem.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o lobject.o lobject.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o lopcodes.o lopcodes.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386  -c lparser.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o lstate.o lstate.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o lstring.o lstring.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o ltable.o ltable.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o ltm.o ltm.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o lundump.o lundump.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o lvm.o lvm.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o lzio.o lzio.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o lauxlib.o lauxlib.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o lbaselib.o lbaselib.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o lcorolib.o lcorolib.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o ldblib.o ldblib.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o liolib.o liolib.c
 /usr/bin/g++-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX
 -DLUA_USE_READLINE -I/opt/local/include -Os -arch i386
 -I/opt/local/include  -c -o lmathlib.o lmathlib.c
 lmathlib.c:305: error: integer constant is too large for ‘unsigned long’
 type
 lmathlib.c:338: error: integer constant is too large for ‘unsigned long’
 type
 lmathlib.c:551: error: integer constant is too large for ‘unsigned long’
 type
 lmathlib.c:571: error: integer constant is too large for ‘unsigned long’
 type
 lmathlib.c:586: error: integer constant is too large for ‘unsigned long’
 type
 make[2]: *** [lmathlib.o] Error 1
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua54/work/lua-5.4.6/src'
 make[1]: *** [macosx] Error 2
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua54/work/lua-5.4.6/src'
 make: *** [macosx] Error 2
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua54/work/lua-5.4.6'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua54/work/lua-5.4.6"
 && /usr/bin/make -w echo macosx MACPORTS_PREFIX=/opt/local
 MYLDFLAGS="$LDFLAGS" MACPORTS_VERSION=5.4.6 TO_LIB=liblua5.4.a
 MACPORTS_BRANCH=5.4
 CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua54/work/compwrap/cxx/usr/bin/g++-4.2"
 OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua54/work/compwrap/objc/usr/bin/gcc-4.2"
 OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua54/work/compwrap/objcxx/usr/bin/g++-4.2"
 INSTALL="/usr/bin/install -c" CC=/usr/bin/g++-4.2 MYCFLAGS="$CPPFLAGS
 $CXXFLAGS" MYLDFLAGS="$LDFLAGS " LUA_A=liblua5.4-c++.a
 MACPORTS_SHARED_LIB=liblua5.4-c++.dylib
 Exit code: 2
 }}}

 Perhaps buildbots run on 64-bit even when building for 32-bit.

-- 
Ticket URL: <https://trac.macports.org/ticket/67799#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list