Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not compiled on armbian #14

Closed
lastuniverse opened this issue Mar 13, 2017 · 3 comments
Closed

not compiled on armbian #14

lastuniverse opened this issue Mar 13, 2017 · 3 comments

Comments

@lastuniverse
Copy link

-m32 is an x86 option. It is not supported (or needed) on ARM, where different toolchains are used for 32-bit and 64-bit code.

The 64-bit ARM (AArch64) toolchain is called aarch64-linux-gnu.

@lastuniverse
Copy link
Author

lastuniverse commented Mar 13, 2017

orange pi pc (32bit)

$ uname -a
Linux orangepipc 3.4.113-sun8i #10 SMP PREEMPT Thu Feb 23 19:55:00 CET 2017 armv7l GNU/Linux

then

$ ./installer.sh
[*] Found PocketMine-MP 1.6.2dev (build 4) using API 3.0.0-ALPHA4
[*] This stable build was released on Sun Mar  5 01:38:40 MSK 2017
[-] This channel should have a signature, none found
[*] Installing/updating PocketMine-MP on directory ./
[1/3] Cleaning...
[2/3] Downloading PocketMine-MP 1.6.2dev phar... done!
[3/3] Obtaining PHP: detecting if build is available...
[3/3] ARMv7 PHP build available, downloading PHP_7.0.0RC3_ARMv7.tar.gz...chmod: cannot access ‘./bin/php7/bin/*’: No such file or directory
 checking... invalid build detected
[3/3] no build found, compiling PHP automatically
[PocketMine] PHP compiler for Linux, MacOS and Android
[INFO] Checking dependecies
[INFO] Compiling for current machine using 32-bit
[PHP] downloading 7.0.6... done!
[zlib] downloading 1.2.8... checking...

in file ./install.log

...
gcc is /usr/bin/gcc
gcc: error: unrecognized command line option ‘-m32’
rm: cannot remove ‘test’: No such file or directory
Compiler error reporting is too harsh for ./configure (perhaps remove -Werror).
** ./configure aborting.

in file ./install_data/zlib/configure.log

--------------------
./configure --prefix=/home/pocketmine/pocketmine/php/php-build-scripts-master/bin/php7 --shared
Mon Mar 13 03:26:15 MSK 2017
=== ztest10240.c ===
extern int getchar();
int hello() {return getchar();}
===
gcc -c ztest10240.c
... using gcc

Checking for obsessive-compulsive compiler options...
=== ztest10240.c ===
int foo() { return 0; }
===
gcc -c -O2 -fPIC -m32 ztest10240.c
gcc: error: unrecognized command line option ‘-m32’
(exit code 1)
Compiler error reporting is too harsh for ./configure (perhaps remove -Werror).
** ./configure aborting.
--------------------

@lastuniverse
Copy link
Author

lastuniverse commented Mar 13, 2017

then i remark -m32 option

$ cat compile.sh |grep m32
#**#    CFLAGS="$CFLAGS -m32";
        CFLAGS="$CFLAGS -m32 -arch i386 -fomit-frame-pointer -mmacosx-version-min=10.7";
#**#            CFLAGS="-m32 $CFLAGS"

and chmod 0550 compile.sh

then run ./installer.sh

zlib was compiled without errors, but:

[*] Found PocketMine-MP 1.6.2dev (build 4) using API 3.0.0-ALPHA4
[*] This stable build was released on Sun Mar  5 01:38:40 MSK 2017
[-] This channel should have a signature, none found
[*] Installing/updating PocketMine-MP on directory ./
[1/3] Cleaning...
[2/3] Downloading PocketMine-MP 1.6.2dev phar..../installer.sh: line 239: compile.sh: Permission denied
 done!
[3/3] Obtaining PHP: detecting if build is available...
[3/3] ARMv7 PHP build available, downloading PHP_7.0.0RC3_ARMv7.tar.gz...chmod: cannot access ‘./bin/php7/bin/*’: No such file or directory
 checking... invalid build detected
[3/3] no build found, compiling PHP automatically
[PocketMine] PHP compiler for Linux, MacOS and Android
[INFO] Checking dependecies
[INFO] Compiling for current machine using 32-bit
[PHP] downloading 7.0.6... done!
[zlib] downloading 1.2.8... checking... compiling... installing... cleaning... done!
[mcrypt] downloading 2.5.8... checking... compiling... installing... cleaning... done!
[GMP] downloading 6.1.0... checking...

in file ./install.log

...
make[1]: Leaving directory '/home/pocketmine/pocketmine/php/php-build-scripts-master/install_data/libmcrypt'
configure: WARNING: unrecognized options: --disable-posix-threads
checking build system type... armcortexa7neon-unknown-linux-gnueabihf
checking host system type... armcortexa7neon-unknown-linux-gnueabihf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: error: ABI=32 is not among the following valid choices: standard

in file ./install_data/gmp/config.log

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by GNU MP configure 6.1.0, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --prefix=/home/pocketmine/pocketmine/php/php-build-scripts-master/bin/php7 --disable-assembly --disable-posix-threads --enable-static --disable-shared ABI=32

## --------- ##
## Platform. ##
## --------- ##

hostname = orangepipc
uname -m = armv7l
uname -r = 3.4.113-sun8i
uname -s = Linux
uname -v = #10 SMP PREEMPT Thu Feb 23 19:55:00 CET 2017

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/games
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:3055: checking build system type
configure:3069: result: armcortexa7neon-unknown-linux-gnueabihf
configure:3089: checking host system type
configure:3102: result: armcortexa7neon-unknown-linux-gnueabihf
configure:3139: checking for a BSD-compatible install
configure:3207: result: /usr/bin/install -c
configure:3218: checking whether build environment is sane
configure:3273: result: yes
configure:3424: checking for a thread-safe mkdir -p
configure:3463: result: /bin/mkdir -p
configure:3470: checking for gawk
configure:3500: result: no
configure:3470: checking for mawk
configure:3486: found /usr/bin/mawk
configure:3497: result: mawk
configure:3508: checking whether make sets $(MAKE)
configure:3530: result: yes
configure:3559: checking whether make supports nested variables
configure:3576: result: yes
configure:3705: checking whether to enable maintainer-specific portions of Makefiles
configure:3714: result: no
User:
ABI=32
CC=gcc
CFLAGS=-O2 -fPIC -march=native -mtune=native -fno-gcse 
CPPFLAGS=
MPN_PATH=
GMP:
abilist=standard
cclist=gcc cc
configure:5637: error: ABI=32 is not among the following valid choices: standard

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=armcortexa7neon-unknown-linux-gnueabihf
ac_cv_env_ABI_set=set
ac_cv_env_ABI_value=32
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_BUILD_set=
ac_cv_env_CC_FOR_BUILD_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -fPIC -march=native -mtune=native -fno-gcse '
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_FOR_BUILD_set=
ac_cv_env_CPP_FOR_BUILD_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-O2 -fPIC -march=native -mtune=native -fno-gcse  '
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=g++
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,-rpath='\''$$ORIGIN/../lib'\'' -Wl,-rpath-link='\''$$ORIGIN/../lib'\'''
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_M4_set=
ac_cv_env_M4_value=
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_realloc_0_nonnull=yes
ac_cv_host=armcortexa7neon-unknown-linux-gnueabihf
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=mawk
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
jm_cv_func_working_malloc=yes
jm_cv_func_working_realloc=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ABI='32'
ACLOCAL='${SHELL} /home/pocketmine/pocketmine/php/php-build-scripts-master/install_data/gmp/missing aclocal-1.15'
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR=''
AS=''
ASMFLAGS=''
AUTOCONF='${SHELL} /home/pocketmine/pocketmine/php/php-build-scripts-master/install_data/gmp/missing autoconf'
AUTOHEADER='${SHELL} /home/pocketmine/pocketmine/php/php-build-scripts-master/install_data/gmp/missing autoheader'
AUTOMAKE='${SHELL} /home/pocketmine/pocketmine/php/php-build-scripts-master/install_data/gmp/missing automake-1.15'
AWK='mawk'
CALLING_CONVENTIONS_OBJS='arm32call.lo arm32check.lo'
CC='gcc'
CCAS=''
CC_FOR_BUILD=''
CFLAGS='-O2 -fPIC -march=native -mtune=native -fno-gcse '
CPP=''
CPPFLAGS=''
CPP_FOR_BUILD=''
CXX='g++'
CXXCPP=''
CXXFLAGS='-O2 -fPIC -march=native -mtune=native -fno-gcse  '
CYGPATH_W='echo'
DEFN_LONG_LONG_LIMB=''
DEFS=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_STATIC_FALSE=''
ENABLE_STATIC_TRUE=''
EXEEXT=''
EXEEXT_FOR_BUILD=''
FGREP=''
GMP_LDFLAGS=''
GMP_LIMB_BITS=''
GMP_NAIL_BITS='0'
GREP=''
HAVE_CLOCK_01=''
HAVE_CPUTIME_01=''
HAVE_GETRUSAGE_01=''
HAVE_GETTIMEOFDAY_01=''
HAVE_HOST_CPU_FAMILY_power='0'
HAVE_HOST_CPU_FAMILY_powerpc='0'
HAVE_SIGACTION_01=''
HAVE_SIGALTSTACK_01=''
HAVE_SIGSTACK_01=''
HAVE_STACK_T_01=''
HAVE_SYS_RESOURCE_H_01=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS='-Wl,-rpath='\''$$ORIGIN/../lib'\'' -Wl,-rpath-link='\''$$ORIGIN/../lib'\'''
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBCURSES=''
LIBGMPXX_LDFLAGS=''
LIBGMP_DLL=''
LIBGMP_LDFLAGS=''
LIBM=''
LIBM_FOR_BUILD=''
LIBOBJS=''
LIBREADLINE=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
M4=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /home/pocketmine/pocketmine/php/php-build-scripts-master/install_data/gmp/missing makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='gmp'
PACKAGE_BUGREPORT='gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html'
PACKAGE_NAME='GNU MP'
PACKAGE_STRING='GNU MP 6.1.0'
PACKAGE_TARNAME='gmp'
PACKAGE_URL='http://www.gnu.org/software/gmp/'
PACKAGE_VERSION='6.1.0'
PATH_SEPARATOR=':'
RANLIB='ranlib'
SED=''
SET_MAKE=''
SHELL='/bin/bash'
SPEED_CYCLECOUNTER_OBJ=''
STRIP=''
TAL_OBJECT=''
TUNE_LIBS=''
TUNE_SQR_OBJ=''
U_FOR_BUILD=''
VERSION='6.1.0'
WANT_CXX_FALSE=''
WANT_CXX_TRUE=''
WITH_READLINE_01=''
YACC=''
YFLAGS=''
ac_ct_AR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__isrc=''
am__leading_dot='.'
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='armcortexa7neon-unknown-linux-gnueabihf'
build_alias=''
build_cpu='armcortexa7neon'
build_os='linux-gnueabihf'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
gmp_srclinks=''
host='armcortexa7neon-unknown-linux-gnueabihf'
host_alias=''
host_cpu='armcortexa7neon'
host_os='linux-gnueabihf'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/pocketmine/pocketmine/php/php-build-scripts-master/install_data/gmp/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
mpn_objects=''
mpn_objs_in_libgmp=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/pocketmine/pocketmine/php/php-build-scripts-master/bin/php7'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "GNU MP"
#define PACKAGE_TARNAME "gmp"
#define PACKAGE_VERSION "6.1.0"
#define PACKAGE_STRING "GNU MP 6.1.0"
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html"
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
#define PACKAGE "gmp"
#define VERSION "6.1.0"
#define WANT_FFT 1
#define HAVE_HOST_CPU_armcortexa7neon 1

configure: exit 1

@tarik02
Copy link
Contributor

tarik02 commented Mar 27, 2017

Try to compile using "./compile.sh -t armv7".

@dktapps dktapps mentioned this issue Mar 5, 2018
@dktapps dktapps closed this as completed Apr 30, 2018
fuyutsuki pushed a commit to fuyutsuki/php-build-scripts that referenced this issue Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants