Public bug reported:

Binary package hint: gdb

How to reproduce the problem:
Follow the instructions here: https://wiki.linaro.org/UsingXdeb
grep compiles fine

add also maverick updates for gdb to overcome https://bugs.launchpad.net
/binutils-linaro/+bug/598389

/etc/apt/sources.list should look like this:

deb [arch=armel] http://ports.ubuntu.com/ maverick main universe
deb-src http://archive.ubuntu.com/ubuntu maverick main universe
deb http://archive.ubuntu.com/ubuntu maverick main universe
deb-src http://archive.ubuntu.com/ubuntu maverick-updates main universe
deb http://archive.ubuntu.com/ubuntu maverick-updates main universe
deb [arch=armel] http://ports.ubuntu.com/ maverick-updates main universe

sudo apt-get update
sudo apt-get upgrade


xdeb -a armel --apt-source linaro-gdb

....

checking build system type... arm-unknown-linux-gnueabi
checking host system type... arm-unknown-linux-gnueabi
checking target system type... arm-unknown-linux-gnueabi
checking for a BSD-compatible install... /usr/bin/install -p
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... no
checking for mawk... mawk
checking for arm-linux-gnueabi-gcc... arm-linux-gnueabi-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: in 
`/home/build/gdb/build/objdir':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make: *** [debian/stamp-autotools] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1337:
dpkg-buildpackage -rfakeroot -d -us -uc -aarmel -b -tc failed
Traceback (most recent call last):
  File "/usr/bin/xdeb", line 851, in <module>
    main()
  File "/usr/bin/xdeb", line 843, in main
    build(options, src, all_srcs[src])
  File "/usr/bin/xdeb", line 597, in build
    spawn(buildpackage, cwd=srcdir)
  File "/usr/lib/xdeb/utils.py", line 29, in spawn
    raise SubprocessException, ret
utils.SubprocessException: 29

Not made for cross compilation?

** Affects: gdb (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/693478

Title:
  xdeb -a armel --apt-source gdb: configure: error: cannot run C compiled 
programs.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to