mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Buildiung BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2
@ 2013-11-19  9:54 Torben Hamel
  2013-11-19 13:15 ` Michael Olbrich
  0 siblings, 1 reply; 5+ messages in thread
From: Torben Hamel @ 2013-11-19  9:54 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 2635 bytes --]

Hi,

while compiling the BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2 i get the
following error:

---------------------
target: xterm.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/xterm-284'
/bin/sh ./plink.sh arm-cortexa9-linux-gnueabihf-gcc -g -O2   -o xterm
button.o cachedGCs.o charproc.o charsets.o cursor.o data.o doublechr.o
fontutils.o input.o linedata.o main.o menu.o misc.o print.o ptydata.o
scrollback.o screen.o scrollbar.o tabs.o util.o xstrings.o xtermcap.o
VTPrsTbl.o TekPrsTbl.o Tekproc.o -lutil
-L/home/user/Schreibtisch/i.MX6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/sysroot-target/usr/lib
-lXmu -lXt -lX11
-L/home/user/Schreibtisch/i.MX6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/sysroot-target/usr/lib
-lXaw7 -lXt -lX11  -lXpm
-L/home/user/Schreibtisch/i.MX6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/sysroot-target/usr/lib
-lXt -lX11  -lncurses
testing if -lutil is needed
...yes
testing if -lXmu is needed
...yes
testing if -lXt is needed
...yes
testing if -lX11 is needed
...yes
testing if -lXaw7 is needed
...yes
testing if -lXt is needed
...yes
testing if -lX11 is needed
...yes
testing if -lXpm is needed
...yes
testing if -lXt is needed
...yes
testing if -lX11 is needed
...yes
testing if -lncurses is needed
...yes
/opt/OSELAS.Toolchain-2012.12.1/arm-cortexa9-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-cortexa9-linux-gnueabihf/4.7.3/../../../../arm-cortexa9-linux-gnueabihf/bin/ld:
misc.o: undefined reference to symbol 'IceRemoveConnectionWatch'
/opt/OSELAS.Toolchain-2012.12.1/arm-cortexa9-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-cortexa9-linux-gnueabihf/4.7.3/../../../../arm-cortexa9-linux-gnueabihf/bin/ld:
note: 'IceRemoveConnectionWatch' is defined in DSO
/home/user/Schreibtisch/i.MX6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/sysroot-target/usr/lib/libICE.so.6
so try adding it to the linker command line
/home/user/Schreibtisch/i.MX6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/sysroot-target/usr/lib/libICE.so.6:
could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[1]: *** [xterm] 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/xterm-284'
make: ***
[/home/user/Schreibtisch/i.MX6/BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2/platform-phyFLEX-i.MX6/state/xterm.compile]
Error 2

[-- Attachment #1.2: Type: text/html, Size: 2832 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] Buildiung BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2
  2013-11-19  9:54 [ptxdist] Buildiung BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2 Torben Hamel
@ 2013-11-19 13:15 ` Michael Olbrich
  2013-11-19 13:51   ` Torben Hamel
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Olbrich @ 2013-11-19 13:15 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] Buildiung BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2
  2013-11-19 13:15 ` Michael Olbrich
@ 2013-11-19 13:51   ` Torben Hamel
  2013-11-19 16:32     ` Michael Olbrich
  2013-11-20 15:54     ` Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: Torben Hamel @ 2013-11-19 13:51 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 4169 bytes --]

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 <m.olbrich@pengutronix.de>

> 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
>

[-- Attachment #1.2: Type: text/html, Size: 5255 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] Buildiung BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2
  2013-11-19 13:51   ` Torben Hamel
@ 2013-11-19 16:32     ` Michael Olbrich
  2013-11-20 15:54     ` Thomas Petazzoni
  1 sibling, 0 replies; 5+ messages in thread
From: Michael Olbrich @ 2013-11-19 16:32 UTC (permalink / raw)
  To: ptxdist

On Tue, Nov 19, 2013 at 02:51:43PM +0100, Torben Hamel wrote:
> Worked very well. But the next error occurs
> -----------------------
> target: kobs-ng.compile
> -----------------------
[...]

kobs-ng is not part of upstream PTXdist. It is probably from your BSP. You'll
need to ask whoever provided your BSP about that.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] Buildiung BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2
  2013-11-19 13:51   ` Torben Hamel
  2013-11-19 16:32     ` Michael Olbrich
@ 2013-11-20 15:54     ` Thomas Petazzoni
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2013-11-20 15:54 UTC (permalink / raw)
  To: ptxdist; +Cc: torben.hamel

Dear Torben Hamel,

On Tue, 19 Nov 2013 14:51:43 +0100, Torben Hamel wrote:

> 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

There is a patch fixing this at
http://git.buildroot.net/buildroot/plain/package/kobs-ng/kobs-ng-0001-fix-mtd-defines.patch.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-11-20 15:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-19  9:54 [ptxdist] Buildiung BSP-Phytec-phyFLEX-i.MX6-PD13.2.2_EA2 Torben Hamel
2013-11-19 13:15 ` Michael Olbrich
2013-11-19 13:51   ` Torben Hamel
2013-11-19 16:32     ` Michael Olbrich
2013-11-20 15:54     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox