Bug 61970

Summary: Error while wile building cerbero
Product: GStreamer SDK Reporter: Luis Linietsky <luis.linietsky>
Component: Android SDK distributionAssignee: bugs
Status: REOPENED --- QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: attachment-24950-0.html
attachment-24950-1.dat
cerbero.log.tgz

Description Luis Linietsky 2013-03-07 15:58:19 UTC
Hi, I am getting the following error with cerbero when I run "cerbero bootstrap" with the config for cross-android.cbc:


rm -f stamp-h1
touch config.hin
cd .. && /bin/bash ./config.status lib/config.h
config.status: creating lib/config.h
make  all-am
make[3]: Entering directory `/home/luigi/cerbero/sources/build-tools/m4-1.4.16/lib'
arm-linux-androideabi-gcc -fuse-ld=gold -std=gnu99  -I.   --sysroot=/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm -I/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include -DANDROID -DPIC -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__   -Wall -g -Os --sysroot=/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm -I/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include -ffunction-sections -funwind-tables -fPIC -mthumb -fstack-protector -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64  -march=armv5te -mtune=xscale -msoft-float -DANDROID -DPIC -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__  -Wa,--noexecstack -MT gl_avltree_oset.o -MD -MP -MF .deps/gl_avltree_oset.Tpo -c -o gl_avltree_oset.o gl_avltree_oset.c
In file included from /home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/sys/time.h:33:0,
                 from ./sys/time.h:39,
                 from /home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/time.h:32,
                 from ./time.h:40,
                 from ./stdint.h:506,
                 from /home/luigi/cerbero/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/include-fixed/sys/types.h:43,
                 from /home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/strings.h:42,
                 from /home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/stdlib.h:42,
                 from ./stdlib.h:35,
                 from gl_avltree_oset.c:23:
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/linux/time.h:20:2: error: unknown type name 'time_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/linux/time.h:26:2: error: unknown type name 'time_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/linux/time.h:27:2: error: unknown type name 'suseconds_t'
In file included from /home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/asm/siginfo.h:15:0,
                 from /home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/time.h:35,
                 from ./time.h:40,
                 from ./stdint.h:506,
                 from /home/luigi/cerbero/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/include-fixed/sys/types.h:43,
                 from /home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/strings.h:42,
                 from /home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/stdlib.h:42,
                 from ./stdlib.h:35,
                 from gl_avltree_oset.c:23:
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/asm-generic/siginfo.h:51:2: error: unknown type name 'pid_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/asm-generic/siginfo.h:56:2: error: unknown type name 'timer_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/asm-generic/siginfo.h:64:2: error: unknown type name 'pid_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/asm-generic/siginfo.h:70:2: error: unknown type name 'pid_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/asm-generic/siginfo.h:73:2: error: unknown type name 'clock_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/asm-generic/siginfo.h:74:2: error: unknown type name 'clock_t'
In file included from ./time.h:40:0,
                 from ./stdint.h:506,
                 from /home/luigi/cerbero/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/include-fixed/sys/types.h:43,
                 from /home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/strings.h:42,
                 from /home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/stdlib.h:42,
                 from ./stdlib.h:35,
                 from gl_avltree_oset.c:23:
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/time.h:40:1: error: unknown type name 'time_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/time.h:40:22: error: unknown type name 'time_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/time.h:70:25: error: unknown type name 'time_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/time.h:70:41: error: unknown type name 'time_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/time.h:71:1: error: unknown type name 'time_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/time.h:73:15: error: unknown type name 'time_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/time.h:74:15: error: unknown type name 'time_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/time.h:76:15: error: unknown type name 'time_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/time.h:77:15: error: unknown type name 'time_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/time.h:82:1: error: unknown type name 'time_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/time.h:83:1: error: unknown type name 'time_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/time.h:94:1: error: unknown type name 'clock_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/time.h:107:49: error: unknown type name 'timer_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/time.h:109:27: error: unknown type name 'timer_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/time.h:110:27: error: unknown type name 'timer_t'
/home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/time.h:111:30: error: unknown type name 'timer_t'
In file included from ./stdint.h:506:0,
                 from /home/luigi/cerbero/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/include-fixed/sys/types.h:43,
                 from /home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/strings.h:42,
                 from /home/luigi/cerbero/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/stdlib.h:42,
                 from ./stdlib.h:35,
                 from gl_avltree_oset.c:23:
./time.h:409:49: error: 'time_t' undeclared here (not in a function)
./time.h:409:3: error: bit-field '__floating_time_t_unsupported' width not an integer constant
./time.h:409:57: error: expected ',', ';' or '}' before numeric constant
make[3]: *** [gl_avltree_oset.o] Error 1
make[3]: Leaving directory `/home/luigi/cerbero/sources/build-tools/m4-1.4.16/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/luigi/cerbero/sources/build-tools/m4-1.4.16/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/luigi/cerbero/sources/build-tools/m4-1.4.16'
make: *** [all] Error 2
***** Error running 'bootstrap' command:
Recipe 'm4' failed at the build step 'compile'


Thanks !
Comment 1 Andoni Morales Alastruey 2013-03-07 17:27:36 UTC
That shouldn't happen at all as it's building the build-tools with the android ndk.

Could you please try:
./cerbero-uninstalled -c config/cross-android.cbc wipe --build-tools

and:
./cerbero-uninstalled -c config/cross-android.cbc bootstrap > cerbero.log 2>&1

And in case of errors attach here the log file "cerbero.log"
Comment 2 Luis Linietsky 2013-03-08 20:12:50 UTC
Created attachment 76187 [details]
attachment-24950-0.html

I am sorry, did as you said but it is still crashing.
cerbero.log.tgz is attached as you requested.


On Thu, Mar 7, 2013 at 2:27 PM, <bugzilla-daemon@freedesktop.org> wrote:

>   *Comment # 1 <https://bugs.freedesktop.org/show_bug.cgi?id=61970#c1> on bug
> 61970 <https://bugs.freedesktop.org/show_bug.cgi?id=61970> from Andoni
> Morales Alastruey <ylatuya@gmail.com> *
>
> That shouldn't happen at all as it's building the build-tools with the android
> ndk.
>
> Could you please try:
> ./cerbero-uninstalled -c config/cross-android.cbc wipe --build-tools
>
> and:
> ./cerbero-uninstalled -c config/cross-android.cbc bootstrap > cerbero.log 2>&1
>
> And in case of errors attach here the log file "cerbero.log"
>
>  ------------------------------
> You are receiving this mail because:
>
>    - You reported the bug.
>
>
Comment 3 Luis Linietsky 2013-03-08 20:12:50 UTC
Created attachment 76188 [details]
attachment-24950-1.dat
Comment 4 Luis Linietsky 2013-03-08 20:12:50 UTC
Created attachment 76189 [details]
cerbero.log.tgz
Comment 5 Andoni Morales Alastruey 2013-05-07 15:43:28 UTC
This should be fixed now
Comment 6 thomas.tr 2014-08-14 16:43:55 UTC
Hello,

I'm trying to build the GStreamer SDK for android but I have also such an error :(
cerebro source is up to date


checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... cpp
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for Minix Amsterdam compiler... no
configure: error: cannot run /bin/bash build-aux/config.sub
Running command './configure --prefix /home/notroot/cerbero/build-tools --libdir /home/notroot/cerbero/build-tools/lib  --disable-maintainer-mode  --disable-silent-rules  --enable-introspection '

Recipe 'm4' failed at the build step 'configure'


Hope you can help
Thomas
Comment 7 Andoni Morales Alastruey 2014-08-20 11:40:52 UTC
From what cerbero branch are you trying to compile cerbero and on which operating system? Can you also put the exact command you are using ?

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.