kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Unsupported relocation type: R_X86_64_PLT32
@ 2018-11-03 12:54 Aleix Roca Nonell
  2018-11-03 12:54 ` Aleix Roca Nonell
  2018-11-03 13:16 ` Aleix Roca Nonell
  0 siblings, 2 replies; 10+ messages in thread
From: Aleix Roca Nonell @ 2018-11-03 12:54 UTC (permalink / raw)
  To: kernelnewbies

Hi all!

In my attempt to write my first useful kernel patch, I'm tracking down
a possibly kernel regression on my laptop's wireless driver. I'm
trying to use git bisect to narrow down the problem and I'm having
trouble compiling a Linux kernel 4.14 from Linus tree in my Arch
Linux.

The error I'm getting is "Unsupported relocation type: R_X86_64_PLT32"

I have read about gcc enabling -fPIC by default from gcc-6 so I have
tried compiling with gcc-{8,7,5,4.9} with and without
"-fno-pic -no-pic" by running

  make CC="gcc-5 -fno-pic -no-pic"

with no luck. I was expecting those R_X86_64_PLT32 relocations not to
be generated with this options but there is something I have still not
understood.

I have been able to compile the kernel after applying greg's stable
tree patch [1] (and [2,3] for gcc-8) but the kernel refuses to boot.

Any help/comments on either the problem or the followed methodology will be
appreciated!

Thank you! :D

[1] - https://lore.kernel.org/patchwork/patch/892780/
[2] - https://lore.kernel.org/patchwork/patch/868613/
[3] - https://lore.kernel.org/patchwork/patch/934722/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Unsupported relocation type: R_X86_64_PLT32
  2018-11-03 12:54 Unsupported relocation type: R_X86_64_PLT32 Aleix Roca Nonell
@ 2018-11-03 12:54 ` Aleix Roca Nonell
  2018-11-03 13:16 ` Aleix Roca Nonell
  1 sibling, 0 replies; 10+ messages in thread
From: Aleix Roca Nonell @ 2018-11-03 12:54 UTC (permalink / raw)
  To: Kernel Newbies Mailing List

Hi all!

In my attempt to write my first useful kernel patch, I'm tracking down
a possibly kernel regression on my laptop's wireless driver. I'm
trying to use git bisect to narrow down the problem and I'm having
trouble compiling a Linux kernel 4.14 from Linus tree in my Arch
Linux.

The error I'm getting is "Unsupported relocation type: R_X86_64_PLT32"

I have read about gcc enabling -fPIC by default from gcc-6 so I have
tried compiling with gcc-{8,7,5,4.9} with and without
"-fno-pic -no-pic" by running

  make CC="gcc-5 -fno-pic -no-pic"

with no luck. I was expecting those R_X86_64_PLT32 relocations not to
be generated with this options but there is something I have still not
understood.

I have been able to compile the kernel after applying greg's stable
tree patch [1] (and [2,3] for gcc-8) but the kernel refuses to boot.

Any help/comments on either the problem or the followed methodology will be
appreciated!

Thank you! :D

[1] - https://lore.kernel.org/patchwork/patch/892780/
[2] - https://lore.kernel.org/patchwork/patch/868613/
[3] - https://lore.kernel.org/patchwork/patch/934722/

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Unsupported relocation type: R_X86_64_PLT32
  2018-11-03 12:54 Unsupported relocation type: R_X86_64_PLT32 Aleix Roca Nonell
  2018-11-03 12:54 ` Aleix Roca Nonell
@ 2018-11-03 13:16 ` Aleix Roca Nonell
  2018-11-03 13:16   ` Aleix Roca Nonell
  2018-11-07  7:18   ` Aleix Roca Nonell
  1 sibling, 2 replies; 10+ messages in thread
From: Aleix Roca Nonell @ 2018-11-03 13:16 UTC (permalink / raw)
  To: kernelnewbies

On Sat, Nov 03, 2018 at 01:54:39PM +0100, Aleix Roca Nonell wrote:
> Hi all!
> 
> In my attempt to write my first useful kernel patch, I'm tracking down
> a possibly kernel regression on my laptop's wireless driver. I'm
> trying to use git bisect to narrow down the problem and I'm having
> trouble compiling a Linux kernel 4.14 from Linus tree in my Arch
> Linux.
> 
> The error I'm getting is "Unsupported relocation type: R_X86_64_PLT32"
> 
> I have read about gcc enabling -fPIC by default from gcc-6 so I have
> tried compiling with gcc-{8,7,5,4.9} with and without
> "-fno-pic -no-pic" by running
> 
>   make CC="gcc-5 -fno-pic -no-pic"
> 
> with no luck. I was expecting those R_X86_64_PLT32 relocations not to
> be generated with this options but there is something I have still not
> understood.
> 
> I have been able to compile the kernel after applying greg's stable
> tree patch [1] (and [2,3] for gcc-8) but the kernel refuses to boot.
> 
> Any help/comments on either the problem or the followed methodology will be
> appreciated!
> 
> Thank you! :D
> 
> [1] - https://lore.kernel.org/patchwork/patch/892780/
> [2] - https://lore.kernel.org/patchwork/patch/868613/
> [3] - https://lore.kernel.org/patchwork/patch/934722/

Sorry, I meant "-fno-pie -no-pie" instead of "-fno-pic -no-pic"

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Unsupported relocation type: R_X86_64_PLT32
  2018-11-03 13:16 ` Aleix Roca Nonell
@ 2018-11-03 13:16   ` Aleix Roca Nonell
  2018-11-07  7:18   ` Aleix Roca Nonell
  1 sibling, 0 replies; 10+ messages in thread
From: Aleix Roca Nonell @ 2018-11-03 13:16 UTC (permalink / raw)
  To: Kernel Newbies Mailing List

On Sat, Nov 03, 2018 at 01:54:39PM +0100, Aleix Roca Nonell wrote:
> Hi all!
> 
> In my attempt to write my first useful kernel patch, I'm tracking down
> a possibly kernel regression on my laptop's wireless driver. I'm
> trying to use git bisect to narrow down the problem and I'm having
> trouble compiling a Linux kernel 4.14 from Linus tree in my Arch
> Linux.
> 
> The error I'm getting is "Unsupported relocation type: R_X86_64_PLT32"
> 
> I have read about gcc enabling -fPIC by default from gcc-6 so I have
> tried compiling with gcc-{8,7,5,4.9} with and without
> "-fno-pic -no-pic" by running
> 
>   make CC="gcc-5 -fno-pic -no-pic"
> 
> with no luck. I was expecting those R_X86_64_PLT32 relocations not to
> be generated with this options but there is something I have still not
> understood.
> 
> I have been able to compile the kernel after applying greg's stable
> tree patch [1] (and [2,3] for gcc-8) but the kernel refuses to boot.
> 
> Any help/comments on either the problem or the followed methodology will be
> appreciated!
> 
> Thank you! :D
> 
> [1] - https://lore.kernel.org/patchwork/patch/892780/
> [2] - https://lore.kernel.org/patchwork/patch/868613/
> [3] - https://lore.kernel.org/patchwork/patch/934722/

Sorry, I meant "-fno-pie -no-pie" instead of "-fno-pic -no-pic"

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Unsupported relocation type: R_X86_64_PLT32
  2018-11-03 13:16 ` Aleix Roca Nonell
  2018-11-03 13:16   ` Aleix Roca Nonell
@ 2018-11-07  7:18   ` Aleix Roca Nonell
  2018-11-07  7:18     ` Aleix Roca Nonell
  2018-11-07 11:02     ` Shyam Saini
  1 sibling, 2 replies; 10+ messages in thread
From: Aleix Roca Nonell @ 2018-11-07  7:18 UTC (permalink / raw)
  To: kernelnewbies

(reminder just in case the email was missed!)

On Sat, Nov 03, 2018 at 02:16:53PM +0100, Aleix Roca Nonell wrote:
> On Sat, Nov 03, 2018 at 01:54:39PM +0100, Aleix Roca Nonell wrote:
> > Hi all!
> > 
> > In my attempt to write my first useful kernel patch, I'm tracking down
> > a possibly kernel regression on my laptop's wireless driver. I'm
> > trying to use git bisect to narrow down the problem and I'm having
> > trouble compiling a Linux kernel 4.14 from Linus tree in my Arch
> > Linux.
> > 
> > The error I'm getting is "Unsupported relocation type: R_X86_64_PLT32"
> > 
> > I have read about gcc enabling -fPIC by default from gcc-6 so I have
> > tried compiling with gcc-{8,7,5,4.9} with and without
> > "-fno-pic -no-pic" by running
> > 
> >   make CC="gcc-5 -fno-pic -no-pic"
> > 
> > with no luck. I was expecting those R_X86_64_PLT32 relocations not to
> > be generated with this options but there is something I have still not
> > understood.
> > 
> > I have been able to compile the kernel after applying greg's stable
> > tree patch [1] (and [2,3] for gcc-8) but the kernel refuses to boot.
> > 
> > Any help/comments on either the problem or the followed methodology will be
> > appreciated!
> > 
> > Thank you! :D
> > 
> > [1] - https://lore.kernel.org/patchwork/patch/892780/
> > [2] - https://lore.kernel.org/patchwork/patch/868613/
> > [3] - https://lore.kernel.org/patchwork/patch/934722/
> 
> Sorry, I meant "-fno-pie -no-pie" instead of "-fno-pic -no-pic"

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Unsupported relocation type: R_X86_64_PLT32
  2018-11-07  7:18   ` Aleix Roca Nonell
@ 2018-11-07  7:18     ` Aleix Roca Nonell
  2018-11-07 11:02     ` Shyam Saini
  1 sibling, 0 replies; 10+ messages in thread
From: Aleix Roca Nonell @ 2018-11-07  7:18 UTC (permalink / raw)
  To: Kernel Newbies Mailing List

(reminder just in case the email was missed!)

On Sat, Nov 03, 2018 at 02:16:53PM +0100, Aleix Roca Nonell wrote:
> On Sat, Nov 03, 2018 at 01:54:39PM +0100, Aleix Roca Nonell wrote:
> > Hi all!
> > 
> > In my attempt to write my first useful kernel patch, I'm tracking down
> > a possibly kernel regression on my laptop's wireless driver. I'm
> > trying to use git bisect to narrow down the problem and I'm having
> > trouble compiling a Linux kernel 4.14 from Linus tree in my Arch
> > Linux.
> > 
> > The error I'm getting is "Unsupported relocation type: R_X86_64_PLT32"
> > 
> > I have read about gcc enabling -fPIC by default from gcc-6 so I have
> > tried compiling with gcc-{8,7,5,4.9} with and without
> > "-fno-pic -no-pic" by running
> > 
> >   make CC="gcc-5 -fno-pic -no-pic"
> > 
> > with no luck. I was expecting those R_X86_64_PLT32 relocations not to
> > be generated with this options but there is something I have still not
> > understood.
> > 
> > I have been able to compile the kernel after applying greg's stable
> > tree patch [1] (and [2,3] for gcc-8) but the kernel refuses to boot.
> > 
> > Any help/comments on either the problem or the followed methodology will be
> > appreciated!
> > 
> > Thank you! :D
> > 
> > [1] - https://lore.kernel.org/patchwork/patch/892780/
> > [2] - https://lore.kernel.org/patchwork/patch/868613/
> > [3] - https://lore.kernel.org/patchwork/patch/934722/
> 
> Sorry, I meant "-fno-pie -no-pie" instead of "-fno-pic -no-pic"

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Unsupported relocation type: R_X86_64_PLT32
  2018-11-07  7:18   ` Aleix Roca Nonell
  2018-11-07  7:18     ` Aleix Roca Nonell
@ 2018-11-07 11:02     ` Shyam Saini
  2018-11-07 11:02       ` Shyam Saini
  2018-11-07 15:00       ` Aleix Roca Nonell
  1 sibling, 2 replies; 10+ messages in thread
From: Shyam Saini @ 2018-11-07 11:02 UTC (permalink / raw)
  To: kernelnewbies

Hi Aleix,

> (reminder just in case the email was missed!)

When you post queries/bug reports then you should always Cc
maintainers and subsystem specific
mailing lists.

You can can find maintainers and mailings lists by:
$ cd /path to your kernel source/
$ ./scripts/get_maintainer.pl /path to your wireless driver file


Thanks a lot,
Shyam

> On Sat, Nov 03, 2018 at 02:16:53PM +0100, Aleix Roca Nonell wrote:
> > On Sat, Nov 03, 2018 at 01:54:39PM +0100, Aleix Roca Nonell wrote:
> > > Hi all!
> > >
> > > In my attempt to write my first useful kernel patch, I'm tracking down
> > > a possibly kernel regression on my laptop's wireless driver. I'm
> > > trying to use git bisect to narrow down the problem and I'm having
> > > trouble compiling a Linux kernel 4.14 from Linus tree in my Arch
> > > Linux.
> > >
> > > The error I'm getting is "Unsupported relocation type: R_X86_64_PLT32"
> > >
> > > I have read about gcc enabling -fPIC by default from gcc-6 so I have
> > > tried compiling with gcc-{8,7,5,4.9} with and without
> > > "-fno-pic -no-pic" by running
> > >
> > >   make CC="gcc-5 -fno-pic -no-pic"
> > >
> > > with no luck. I was expecting those R_X86_64_PLT32 relocations not to
> > > be generated with this options but there is something I have still not
> > > understood.
> > >
> > > I have been able to compile the kernel after applying greg's stable
> > > tree patch [1] (and [2,3] for gcc-8) but the kernel refuses to boot.
> > >
> > > Any help/comments on either the problem or the followed methodology will be
> > > appreciated!
> > >
> > > Thank you! :D
> > >
> > > [1] - https://lore.kernel.org/patchwork/patch/892780/
> > > [2] - https://lore.kernel.org/patchwork/patch/868613/
> > > [3] - https://lore.kernel.org/patchwork/patch/934722/
> >
> > Sorry, I meant "-fno-pie -no-pie" instead of "-fno-pic -no-pic"
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Unsupported relocation type: R_X86_64_PLT32
  2018-11-07 11:02     ` Shyam Saini
@ 2018-11-07 11:02       ` Shyam Saini
  2018-11-07 15:00       ` Aleix Roca Nonell
  1 sibling, 0 replies; 10+ messages in thread
From: Shyam Saini @ 2018-11-07 11:02 UTC (permalink / raw)
  To: kernelrocks; +Cc: Kernelnewbies

Hi Aleix,

> (reminder just in case the email was missed!)

When you post queries/bug reports then you should always Cc
maintainers and subsystem specific
mailing lists.

You can can find maintainers and mailings lists by:
$ cd /path to your kernel source/
$ ./scripts/get_maintainer.pl /path to your wireless driver file


Thanks a lot,
Shyam

> On Sat, Nov 03, 2018 at 02:16:53PM +0100, Aleix Roca Nonell wrote:
> > On Sat, Nov 03, 2018 at 01:54:39PM +0100, Aleix Roca Nonell wrote:
> > > Hi all!
> > >
> > > In my attempt to write my first useful kernel patch, I'm tracking down
> > > a possibly kernel regression on my laptop's wireless driver. I'm
> > > trying to use git bisect to narrow down the problem and I'm having
> > > trouble compiling a Linux kernel 4.14 from Linus tree in my Arch
> > > Linux.
> > >
> > > The error I'm getting is "Unsupported relocation type: R_X86_64_PLT32"
> > >
> > > I have read about gcc enabling -fPIC by default from gcc-6 so I have
> > > tried compiling with gcc-{8,7,5,4.9} with and without
> > > "-fno-pic -no-pic" by running
> > >
> > >   make CC="gcc-5 -fno-pic -no-pic"
> > >
> > > with no luck. I was expecting those R_X86_64_PLT32 relocations not to
> > > be generated with this options but there is something I have still not
> > > understood.
> > >
> > > I have been able to compile the kernel after applying greg's stable
> > > tree patch [1] (and [2,3] for gcc-8) but the kernel refuses to boot.
> > >
> > > Any help/comments on either the problem or the followed methodology will be
> > > appreciated!
> > >
> > > Thank you! :D
> > >
> > > [1] - https://lore.kernel.org/patchwork/patch/892780/
> > > [2] - https://lore.kernel.org/patchwork/patch/868613/
> > > [3] - https://lore.kernel.org/patchwork/patch/934722/
> >
> > Sorry, I meant "-fno-pie -no-pie" instead of "-fno-pic -no-pic"
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Unsupported relocation type: R_X86_64_PLT32
  2018-11-07 11:02     ` Shyam Saini
  2018-11-07 11:02       ` Shyam Saini
@ 2018-11-07 15:00       ` Aleix Roca Nonell
  2018-11-07 15:00         ` Aleix Roca Nonell
  1 sibling, 1 reply; 10+ messages in thread
From: Aleix Roca Nonell @ 2018-11-07 15:00 UTC (permalink / raw)
  To: kernelnewbies

On Wed, Nov 07, 2018 at 04:32:36PM +0530, Shyam Saini wrote:
> Hi Aleix,
> 
> > (reminder just in case the email was missed!)
> 
> When you post queries/bug reports then you should always Cc
> maintainers and subsystem specific
> mailing lists.
> 
> You can can find maintainers and mailings lists by:
> $ cd /path to your kernel source/
> $ ./scripts/get_maintainer.pl /path to your wireless driver file

Hi Shyam,

Sorry, I think I have not made myself clear enough. The error that
doesn't let me sleep at night, 

> "Unsupported relocation type: R_X86_64_PLT32"

it is not related at all with my wireless driver. This error pops up
when compiling a Linux Kernel 4.14 from Linus tree with
gcc-{8,7,5,4.9}. The reason of why I'm compiling a linux kernel 4.14
is to identify a commit which introduced a possible regression in my
wireless driver.

To provide some more context, I'm adding the full compile report in
the following links:

Linux 4.14 (+ patches [2,3]) build with gcc-8.2.1
https://drive.google.com/open?id=1tg0iR3dirhW4MhU_3RXcNyvmiJ-j6nBy

Linux 4.14 vanilla build with gcc-4.9.4 
https://drive.google.com/open?id=1YJIpVc5VA1xpblQQxHSzrWhTArl5lTKQ

I have already spent too many hours in this detail, so any hint is welcomed :)

Thank you!

> [1] - https://lore.kernel.org/patchwork/patch/892780/
> [2] - https://lore.kernel.org/patchwork/patch/868613/
> [3] - https://lore.kernel.org/patchwork/patch/934722/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Unsupported relocation type: R_X86_64_PLT32
  2018-11-07 15:00       ` Aleix Roca Nonell
@ 2018-11-07 15:00         ` Aleix Roca Nonell
  0 siblings, 0 replies; 10+ messages in thread
From: Aleix Roca Nonell @ 2018-11-07 15:00 UTC (permalink / raw)
  To: Shyam Saini; +Cc: Kernelnewbies

On Wed, Nov 07, 2018 at 04:32:36PM +0530, Shyam Saini wrote:
> Hi Aleix,
> 
> > (reminder just in case the email was missed!)
> 
> When you post queries/bug reports then you should always Cc
> maintainers and subsystem specific
> mailing lists.
> 
> You can can find maintainers and mailings lists by:
> $ cd /path to your kernel source/
> $ ./scripts/get_maintainer.pl /path to your wireless driver file

Hi Shyam,

Sorry, I think I have not made myself clear enough. The error that
doesn't let me sleep at night, 

> "Unsupported relocation type: R_X86_64_PLT32"

it is not related at all with my wireless driver. This error pops up
when compiling a Linux Kernel 4.14 from Linus tree with
gcc-{8,7,5,4.9}. The reason of why I'm compiling a linux kernel 4.14
is to identify a commit which introduced a possible regression in my
wireless driver.

To provide some more context, I'm adding the full compile report in
the following links:

Linux 4.14 (+ patches [2,3]) build with gcc-8.2.1
https://drive.google.com/open?id=1tg0iR3dirhW4MhU_3RXcNyvmiJ-j6nBy

Linux 4.14 vanilla build with gcc-4.9.4 
https://drive.google.com/open?id=1YJIpVc5VA1xpblQQxHSzrWhTArl5lTKQ

I have already spent too many hours in this detail, so any hint is welcomed :)

Thank you!

> [1] - https://lore.kernel.org/patchwork/patch/892780/
> [2] - https://lore.kernel.org/patchwork/patch/868613/
> [3] - https://lore.kernel.org/patchwork/patch/934722/

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-11-07 15:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-03 12:54 Unsupported relocation type: R_X86_64_PLT32 Aleix Roca Nonell
2018-11-03 12:54 ` Aleix Roca Nonell
2018-11-03 13:16 ` Aleix Roca Nonell
2018-11-03 13:16   ` Aleix Roca Nonell
2018-11-07  7:18   ` Aleix Roca Nonell
2018-11-07  7:18     ` Aleix Roca Nonell
2018-11-07 11:02     ` Shyam Saini
2018-11-07 11:02       ` Shyam Saini
2018-11-07 15:00       ` Aleix Roca Nonell
2018-11-07 15:00         ` Aleix Roca Nonell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).