On Fri, May 11, 2012 at 8:08 AM, Xiaofan Chen <[email protected]> wrote:
> On Thu, May 10, 2012 at 11:02 PM, Andreas Fritiofson
> <[email protected]> wrote:
>> On Thu, May 10, 2012 at 4:52 PM, Xiaofan Chen <[email protected]> wrote:
>>> Still I could not get it to work under Mac OS X. First
>>> run will segfaul and subsequent run will hang.
>>
>> The debug log doesn't provide much info. It just suddenly dies, doing
>> the same thing it's done several times before. Can you produce a
>> backtrace?
>>
>> Unfortunately, if it's MacOS specific, I won't be able to debug it myself.
>
> Interestingly I rebuild the binary with the debug CFLAGS and
> now it seems to work. I will need to try out more to see if the
> normal version works or not.
>
> mymacmini:build_mpsse xiaofanc$ cat myconfig_git.sh
> CFLAGS="-g" LDFLAGS="-L/usr/local/lib -lusb-1.0" ../configure
> --enable-maintainer-mode --prefix=/Users/xiaofanc/bin --enable-jlink
> --enable-ftdi --enable-ft2232_libftdi --enable-stlink --disable-werror
>
Wow, this is really strange. I redo everything (blow up the installed
~/bin directories and the build directory) and the non-debug version
still segfault.
mymacmini:build_mpsse xiaofanc$ cat myconfig_git.sh
LDFLAGS="-L/usr/local/lib -lusb-1.0" ../configure
--enable-maintainer-mode --prefix=/Users/xiaofanc/bin --enable-jlink
--enable-ftdi --enable-ft2232_libftdi --enable-stlink --disable-werror
mymacmini:lm3s1968 xiaofanc$ ~/bin/bin/openocd -f
~/bin/share/openocd/scripts/board/ek-lm3s1968_mpsse.cfg
Open On-Chip Debugger 0.6.0-dev-snapshot (2012-05-11-08:11)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
500 kHz
none separate
Info : clock speed 500 kHz
Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
Segmentation fault: 11
Could it be related to C compiler?
mymacmini:build_mpsse xiaofanc$ gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with:
/private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/src/configure
--disable-checking --enable-werror
--prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2
--mandir=/share/man --enable-languages=c,objc,c++,obj-c++
--program-prefix=llvm-
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
--with-slibdir=/usr/lib --build=i686-apple-darwin11
--enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/dst-llvmCore/Developer/usr/local
--program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11
--target=i686-apple-darwin11
--with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
mymacmini:build_mpsse xiaofanc$ pkg-config --modversion libusb-1.0
1.0.9
mymacmini:build_mpsse xiaofanc$ pkg-config --modversion libusb
0.1.12
--
Xiaofan
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel