2010-02-08 04:23:51     New Jtag seems broken under os-x

Document created by Aaronwu Employee on Oct 16, 2013
Version 1Show Document
  • View in full screen mode

2010-02-08 04:23:51     New Jtag seems broken under os-x

Mark Noonchester (NEW ZEALAND)

Message: 85759   

 

*** Cleaning urjtag                                Mon  8 Feb 2010 22:09:25 NZDT

*** Configuring urjtag                             Mon  8 Feb 2010 22:09:26 NZDT

*** Building urjtag                                Mon  8 Feb 2010 22:09:42 NZDT

Please report an error to http://blackfin.uclinux.org/gf/project/toolchain

Build error Mon  8 Feb 2010 22:10:13 NZDT

  occurred 2h25m48s into script

tar: Removing leading `/' from member names

When reporting issue, we may ask for /Volumes/beluga-b/blackfin_sources/build_test/logs/config.logs.tbz2

Last logfile entries:

make[2]: Nothing to be done for `all'.

Making all in src/apps/jtag

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/Volumes/beluga-b/blackfin_sources/toolchain_test/urjtag/src/apps/jtag -I../../.. -I../../../include/urjtag -DLOCALEDIR=\"//share/locale\"  -I/Volumes/beluga-b/blackfin_sources/toolchain_test/urjtag -I/Volumes/beluga-b/blackfin_sources/toolchain_test/urjtag/include  -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -g -O2 -MT jtag.o -MD -MP -MF .deps/jtag.Tpo -c -o jtag.o /Volumes/beluga-b/blackfin_sources/toolchain_test/urjtag/src/apps/jtag/jtag.c

/Volumes/beluga-b/blackfin_sources/toolchain_test/urjtag/src/apps/jtag/jtag.c: In function ‘main’:

/Volumes/beluga-b/blackfin_sources/toolchain_test/urjtag/src/apps/jtag/jtag.c:564: error: ‘rl_filename_quote_characters’ undeclared (first use in this function)

/Volumes/beluga-b/blackfin_sources/toolchain_test/urjtag/src/apps/jtag/jtag.c:564: error: (Each undeclared identifier is reported only once

/Volumes/beluga-b/blackfin_sources/toolchain_test/urjtag/src/apps/jtag/jtag.c:564: error: for each function it appears in.)

make[2]: *** [jtag.o] Error 1

make[1]: *** [all-recursive] Error 1

make: *** [all] Error 2

 

log.20100208.zip

QuoteReplyEditDelete

 

 

2010-02-08 04:38:28     Re: New Jtag seems broken under os-x

Mike Frysinger (UNITED STATES)

Message: 85760   

 

rl_filename_quote_characters is declared in readline.h which your configure script shows as existing in your system

QuoteReplyEditDelete

 

 

2010-02-10 20:23:10     Re: New Jtag seems broken under os-x

Mark Noonchester (NEW ZEALAND)

Message: 85936   

 

*** U-Boot: building helper tools (2009.11.1)               11 Feb 2010 13:25:29

*** U-Boot: cleaning                                        11 Feb 2010 13:25:29

*** U-Boot: building                                        11 Feb 2010 13:25:29

*** U-Boot: installing tools                                11 Feb 2010 13:25:34

*** U-Boot: cleaning                                        11 Feb 2010 13:25:34

*** ldr-utils: cleaning (svn-3778)                          11 Feb 2010 13:25:34

*** ldr-utils: configuring                                  11 Feb 2010 13:25:34

*** ldr-utils: building                                     11 Feb 2010 13:26:16

*** ldr-utils: installing                                   11 Feb 2010 13:26:22

*** libusb: cleaning (1.0.6)                                11 Feb 2010 13:26:25

*** libusb: configuring                                     11 Feb 2010 13:26:25

*** libusb: building                                        11 Feb 2010 13:26:37

*** libusb: installing                                      11 Feb 2010 13:26:40

*** libftdi-1.0: cleaning (0.17)                            11 Feb 2010 13:26:41

*** libftdi-1.0: configuring                                11 Feb 2010 13:26:42

*** libftdi-1.0: building                                   11 Feb 2010 13:27:03

*** libftdi-1.0: installing                                 11 Feb 2010 13:27:04

*** urjtag: cleaning (0.10)                                 11 Feb 2010 13:27:04

*** urjtag: configuring                                     11 Feb 2010 13:27:05

*** urjtag: building                                        11 Feb 2010 13:27:21

Please report an error to http://blackfin.uclinux.org/gf/project/toolchain

Build error Thu 11 Feb 2010 13:27:54 NZDT

  occurred 2h24m38s into script

tar: Removing leading `/' from member names

When reporting issue, we may ask for /Volumes/beluga-b/blackfin_sources/build_test/logs/config.logs.tbz2

Last logfile entries:

make[2]: Nothing to be done for `all'.

Making all in src/apps/jtag

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/Volumes/beluga-b/blackfin_sources/toolchain_test/urjtag/src/apps/jtag -I../../.. -I../../../include/urjtag -DLOCALEDIR=\"//share/locale\"  -I/Volumes/beluga-b/blackfin_sources/toolchain_test/urjtag -I/Volumes/beluga-b/blackfin_sources/toolchain_test/urjtag/include  -I/Volumes/beluga-b/blackfin_sources/build_test/bfin-elf/include/libusb-1.0   -I/Volumes/beluga-b/blackfin_sources/build_test/bfin-elf/include -I/Volumes/beluga-b/blackfin_sources/build_test/bfin-elf/include/libusb-1.0 -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -g -O2 -MT jtag.o -MD -MP -MF .deps/jtag.Tpo -c -o jtag.o /Volumes/beluga-b/blackfin_sources/toolchain_test/urjtag/src/apps/jtag/jtag.c

/Volumes/beluga-b/blackfin_sources/toolchain_test/urjtag/src/apps/jtag/jtag.c: In function ‘main’:

/Volumes/beluga-b/blackfin_sources/toolchain_test/urjtag/src/apps/jtag/jtag.c:564: error: ‘rl_filename_quote_characters’ undeclared (first use in this function)

/Volumes/beluga-b/blackfin_sources/toolchain_test/urjtag/src/apps/jtag/jtag.c:564: error: (Each undeclared identifier is reported only once

/Volumes/beluga-b/blackfin_sources/toolchain_test/urjtag/src/apps/jtag/jtag.c:564: error: for each function it appears in.)

make[2]: *** [jtag.o] Error 1

make[1]: *** [all-recursive] Error 1

make: *** [all] Error 2

 

config.logs.tbz2

log.20100211.zip

QuoteReplyEditDelete

 

 

2010-02-10 23:45:34     Re: New Jtag seems broken under os-x

Mike Frysinger (UNITED STATES)

Message: 85937   

 

nothing has changed.  check your headers and/or that specific file compilation to find out why your system isnt providing rl_filename_quote_characters.

QuoteReplyEditDelete

 

 

2010-02-12 18:55:46     Re: New Jtag seems broken under os-x

Mark Noonchester (NEW ZEALAND)

Message: 86041   

 

The only diffrence I can find is that the code ask for libusb-1.0 so I installed it sence the it seems to be broken.

 

It appears that your code also has libusb do I need a copy installed on my system or does the toolchain have all the required files?

QuoteReplyEditDelete

 

 

2010-02-12 19:14:32     Re: New Jtag seems broken under os-x

Mike Frysinger (UNITED STATES)

Message: 86043   

 

the error in question should not be related to libusb in any way

 

the latest svn trunk includes libusb-1.0 and the buildtoolchain script should automatically use it, so for now, the libftdi/libusb installed on the host system doesnt matter

QuoteReplyEditDelete

 

 

2010-02-13 00:00:00     Re: New Jtag seems broken under os-x

Mark Noonchester (NEW ZEALAND)

Message: 86046   

 

The older version was not building the JTag stuff.  And it still bulds fine.

 

The new version with LIBUSB and the JTAG building doesn't seem to be working.

 

This may be a OS-X 10.6 issue?

QuoteReplyEditDelete

 

 

2010-02-13 02:20:33     Re: New Jtag seems broken under os-x

Mike Frysinger (UNITED STATES)

Message: 86047   

 

the older version only built jtag if the host had libusb installed.  while that has changed, it doesnt mean that the older version of jtag would build fine.  again, readline errors have nothing to do with libusb.

 

so again, find out why that readline symbol is not defined in your headers and figure out what version of readline you actually have installed.

QuoteReplyEditDelete

 

 

2010-02-13 17:01:12     Re: New Jtag seems broken under os-x

Mark Noonchester (NEW ZEALAND)

Message: 86062   

 

I have readline 4.3 installed using fink everything seems with readline.

QuoteReplyEditDelete

 

 

2010-02-13 18:08:51     Re: New Jtag seems broken under os-x

Mike Frysinger (UNITED STATES)

Message: 86064   

 

rl_filename_quote_characters is in readline-4.3, so that version should work fine

 

go into the jtag build dir and run `make`.  if it still fails, take the exact compile command used and run it manually.  replace the '-c' with '-dD -E'.  then post the resulting output file as an attachment with a .i extension.

QuoteReplyEditDelete

 

 

2010-02-14 19:52:22     Re: New Jtag seems broken under os-x

Mark Noonchester (NEW ZEALAND)

Message: 86084   

 

That built with no errors.

QuoteReplyEditDelete

 

 

2010-02-15 21:31:11     Re: New Jtag seems broken under os-x

Mark Noonchester (NEW ZEALAND)

Message: 86129   

 

Build of the last command with the -dD -E

 

nooney:/Volumes/beluga-b/blackfin_sources/build_test/jtag$ gcc -DHAVE_CONFIG_H -I. -I/Volumes/beluga-b/blackfin_sources/toolchain_test/jtag/src -I.. -DLOCALEDIR=\"//share/locale\"  -I/Volumes/beluga-b/blackfin_sources/toolchain_test/jtag -I/Volumes/beluga-b/blackfin_sources/toolchain_test/jtag/include  -g -O2 -Wall -MT bsdl2jtag.o -MD -MP -MF .deps/bsdl2jtag.Tpo -dD -E -o bsdl2jtag.o /Volumes/beluga-b/blackfin_sources/toolchain_test/jtag/src/bsdl2jtag.c

<built-in>:0: fatal error: opening dependency file .deps/bsdl2jtag.Tpo: No such file or directory

compilation terminated.

 

 

 

 

 

last few lines of the make command

 

gcc -DHAVE_CONFIG_H -I. -I/Volumes/beluga-b/blackfin_sources/toolchain_test/jtag/src/bsdl -I../..   -I/Volumes/beluga-b/blackfin_sources/toolchain_test/jtag -I/Volumes/beluga-b/blackfin_sources/toolchain_test/jtag/include  -g -O2 -Wall -MT bsdl_sem.o -MD -MP -MF .deps/bsdl_sem.Tpo -c -o bsdl_sem.o /Volumes/beluga-b/blackfin_sources/toolchain_test/jtag/src/bsdl/bsdl_sem.c

/Volumes/beluga-b/blackfin_sources/toolchain_test/jtag/src/bsdl/bsdl_sem.c: In function ‘create_register’:

/Volumes/beluga-b/blackfin_sources/toolchain_test/jtag/src/bsdl/bsdl_sem.c:426: warning: format ‘%i’ expects type ‘int’, but argument 6 has type ‘size_t’

mv -f .deps/bsdl_sem.Tpo .deps/bsdl_sem.Po

rm -f libbsdl.a

ar cru libbsdl.a bsdl_bison.o bsdl_flex.o bsdl.o bsdl_sem.o

ranlib libbsdl.a

gcc -DHAVE_CONFIG_H -I. -I/Volumes/beluga-b/blackfin_sources/toolchain_test/jtag/src -I.. -DLOCALEDIR=\"//share/locale\"  -I/Volumes/beluga-b/blackfin_sources/toolchain_test/jtag -I/Volumes/beluga-b/blackfin_sources/toolchain_test/jtag/include  -g -O2 -Wall -MT jtag.o -MD -MP -MF .deps/jtag.Tpo -c -o jtag.o /Volumes/beluga-b/blackfin_sources/toolchain_test/jtag/src/jtag.c

mv -f .deps/jtag.Tpo .deps/jtag.Po

gcc  -g -O2 -Wall   -o jtag jtag.o -Lcmd -lcmd -Ltap -ltap -Lpart -lpart -Lflash -lflash -Ltap -ltap -Lflash -lflash -Lbus -lbus -Lbfin -lbfin -lm -Llib -ljtaglib   -Lsvf -lsvf -Lbsdl -lbsdl  -lreadline

gcc -DHAVE_CONFIG_H -I. -I/Volumes/beluga-b/blackfin_sources/toolchain_test/jtag/src -I.. -DLOCALEDIR=\"//share/locale\"  -I/Volumes/beluga-b/blackfin_sources/toolchain_test/jtag -I/Volumes/beluga-b/blackfin_sources/toolchain_test/jtag/include  -g -O2 -Wall -MT bsdl2jtag.o -MD -MP -MF .deps/bsdl2jtag.Tpo -c -o bsdl2jtag.o /Volumes/beluga-b/blackfin_sources/toolchain_test/jtag/src/bsdl2jtag.c

mv -f .deps/bsdl2jtag.Tpo .deps/bsdl2jtag.Po

gcc  -g -O2 -Wall   -o bsdl2jtag bsdl2jtag.o  -lreadline

Making all in po

make[2]: Nothing to be done for `all'.

make[2]: Nothing to be done for `all-am'.

QuoteReplyEditDelete

 

 

2010-02-21 21:15:14     Re: New Jtag seems broken under os-x

Mark Noonchester (NEW ZEALAND)

Message: 86285   

 

This may be the problem?

 

 

 

config.status:1112: creating po/Makefile.in

config.status:1220: WARNING:  '/Volumes/beluga-b/blackfin_sources/toolchain_test/jtag/po/Makefile.in.in' seems to ignore the --datarootdir setting

config.status:1112: creating config.h

 

config.log

config.h

QuoteReplyEditDelete

 

 

2010-02-22 15:20:37     Re: New Jtag seems broken under os-x

Mike Frysinger (UNITED STATES)

Message: 86342   

 

no ... the po/ warning is pretty common across a ton of projects and is harmless most of the time.  it certainly shows up on every Linux distro as well.

QuoteReplyEditDelete

 

 

2010-02-24 04:30:28     Re: New Jtag seems broken under os-x

Kolja Waschk (GERMANY)

Message: 86445   

 

I remember somehow that there are incompatibilities in readline on OS X vs. other systems. Maybe there's a second readline.h in the way somewhere?

QuoteReplyEditDelete

 

 

2010-02-25 01:16:04     Re: New Jtag seems broken under os-x

Mark Noonchester (NEW ZEALAND)

Message: 86493   

 

Good call there it appears that the readline in mac os-x is interfearing with the toolchain.

QuoteReplyEditDelete

 

 

2011-07-18 12:46:33     Re: New Jtag seems broken under os-x

Peter Budny (UNITED STATES)

Message: 102471   

 

How did you end up fixing this? I can see that the header file in /usr/include/readline is no good for compiling the toolchain, but what did you have to do to make it work?

 

I don't see any options for controlling where the build script searches for libraries or header files.

QuoteReplyEditDelete

 

 

2011-07-19 08:06:35     Re: New Jtag seems broken under os-x

Mark Noonchester (NEW ZEALAND)

Message: 102531   

 

I ended up comenting out the JTAG portion of the code.

 

I have been using a linux boot under parellels to preform JTAG debug.

QuoteReplyEditDelete

 

 

2011-07-19 09:34:25     Re: New Jtag seems broken under os-x

Peter Budny (UNITED STATES)

Message: 102535   

 

Well, that's not the answer I was hoping for... I guess I'll just muck around with the build script and see if I can edit it to pass an option to the configure script telling it where to look for readline.

QuoteReplyEditDelete

 

 

2011-07-19 09:42:20     Re: New Jtag seems broken under os-x

Stuart Henderson (UNITED KINGDOM)

Message: 102536   

 

Adding "--without-readline" to the call to build_autotooled_pkg in build_urjtag (in BuildToolChain) might be the easiest way forward for you.

Outcomes