AnsweredAssumed Answered

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

Question asked by xu chen on Jun 20, 2016
Latest reply on Jun 23, 2016 by Pavel Chubakov


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 :

 

as

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

Outcomes