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)
This appears to be fixed by setting job_control_ missing= present cross/cross- config. cache
bash_cv_
in /etc/dpkg-
This needs a dpkg-cross update.