crtsavres.o is required for kernel module builds

Bug #355344 reported by penguin10916
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Luke Yelavich

Bug Description

Binary package hint: nouveau-kernel-source

I had the same problem with the 03/24 release. I've tried reinstalling dkms, and have tried to find info on it, but nothing works. The first time I tried this, I got "error exit status 6", and ees 10 occurred on the reinstalls.

ProblemType: Package
Architecture: powerpc
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-installation script returned error exit status 10
Package: nouveau-kernel-source 0.0.11+git20090404-0ubuntu1
PackageArchitecture: all
SourcePackage: nouveau-kernel-source
Title: package nouveau-kernel-source 0.0.11+git20090404-0ubuntu1 failed to install/upgrade: subprocess post-installation script returned error exit status 10
Uname: Linux 2.6.28-6-powerpc ppc

Revision history for this message
penguin10916 (penguin10916) wrote :
description: updated
Revision history for this message
Chris Halse Rogers (raof) wrote :

Hm. That looks like the module is failing to build, but there are no details in the log. Could you attach the build log - you should be able to find this in /var/lib/dkms/nouveau/0.0.11+git20090404/2.6.28-6-powerpc/ppc/log/make.log

Changed in nouveau-kernel-source (Ubuntu):
assignee: nobody → raof
status: New → Incomplete
Revision history for this message
penguin10916 (penguin10916) wrote :

This should be the log- but the 2.6.28-6-powerpc directory isn't there. I found it in the build directory.

Revision history for this message
Chris Halse Rogers (raof) wrote : Re: [Bug 355344] Re: package nouveau-kernel-source 0.0.11+git20090404-0ubuntu1 failed to install/upgrade: subprocess post-installation script returned error exit status 10

That's extremely odd. It's complaining that it can't find crtsavres.o,
but that (a) doesn't seem to be specified anywhere in the Makefile,
suggesting to me that ld is trying to pull it in automatically, and (b)
the file is only found in the ppu-gcc package, the part of the gcc suite
for the cell architecture.

I'm not really sure where to go from here. I'll start asking around.

Changed in nouveau-kernel-source (Ubuntu):
status: Incomplete → In Progress
Revision history for this message
penguin10916 (penguin10916) wrote : Re: package nouveau-kernel-source 0.0.11+git20090404-0ubuntu1 failed to install/upgrade: subprocess post-installation script returned error exit status 10

I was looking around, and I think that this might be related to this.

http://bugzilla.kernel.org/show_bug.cgi?id=11143

Can somebody check?

Revision history for this message
penguin10916 (penguin10916) wrote :

2 Days ago, I decided to try to install the drivers from source. It failed, but it failed in the same exact way. Therefore, this is directly a nouveau problem.

Revision history for this message
Chris Halse Rogers (raof) wrote :

Actually, this would seem to be a linux-headers bug - it seems that it should include the arch/powerpc/lib/crtsavres.o file or no modules will be able to be built against the kernel. Moving to linux-ports, the source of your linux-headers package.

You could probably work around this by installing the linux-source package, ensuring that you have write access to the unpacked kernel tree, and ensuring the /lib/modules/linux-$(uname -r)/source symlink points at the kernel tree.

affects: nouveau-kernel-source (Ubuntu) → linux-ports (Ubuntu)
Changed in linux-ports (Ubuntu):
assignee: Chris Halse Rogers (raof) → nobody
status: In Progress → Confirmed
summary: - package nouveau-kernel-source 0.0.11+git20090404-0ubuntu1 failed to
- install/upgrade: subprocess post-installation script returned error exit
- status 10
+ crtsavres.o is required for kernel module builds
Revision history for this message
Luke Yelavich (themuso) wrote : Re: [Bug 355344] Re: package nouveau-kernel-source 0.0.11+git20090404-0ubuntu1 failed to install/upgrade: subprocess post-installation script returned error exit status 10

This issue only affects the powerpc and powerpc-smp kernels, but not powerpc64-smp it seems. I have confirmed locally, and will get a fix sorted ASAP. It will have to be an SRU however I'm affraid.

 affects ubuntu/linux-ports
 assignee themuso

Changed in linux-ports (Ubuntu):
assignee: nobody → themuso
Revision history for this message
Luke Yelavich (themuso) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok, we have a chance to get this fixed. Subscribing ubuntu-release to get it considered.

 subscribe ubuntu-release
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAknnANUACgkQjVefwtBjIM5DXgCggoHyotukTYmHi+Ini+GsmK7w
czEAn3IavM0qDbqcBI6ocBfrZRVEC4jR
=Fp8W
-----END PGP SIGNATURE-----

Revision history for this message
Steve Langasek (vorlon) wrote :

Luke,

Is there a patch for what we're meant to be considering, please?

Revision history for this message
Luke Yelavich (themuso) wrote : Re: [Bug 355344] Re: crtsavres.o is required for kernel module builds

Sorry, I should have updated this bug after doing the last ports upload. I don't have time to address this now, will have to push through as an SRU.

 affects ubuntu/linux-ports
 status triaged

Changed in linux-ports (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
penguin10916 (penguin10916) wrote :

I solved this problem for myself. I found the crtsavres.o file in the gcc. So just for the hell of it, I made a copy of it, and placed it in the place where nouveau/dkms looked for it. And to my surprise it worked. Because of this, I've gotten the nouveau drivers to install... though when a new version of gcc comes out, I will have to delete the copy, and place a new copy in its place. But yeah.... they should patch this so that this isn't needed.

Revision history for this message
Stephen Wade (stephenwade) wrote :

I want a patch for this. I am having the same problem. I'm trying to install drivers for my video card on a PowerMac G4 Quicksilver (sp.?) running Ubuntu.

If a patch is not happening, can someone tell me where the needed file is so I can make it work? Thanks!

Luke Yelavich (themuso)
affects: linux-ports (Ubuntu) → linux (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 2.6.31-4.20

---------------
linux (2.6.31-4.20) karmic; urgency=low

  [ Andy Whitcroft ]

  * SAUCE: iscsitarget -- update to SVN revision r214
  * SAUCE: iscsitarget -- renable driver
  * [Config] consolidate lpia/lpia and i386/generic configs
  * [Config] enable CRYPTO modules for all architectures
  * [Config] enable cryptoloop
  * [Config] enable various filesystems for armel
  * [Config] sync i386 generic and generic-pae
  * [Config] add the 386 (486 processors and above) flavour
  * [Config] re-set DEFAULT_MMAP_MIN_ADDR
    - LP: #399914
  * add genconfigs/genportsconfigs to extract the built configs
  * updateconfigs -- alter concatenation order allow easier updates
  * intelfb -- INTELFB now conflicts with DRM_I915
  * printchanges -- rebase tree does not have stable tags use changelog
  * AppArmor: fix argument size missmatch on 64 bit builds

  [ Ike Panhc ]

  * Ship bnx2x firmware in nic-modules udeb
    - LP: #360966

  [ Jeff Mahoney ]

  * AppArmor: fix build failure on ia64

  [ John Johansen ]

  * AppArmour: ensure apparmor enabled parmater is off if AppArmor fails to
    initialize.
  * AppArmour: fix auditing of domain transitions to include target profile
    information
  * AppArmor: fix C99 violation
  * AppArmor: revert reporting of create to write permission.
  * SAUCE: Add config option to set a default LSM
  * [Config] enable AppArmor by default
  * AppArmor: Fix NULL pointer dereference oops in profile attachment.

  [ Keith Packard ]

  * SAUCE: drm/i915: Allow frame buffers up to 4096x4096 on 915/945 class
    hardware
    - LP: #351756

  [ Luke Yelavich ]

  * [Config] add .o files found in arch/powerpc/lib to all powerpc kernel
    header packages
    - LP: #355344

  [ Michael Casadevall ]

  * [Config] update SPARC config files to allow success build

  [ Scott James Remnant ]

  * SAUCE: trace: add trace_event for the open() syscall

  [ Stefan Bader ]

  * SAUCE: jfs: Fix early release of acl in jfs_get_acl
    - LP: #396780

  [ Tim Gardner ]

  * [Upstream] Fix Soltech TA12 volume hotkeys not sending key release
    - LP: #397499
  * [Upstream] USB Option driver - Add USB ID for Novatel MC727/U727/USB727
    refresh
    - LP: #365291
  * [Config] SSB/B44 are common across all arches/flavours.

  [ Upstream ]

  * Rebased to 2.6.31-rc4

 -- Andy Whitcroft <email address hidden> Thu, 23 Jul 2009 08:41:39 +0100

Changed in linux (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Kenny Ossa (ynnek) wrote :

Hi, does this fix works for my i386 architecture?

I have the same problem trying to install nouveau:

Error! DKMS tree already contains: nouveau-0.0.11+git20090404
You cannot add the same module/version combo more than once

Revision history for this message
J. McDonald (mcdonald-joseph) wrote :

It is not fixed in 2.6.28-6-powerpc-smp. I am still new to this. What is crtsavres.o, how can I find it and what directory does Nouveau/dkms need to go into?

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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