Modify

Opened 7 years ago

Last modified 4 years ago

#104 accepted defect

ARM cross compilers can't be found

Reported by: sniperpr@… Owned by: amain
Priority: major Milestone: milestone:unscheduled
Component: buildsystem Version: 2.0
Severity: severity 4 Keywords:
Cc:

Description

display:

: GPG error: http://www.emdebian.org stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B5B7720097BB3B58
sudo chroot /home/soltek/openwrt/88f6281/debwrt/build/debian-kirkwood-Default-squeeze apt-get -y install apt-cross
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt-cross is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo chroot /home/soltek/openwrt/88f6281/debwrt/build/debian-kirkwood-Default-squeeze apt-get -y install libmpfr1ldbl
Reading package lists... Done
Building dependency tree
Reading state information... Done
libmpfr1ldbl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo chroot /home/soltek/openwrt/88f6281/debwrt/build/debian-kirkwood-Default-squeeze bash -c "export LC_ALL=C; apt-get -y --force-yes install build-essential debootstrap fakeroot zlib1g-dev dh-make openssh-client dpkg-cross vim pkg-config dpatch libncurses5-dev devscripts subversion automake gcc-multilib g++-multilib"
Reading package lists... Done
Building dependency tree
Reading state information... Done
automake is already the newest version.
build-essential is already the newest version.
debootstrap is already the newest version.
devscripts is already the newest version.
dh-make is already the newest version.
dpatch is already the newest version.
dpkg-cross is already the newest version.
fakeroot is already the newest version.
g++-multilib is already the newest version.
gcc-multilib is already the newest version.
libncurses5-dev is already the newest version.
openssh-client is already the newest version.
pkg-config is already the newest version.
subversion is already the newest version.
vim is already the newest version.
zlib1g-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo chroot /home/soltek/openwrt/88f6281/debwrt/build/debian-kirkwood-Default-squeeze bash -c "export LC_ALL=C; apt-get -y --force-yes install libc6-arm-cross libc6-dev-arm-cross binutils-arm-linux-gnu gcc-4.3-arm-linux-gnu g++-4.3-arm-linux-gnu linux-kernel-headers-arm-cross"
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'gcc-4.3-arm-linux-gnueabi-base' for regex 'gcc-4.3-arm-linux-gnu'
Note, selecting 'gcc-4.3-arm-linux-gnueabi' for regex 'gcc-4.3-arm-linux-gnu'
E: Unable to locate package libc6-arm-cross
E: Unable to locate package libc6-dev-arm-cross
E: Unable to locate package binutils-arm-linux-gnu
E: Unable to locate package g++-4.3-arm-linux-gnu
E: Couldn't find any package by regex 'g++-4.3-arm-linux-gnu'
E: Unable to locate package linux-kernel-headers-arm-cross
make: * [debian/buildenv/emdebian-prepare] error 100

Attachments (1)

debwrt.config (11.6 KB) - added by sniperpr@… 6 years ago.
.config file for version 198

Download all attachments as: .zip

Change History (13)

comment:1 Changed 7 years ago by stappers

I just did, with svn r184

make clean
make menuconfig
make

and did not encounter the make: * [debian/buildenv/emdebian-prepare] error 100

In other words: try again and report back

comment:2 Changed 6 years ago by sniperpr@…

sudo chroot /other/debwrt/debwrt/build/debian-kirkwood-Default-lenny bash -c "export LC_ALL=C; apt-get -y --force-yes install libc6-arm-cross libc6-dev-arm-cross binutils-arm-linux-gnu gcc-4.3-arm-linux-gnu g++-4.3-arm-linux-gnu linux-kernel-headers-arm-cross"
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libc6-arm-cross
make: * [debian/buildenv/emdebian-prepare] error 100

ver 198

Changed 6 years ago by sniperpr@…

.config file for version 198

comment:3 Changed 6 years ago by anonymous

http://dev.debwrt.net/attachment/ticket/104/debwrt.config

this is my config file

please check it.

BTW: i want build armel,not mips(BCM)

comment:4 Changed 6 years ago by stappers

From the emdebian mailinglist

> E: Couldn't find package libc6-arm-cross
> make: *** [debian/buildenv/emdebian-prepare] error 100

libc6-arm-cross was deprecated with lenny release. Current stable
release should have libc6-armel-cross.

( webarchive URL http://lists.debian.org/debian-embedded/2011/04/msg00038.html )

comment:5 Changed 6 years ago by stappers

I hope that this helps ...

--- debian/buildenv/debian.mk	(revision 198)
+++ debian/buildenv/debian.mk	(working copy)
@@ -16,6 +16,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 SB2_ARCH:=$(call qstrip,$(CONFIG_ARCH))
+# for #104
+SB2_ARCH=armel
 CHROOT:=sudo chroot $(DEBIAN_BUILD_DIR)
 CHROOT_USER:=$(CHROOT) su - $(USER)
 SB2:=sudo chroot $(DEBIAN_BUILD_DIR) su - $(USER) -c bash -c "export LC_ALL=C;

comment:6 Changed 6 years ago by stappers

HTH

$ grep -R gcc-4.3 debian/buildenv/debian.mk 
# apt-get install libc6-armel-cross libc6-dev-armel-cross binutils-arm-linux-gnueabi gcc-4.3-arm-linux-gnueabi g++-4.3-arm-linux-gnueabi
# will install the gcc-4.3 C and C++ toolchain for armel cross-compiling.
	sudo chroot $(DEBIAN_BUILD_DIR) bash -c "export LC_ALL=C; apt-get -y --force-yes install libc6-$(TARGET_ARCH)-cross libc6-dev-$(TARGET_ARCH)-cross binutils-$(TARGET_ARCH)-linux-gnu gcc-4.3-$(TARGET_ARCH)-linux-gnu g++-4.3-$(TARGET_ARCH)-linux-gnu linux-kernel-headers-$(TARGET_ARCH)-cross"

comment:7 Changed 6 years ago by sniperpr@…

embedded has not gcc-4.3-arm-linux-gnueabi g++-4.3-arm-linux-gnueabi binutils-arm-linux-gnueabi packages.

need fix it.

comment:8 Changed 6 years ago by sniperpr@…

W: GPG error: http://www.emdebian.org lenny Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B5B7720097BB3B58
W: You may want to run apt-get update to correct these problems

apt-get install emdebian-archive-keyring

comment:9 Changed 6 years ago by amain

Partial fix in rev248. Make debian/buildenv/create will now create a proper arm cross compile env. Only futher down the road ( dpkg-buildpacakge -aarm ) fails to detect the correct compiler. Keeping ticket open as reminder to fix this.

comment:10 Changed 6 years ago by amain

  • Component changed from debian to buildsystem
  • Status changed from new to accepted
  • Summary changed from i want compile kirkwood version. to ARM cross compilers can't be found

comment:11 Changed 6 years ago by sniperpr@…

Squeeze not has arm,only has armel.

make V=99
sudo debootstrap --arch=arm\

--foreign \

--include="bridge-utils,bwm-ng,bzip2,dash,dnsmasq,ebtables,ethtool,file,hdparm,host,iperf,iproute,less,lsof,module-init-tools,netcat,ntp,ntpdate,openssh-client,openssh-server,pciutils,psmisc,screen,sdparm,strace,tcpdump,telnet,telnetd,udev,usbutils,vim-tiny,vlan,wireless-tools" \

squeeze \

/2T/openwrt/debwrt/build/rootfs-arm-angel-2.0-1 \

"http://mirrors.geekbone.org/debian"

I: Retrieving Release
E: Invalid Release file, no entry for main/binary-arm/Packages

comment:12 Changed 4 years ago by amain

  • Milestone set to unscheduled
  • Severity set to severity 4

Add Comment

Modify Ticket

Action
as accepted The owner will remain amain.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.