Error when installing "g++-multilib libc6-dev-i386" on 64 bit machine

Bug #1707429 reported by bel
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'm a software developer. I tried to build for 32 bit Linux on 64 bit Linux, to check type cast warnings occurring only for 32 bit versions. But it seems I cannot build for 32 bit on my 64 bit machine - gcc -m32 will fail with "/usr/bin/ld: cannot find -lgcc".
Googled for a solution and found https://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html
Typed "sudo apt-get install g++-multilib libc6-dev-i386".

Then an error message popped up.

lsb_release -rd
Description: Ubuntu 16.04.2 LTS
Release: 16.04

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: libc6-dev-i386 (not installed)
ProcVersionSignature: Ubuntu 4.4.0-64.85-generic 4.4.44
Uname: Linux 4.4.0-64-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.10
Architecture: amd64
Date: Sat Jul 29 20:19:44 2017
DpkgTerminalLog:
 Vorbereitung zum Entpacken von .../libc6-dev-i386_2.23-0ubuntu9_amd64.deb ...
 Entpacken von libc6-dev-i386 (2.23-0ubuntu9) ...
 dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/libc6-dev-i386_2.23-0ubuntu9_amd64.deb (--unpack):
  Versuch, »/usr/include/sys/uio.h« zu überschreiben, welches auch in Paket libc6-dev-amd64:i386 2.23-0ubuntu9 ist
ErrorMessage: Versuch, »/usr/include/sys/uio.h« zu überschreiben, welches auch in Paket libc6-dev-amd64:i386 2.23-0ubuntu9 ist
InstallationDate: Installed on 2014-11-24 (977 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.19
SourcePackage: glibc
Title: package libc6-dev-i386 (not installed) failed to install/upgrade: Versuch, »/usr/include/sys/uio.h« zu überschreiben, welches auch in Paket libc6-dev-amd64:i386 2.23-0ubuntu9 ist
UpgradeStatus: Upgraded to xenial on 2016-11-07 (263 days ago)

Revision history for this message
bel (bel2125) wrote :
summary: - Typed "sudo apt-get install g++-multilib libc6-dev-i386" on shell to
- build 32 bit app, according to
- https://www.cyberciti.biz/tips/compile-32bit-application-using-
- gcc-64-bit-linux.html
+ Error when installing "g++-multilib libc6-dev-i386" on 64 bit machine
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in glibc (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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