Re: [PATCH] um: Fix compile failure due to current_text_address() definition

2016-11-16 Thread Richard Weinberger
Keno, On 16.11.2016 04:45, Keno Fischer wrote: > Just as an FYI, the linker bug has been fixed in binutils. Interesting. Is the same bug also the root cause why a static build of UML does not work? Thanks, //richard

Re: [PATCH] um: Fix compile failure due to current_text_address() definition

2016-11-15 Thread Keno Fischer
Just as an FYI, the linker bug has been fixed in binutils. On Fri, Nov 11, 2016 at 5:07 PM, Richard Weinberger wrote: > On 11.11.2016 22:03, Keno Fischer wrote: >> Did you have CONFIG_INET set? I'm attaching my full .config. This is >> on vanilla Ubuntu 16.10. > > Yes, CONFIG_INET is set. Let my

Re: [PATCH] um: Fix compile failure due to current_text_address() definition

2016-11-11 Thread Richard Weinberger
On 11.11.2016 22:03, Keno Fischer wrote: > Did you have CONFIG_INET set? I'm attaching my full .config. This is > on vanilla Ubuntu 16.10. Yes, CONFIG_INET is set. Let my try on Ubuntu. ;-\ > I did see the same error when building with `CONFIG_STATIC_LINK=y`. > Note that I also, separately, ran i

Re: [PATCH] um: Fix compile failure due to current_text_address() definition

2016-11-11 Thread Keno Fischer
Did you have CONFIG_INET set? I'm attaching my full .config. This is on vanilla Ubuntu 16.10. I did see the same error when building with `CONFIG_STATIC_LINK=y`. Note that I also, separately, ran into a linker problem, though I believe it is unrelated to this patch (though perhaps is related to the

Re: [PATCH] um: Fix compile failure due to current_text_address() definition

2016-11-11 Thread Richard Weinberger
Keno, On 10.11.2016 02:53, Keno Fischer wrote: > Fixes the following link error: > ``` > /usr/bin/ld: net/built-in.o: relocation R_X86_64_32S against `.text' > can not be used when making a shared object; recompile with -fPIC > ``` How and where do you trigger this? I had a chat with Sebastian an

Re: [PATCH] um: Fix compile failure due to current_text_address() definition

2016-11-10 Thread Keno Fischer
On Thu, Nov 10, 2016 at 3:19 PM, Richard Weinberger wrote: > Can you please reply to Sebastian's patch series and explain him how you > trigger > that error? > I don't have a gcc broken by Debian on my machine right now. I'm not sure how to reply to his patch series directly since I'm not subscr

Re: [PATCH] um: Fix compile failure due to current_text_address() definition

2016-11-10 Thread Richard Weinberger
Keno, On 10.11.2016 21:14, Keno Fischer wrote: > Yes Can you please reply to Sebastian's patch series and explain him how you trigger that error? I don't have a gcc broken by Debian on my machine right now. > On Thu, Nov 10, 2016 at 3:14 PM, Richard Weinberger wrote: >> Keno, >> >> On 10.11.201

Re: [PATCH] um: Fix compile failure due to current_text_address() definition

2016-11-10 Thread Keno Fischer
Yes On Thu, Nov 10, 2016 at 3:14 PM, Richard Weinberger wrote: > Keno, > > On 10.11.2016 21:10, Keno Fischer wrote: >>> The problem is ready being solved in a generic way: >>> http://marc.info/?l=linux-kernel&m=147828481602561&w=2 >>> >>> Can you please give this patch a try? >> >> No dice. After

Re: [PATCH] um: Fix compile failure due to current_text_address() definition

2016-11-10 Thread Richard Weinberger
Keno, On 10.11.2016 21:10, Keno Fischer wrote: >> The problem is ready being solved in a generic way: >> http://marc.info/?l=linux-kernel&m=147828481602561&w=2 >> >> Can you please give this patch a try? > > No dice. After backing out my patch and applying that one I get: > > /usr/bin/ld: error:

Re: [PATCH] um: Fix compile failure due to current_text_address() definition

2016-11-10 Thread Keno Fischer
> The problem is ready being solved in a generic way: > http://marc.info/?l=linux-kernel&m=147828481602561&w=2 > > Can you please give this patch a try? No dice. After backing out my patch and applying that one I get: /usr/bin/ld: error: net/built-in.o: requires unsupported dynamic reloc 11; reco

Re: [PATCH] um: Fix compile failure due to current_text_address() definition

2016-11-10 Thread Richard Weinberger
Keno, On 10.11.2016 02:53, Keno Fischer wrote: > Fixes the following link error: > ``` > /usr/bin/ld: net/built-in.o: relocation R_X86_64_32S against `.text' > can not be used when making a shared object; recompile with -fPIC > ``` > > This is the same definition used on some other architectures.