Ubuntu

wrong package name (x86_64) when cross compiling make ftbfs

Reported by Arthur Loiret on 2007-06-23
2
Affects Status Importance Assigned to Milestone
gcc-4.1 (Ubuntu)
Undecided
Arthur Loiret
gcc-4.2 (Ubuntu)
Undecided
Matthias Klose

Bug Description

Binary package hint: gcc-4.1

Hello,

I'm trying to cross compile gcc for amd64 on i386, but I have the following problems:

1) after a debian/control, binutils-x86_64-linux-gnu is in Build-Depends instead of binutils-x86-64-linux-gnu_2.17.20070426cvs-7ubuntu2_i386.deb
 (wrong package name)

2) package name make ftbfs:

dpkg-gencontrol: error: Illegal package name `gcc-4.1-x86_64-linux-gnu-base'
dh_gencontrol: command returned error code 65280
make[1]: *** [stamps/08-binary-stamp-base] Error 1
make[1]: Leaving directory `/usr/src/gcc-4.1/gcc-4.1-4.1.2'
make: *** [binary] Erreur 2

Built with:

GCC_TARGET=amd64
DEB_CROSS_INDEPENDENT=yes
version: 4.1.2-12ubuntu1

Thanks.

CVE References

Arthur Loiret (arthur.loiret) wrote :

Here is a first patch, I'm going to test it now and see.

Changed in gcc-4.1:
assignee: nobody → bashelier
Arthur Loiret (arthur.loiret) wrote :

Even if in debian/control there is:

Package: gcc-4.1-x86-64-linux-gnu-base

I still get:

dh_gencontrol -pgcc-4.1-x86_64-linux-gnu-base [...]
dh_gencontrol: package gcc-4.1-x86_64-linux-gnu-base is not in control info
dpkg-gencontrol: error: Illegal package name `gcc-4.1-x86_64-linux-gnu-base'
dh_gencontrol: command returned error code 65280

I'm going to see what needs to be changed again.

Arthur Loiret (arthur.loiret) wrote :

The problem come from the p_gcc var in case og cross compiling, see in debian/rules2:

ifndef DEB_CROSS
  p_base = gcc$(pkg_ver)-base
  p_gcc = gcc$(pkg_ver)
  p_cpp = cpp$(pkg_ver)
  p_cppd = cpp$(pkg_ver)-doc
  p_cxx = g++$(pkg_ver)
  p_doc = gcc$(pkg_ver)-doc
  p_lgcc = libgcc$(GCC_SONAME)
else
  # only triggered if DEB_CROSS_INDEPENDENT set
  p_base = gcc$(pkg_ver)$(cross_bin_arch)-base
  p_cpp = cpp$(pkg_ver)$(cross_bin_arch)
  p_gcc = gcc$(pkg_ver)$(cross_bin_arch)
  p_cxx = g++$(pkg_ver)$(cross_bin_arch)
endif

Have to modify variable $(cross_bin_arch), then in debian/rules.defs

ifdef DEB_CROSS
  cross_bin_arch := -$(TARGET_ALIAS)
  cross_lib_arch := -$(DEB_TARGET_ARCH)-cross
endif

For a first test I've just added two others tr on cross_bin_arch and cross_lib_arch, if works will at least modify consequently TARGET_ALIAS ifdef DEB_CROSS.

Matthias Klose (doko) on 2007-07-26
Changed in gcc-4.2:
assignee: nobody → doko
status: New → In Progress
Changed in gcc-4.1:
status: New → In Progress
Matthias Klose (doko) wrote :

gcc-4.2 (4.2.1-1ubuntu1) gutsy; urgency=low

  * Merge with Debian; remaining changes:
    - Regenerate the control file.

gcc-4.2 (4.2.1-1) unstable; urgency=medium

  [Ludovic Brenta]
  * debian/patches/ada-symbolic-tracebacks.c: remove all trace of
    the function convert_addresses from adaint.c. Fixes FTBFS on alpha,
    s390 and possibly other platforms. Closes: #433633.
  * debian/control.m4: list myself as uploader if the source package name
    is gnat. Relax build-dependency on gnat-4.2-source.
  * debian/control.m4, debian/rules.conf: Build-depend on libmpfr-dev only
    if building Fortran.

  [Matthias Klose]
  * debian/rules.conf: Fix breakage of Fortran build dependencies introduced
    by merge of the Ada bits.
  * Don't include the gccbug binary anymore in the gcc package; upstream bug
    reports should be reported to the upstream bug tracker at
    http://gcc.gnu.org/bugzilla.
  * Don't build and test libjava for the biarch architecture.
  * Install gappletviewer man page. Addresses: #423094.
  * debian/patches/m68k-java.dpatch: Readd.
  * gjar: support @ arguments.
  * Update to SVN 20070726 from the ubuntu/gcc-4_2-branch.
    - Fix mips/mipsel builds.
  * libmudflap0: Fix update leaving an empty doc dir. Closes: #428306.
  * arm/armel doesn't have ssp support. Closes: #433172.
  * Update kbsd-gnu-ada patch (Aurelien Jarno): Addresses: #434754.
  * gcj-4.2: Build depend on gcj-4.2 to build the classpath examples files
    for the binary-indep target.
  * Fix PR java/32862, bugs in EnumMap implementation. Addresses: #423160.

  [Arthur Loiret]
  * Fix cross builds targeting x86_64. Closes: LP: #121834.

 -- Matthias Klose <email address hidden> Thu, 26 Jul 2007 22:56:21 +0200

Changed in gcc-4.2:
status: In Progress → Fix Released
Matthias Klose (doko) wrote :
Download full text (246.6 KiB)

gcc-4.2 (4.2.1-2ubuntu1) gutsy; urgency=low

  * Merge with Debian; remaining changes:
    - Regenerate the control file.
  * debian/rules.defs: Fix typo, run the checks in biarch mode too.

gcc-4.2 (4.2.1-2) unstable; urgency=low

  [Matthias Klose]
  * Update to SVN 20070804 from the ubuntu/gcc-4_2-branch (20070804):
    - Merge gcc-4_2-branch SVN 20070804.
    - Imported classpath CVS 20070727.
    - Bump the libgcj soname, add conflict with java-gcj-compat (<< 1.0.76-4).
    - Remove patches integrated in the branches: pr32862.
    - Update patches: libjava-subdir, libjava-jar.
    - Add regenerated class files: svn-class-updates.

  * Fix profiling support on the Hurd (Michael Casadeval). Closes: #434937.
  * Fix build on kfreebsd-amd64 (Aurelien Jarno). Closes: #435053.
  * Period of grace is over, run the testsuite on m68k-linux again.
  * Update infrastructure for the gcc-source package (Bastian Blank).
  * Update profiling on the Hurd (Samuel Thibault, Michael Casadevall).
    Closes: #433539.
  * debian/rules2: Allow DEB_BUILD_OPTIONS=parallel=<n> to overwrite NJOBS.
  * Allow lang=<l1>,<l2> nolang=<l3,l4> in DEB_BUILD_OPTIONS; deprecating
    WITHOUT_LANG, and WITHOUT_CHECK.
  * debian/rules.defs, debian/rules.conf: Cache some often used macros.

  * Preliminary work: Enable Java for ARM EABI (Andrew Haley), build
    libffi for armel.
  * gcj: Don't build the browser plugin in gcc-snapshot builds to get
    rid of the xulrunner dependency.
  * gcjwebplugin: Register for more browsers (package currently not built).
  * gij/boehm-gc: Use sysconf as fallback, if reading /proc/stat fails.
    Closes: #422469.
  * libjava: Avoid dependency on MAXHOSTNAMELEN (Samuel Thibault).
  * gcj: On arm and armel, use the ecj1 binary built from the ecj package.
  * gcj: Don't require javac without java maintainer mode, remove build
    dependencies on gcj and ecj, add build dependency on libecj-java.

gcc-4.2 (4.2.1-1ubuntu1) gutsy; urgency=low

  * Merge with Debian; remaining changes:
    - Regenerate the control file.

gcc-4.2 (4.2.1-1) unstable; urgency=medium

  [Ludovic Brenta]
  * debian/patches/ada-symbolic-tracebacks.c: remove all trace of
    the function convert_addresses from adaint.c. Fixes FTBFS on alpha,
    s390 and possibly other platforms. Closes: #433633.
  * debian/control.m4: list myself as uploader if the source package name
    is gnat. Relax build-dependency on gnat-4.2-source.
  * debian/control.m4, debian/rules.conf: Build-depend on libmpfr-dev only
    if building Fortran.

  [Matthias Klose]
  * debian/rules.conf: Fix breakage of Fortran build dependencies introduced
    by merge of the Ada bits.
  * Don't include the gccbug binary anymore in the gcc package; upstream bug
    reports should be reported to the upstream bug tracker at
    http://gcc.gnu.org/bugzilla.
  * Don't build and test libjava for the biarch architecture.
  * Install gappletviewer man page. Addresses: #423094.
  * debian/patches/m68k-java.dpatch: Readd.
  * gjar: support @ arguments.
  * Update to SVN 20070726 from the ubuntu/gcc-4_2-branch.
    - Fix mips/mipsel builds.
  * libmudflap0: Fix update leaving an empty doc dir. Closes: #428306.
  * a...

Matthias Klose (doko) wrote :

gcc-4.1 (4.1.2-15ubuntu1) gutsy; urgency=low

  * Merge with Debian; remaining changes:
    - Source tgz including GFDL documentation.
    - Regenerate the control file.

gcc-4.1 (4.1.2-15) unstable; urgency=low

  [Matthias Klose]
  * Update to the gcc-4_1-branch 20070805 (s390 changes only).

  * Period of grace is over, turn on again the testsuite on m68k.
  * Update infrastructure for the gcc-source package (Bastian Blank).
  * Update profiling on the Hurd (Samuel Thibault, Michael Casadevall).
    Closes: #433539.
  * debian/rules2: Allow DEB_BUILD_OPTIONS=parallel=<n> to overwrite NJOBS.
  * Allow lang=<l1>,<l2> nolang=<l3,l4> in DEB_BUILD_OPTIONS; deprecating
    WITHOUT_LANG, and WITHOUT_CHECK.
  * debian/rules.defs, debian/rules.conf: Cache some often used macros.

  * Don't build a libgcj-doc package from the gcj-4.1 source.
  * Install gappletviewer man page. Closes: #423094.
  * Fix gcj build failure on the Hurd (Samuel Thibault). Closes: #408888.
  * Fix PR java/32862, bugs in EnumMap implementation. Closes: #423160.
  * Fix PR classpath/32844.
  * Support @ arguments in gjar.
  * gcjwebplugin: Register for more browsers (package currently not built).
  * gij/boehm-gc: Use sysconf as fallback, if reading /proc/stat fails.
    Closes: #422469.
  * libjava: Avoid dependency on MAXHOSTNAMELEN (Samuel Thibault).
  * Tighten dependencies on ecj/libecj-java.

  [Arthur Loiret]
  * Fix cross builds targeting x86_64. Closes: LP: #121834.

 -- Matthias Klose <email address hidden> Sun, 05 Aug 2007 22:47:17 +0200

Changed in gcc-4.1:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers