Re: [Xenomai] Won`t build on new Debian Stable

2017-11-09 Thread Jan Kiszka
On 2017-11-09 10:38, Philippe Gerum wrote: > On 10/19/2017 06:55 PM, Henning Schild wrote: >> On Thu, 19 Oct 2017 12:03:33 +0200 >> Philippe Gerum wrote: >> >>> On 10/13/2017 01:36 PM, Norbert Lange wrote: I works, because collect2 (the "compiler driver", which documents

Re: [Xenomai] Won`t build on new Debian Stable

2017-11-09 Thread Philippe Gerum
On 10/19/2017 06:55 PM, Henning Schild wrote: > On Thu, 19 Oct 2017 12:03:33 +0200 > Philippe Gerum wrote: > >> On 10/13/2017 01:36 PM, Norbert Lange wrote: >>> I works, because collect2 (the "compiler driver", which documents >>> the -r option) now knows about the -r flag,

Re: [Xenomai] Won`t build on new Debian Stable

2017-10-19 Thread Philippe Gerum
On 10/19/2017 06:55 PM, Henning Schild wrote: > On Thu, 19 Oct 2017 12:03:33 +0200 > Philippe Gerum wrote: > >> On 10/13/2017 01:36 PM, Norbert Lange wrote: >>> I works, because collect2 (the "compiler driver", which documents >>> the -r option) now knows about the -r flag,

Re: [Xenomai] Won`t build on new Debian Stable

2017-10-19 Thread Henning Schild
On Thu, 19 Oct 2017 12:03:33 +0200 Philippe Gerum wrote: > On 10/13/2017 01:36 PM, Norbert Lange wrote: > > I works, because collect2 (the "compiler driver", which documents > > the -r option) now knows about the -r flag, using -Wl,-[U]r would > > mean the flags aren't even

Re: [Xenomai] Won`t build on new Debian Stable

2017-10-19 Thread Philippe Gerum
On 10/19/2017 01:32 PM, Lange Norbert wrote: > Hello, > >> I don't know the original intent about passing -Ur to the linker, except > >maybe to stick to the ld manpage which states that the last partial link > >command should be given such option. > > I understand that differently, you can't

Re: [Xenomai] Won`t build on new Debian Stable

2017-10-19 Thread Philippe Gerum
On 10/13/2017 01:36 PM, Norbert Lange wrote: > I works, because collect2 (the "compiler driver", which documents the > -r option) now knows about the -r flag, using -Wl,-[U]r would mean the > flags aren't even looked at. > It can then disable functionality that is not supposed to be done at > this

Re: [Xenomai] Won`t build on new Debian Stable

2017-10-13 Thread Norbert Lange
Sorry, wrong file attached. 2017-10-13 13:36 GMT+02:00 Norbert Lange : > I works, because collect2 (the "compiler driver", which documents the > -r option) now knows about the -r flag, using -Wl,-[U]r would mean the > flags aren't even looked at. > It can then disable

Re: [Xenomai] Won`t build on new Debian Stable

2017-10-13 Thread Norbert Lange
I works, because collect2 (the "compiler driver", which documents the -r option) now knows about the -r flag, using -Wl,-[U]r would mean the flags aren't even looked at. It can then disable functionality that is not supposed to be done at this point (see gcc/collect2.c, search for 'early_exit').

Re: [Xenomai] Won`t build on new Debian Stable

2017-10-13 Thread Henning Schild
Am Fri, 13 Oct 2017 11:37:30 +0200 schrieb Norbert Lange : > Actually your idea of just adding -r would work aswell, and looks > cleaner and more robust to me. Ok, in that case it would still be nice to understand why it works and what "-r" does to gcc. If you like that

Re: [Xenomai] Won`t build on new Debian Stable

2017-10-13 Thread Norbert Lange
Actually your idea of just adding -r would work aswell, and looks cleaner and more robust to me. I started with the wrong ideas because of the usual POSIX argument parsing like "tar -xzf file.tar.gz" being interpreted as "tar -x -z -f file.tar.gz". 2017-10-13 11:31 GMT+02:00 Henning Schild

Re: [Xenomai] Won`t build on new Debian Stable

2017-10-13 Thread Henning Schild
That looks good to me. Henning Am Fri, 13 Oct 2017 10:38:26 +0200 schrieb Norbert Lange : > Second attempt at fixing it, you could surely make this more complex > using autohell but I am not going there. > > If I understood correctly this script is only necessary if the >

Re: [Xenomai] Won`t build on new Debian Stable

2017-10-13 Thread Henning Schild
Am Fri, 13 Oct 2017 09:13:27 +0200 schrieb Norbert Lange : > Hello, > > I tracked down the source of information to this: > https://wiki.ubuntu.com/SecurityTeam/PIE Ok here they suggest to invoke gcc with "-r", which seems to be a hidden undocumemted feature. > I changed

Re: [Xenomai] Won`t build on new Debian Stable

2017-10-13 Thread Henning Schild
Am Fri, 13 Oct 2017 09:40:54 +0200 schrieb Norbert Lange : > Ok I just realized there is a "-Ur" option, aside from "-U -r". In the docs of ld there is _only_ "-Ur", "-U" is not there and "-r" is not in the docs of gcc. Also when looking at "--help -v". Henning > You get

Re: [Xenomai] Won`t build on new Debian Stable

2017-10-13 Thread Norbert Lange
Second attempt at fixing it, you could surely make this more complex using autohell but I am not going there. If I understood correctly this script is only necessary if the application is linked -static? Means I would try to avoid using it, aslong I dont explicitly want to do that. Kind regards,

Re: [Xenomai] Won`t build on new Debian Stable

2017-10-13 Thread Norbert Lange
Ok I just realized there is a "-Ur" option, aside from "-U -r". You get alot otherwise undocumented flags with "gcc --help -v" BTW 2017-10-13 9:13 GMT+02:00 Norbert Lange : > Hello, > > I tracked down the source of information to this: >

Re: [Xenomai] Won`t build on new Debian Stable

2017-10-13 Thread Norbert Lange
Hello, I tracked down the source of information to this: https://wiki.ubuntu.com/SecurityTeam/PIE I changed the flags from "-Wl,-Ur" to "-Wl,-U -r", so you wont get an explanation from me, why -U has to be passed for the linker. And by the way, gcc accepts -U aswell, so this might be preferable

Re: [Xenomai] Won`t build on new Debian Stable

2017-10-12 Thread Henning Schild
Hey Norbert, thanks for looking into that again! Could you please explain how and why that works, or point out what to look at in flint? Mailing list thread, commit, something like that. As far as i can see gcc now gets a "-r" which i do not find in the manpage. And ld gets a "-U" which i do not

Re: [Xenomai] Won`t build on new Debian Stable

2017-10-10 Thread Norbert Lange
Some highly trivial fix attached! Its strange that this flag is not documented in the manual (I found out abaout this fix from https://launchpad.net/ubuntu/+source/flint) Norbert Lange 2017-08-10 11:49 GMT+02:00 Henning Schild : > Hi Norbert, > > Thanks! In fact that

Re: [Xenomai] Won`t build on new Debian Stable

2017-08-10 Thread Henning Schild
Hi Norbert, Thanks! In fact that issue has come up before and a similar workaround was described. It should be fixed, patches welcome! Henning Am Wed, 9 Aug 2017 16:21:02 +0200 schrieb Norbert Lange : > Hello, > > Building the xenomai package won`t work because debian now

[Xenomai] Won`t build on new Debian Stable

2017-08-10 Thread Norbert Lange
Hello, Building the xenomai package won`t work because debian now defaults to using pie, and the linker will complain with "ld: -r and -pie may not be used together" A workaround for now is to add the flags manually: ../xenomai-3.0.5/configure LDFLAGS=-no-pie CFLAGS="-fno-PIE -fno-pie -no-pie"