cp: target '/usr/local/ltib/ltib-p1020rdb_p2020rdb-20101029/tmp/gcc//opt/freescale/rootfs/ppc//usr/local/lib/gcc/powerpc-none-linux-gnuspe/4.3.2' is not a directory

cancel
Showing results for 
Search instead for 
Did you mean: 

cp: target '/usr/local/ltib/ltib-p1020rdb_p2020rdb-20101029/tmp/gcc//opt/freescale/rootfs/ppc//usr/local/lib/gcc/powerpc-none-linux-gnuspe/4.3.2' is not a directory

616 Views
xuchen
Contributor II


With the Ubuntu14.04 and 10.04, I use the ltib to build p2020rdb, but it appeared error like this:

Processing: gcc-4.3-74

========================

Build path taken because: directory build, build key set, no prebuilt rpm,

rpmbuild --dbpath /usr/local/ltib/ltib-p1020rdb_p2020rdb-20101029/rootfs//var/lib/rpm --target ppc --define '_unpackaged_files_terminate_build 0' --define '_target_cpu ppc' --define '__strip strip' --define '_topdir /usr/local/ltib/ltib-p1020rdb_p2020rdb-20101029/rpm' --define '_prefix /usr' --define '_tmppath /usr/local/ltib/ltib-p1020rdb_p2020rdb-20101029/tmp' --define '_rpmdir /usr/local/ltib/ltib-p1020rdb_p2020rdb-20101029/rpm/RPMS'  --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bi --short-circuit  /usr/local/ltib/ltib-p1020rdb_p2020rdb-20101029/tmp/gcc-4.3-74.spec

Building target platforms: ppc

Building for target ppc

Executing(%install): /bin/sh -e /usr/local/ltib/ltib-p1020rdb_p2020rdb-20101029/tmp/rpm-tmp.73320

+ umask 022

+ cd /usr/local/ltib/ltib-p1020rdb_p2020rdb-20101029/rpm/BUILD

+ cd gcc-4.3.2

+ rm -rf /usr/local/ltib/ltib-p1020rdb_p2020rdb-20101029/tmp/gcc

+ [ powerpc-none-linux-gnuspe- = arm_v6_vfp_le- -o -n  ]

+ perl -n -e s,-$,,;print

+ echo powerpc-none-linux-gnuspe-

+ OPT_CFGHOST=powerpc-none-linux-gnuspe

+ [  = 64 ]

+ SLIBS=lib

+ EXTRA_CONFIG=

+ EXTRA_CFLAGS=

+ BUILD_TARGET=powerpc-none-linux-gnuspe

+ powerpc-none-linux-gnuspe-gcc -mcpu=8548 -mspe=yes -mabi=spe -mhard-float -mfloat-gprs=double -print-file-name=crti.o

+ dirname /opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-linux-gnuspe/powerpc-none-linux-gnuspe/libc/usr/lib/crti.o

+ CRT_FILES_DIR=/opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-linux-gnuspe/powerpc-none-linux-gnuspe/libc/usr/lib

+ sed -e s,-$,,

+ echo powerpc-none-linux-gnuspe

+ X_DIR=powerpc-none-linux-gnuspe

+ mkdir -p /usr/local/ltib/ltib-p1020rdb_p2020rdb-20101029/tmp/gcc//opt/freescale/rootfs/ppc//usr/local/lib/{,gcc/powerpc-none-linux-gnuspe/4.3.2}

+ cp /opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-linux-gnuspe/powerpc-none-linux-gnuspe/libc/usr/lib/Mcrt1.o /opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-linux-gnuspe/powerpc-none-linux-gnuspe/libc/usr/lib/Scrt1.o /opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-linux-gnuspe/powerpc-none-linux-gnuspe/libc/usr/lib/crt1.o /opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-linux-gnuspe/powerpc-none-linux-gnuspe/libc/usr/lib/crti.o /opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-linux-gnuspe/powerpc-none-linux-gnuspe/libc/usr/lib/crtn.o /opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-linux-gnuspe/powerpc-none-linux-gnuspe/libc/usr/lib/gcrt1.o /usr/local/ltib/ltib-p1020rdb_p2020rdb-20101029/tmp/gcc//opt/freescale/rootfs/ppc//usr/local/lib

+ cp /opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-linux-gnuspe/powerpc-none-linux-gnuspe/libc/usr/lib/Mcrt1.o /opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-linux-gnuspe/powerpc-none-linux-gnuspe/libc/usr/lib/Scrt1.o /opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-linux-gnuspe/powerpc-none-linux-gnuspe/libc/usr/lib/crt1.o /opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-linux-gnuspe/powerpc-none-linux-gnuspe/libc/usr/lib/crti.o /opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-linux-gnuspe/powerpc-none-linux-gnuspe/libc/usr/lib/crtn.o /opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-linux-gnuspe/powerpc-none-linux-gnuspe/libc/usr/lib/gcrt1.o /usr/local/ltib/ltib-p1020rdb_p2020rdb-20101029/tmp/gcc//opt/freescale/rootfs/ppc//usr/local/lib/gcc/powerpc-none-linux-gnuspe/4.3.2

cp: target '/usr/local/ltib/ltib-p1020rdb_p2020rdb-20101029/tmp/gcc//opt/freescale/rootfs/ppc//usr/local/lib/gcc/powerpc-none-linux-gnuspe/4.3.2' is not a directory

error: Bad exit status from /usr/local/ltib/ltib-p1020rdb_p2020rdb-20101029/tmp/rpm-tmp.73320 (%install)

RPM build errors:

    Bad exit status from /usr/local/ltib/ltib-p1020rdb_p2020rdb-20101029/tmp/rpm-tmp.73320 (%install)

Build time for gcc-4.3-74: 0 seconds

Failed building gcc-4.3-74

f_buildrpms() returned an error, exiting

traceback:

main:560

Started: Tue Jun 21 12:39:26 2016

Ended:   Tue Jun 21 12:49:33 2016

Elapsed: 607 seconds

These packages failed to build:

gcc-4.3-74

Build Failed

Exiting on error or interrupt

when i check the path, i found :

pastedImage_1.png

as

pastedImage_0.png

Who had the same problem? and how to solve this problem?

Labels (1)
Tags (1)
0 Kudos
7 Replies

355 Views
Pavel
NXP TechSupport
NXP TechSupport

You are right. Any changes in LTIB configuration produce gcc problem.

This BSP is too old. Use NXP Linux SDK for the P2020rdb board:

http://www.nxp.com/products/software-and-tools/run-time-software/linux-sdk/linux-sdk-for-qoriq-proce...

Use SDK 1.9 for the P2020RDB board.


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

355 Views
Pavel
NXP TechSupport
NXP TechSupport

I have created new virtual machine, install Ubuntu 10.04 on this machine.

The following command sequence was used for LTIB building:

  1. 1. sudo apt-get install autoconf automake libtool gettext x-dev xorg-dev patch g++ rpm zlib1g-dev m4 bison libncurses5-dev libglib2.0-dev gettext build-essential tcl intltool libxml2-dev liborbit2-dev libx11-dev ccache flex uuid-dev liblzo2-dev
  2. 2. mount .iso file and install LTIB.
  3. 3. issue command "./ltib" in the ltib-p1020rdb_p2020rdb-20101029 folder.

The following message was aapeared:

To configure this, as root using the command "/usr/sbin/visudo",

and add the following line in the User privilege section:

pavel ALL = NOPASSWD: /usr/bin/rpm, /opt/freescale/ltib/usr/bin/rpm

  1. 4. Add recommended line and issue "./ltib" command again.

Attached file screenshot.


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

355 Views
xuchen
Contributor II

Hello dear Pavel,  my question is:

I can install ltib success, when first run ./ltib, the default platform type is P1020 RDB board, I can build success with the platform of P1020 RDB board, but I want to choose the platform type of P2020RDB, the problem  appeared.

pastedImage_0.png

0 Kudos

355 Views
Pavel
NXP TechSupport
NXP TechSupport

We recommend using Ubuntu 10.04 for LTIB building.

Ubuntu 12.04 also can be used for LTIB building.

Use the following command before LTIb installing under Ubuntu 10.04:

sudo apt-get install autoconf automake libtool gettext x-dev xorg-dev patch g++ rpm zlib1g-dev m4 bison libncurses5-dev libglib2.0-dev gettext build-essential tcl intltool libxml2-dev liborbit2-dev libx11-dev ccache flex uuid-dev liblzo2-dev

Do you use Ubuntu 10.04 for LTIB building?


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

355 Views
xuchen
Contributor II

I tried to build ltib in ubuntu10.04, I choose the board P2020RDB,but appeared the same question:

pastedImage_0.png

0 Kudos

355 Views
xuchen
Contributor II

When i install x-dev, an error occured:

the others installed ok. Does it mater

danfengch@163.com

0 Kudos

355 Views
xuchen
Contributor II

I use Ubuntu 14.04 for LTIB building.

danfengch@163.com

0 Kudos