Is there any framebuffer testcases?

Peng Fan van.freenix at gmail.com
Thu Apr 7 10:19:15 UTC 2016


Hi Chris,



2016-04-07 6:57 GMT+08:00 Chris Johns <chrisj at rtems.org>:

> On 6/04/2016 11:09 PM, Peng Fan wrote:
>
>>
>> The latest rtems-source-builder master branch does not support
>> 4.11/graphics/graphics-all.bset.
>>
>
> The 3rd party packages need to be brought over to master.
>
> I wonder if they should be at the rtems/config top level and not under a
> specific release. The original layout was done when the repo had all
> releases and we are slowly moving away from this.
>
>
>> I reverted to earlier commit 08aa888205798b3416d24544fd06613fd683bb1e.
>>
>> I use rtems 4.12 toolchain.
>>
>> Met the following error:
>>
>> ../source-builder/sb-set-builder --log=l-g.txt
>> --prefix=/home/Freenix/development/rtems/4.12 --rtems-bsp=arm/raspberrypi
>> --rtems-version=4.11 --pkg-tar-files 4.11/graphics/graphics-all.bset
>> RTEMS Source Builder - Set Builder, 4.12 (08aa88820579)
>> warning: exe: absolute exe found in path: (__chown) /usr/sbin/chown
>> Build Set: 4.11/graphics/graphics-all.bset
>> Build Set: 4.11/graphics/libjpeg.bset
>> config: graphics/libjpeg-9a-1.cfg
>> internal error: pkgconfig failure
>>
>
> I think you are seeing some effects from the conversion to python3 and
> python2. There have been fixes.
>
> I suggest getting a copy of the databases, graphics, net-mgmt, and net
> build set files from 4.11 and adding to rtems/config and then seeing if the
> package builds. Let me know how it goes.


I met compiler error. libpng-1.5 can not be downloaded, so I switch to use
libpng-1.6.21.
But still met error, And  I attached the log file.
../source-builder/sb-set-builder --log=l-g.txt --target=arm-rtems4.12
--with-rtems-bsp=raspberrypi --prefix=/home/Freenix/development/rtems/4.12
--pkg-tar-files graphics/graphics-all.bset
RTEMS Source Builder - Set Builder, 4.12 (eac749bb80b1 modified)
warning: exe: absolute exe found in path: (__chown) /usr/sbin/chown
Build Set: graphics/graphics-all.bset
Build Set: graphics/libjpeg.bset
config: graphics/libjpeg-9a-1.cfg
package: libjpeg-v9a-arm-rtems4.12-1
building: libjpeg-v9a-arm-rtems4.12-1
reporting: graphics/libjpeg-9a-1.cfg -> libjpeg-v9a-arm-rtems4.12-1.txt
reporting: graphics/libjpeg-9a-1.cfg -> libjpeg-v9a-arm-rtems4.12-1.xml
installing: libjpeg-v9a-arm-rtems4.12-1 ->
/home/Freenix/development/rtems/4.12
cleaning: libjpeg-v9a-arm-rtems4.12-1
Build Set: Time 0:00:23.905603
Build Set: graphics/libpng.bset
config: graphics/libpng-1.6.21-1.cfg
package: libpng-v1.6.21-arm-rtems4.12-1
building: libpng-v1.6.21-arm-rtems4.12-1
error: building libpng-v1.6.21-arm-rtems4.12-1
Build FAILED
  See error report: rsb-report-libpng-v1.6.21-arm-rtems4.12-1.txt
error: building libpng-v1.6.21-arm-rtems4.12-1
Build Set: Time 0:00:04.701515
error: building libpng-v1.6.21-arm-rtems4.12-1
Build Set: Time 0:00:28.612899
Build FAILED

>From attached log file:
arm-rtems4.12-gcc -E -DHAVE_CONFIG_H -I. -I../libpng-1.6.21 \

     -DPNGLIB_LIBNAME='PNG16_0' -DPNGLIB_VERSION='1.6.21'
-DSYMBOL_PREFIX='' -DPNG_NO_USE_READ_MACROS -DPNG_BUILDING_SYMBOL_TABLE
 pnglibconf.c > pnglibconf.tf1
pnglibconf.c:33:19: fatal error: zlib.h: No such file or directory

 # include <zlib.h>

Seems the rtems lib/include path is not included.

I hacked doit script, add the following line in doit and execute ./doit
export
INCLUDES=-I/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/include

libpng compiled successfully.

Do you have better idea about how to fix this, since hacked doit can not
bypass ../source-builder/sb-set-builder. Or how I can let doit
automatically include the upper hacked script.

Thanks,
Peng.


>
> Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20160407/3c38a8cf/attachment-0002.html>
-------------- next part --------------
RTEMS Tools Project - Source Builder Error Report
 Build: error: building libpng-v1.6.21-arm-rtems4.12-1
 Command Line: ../source-builder/sb-set-builder --log=l-g.txt --target=arm-rtems4.12 --with-rtems-bsp=raspberrypi --prefix=/home/Freenix/development/rtems/4.12 --pkg-tar-files graphics/graphics-all.bset
 Python: 2.7.9 (default, Dec 13 2014, 18:02:08) [GCC]
 git://git.rtems.org/rtems-source-builder.git/origin/eac749bb80b184c1f5e34e40d745e0c428cb9f73-modified
 Linux linux-7smt.suse 4.1.12-1-default #1 SMP PREEMPT Thu Oct 29 06:43:42 UTC 2015 (e24bad1) x86_64
Tail of the build log:
-rw-r--r-- glennrp/visitor  29174 2016-01-15 23:52 libpng-1.6.21/pngerror.c
-rw-r--r-- glennrp/visitor   2399 2000-07-12 20:30 libpng-1.6.21/pngbar.png
-rwxr-xr-x glennrp/visitor  23566 2015-02-22 02:27 libpng-1.6.21/depcomp
-rwxr-xr-x glennrp/visitor   7333 2015-02-22 02:26 libpng-1.6.21/compile
-rw-r--r-- glennrp/visitor 142719 2016-01-15 23:52 libpng-1.6.21/pngrutil.c
-rw-r--r-- glennrp/visitor   3955 2016-01-15 23:52 libpng-1.6.21/pngrio.c
-rwxr-xr-x glennrp/visitor   7979 2015-08-03 10:43 libpng-1.6.21/autogen.sh
-rwxr-xr-x glennrp/visitor 473290 2016-01-15 23:52 libpng-1.6.21/configure
-rw-r--r-- glennrp/visitor 136730 2016-01-15 23:52 libpng-1.6.21/png.h
-rw-r--r-- glennrp/visitor  40308 2016-01-15 23:52 libpng-1.6.21/example.c
-rw-r--r-- glennrp/visitor 324089 2016-01-15 23:52 libpng-1.6.21/ltmain.sh
-rw-r--r-- glennrp/visitor    293 2016-01-15 23:52 libpng-1.6.21/libpng.pc.in
-rw-r--r-- glennrp/visitor   1201 2014-03-17 22:18 libpng-1.6.21/TODO
-rw-r--r-- glennrp/visitor  11254 2016-01-15 23:52 libpng-1.6.21/README
-rw-r--r-- glennrp/visitor   2498 2000-07-12 20:30 libpng-1.6.21/pngbar.jpg
-rw-r--r-- glennrp/visitor   2396 2016-01-15 23:52 libpng-1.6.21/libpng-config.in
+ cd libpng-1.6.21
+ /bin/chmod -R a+rX,g-w,o-w .
+ cd /home/Freenix/work/forfun/rtems/rtems-source-builder/rtems/build/libpng-v1.6.21-arm-rtems4.12-1
+ SB_CXC=no
+ echo '==> clean %{buildroot}: /home/Freenix/work/forfun/rtems/rtems-source-builder/rtems/build/tmp/libpng-v1.6.21-arm-rtems4.12-1-root-Freenix'
+ /bin/rm -rf /home/Freenix/work/forfun/rtems/rtems-source-builder/rtems/build/tmp/libpng-v1.6.21-arm-rtems4.12-1-root-Freenix
==> clean %{buildroot}: /home/Freenix/work/forfun/rtems/rtems-source-builder/rtems/build/tmp/libpng-v1.6.21-arm-rtems4.12-1-root-Freenix
+ /bin/mkdir -p /home/Freenix/work/forfun/rtems/rtems-source-builder/rtems/build/tmp/libpng-v1.6.21-arm-rtems4.12-1-root-Freenix
+ echo '==> %build:'
==> %build:
++ pwd
+ build_top=/home/Freenix/work/forfun/rtems/rtems-source-builder/rtems/build/libpng-v1.6.21-arm-rtems4.12-1
+ test x86_64-linux-gnu '!=' arm-rtems4.12
+ test -z arm-rtems4.12
+ build_dir=build-cxc
+ mkdir -p build-cxc
+ cd build-cxc
+ test x86_64-linux-gnu '!=' arm-rtems4.12
++ sed -e 's,-std=gnu99 ,,'
++ echo arm-rtems4.12-gcc
+ CC=arm-rtems4.12-gcc
++ sed -e 's,-std=gnu99 ,,'
++ echo arm-rtems4.12-g++
+ CXX=arm-rtems4.12-g++
+ CFLAGS='-qrtems -B/home/Freenix/development/rtems/4.12/arm-rtems4.12/lib/ -B/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/ --specs bsp_specs -mcpu=arm1176jzf-s -O2 -g -I/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/include '
+ CXXFLAGS='-qrtems -B/home/Freenix/development/rtems/4.12/arm-rtems4.12/lib/ -B/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/ --specs bsp_specs -mcpu=arm1176jzf-s -O2 -g -I/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/include '
+ LDFLAGS=-L/home/Freenix/work/forfun/rtems/rtems-source-builder/rtems/build/tmp/sb-Freenix/graphics/libpng.bset/home/Freenix/development/rtems/4.12/lib
+ CFLAGS_FOR_HOST='-qrtems -B/home/Freenix/development/rtems/4.12/arm-rtems4.12/lib/ -B/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/ --specs bsp_specs -mcpu=arm1176jzf-s -O2 -g -I/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/include '
+ CXXFLAGS_FOR_HOST='-qrtems -B/home/Freenix/development/rtems/4.12/arm-rtems4.12/lib/ -B/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/ --specs bsp_specs -mcpu=arm1176jzf-s -O2 -g -I/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/include '
+ LDFLAGS_FOR_HOST=-L/home/Freenix/work/forfun/rtems/rtems-source-builder/rtems/build/tmp/sb-Freenix/graphics/libpng.bset/home/Freenix/development/rtems/4.12/lib
+ CXXFLAGS_FOR_HOST='-qrtems -B/home/Freenix/development/rtems/4.12/arm-rtems4.12/lib/ -B/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/ --specs bsp_specs -mcpu=arm1176jzf-s -O2 -g -I/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/include '
++ sed -e 's,-std=gnu99 ,,'
++ echo 'gcc -qrtems -B/home/Freenix/development/rtems/4.12/arm-rtems4.12/lib/ -B/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/ --specs bsp_specs -mcpu=arm1176jzf-s -O2 -g -I/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/include '
+ CC_FOR_HOST='gcc -qrtems -B/home/Freenix/development/rtems/4.12/arm-rtems4.12/lib/ -B/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/ --specs bsp_specs -mcpu=arm1176jzf-s -O2 -g -I/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/include '
++ sed -e 's,-std=gnu99 ,,'
++ echo 'g++ -qrtems -B/home/Freenix/development/rtems/4.12/arm-rtems4.12/lib/ -B/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/ --specs bsp_specs -mcpu=arm1176jzf-s -O2 -g -I/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/include '
+ CXX_FOR_HOST='g++ -qrtems -B/home/Freenix/development/rtems/4.12/arm-rtems4.12/lib/ -B/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/ --specs bsp_specs -mcpu=arm1176jzf-s -O2 -g -I/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/include '
+ CFLAGS_FOR_BUILD='-O2 -pipe -I/home/Freenix/work/forfun/rtems/rtems-source-builder/rtems/build/tmp/sb-Freenix/graphics/libpng.bset/home/Freenix/development/rtems/4.12/include'
+ CXXFLAGS_FOR_BUILD='-O2 -pipe -I/home/Freenix/work/forfun/rtems/rtems-source-builder/rtems/build/tmp/sb-Freenix/graphics/libpng.bset/home/Freenix/development/rtems/4.12/include'
+ LDFLAGS_FOR_BUILD=-L/home/Freenix/work/forfun/rtems/rtems-source-builder/rtems/build/tmp/sb-Freenix/graphics/libpng.bset/home/Freenix/development/rtems/4.12/lib
+ CXXFLAGS_FOR_BUILD='-O2 -pipe -I/home/Freenix/work/forfun/rtems/rtems-source-builder/rtems/build/tmp/sb-Freenix/graphics/libpng.bset/home/Freenix/development/rtems/4.12/include'
++ sed -e 's,-std=gnu99 ,,'
++ echo '/usr/bin/gcc -O2 -pipe -I/home/Freenix/work/forfun/rtems/rtems-source-builder/rtems/build/tmp/sb-Freenix/graphics/libpng.bset/home/Freenix/development/rtems/4.12/include'
+ CC_FOR_BUILD='/usr/bin/gcc -O2 -pipe -I/home/Freenix/work/forfun/rtems/rtems-source-builder/rtems/build/tmp/sb-Freenix/graphics/libpng.bset/home/Freenix/development/rtems/4.12/include'
++ sed -e 's,-std=gnu99 ,,'
++ echo '/usr/bin/g++ -O2 -pipe -I/home/Freenix/work/forfun/rtems/rtems-source-builder/rtems/build/tmp/sb-Freenix/graphics/libpng.bset/home/Freenix/development/rtems/4.12/include'
+ CXX_FOR_BUILD='/usr/bin/g++ -O2 -pipe -I/home/Freenix/work/forfun/rtems/rtems-source-builder/rtems/build/tmp/sb-Freenix/graphics/libpng.bset/home/Freenix/development/rtems/4.12/include'
+ export CC CXX CFLAGS CXXFLAGS LDFLAGS
+ export CC_FOR_HOST CXX_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST
+ export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD
+ ../libpng-1.6.21/configure --host=arm-rtems4.12 --prefix=/home/Freenix/development/rtems/4.12 --bindir=/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/bin --exec_prefix=/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi --includedir=/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/include --libdir=/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib --libexecdir=/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/libexec --mandir=/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/share/man --infodir=/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/share/info --datadir=/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/share --disable-shared
configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-rtems4.12-strip... arm-rtems4.12-strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for arm-rtems4.12-gcc... arm-rtems4.12-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-rtems4.12-gcc accepts -g... yes
checking for arm-rtems4.12-gcc option to accept ISO C89... none needed
checking whether arm-rtems4.12-gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of arm-rtems4.12-gcc... gcc3
checking dependency style of arm-rtems4.12-gcc... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-rtems4.12
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking how to print strings... printf
checking for ld used by arm-rtems4.12-gcc... /home/Freenix/development/rtems/4.12/arm-rtems4.12/bin/ld
checking if the linker (/home/Freenix/development/rtems/4.12/arm-rtems4.12/bin/ld) is GNU ld... yes
checking how to run the C preprocessor... arm-rtems4.12-gcc -E
checking for gawk... (cached) gawk
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for BSD- or MS-compatible name lister (nm)... /home/Freenix/development/rtems/4.12/bin/arm-rtems4.12-nm -B
checking the name lister (/home/Freenix/development/rtems/4.12/bin/arm-rtems4.12-nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to arm-unknown-rtems4.12 format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /home/Freenix/development/rtems/4.12/arm-rtems4.12/bin/ld option to reload object files... -r
checking for arm-rtems4.12-objdump... arm-rtems4.12-objdump
checking how to recognize dependent libraries... unknown
checking for arm-rtems4.12-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for arm-rtems4.12-ar... arm-rtems4.12-ar
checking for archiver @FILE support... @
checking for arm-rtems4.12-strip... (cached) arm-rtems4.12-strip
checking for arm-rtems4.12-ranlib... arm-rtems4.12-ranlib
checking command to parse /home/Freenix/development/rtems/4.12/bin/arm-rtems4.12-nm -B output from arm-rtems4.12-gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for arm-rtems4.12-mt... no
checking for mt... mt
configure: WARNING: using cross tools not prefixed with host triplet
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if arm-rtems4.12-gcc supports -fno-rtti -fno-exceptions... no
checking for arm-rtems4.12-gcc option to produce PIC... -fPIC -DPIC
checking if arm-rtems4.12-gcc PIC flag -fPIC -DPIC works... yes
checking if arm-rtems4.12-gcc static flag -static works... yes
checking if arm-rtems4.12-gcc supports -c -o file.o... yes
checking if arm-rtems4.12-gcc supports -c -o file.o... (cached) yes
checking whether the arm-rtems4.12-gcc linker (/home/Freenix/development/rtems/4.12/arm-rtems4.12/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking that AWK works... ok
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for C/C++ restrict keyword... __restrict
checking for working strtod... no
checking for pow... no
checking for pow in -lm... yes
checking for memset... yes
checking for pow... (cached) no
checking for pow in -lm... (cached) yes
checking for zlibVersion in -lz... no
checking for z_zlibVersion in -lz... yes
checking for feenableexcept in -lm... no
checking for feenableexcept... no
checking if using Solaris linker... no
checking if libraries can be versioned... yes
checking for symbol prefix... 
configure: pkgconfig directory is ${libdir}/pkgconfig
configure: Extra options for compiler: 
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libpng.pc
config.status: creating libpng-config
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
+ make all
rm -f pnglibconf.c pnglibconf.tf[45]
gawk -f ../libpng-1.6.21/scripts/options.awk out=pnglibconf.tf4 version=search\
    ../libpng-1.6.21/pngconf.h ../libpng-1.6.21/scripts/pnglibconf.dfa\
    ../libpng-1.6.21/pngusr.dfa  1>&2
gawk -f ../libpng-1.6.21/scripts/options.awk out=pnglibconf.tf5 pnglibconf.tf4 1>&2
rm pnglibconf.tf4
mv pnglibconf.tf5 pnglibconf.c
rm -f pnglibconf.out pnglibconf.tf[12]
test -d scripts || mkdir scripts || test -d scripts
arm-rtems4.12-gcc -E -DHAVE_CONFIG_H -I. -I../libpng-1.6.21 \
     -DPNGLIB_LIBNAME='PNG16_0' -DPNGLIB_VERSION='1.6.21' -DSYMBOL_PREFIX='' -DPNG_NO_USE_READ_MACROS -DPNG_BUILDING_SYMBOL_TABLE  pnglibconf.c > pnglibconf.tf1
pnglibconf.c:33:19: fatal error: zlib.h: No such file or directory
 # include <zlib.h>
                   ^

compilation terminated.
Makefile:2095: recipe for target 'pnglibconf.out' failed
make: *** [pnglibconf.out] Error 1
shell cmd failed: /bin/sh -ex  /home/Freenix/work/forfun/rtems/rtems-source-builder/rtems/build/libpng-v1.6.21-arm-rtems4.12-1/doit
error: building libpng-v1.6.21-arm-rtems4.12-1


More information about the users mailing list