A problem of rtems build

Joel Sherrill joel at rtems.org
Tue Mar 14 01:02:26 UTC 2017


On Mar 13, 2017 7:26 PM, "libing403" <libing18934721626 at gmail.com> wrote:

hello
I have looked at the steps documented here: https://docs.rtems.org/b
ranches/master/user/start/index.html
Something different is I ran RSB for the “all.bset” , which contain
seventeen architectures.
--------------------------------------------------------------------
I do this and succeed:
(1)Rtems source Build
$ sudo apt-get build-dep binutils gcc g++ gdb unzip git python2.7-dev
$ export PATH=$HOME/development/rtems/4.12/bin:$PATH
$ cd
$ mkdir -p development/rtems/src
$ cd development/rtems/src
$ git clone git://git.rtems.org/rtems-source-builder.git
$ cd rtems-source-builder
$ source-builder/sb-check
RTEMS Source Builder environment is ok
$ cd rtems
 $ ../source-builder/sb-set-builder --log=l-all.txt  \
                --prefix=$HOME/development/rtems/4.12  4.12/rtems-all
I do this and something error:
(2)Rtems build
$ cd ~/development/rtems/src
$ git clone git://git.rtems.org/rtems.git
$ export PATH=$HOME/development/rtems/4.12/bin:$PATH
$ cd rtems
$ ./bootstrap
...
tm34/Makefile.am:3: warning: source file '../tm03/task1.c' is in a
subdirectory,
tm34/Makefile.am:3: but option 'subdir-objects' is disabled
tm34/Makefile.am:3: warning: source file
'../../support/src/tmtests_empty_function.c'
is in a subdirectory,
tm34/Makefile.am:3: but option 'subdir-objects' is disabled
tm35/Makefile.am:3: warning: source file '../tm02/task1.c' is in a
subdirectory,
tm35/Makefile.am:3: but option 'subdir-objects' is disabled
tm35/Makefile.am:3: warning: source file
'../../support/src/tmtests_empty_function.c'
is in a subdirectory,
........
tmtests/tm28/Makefile.am:7: warning: source file '../../support/init.c' is
in a subdirectory,
tmtests/tm28/Makefile.am:7: but option 'subdir-objects' is disabled
tmtests/tm29/Makefile.am:7: warning: source file '../../support/init.c' is
in a subdirectory,
tmtests/tm29/Makefile.am:7: but option 'subdir-objects' is disabled
tmtests/tmck/Makefile.am:7: warning: source file '../../support/init.c' is
in a subdirectory,
tmtests/tmck/Makefile.am:7: but option 'subdir-objects' is disabled
tmtests/tmoverhd/Makefile.am:7: warning: source file '../../support/init.c'
is in a subdirectory,
....


These messages are not right. My suspicion is that you are using the
autoconf and automake from your distribution. You need to put the rtems
tools first in your PATH.



$../rtems/configure \
--prefix=`pwd`/../rtems_i386 \
--target=i386-rtems4.12 \
--enable-posix \
--enable-networking \
--enable-tests \
--enable-rdbg \
--enable-rtemsbsp="pc386"
...
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
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile

target architecture: i386.
available BSPs: pc386.
'make all' will build the following BSPs: pc386.
other BSPs can be built with 'make RTEMS_BSP="bsp1 bsp2 ..."'

config.status: creating Makefile

$make
...
Making all in testsuites/tools
make[1]: 正在进入目录 `/home/libing403/development/rtems/src/i386-rtems-build/
testsuites/tools'
Making all in generic
make[2]: 正在进入目录 `/home/libing403/development/rtems/src/i386-rtems-build/
testsuites/tools/generic'
make[2]: 没有什么可以做的为 `all'。
make[2]:正在离开目录 `/home/libing403/development/rtems/src/i386-rtems-build/
testsuites/tools/generic'
make[2]: 正在进入目录 `/home/libing403/development/rtems/src/i386-rtems-build/
testsuites/tools'
make[2]: 没有什么可以做的为 `all-am'。
make[2]:正在离开目录 `/home/libing403/development/rtems/src/i386-rtems-build/
testsuites/tools'
make[1]:正在离开目录 `/home/libing403/development/rtems/src/i386-rtems-build/
testsuites/tools'
Making all in i386-rtems4.12/c
make[1]: 正在进入目录 `/home/libing403/development/rtems/src/i386-rtems-build/
i386-rtems4.12/c'
Making all in .
make[2]: 正在进入目录 `/home/libing403/development/rtems/src/i386-rtems-build/
i386-rtems4.12/c'
make[2]: 没有什么可以做的为 `all-am'。
make[2]:正在离开目录 `/home/libing403/development/rtems/src/i386-rtems-build/
i386-rtems4.12/c'
Making all in pc386
make[2]: 正在进入目录 `/home/libing403/development/rtems/src/i386-rtems-build/
i386-rtems4.12/c/pc386'
make[2]: *** 没有规则可以创建目标“all”。 停止。
make[2]:正在离开目录 `/home/libing403/development/rtems/src/i386-rtems-build/
i386-rtems4.12/c/pc386'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/libing403/development/rtems/src/i386-rtems-build/
i386-rtems4.12/c'
make: *** [all-recursive] 错误 1
------------------------------------------------------------
--------------------------------
$~/development/rtems/src/rtems$ ./rtems-bsps
RTEMS 4.12
 Architectures: 17
 BSP Count: 172
arm:
 altcycv_devkit                c/src/lib/libbsp/arm/altera-cyclone-v
 altcycv_devkit_smp            c/src/lib/libbsp/arm/altera-cyclone-v
 atsamv                        c/src/lib/libbsp/arm/atsam
 beagleboardorig               c/src/lib/libbsp/arm/beagle
 beagleboardxm                 c/src/lib/libbsp/arm/beagle
 beagleboneblack               c/src/lib/libbsp/arm/beagle
 beaglebonewhite               c/src/lib/libbsp/arm/beagle
 csb336                        c/src/lib/libbsp/arm/csb336
 csb337                        c/src/lib/libbsp/arm/csb337
------------------------------------------------------------
--------------------
I would be grateful for any tips.

Regards,
LiBing

2017-03-13 20:30 GMT+08:00 Tanu Hari Dixit <tokencolour at gmail.com>:

> Hi LiBing,
>
> What exactly was the error?
> Did you run configure command after bootstrapping?
> You can consider looking at the steps documented here:
> https://docs.rtems.org/branches/master/user/start/index.html
>
> Regards,
> Tanu Hari Dixit.
>
> On Mon, Mar 13, 2017 at 5:46 PM, libing403 <libing18934721626 at gmail.com>
> wrote:
>
>> Hello,
>>       I have ran the Rtems Source Builder with "all.bset" that contain
>> seventeen architectures. it took about 12 hours and succeed.
>>       what I need to do after that? could I begin to build the Rtems .
>> But when I build the Rtems ,there are many errors.
>> The command line that I used are following:
>> (1)Rtems source Build
>> $ sudo apt-get build-dep binutils gcc g++ gdb unzip git python2.7-dev
>> $ export PATH=$HOME/development/rtems/4.12/bin:$PATH
>> $ cd
>> $ mkdir -p development/rtems/src
>> $ cd development/rtems/src
>> $ git clone git://git.rtems.org/rtems-source-builder.git
>> $ cd rtems-source-builder
>> $ source-builder/sb-check
>> RTEMS Source Builder environment is ok
>> $ cd rtems
>>  $ ../source-builder/sb-set-builder --log=l-all.txt  \
>>                 --prefix=$HOME/development/rtems/4.12  4.12/rtems-all
>> (2)Rtems build
>> $ cd ~/development/rtems/src
>> $ git clone git://git.rtems.org/rtems.git
>> $ export PATH=$HOME/development/rtems/4.12/bin:$PATH
>> $ cd rtems
>> $ ./bootstrap
>> After ran this command line , there are many warning, and ran
>> $make
>>  Error occurred
>>
>>  I would be grateful for any tips.
>>
>> ---------------
>> Regards,
>> LiBing
>>
>> _______________________________________________
>> users mailing list
>> users at rtems.org
>> http://lists.rtems.org/mailman/listinfo/users
>>
>
>

_______________________________________________
users mailing list
users at rtems.org
http://lists.rtems.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20170313/8f3b2a43/attachment-0002.html>


More information about the users mailing list