** Description changed:

  Ubuntu 16.10 with gcc version 6.2.0 20161005 (Ubuntu 6.2.0-5ubuntu12)
  
  * Install gcc: sudo apt install build-essential
  * Build any program with gcc.
      Minimal example: printf "int main() { return 1; }" | gcc -x c -
  * Read the output file header: readelf -h a.out
  
  Expected result: the ELF header Type shows: EXEC
  Actual result: the ELF header Type shows: DYN
  
  The side effect is that we cannot run any program built with gcc 6 from
  Nautilus. Nautilus opens an error message saying it does not know how to
  handle a shared library.
+ 
+ Most programs in /bin and /usr/bin cannot be started from Nautilus by
+ double-clicking.
  
  Everything was fine with the gcc release in Ubuntu 16.04
  
  ProblemType: Bug
  DistroRelease: Ubuntu 16.10
  Package: gcc 4:6.1.1-1ubuntu2
  ProcVersionSignature: Ubuntu 4.8.0-22.24-generic 4.8.0
  Uname: Linux 4.8.0-22-generic x86_64
  ApportVersion: 2.20.3-0ubuntu8
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Fri Oct 21 21:11:46 2016
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2016-10-14 (6 days ago)
  InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.2)
  SourcePackage: gcc-defaults
  UpgradeStatus: No upgrade log present (probably fresh install)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1635706

Title:
  gcc 6 outputs a shared object by default instead of an executable

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/build-essential/+bug/1635706/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to