Bash fails to cross-build

Bug #870044 reported by Wookey
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

bash fails to cross-build.

The build command is:
xdeb --only-explicit -a armel --prefer-apt --apt-source --debug --force-rebuild bash

The actual build command xdeb issues is:
debuild --no-lintian -eUSER -eCONFIG_SITE=/etc/dpkg-cross/cross-config.armel -eDEB_BUILD_OPTIONS=nocheck -eGTEST_INCLUDEDIR=/usr/arm-linux-gnueabi/include -eGTEST_LIBDIR=/usr/arm-linux-gnueabi/lib -ePKG_CONFIG_LIBDIR=/usr/arm-linux-gnueabi/lib/pkgconfig:/usr/arm-linux-gnueabi/share/pkgconfig:/usr/share/pkgconfig -eDH_VERBOSE=1 -aarmel -b -uc -us -tc

To easily reproduce the build environment in which this bug was discovered follow the HOWTO here:
https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/CrossBuildNano

Setting 'buildlist' to just be the one line:
bash
would mean it only builds this package and not lots of others too.

The error generated is:
arm-linux-gnueabi-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"arm"' -DCONF_OSTYPE='"linux-gnueabi"' -DCONF_MACHTYPE='"arm-un$
../bash/execute_cmd.c: In function 'execute_command_internal':
../bash/execute_cmd.c:984:3: warning: enumeration value 'cm_for' not handled in switch
../bash/execute_cmd.c:984:3: warning: enumeration value 'cm_case' not handled in switch
../bash/execute_cmd.c:984:3: warning: enumeration value 'cm_while' not handled in switch
../bash/execute_cmd.c:984:3: warning: enumeration value 'cm_if' not handled in switch
../bash/execute_cmd.c:984:3: warning: enumeration value 'cm_simple' not handled in switch
../bash/execute_cmd.c:984:3: warning: enumeration value 'cm_select' not handled in switch
../bash/execute_cmd.c:984:3: warning: enumeration value 'cm_connection' not handled in switch
../bash/execute_cmd.c:984:3: warning: enumeration value 'cm_function_def' not handled in switch
../bash/execute_cmd.c:984:3: warning: enumeration value 'cm_until' not handled in switch
../bash/execute_cmd.c:984:3: warning: enumeration value 'cm_group' not handled in switch
../bash/execute_cmd.c:984:3: warning: enumeration value 'cm_arith_for' not handled in switch
../bash/execute_cmd.c:984:3: warning: enumeration value 'cm_subshell' not handled in switch
../bash/execute_cmd.c:984:3: warning: enumeration value 'cm_coproc' not handled in switch
../bash/execute_cmd.c: In function 'execute_in_subshell':
../bash/execute_cmd.c:1507:5: warning: passing argument 1 of 'execute_command_internal' discards qualifiers from pointer t$
../bash/execute_cmd.c:522:1: note: expected 'struct COMMAND *' but argument is of type 'volatile struct COMMAND *'
../bash/execute_cmd.c: In function 'execute_pipeline':
../bash/execute_cmd.c:2205:23: error: 'job_control' undeclared (first use in this function)

Tags: cross natty
Revision history for this message
Wookey (wookey) wrote :
Revision history for this message
Wookey (wookey) wrote :

This appears to be fixed by setting
bash_cv_job_control_missing=present
in /etc/dpkg-cross/cross-config.cache

This needs a dpkg-cross update.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bash (Ubuntu):
status: New → Confirmed
Revision history for this message
gregnietsky@gmail.com (gregnietsky) wrote :

http://lists.gnu.org/archive/html/bug-bash/2011-09/msg00039.html

this is the fix ....

this thread seems to confirm upstream

....

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.