Build pacman using android ToolChain

Development on core packages and the distribution goes on in here.

Build pacman using android ToolChain

Postby charif » Mon Feb 02, 2015 5:44 pm

Hello

i am trying to build pacman using andoid toolchain, i had some issues with libarchive that i have resolved using -I and -L oprtions of the "configure" script. now i have an issue with "stderr".

any kind of help (idea, pacman dev link, ...) are welcome, thanks per advance.

to have an idea about conf : building in ubuntu 14.10.
configure params :
$this->bbcode_second_pass_code('', '/home/charif/udoo/pacman-4.2.0# ./configure LDFLAGS="-Wl,--allow-shlib-undefined" CFLAGS="-mandroid -fomit-frame-pointer -I /usr/include -I /usr/include/x86_64-linux-gnu -L/usr/lib --sysroot /usr/arm-linux-androideabi" --host=arm-eabi --build=i686-pc-linux-gnu --enable-shared --prefix="/home/charif/udoo/pacman-4.2.0/pac4udoo"')
configure output :

$this->bbcode_second_pass_quote('', 'p')acman:

Build information:
source code location : .
prefix : /home/charif/udoo/pacman-4.2.0/pac4udoo
sysconfdir : /home/charif/udoo/pacman-4.2.0/pac4udoo/etc
conf file : /home/charif/udoo/pacman-4.2.0/pac4udoo/etc/pacman.conf
localstatedir : /home/charif/udoo/pacman-4.2.0/pac4udoo/var
database dir : /home/charif/udoo/pacman-4.2.0/pac4udoo/var/lib/pacman/
cache dir : /home/charif/udoo/pacman-4.2.0/pac4udoo/var/cache/pacman/pkg/

compiler : arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer -std=gnu99
preprocessor flags :
compiler flags : -Wall -mandroid -fomit-frame-pointer -I /usr/include -I /usr/include/x86_64-linux-gnu -L/usr/lib --sysroot /usr/arm-linux-androideabi
library flags : -lm -lcrypto -larchive
linker flags : -Wl,--allow-shlib-undefined

Architecture : arm
Host Type : arm-unknown-eabi
File inode command : stat -c '%i %n'
File owner command : stat -c '%u:%g'
File mode command : stat -c '%a'
Filesize command : stat -c %s
In-place sed command : sed --follow-symlinks -i

libalpm version : 9.0.0
libalpm version info : 9:0:0
pacman version : 4.2.0
using git version : no

Directory and file information:
root working directory : /
package extension : .pkg.tar.gz
source pkg extension : .src.tar.gz
build script name : PKGBUILD
template directory : /usr/share/makepkg-template

Compilation options:
Use libcurl : no
Use GPGME : no
Use OpenSSL : yes
Run make in doc/ dir : yes
Doxygen support : no
debug support : no
extra warning flags : no
use git version : no



make params :

$this->bbcode_second_pass_code('', '/home/charif/udoo/pacman-4.2.0# make CROSS_COMPILE=arm-eabi- CROSS_COMPILE_TARGET=yes')

make output :

$this->bbcode_second_pass_quote('', 'm')ake --no-print-directory all-recursive
Making all in lib/libalpm
Making all in po
make[3]: Nothing to be done for `all'.
CC libalpm_la-add.lo
In file included from add.c:24:0:
/usr/include/limits.h:123:3: warning: #include_next is a GCC extension [enabled by default]
In file included from /usr/include/bits/fcntl.h:61:0,
from /usr/include/fcntl.h:35,
from add.c:25:

...
...
...

/usr/include/bits/fcntl-linux.h:316:17: warning: ISO C forbids zero-size array 'f_handle' [-pedantic]
CC libalpm_la-util-common.lo
CC libalpm_la-version.lo
In file included from /usr/include/bits/fcntl.h:61:0,
from /usr/include/fcntl.h:35,
from util.h:40,
from version.c:22:
/usr/include/bits/fcntl-linux.h:316:17: warning: ISO C forbids zero-size array 'f_handle' [-pedantic]
CCLD libalpm.la
Making all in src/util
CC vercmp.o
CCLD vercmp
vercmp.o:vercmp.c:function usage: error: undefined reference to 'stderr'
../../lib/libalpm/libalpm_la-version.o:version.c:function parseEVR: error: undefined reference to '__ctype_b_loc'
../../lib/libalpm/libalpm_la-version.o:version.c:function rpmvercmp: error: undefined reference to '__ctype_b_loc'
../../lib/libalpm/libalpm_la-version.o:version.c:function rpmvercmp: error: undefined reference to '__ctype_b_loc'
../../lib/libalpm/libalpm_la-version.o:version.c:function rpmvercmp: error: undefined reference to '__ctype_b_loc'
collect2: error: ld returned 1 exit status
make[2]: *** [vercmp] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
charif
 
Posts: 2
Joined: Mon Feb 02, 2015 5:05 pm

Re: Build pacman using android ToolChain

Postby charif » Thu Feb 05, 2015 5:28 pm

hello again !

Any idea is welcome !!!!
charif
 
Posts: 2
Joined: Mon Feb 02, 2015 5:05 pm


Return to Arch Linux ARM

Who is online

Users browsing this forum: No registered users and 2 guests