Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #53881 > unrolled thread
| Started by | Mathieu Malaterre <malat@debian.org> |
|---|---|
| First post | 2016-05-02 15:20 +0200 |
| Last post | 2017-10-20 00:10 +0200 |
| Articles | 7 — 4 participants |
Back to article view | Back to linux.debian.kernel
Bug#823224: ld: arch/powerpc/lib/crtsavres.o: No such file: No such file or directory Mathieu Malaterre <malat@debian.org> - 2016-05-02 15:20 +0200
Processed: Re: Bug#823224: ld: arch/powerpc/lib/crtsavres.o: No such file: No such file or directory owner@bugs.debian.org (Debian Bug Tracking System) - 2016-05-02 21:00 +0200
Bug#823224: ld: arch/powerpc/lib/crtsavres.o: No such file: No such file or directory Ben Hutchings <ben@decadent.org.uk> - 2016-05-02 21:00 +0200
Bug#823224: ld: arch/powerpc/lib/crtsavres.o: No such file: No such file or directory Mathieu Malaterre <malat@debian.org> - 2016-05-13 08:50 +0200
Bug#823224: ld: arch/powerpc/lib/crtsavres.o: No such file: No such file or directory John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2017-10-19 22:30 +0200
Bug#823224: ld: arch/powerpc/lib/crtsavres.o: No such file: No such file or directory John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2017-10-19 22:30 +0200
Bug#823224: ld: arch/powerpc/lib/crtsavres.o: No such file: No such file or directory Ben Hutchings <ben@decadent.org.uk> - 2017-10-20 00:10 +0200
| From | Mathieu Malaterre <malat@debian.org> |
|---|---|
| Date | 2016-05-02 15:20 +0200 |
| Subject | Bug#823224: ld: arch/powerpc/lib/crtsavres.o: No such file: No such file or directory |
| Message-ID | <rulVv-3Ub-1@gated-at.bofh.it> |
Package: src:linux On PPC: $ apt-get source linux-image-4.5.0-0.bpo.1-powerpc $ cd linux-4.5.1 $ make oldconfig $ make modules_prepare $ make modules SUBDIRS=drivers/gpu/drm/radeon or equivalent: $ make drivers/gpu/drm/radeon/radeon.ko both fails with: ld: arch/powerpc/lib/crtsavres.o: No such file: No such file or directory Easy fix is obviously: $ make arch/powerpc/lib/crtsavres.o It would be nice to have proper deps setup. Thanks Related: Bug-Debian: #512271 Upstream: https://bugzilla.kernel.org/show_bug.cgi?id=11143
[toc] | [next] | [standalone]
| From | owner@bugs.debian.org (Debian Bug Tracking System) |
|---|---|
| Date | 2016-05-02 21:00 +0200 |
| Subject | Processed: Re: Bug#823224: ld: arch/powerpc/lib/crtsavres.o: No such file: No such file or directory |
| Message-ID | <rurey-nY-15@gated-at.bofh.it> |
| In reply to | #53881 |
Processing control commands: > tag -1 upstream Bug #823224 [src:linux] ld: arch/powerpc/lib/crtsavres.o: No such file: No such file or directory Added tag(s) upstream. -- 823224: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823224 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
[toc] | [prev] | [next] | [standalone]
| From | Ben Hutchings <ben@decadent.org.uk> |
|---|---|
| Date | 2016-05-02 21:00 +0200 |
| Message-ID | <rurey-nY-17@gated-at.bofh.it> |
| In reply to | #53881 |
[Multipart message — attachments visible in raw view] — view raw
Control: tag -1 upstream
On Mon, 2016-05-02 at 15:07 +0200, Mathieu Malaterre wrote:
> Package: src:linux
>
> On PPC:
>
> $ apt-get source linux-image-4.5.0-0.bpo.1-powerpc
> $ cd linux-4.5.1
> $ make oldconfig
That should fail as there is no .config file to start from.
> $ make modules_prepare
> $ make modules SUBDIRS=drivers/gpu/drm/radeon
>
> or equivalent:
>
> $ make drivers/gpu/drm/radeon/radeon.ko
>
> both fails with:
>
> ld: arch/powerpc/lib/crtsavres.o: No such file: No such file or
> directory
>
> Easy fix is obviously:
>
> $ make arch/powerpc/lib/crtsavres.o
>
> It would be nice to have proper deps setup.
You should raise this upstream as it has nothing to do with the Debian
packaging.
Ben.
--
Ben Hutchings
Life is what happens to you while you're busy making other plans.
- John Lennon
[toc] | [prev] | [next] | [standalone]
| From | Mathieu Malaterre <malat@debian.org> |
|---|---|
| Date | 2016-05-13 08:50 +0200 |
| Message-ID | <ryf58-6fM-3@gated-at.bofh.it> |
| In reply to | #53890 |
Hi Ben ! On Mon, May 2, 2016 at 8:53 PM, Ben Hutchings <ben@decadent.org.uk> wrote: > Control: tag -1 upstream > > On Mon, 2016-05-02 at 15:07 +0200, Mathieu Malaterre wrote: >> Package: src:linux >> >> On PPC: >> >> $ apt-get source linux-image-4.5.0-0.bpo.1-powerpc >> $ cd linux-4.5.1 >> $ make oldconfig > > That should fail as there is no .config file to start from. Well in my case, `make oldconfig` did copy the older configuration properly for me. >> $ make modules_prepare >> $ make modules SUBDIRS=drivers/gpu/drm/radeon >> >> or equivalent: >> >> $ make drivers/gpu/drm/radeon/radeon.ko >> >> both fails with: >> >> ld: arch/powerpc/lib/crtsavres.o: No such file: No such file or >> directory >> >> Easy fix is obviously: >> >> $ make arch/powerpc/lib/crtsavres.o >> >> It would be nice to have proper deps setup. > > You should raise this upstream as it has nothing to do with the Debian > packaging. Just to understand correctly, the Makefile currently reads as: $ grep -3 CONFIG_476FPE_ERR46 arch/powerpc/Makefile KBUILD_LDFLAGS_MODULE += arch/powerpc/lib/crtsavres.o ifeq ($(CONFIG_476FPE_ERR46),y) KBUILD_LDFLAGS_MODULE += --ppc476-workaround \ -T $(srctree)/arch/powerpc/platforms/44x/ppc476_modules.lds endif So `CONFIG_476FPE_ERR46` does not need to be explicitly set within Debian setup, and must be a legacy variable that does not work anymore nowadays (and thus is indeed a bug upstream). Thanks for clarification.
[toc] | [prev] | [next] | [standalone]
| From | John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> |
|---|---|
| Date | 2017-10-19 22:30 +0200 |
| Message-ID | <uCpC2-2Qs-13@gated-at.bofh.it> |
| In reply to | #53881 |
On 10/19/2017 10:18 PM, John Paul Adrian Glaubitz wrote: > I'm now running into exactly this problem when trying to build the SPL library > on a native ppc64 system for ZFS-on-Linux, see below. Addtional note: It works fine on a powerpc installation, so I'm confident it's a packaging issue. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaubitz@debian.org `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
[toc] | [prev] | [next] | [standalone]
| From | John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> |
|---|---|
| Date | 2017-10-19 22:30 +0200 |
| Message-ID | <uCpsm-2N3-29@gated-at.bofh.it> |
| In reply to | #53881 |
Hi Mathieu!
I'm now running into exactly this problem when trying to build the SPL library
on a native ppc64 system for ZFS-on-Linux, see below.
Can you give me a pointer on how to resolve this issue?
configure:15763: checking whether modules can be built
configure:15786: cp conftest.c build && make modules -C /usr/src/linux-headers-4.13.0-1-powerpc64 EXTRA_CFLAGS=-Werror-implicit-function-declaration
M=/home/glaubitz/zfstests/spl/build
/bin/sh: 1: /usr/src/linux-headers-4.13.0-1-common/scripts/ld-version.sh: not found
/bin/sh: 1: [: -ge: unexpected operator
ld: cannot find arch/powerpc/lib/crtsavres.o: No such file or directory
make[3]: *** [/home/glaubitz/zfstests/spl/build/conftest.ko] Error 1
make[2]: *** [modules] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
configure:15789: $? = 2
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "spl"
| #define PACKAGE_TARNAME "spl"
| #define PACKAGE_VERSION "0.7.0"
| #define PACKAGE_STRING "spl 0.7.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define SPL_META_NAME "spl"
| #define SPL_META_VERSION "0.7.0"
| #define SPL_META_RELEASE "17_g28920ea"
| #define SPL_META_LICENSE "GPL"
| #define SPL_META_ALIAS "spl-0.7.0-17_g28920ea"
| #define SPL_META_AUTHOR "OpenZFS on Linux"
| #define PACKAGE "spl"
| #define VERSION "0.7.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
|
|
| int
| main (void)
| {
|
| ;
| return 0;
| }
|
configure:15804: result: no
configure:15807: error: *** Unable to build an empty module.
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
[toc] | [prev] | [next] | [standalone]
| From | Ben Hutchings <ben@decadent.org.uk> |
|---|---|
| Date | 2017-10-20 00:10 +0200 |
| Message-ID | <uCraN-3SQ-1@gated-at.bofh.it> |
| In reply to | #59239 |
[Multipart message — attachments visible in raw view] — view raw
On Thu, 2017-10-19 at 22:18 +0200, John Paul Adrian Glaubitz wrote:
> Hi Mathieu!
>
> I'm now running into exactly this problem when trying to build the SPL library
> on a native ppc64 system for ZFS-on-Linux, see below.
>
> Can you give me a pointer on how to resolve this issue?
>
> configure:15763: checking whether modules can be built
> configure:15786: cp conftest.c build && make modules -C /usr/src/linux-headers-4.13.0-1-powerpc64 EXTRA_CFLAGS=-Werror-implicit-function-declaration
> M=/home/glaubitz/zfstests/spl/build
> /bin/sh: 1: /usr/src/linux-headers-4.13.0-1-common/scripts/ld-version.sh: not found
> /bin/sh: 1: [: -ge: unexpected operator
> ld: cannot find arch/powerpc/lib/crtsavres.o: No such file or directory
[...]
This is a different problem. powerpc 64-bit builds have started using
that script since 4.13:
commit efe0160cfd40a99c052a00e174787c1f4158a9cd
Author: Nicholas Piggin <npiggin@gmail.com>
Date: Fri May 12 01:56:52 2017 +1000
powerpc/64: Linker on-demand sfpr functions for modules
So we should either ship the script or patch out the version test.
Ben.
--
Ben Hutchings
We get into the habit of living before acquiring the habit of thinking.
- Albert Camus
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.kernel
csiph-web