2009/2/9 axel lin <[email protected]>:
> hi all,
> I'm trying to build Moblin2 SPRMS on "moblin2-sdk".
> Here are some issues and some feedbacks.
>
> 1. I have installed moblin-rpm-config, but when I compile the package
> I cannot find the -m[sse3 or ssse3] gcc flags.
> I plan to remove the -m[sse3 or ssse3] gcc flags for my own Mccaslin
> platform, but I think these flags should be there in moblin2 default
> build .
> Any thing is missing?
>
> e.g. here is the log to compile sysfsutils.spec
> [r...@localhost SPECS]# rpmbuild --target i586 -bc sysfsutils.spec
> Building target platforms: i586
> Building for target i586
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.SskY5M
> + umask 022
> + cd /usr/src/redhat/BUILD
> + LANG=C
> + export LANG
> + unset DISPLAY
> + cd /usr/src/redhat/BUILD
> + rm -rf sysfsutils-2.1.0
> + /bin/gzip -dc /usr/src/redhat/SOURCES/sysfsutils-2.1.0.tar.gz
> + /bin/tar -xf -
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd sysfsutils-2.1.0
> + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
> + echo 'Patch #0 (sysfsutils-2.0.0-redhatify.patch):'
> Patch #0 (sysfsutils-2.0.0-redhatify.patch):
> + /bin/cat /usr/src/redhat/SOURCES/sysfsutils-2.0.0-redhatify.patch
> + /usr/bin/patch -s -p1 -b --suffix .redhatify --fuzz=0
> + echo 'Patch #1 (sysfsutils-2.0.0-class-dup.patch):'
> Patch #1 (sysfsutils-2.0.0-class-dup.patch):
> + /bin/cat /usr/src/redhat/SOURCES/sysfsutils-2.0.0-class-dup.patch
> + /usr/bin/patch -s -p1 --fuzz=0
> + echo 'Patch #2 (sysfsutils-2.1.0-get_link.patch):'
> Patch #2 (sysfsutils-2.1.0-get_link.patch):
> + /bin/cat /usr/src/redhat/SOURCES/sysfsutils-2.1.0-get_link.patch
> + /usr/bin/patch -s -p1 --fuzz=0
> + exit 0
> Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.QbMamH
> + umask 022
> + cd /usr/src/redhat/BUILD
> + cd sysfsutils-2.1.0
> + LANG=C
> + export LANG
> + unset DISPLAY
> + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586
> -fasynchronous-unwind-tables'
> + export CFLAGS
> + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586
> -fasynchronous-unwind-tables'
> + export CFLAGS
> + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586
> -fasynchronous-unwind-tables'
> + export CXXFLAGS
> + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586
> -fasynchronous-unwind-tables -I/usr/lib/gfortran/modules'
> + export FFLAGS
> + ./configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu
> --target=i586-redhat-linux-gnu --program-prefix= --prefix=/usr
> --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
> --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include
> --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var
> --sharedstatedir=/usr/com --mandir=/usr/share/man
> --infodir=/usr/share/info
>
> 2. The "moblin2-sdk" itself is also optomized for CPU with SSSE
> support. ( I'm not able to install the "moblin2-sdk" on some laptops )
> I think this is a little bit inconvenience.
> It should be able to use "moblin2-sdk" on CPU without SSSE support,
> because the sdk build can complete run in console mode.

For this issue, I just found that I can use loop image as a change
root environment.

>
> 3. Some package cannot be successfully built.
> e.g.
> [r...@localhost SPECS]# rpmbuild --target i586 -bc sysvinit.spec
>
> Building target platforms: i586
> Building for target i586
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.pdP6yT
> + umask 022
> + cd /usr/src/redhat/BUILD
> + LANG=C
> + export LANG
> + unset DISPLAY
> + cd /usr/src/redhat/BUILD
> + rm -rf sysvinit-2.86
> + /bin/gzip -dc /usr/src/redhat/SOURCES/sysvinit-2.86.tar.gz
> + /bin/tar -xf -
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd sysvinit-2.86
> + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
> + echo 'Patch #1 (sysvinit-2.78-man.patch):'
> Patch #1 (sysvinit-2.78-man.patch):
> + /bin/cat /usr/src/redhat/SOURCES/sysvinit-2.78-man.patch
> + /usr/bin/patch -s -p1 -b --suffix .manpatch --fuzz=0
> + echo 'Patch #2 (sysvinit-2.77-md5-be.patch):'
> Patch #2 (sysvinit-2.77-md5-be.patch):
> + /bin/cat /usr/src/redhat/SOURCES/sysvinit-2.77-md5-be.patch
> + /usr/bin/patch -s -p1 -b --suffix .be --fuzz=0
> 1 out of 2 hunks FAILED -- saving rejects to file src/sulogin.c.rej
> error: Bad exit status from /var/tmp/rpm-tmp.pdP6yT (%prep)
>
>
> RPM build errors:
>    Bad exit status from /var/tmp/rpm-tmp.pdP6yT (%prep)
>
> 4. Some packages can be built in "moblin2-sdk", but failed to build in
> "Fedora-10"
> One of the example is net-tools-1.60-98.10.moblin2.src.rpm, below
> shows the error in "Fedora-10" build .
>
> ....
> hostname.c:406: warning: incompatible implicit declaration of built-in
> function 'exit'
> cc  -Llib -o hostname hostname.o
> cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/ -Ilib   -c -o
> arp.o arp.c
> arp.c: In function 'arp_getdevhw':
> arp.c:253: warning: pointer targets in passing argument 1 of
> 'xhw->print' differ in signedness
> cc  -Llib -o arp arp.o -lnet-tools
> cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/ -Ilib   -c -o
> netstat.o netstat.c
> netstat.c: In function 'prg_cache_load':
> netstat.c:415: warning: unused variable 'scon'
> netstat.c: At top level:
> netstat.c:1229: warning: 'sctp_socket_type_str' defined but not used
> netstat.c:1240: warning: 'sctp_state_str' defined but not used
> cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/ -Ilib   -c -o
> statistics.o statistics.c
> cc  -Llib -o netstat netstat.o statistics.o -lnet-tools
> cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/ -Ilib   -c -o
> route.o route.c
> cc  -Llib -o route route.o -lnet-tools
> cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/ -Ilib   -c -o
> rarp.o rarp.c
> cc  -Llib -o rarp rarp.o -lnet-tools
> cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/ -Ilib   -c -o
> slattach.o slattach.c
> cc  -Llib -o slattach slattach.o -lnet-tools
> cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/ -Ilib   -c -o
> plipconfig.o plipconfig.c
> cc  -Llib -o plipconfig plipconfig.o -lnet-tools
> cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/ -Ilib   -c -o
> nameif.o nameif.c
> cc  -Llib -o nameif nameif.o
> cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/ -Ilib   -c -o
> iptunnel.o iptunnel.c
> In file included from iptunnel.c:39:
> /usr/include/linux/if_tunnel.h:32: error: field 'iph' has incomplete type
> iptunnel.c: In function 'print_tunnel':
> iptunnel.c:411: warning: pointer targets in passing argument 3 of
> 'format_host' differ in signedness
> iptunnel.c:412: warning: pointer targets in passing argument 3 of
> 'format_host' differ in signedness
> make: *** [iptunnel.o] Error 1
> error: Bad exit status from /var/tmp/rpm-tmp.9rtqgA (%build)
>
>
> RPM build errors:
>    Bad exit status from /var/tmp/rpm-tmp.9rtqgA (%build)
> [r...@boost SPECS]#
>
> Regards,
> Axel
>

_______________________________________________
Moblin dev Mailing List
[email protected]

To manage or unsubscribe from this mailing list visit:
https://lists.moblin.org/mailman/listinfo/dev or your user account on 
http://moblin.org once logged in.

For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists

Reply via email to