Opened 2 years ago

Closed 2 years ago

#77 closed defect (invalid)

Cannot complete make debian/rootfs due to exec format error

Reported by: anonymous Owned by: stappers
Priority: minor Milestone:
Component: debian Version: 2.0
Severity: Keywords: XenoBuild
Cc:

Description (last modified by stappers)

Hi,

When running make debian/rootfs after debootstrap is executed I am getting this error:

W: Failure trying to run: chroot /srv/krystian/debwrt/build/debian-ar71xx-generic_WNDR3700-squeeze mount -t proc proc /proc
make: *** [debian/buildenv/prepare] Error 1

When trying to run the command manually I'm getting:

chroot: cannot run command `mount': Exec format error

Any thoughts?

My machine is a dual 4cpu xenon 64bit with OpenSuse? 11.3

Attachments (0)

Change History (3)

comment:1 Changed 2 years ago by k.szczesny@…

FIX:
add --foreign to the debootstrap calls in debian.mk file

After adding that I've got another build error, but since I'm on ticket spree it seems I will create separate one

comment:2 Changed 2 years ago by stappers

  • Description modified (diff)
  • Keywords XenoBuild added
  • Owner changed from amain to stappers
  • Priority changed from major to minor
  • Status changed from new to accepted

There are at least debian.mk files calling debootstrap.

In file debian/rootfs/debian.mk has debootstrap allready --foreign.

In debian/buildenv/debian.mk is doing setup of the build host,
it should not be --foreign.

My gut feeling says it is XenoBuild related.

comment:3 Changed 2 years ago by amain

  • Resolution set to invalid
  • Status changed from accepted to closed

You probably have specified the wrong --arch= param. to debootstrap. Use --arch amd64 for your xenon 64bit suse system.

Note: --foreign should not be used for debian/buildenv ( chroot from cross compiling ), only for debian/rootfs ( actual rootfs for target device ).

To avoid problems related to differences between suse and debian, follow the XenoBuild instructions.

Add Comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.