From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from eu1sys200aog106.obsmtp.com ([207.126.144.121]) by metis.ext.pengutronix.de with smtp (Exim 4.72) (envelope-from ) id 1ViliT-0005Pa-TJ for ptxdist@pengutronix.de; Tue, 19 Nov 2013 14:51:47 +0100 Received: by mail-la0-f43.google.com with SMTP id n7so6216739lam.30 for ; Tue, 19 Nov 2013 05:51:43 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20131119131516.GG31417@pengutronix.de> References: <20131119131516.GG31417@pengutronix.de> Date: Tue, 19 Nov 2013 14:51:43 +0100 Message-ID: From: Torben Hamel Subject: Re: [ptxdist] Buildiung BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2 Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0440996998==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============0440996998== Content-Type: multipart/alternative; boundary=001a11c23f1cfda4c904eb87f6a2 --001a11c23f1cfda4c904eb87f6a2 Content-Type: text/plain; charset=ISO-8859-1 Worked very well. But the next error occurs ----------------------- target: kobs-ng.compile ----------------------- make[1]: Entering directory `/home/user/Schreibtisch/i.MX6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/build-target/kobs-ng-3.0.35-4.0.0' Making all in include make[2]: Entering directory `/home/user/Schreibtisch/i.MX6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/build-target/kobs-ng-3.0.35-4.0.0/include' echo "const char *git_sha = \""`git rev-parse HEAD`"\";" > ../include/autoversion.h make all-am make[3]: Entering directory `/home/user/Schreibtisch/i.MX6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/build-target/kobs-ng-3.0.35-4.0.0/include' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/home/user/Schreibtisch/i.MX6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/build-target/kobs-ng-3.0.35-4.0.0/include' make[2]: Leaving directory `/home/user/Schreibtisch/i.MX6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/build-target/kobs-ng-3.0.35-4.0.0/include' Making all in src make[2]: Entering directory `/home/user/Schreibtisch/i.MX6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/build-target/kobs-ng-3.0.35-4.0.0/src' arm-cortexa9-linux-gnueabihf-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c main.c: In function 'extract_main': main.c:171:9: warning: variable 'j' set but not used [-Wunused-but-set-variable] main.c: In function 'update_main': main.c:446:9: warning: variable 'j' set but not used [-Wunused-but-set-variable] main.c: In function 'init_main': main.c:591:13: warning: variable 'image' set but not used [-Wunused-but-set-variable] main.c:589:9: warning: variable 'j' set but not used [-Wunused-but-set-variable] main.c: In function 'imgverify_main': main.c:756:9: warning: variable 'j' set but not used [-Wunused-but-set-variable] mv -f .deps/main.Tpo .deps/main.Po arm-cortexa9-linux-gnueabihf-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -MT mtd.o -MD -MP -MF .deps/mtd.Tpo -c -o mtd.o mtd.c mtd.c: In function 'mtd_read_page': mtd.c:253:8: warning: variable 'oobdata' set but not used [-Wunused-but-set-variable] mtd.c: In function 'mtd_write_page': mtd.c:331:14: warning: variable 'oobdata' set but not used [-Wunused-but-set-variable] mtd.c: In function 'mtd_open': mtd.c:696:42: error: 'MTD_MODE_NORMAL' undeclared (first use in this function) mtd.c:696:42: note: each undeclared identifier is reported only once for each function it appears in mtd.c: In function 'mtd_close': mtd.c:855:24: error: 'MEMSETOOBSEL' undeclared (first use in this function) mtd.c: In function 'mtd_set_ecc_mode': mtd.c:893:43: error: 'MTD_MODE_NORMAL' undeclared (first use in this function) mtd.c:900:23: error: 'MEMSETOOBSEL' undeclared (first use in this function) mtd.c:908:43: error: 'MTD_MODE_RAW' undeclared (first use in this function) make[2]: *** [mtd.o] Error 1 make[2]: Leaving directory `/home/user/Schreibtisch/i.MX6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/build-target/kobs-ng-3.0.35-4.0.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/user/Schreibtisch/i.MX6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/build-target/kobs-ng-3.0.35-4.0.0' make: *** [/home/user/Schreibtisch/i.MX6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/state/kobs-ng.compile] Error 2 2013/11/19 Michael Olbrich > On Tue, Nov 19, 2013 at 10:54:18AM +0100, Torben Hamel wrote: > > while compiling the BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2 i get the > > following error: > [...] > > Add "-Wl,--copy-dt-needed-entries" to TARGET_EXTRA_LDFLAGS. > > Michael > > -- > Pengutronix e.K. | | > Industrial Linux Solutions | http://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | > > -- > ptxdist mailing list > ptxdist@pengutronix.de > --001a11c23f1cfda4c904eb87f6a2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Worked very well. But the next error occurs
-----------= ------------
target: kobs-ng.compile
-----------------------

m= ake[1]: Entering directory `/home/user/Schreibtisch/i.MX6/BSP-Phytec-phyFLE= X-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/build-target/kobs-ng-3.0.35-4.0= .0'
Making all in include
make[2]: Entering directory `/home/user/Schreibtis= ch/i.MX6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/build= -target/kobs-ng-3.0.35-4.0.0/include'
echo "const char *git_sha= =3D \""`git rev-parse HEAD`"\";" > ../include/= autoversion.h
make=A0 all-am
make[3]: Entering directory `/home/user/Schreibtisch/i.MX= 6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/build-target= /kobs-ng-3.0.35-4.0.0/include'
make[3]: Nothing to be done for `all-= am'.
make[3]: Leaving directory `/home/user/Schreibtisch/i.MX6/BSP-Phytec-phyFLE= X-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/build-target/kobs-ng-3.0.35-4.0= .0/include'
make[2]: Leaving directory `/home/user/Schreibtisch/i.MX= 6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/build-target= /kobs-ng-3.0.35-4.0.0/include'
Making all in src
make[2]: Entering directory `/home/user/Schreibtisch/i= .MX6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/build-tar= get/kobs-ng-3.0.35-4.0.0/src'
arm-cortexa9-linux-gnueabihf-gcc -DHAV= E_CONFIG_H -I. -I../include -I../include=A0=A0=A0 -g -O2 -Wall=A0=A0 -MT ma= in.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
main.c: In function 'extract_main':
main.c:171:9: warning: varia= ble 'j' set but not used [-Wunused-but-set-variable]
main.c: In = function 'update_main':
main.c:446:9: warning: variable 'j&#= 39; set but not used [-Wunused-but-set-variable]
main.c: In function 'init_main':
main.c:591:13: warning: variabl= e 'image' set but not used [-Wunused-but-set-variable]
main.c:58= 9:9: warning: variable 'j' set but not used [-Wunused-but-set-varia= ble]
main.c: In function 'imgverify_main':
main.c:756:9: warning: var= iable 'j' set but not used [-Wunused-but-set-variable]
mv -f .de= ps/main.Tpo .deps/main.Po
arm-cortexa9-linux-gnueabihf-gcc -DHAVE_CONFIG= _H -I. -I../include -I../include=A0=A0=A0 -g -O2 -Wall=A0=A0 -MT mtd.o -MD = -MP -MF .deps/mtd.Tpo -c -o mtd.o mtd.c
mtd.c: In function 'mtd_read_page':
mtd.c:253:8: warning: variab= le 'oobdata' set but not used [-Wunused-but-set-variable]
mtd.c:= In function 'mtd_write_page':
mtd.c:331:14: warning: variable &= #39;oobdata' set but not used [-Wunused-but-set-variable]
mtd.c: In function 'mtd_open':
mtd.c:696:42: error: 'MTD_MOD= E_NORMAL' undeclared (first use in this function)
mtd.c:696:42: note= : each undeclared identifier is reported only once for each function it app= ears in
mtd.c: In function 'mtd_close':
mtd.c:855:24: error: 'MEMSET= OOBSEL' undeclared (first use in this function)
mtd.c: In function &= #39;mtd_set_ecc_mode':
mtd.c:893:43: error: 'MTD_MODE_NORMAL'= ; undeclared (first use in this function)
mtd.c:900:23: error: 'MEMSETOOBSEL' undeclared (first use in this f= unction)
mtd.c:908:43: error: 'MTD_MODE_RAW' undeclared (first u= se in this function)
make[2]: *** [mtd.o] Error 1
make[2]: Leaving di= rectory `/home/user/Schreibtisch/i.MX6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA= 2/platform-phyFLEX-i.MX6/build-target/kobs-ng-3.0.35-4.0.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/u= ser/Schreibtisch/i.MX6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFL= EX-i.MX6/build-target/kobs-ng-3.0.35-4.0.0'
make: *** [/home/user/Sc= hreibtisch/i.MX6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.M= X6/state/kobs-ng.compile] Error 2


2013/11= /19 Michael Olbrich <m.olbrich@pengutronix.de>
On Tue, Nov 19, 2013 at 10:54:18AM +0100, Torben Hamel wr= ote:
> while compiling the BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2 i get the > following error:
[...]

Add "-Wl,--copy-dt-needed-entries" to TARGET_EXTRA_LDFLAGS.

Michael

--
Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 |
Industrial Linux Solutions =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | http://www.pengutronix.de/ = =A0|
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 =A0 =A0|
Amtsgericht Hildesheim, HRA 2686 =A0 =A0 =A0 =A0 =A0 | Fax: =A0 +49-5121-206917-555= 5 |

--
ptxdist mailing list
ptxdist@pengutronix.de

--001a11c23f1cfda4c904eb87f6a2-- --===============0440996998== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0440996998==--