Re: LDC compiler snap issues on 14.04 (ABI compatibility?)
On 16/02/17 05:10, Sergio Schvezov wrote: I'll check your snap first thing once I am at a computer again. From experience with classic confinement though, stage-packages to provide runnables are most of the time the root cause. There was discusssion on having ld set --library-path in be core snap to have called binaries not reach out to the system and get confused. Just to follow up on this: I was able to rebuild the package using snapcraft 2.27 and `cleanbuild`, and as far as I can tell the result works on 14.04 without a hitch. So thank you for all the great work here! :-) I have an outstanding issue with a linker plugin included in the snap, but that supports an optional feature and I didn't expect it to work with 14.04. In any case I'll follow up on that in a separate thread once I have a clearer picture of exactly what might be the problem. Thanks again & best wishes, -- Joe -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
Re: LDC compiler snap issues on 14.04 (ABI compatibility?)
El miércoles, 15 de febrero de 2017 20h'09:36 ART, Joseph Rushton Wakelingescribió: On 11/02/17 17:31, Joseph Rushton Wakeling wrote: I just reproduced the issue in a VirtualBox install of 14.04 to get these details. Kernel report in kern.log: Feb 11 17:16:19 vb1404 kernel: [ 534.781526] traps: gcc[6209] general protection ip:7f6632d1b1ee sp:7fff0a09e2f0 error:0 in libc-2.23.so[7f6632bd8000+1bf000] And `dmesg | grep -i gcc` gave this output: [0.00] Linux version 4.4.0-62-generic (buildd@lcy01-33) (gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) ) #83~14.04.1-Ubuntu SMP Wed Jan 18 18:10:30 UTC 2017 (Ubuntu 4.4.0-62.83~14.04.1-generic 4.4.40) [ 534.781526] traps: gcc[6209] general protection ip:7f6632d1b1ee sp:7fff0a09e2f0 error:0 in libc-2.23.so[7f6632bd8000+1bf000] This may give enough information for someone to suggest the next step. I'm not very experienced at interpreting these kinds of messages, but if I understand right they would suggest a libc compatibility issue ... ? Folks, could I ping on the above? It seems like a rather severe limitation on the universality of the package (at a minimum it probably restricts the package to working on systems with the same or later libc) so I'm curious if anyone has any thoughts on if and how this could be ameliorated. I'll check your snap first thing once I am at a computer again. From experience with classic confinement though, stage-packages to provide runnables are most of the time the root cause. There was discusssion on having ld set --library-path in be core snap to have called binaries not reach out to the system and get confused. Zygmunt, any update on that? -- Enviado con Dekko desde mi dispositivo Ubuntu -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
Re: LDC compiler snap issues on 14.04 (ABI compatibility?)
jamie, any insights? /manik On Wed, Feb 15, 2017 at 3:09 PM, Joseph Rushton Wakeling < joseph.wakel...@webdrake.net> wrote: > On 11/02/17 17:31, Joseph Rushton Wakeling wrote: > >> I just reproduced the issue in a VirtualBox install of 14.04 to get these >> details. Kernel report in kern.log: >> >> Feb 11 17:16:19 vb1404 kernel: [ 534.781526] traps: gcc[6209] general >> protection ip:7f6632d1b1ee sp:7fff0a09e2f0 error:0 in >> libc-2.23.so[7f6632bd8000+1bf000] >> >> And `dmesg | grep -i gcc` gave this output: >> >> [0.00] Linux version 4.4.0-62-generic (buildd@lcy01-33) (gcc >> version >> 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) ) #83~14.04.1-Ubuntu SMP Wed Jan 18 >> 18:10:30 UTC 2017 (Ubuntu 4.4.0-62.83~14.04.1-generic 4.4.40) >> [ 534.781526] traps: gcc[6209] general protection ip:7f6632d1b1ee >> sp:7fff0a09e2f0 error:0 in libc-2.23.so[7f6632bd8000+1bf000] >> >> This may give enough information for someone to suggest the next step. >>> >> >> I'm not very experienced at interpreting these kinds of messages, but if I >> understand right they would suggest a libc compatibility issue ... ? >> > > Folks, could I ping on the above? > > It seems like a rather severe limitation on the universality of the > package (at a minimum it probably restricts the package to working on > systems with the same or later libc) so I'm curious if anyone has any > thoughts on if and how this could be ameliorated. > > > -- > Snapcraft mailing list > Snapcraft@lists.snapcraft.io > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm > an/listinfo/snapcraft > -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
Re: LDC compiler snap issues on 14.04 (ABI compatibility?)
On 11/02/17 17:31, Joseph Rushton Wakeling wrote: I just reproduced the issue in a VirtualBox install of 14.04 to get these details. Kernel report in kern.log: Feb 11 17:16:19 vb1404 kernel: [ 534.781526] traps: gcc[6209] general protection ip:7f6632d1b1ee sp:7fff0a09e2f0 error:0 in libc-2.23.so[7f6632bd8000+1bf000] And `dmesg | grep -i gcc` gave this output: [0.00] Linux version 4.4.0-62-generic (buildd@lcy01-33) (gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) ) #83~14.04.1-Ubuntu SMP Wed Jan 18 18:10:30 UTC 2017 (Ubuntu 4.4.0-62.83~14.04.1-generic 4.4.40) [ 534.781526] traps: gcc[6209] general protection ip:7f6632d1b1ee sp:7fff0a09e2f0 error:0 in libc-2.23.so[7f6632bd8000+1bf000] This may give enough information for someone to suggest the next step. I'm not very experienced at interpreting these kinds of messages, but if I understand right they would suggest a libc compatibility issue ... ? Folks, could I ping on the above? It seems like a rather severe limitation on the universality of the package (at a minimum it probably restricts the package to working on systems with the same or later libc) so I'm curious if anyone has any thoughts on if and how this could be ameliorated. -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
Re: LDC compiler snap issues on 14.04 (ABI compatibility?)
On 11/02/17 17:31, Joseph Rushton Wakeling wrote: And `dmesg | grep -i gcc` gave this output: Slightly more detailed dmesg output from `dmesg | grep -e "gcc" -e "ldc2"`: [0.00] Linux version 4.4.0-62-generic (buildd@lcy01-33) (gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) ) #83~14.04.1-Ubuntu SMP Wed Jan 18 18:10:30 UTC 2017 (Ubuntu 4.4.0-62.83~14.04.1-generic 4.4.40) [ 249.403368] audit: type=1400 audit(1486829494.212:33): apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap.ldc2.ldc-profdata" pid=5600 comm="apparmor_parser" [ 249.409009] audit: type=1400 audit(1486829494.220:34): apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap.ldc2.ldc-prune-cache" pid=5602 comm="apparmor_parser" [ 249.413008] audit: type=1400 audit(1486829494.220:35): apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap.ldc2.ldc2" pid=5604 comm="apparmor_parser" [ 249.426591] audit: type=1400 audit(1486829494.240:36): apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap.ldc2.ldmd2" pid=5606 comm="apparmor_parser" [ 534.781526] traps: gcc[6209] general protection ip:7f6632d1b1ee sp:7fff0a09e2f0 error:0 in libc-2.23.so[7f6632bd8000+1bf000] -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
Re: LDC compiler snap issues on 14.04 (ABI compatibility?)
On 11/02/17 00:48, Seth Arnold wrote: Hi Joe, can you grab the dmesg output that might include DENIED lines as well as the kernel's segfault report? Sure -- thanks for the thought! :-) I just reproduced the issue in a VirtualBox install of 14.04 to get these details. Kernel report in kern.log: Feb 11 17:16:19 vb1404 kernel: [ 534.781526] traps: gcc[6209] general protection ip:7f6632d1b1ee sp:7fff0a09e2f0 error:0 in libc-2.23.so[7f6632bd8000+1bf000] And `dmesg | grep -i gcc` gave this output: [0.00] Linux version 4.4.0-62-generic (buildd@lcy01-33) (gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) ) #83~14.04.1-Ubuntu SMP Wed Jan 18 18:10:30 UTC 2017 (Ubuntu 4.4.0-62.83~14.04.1-generic 4.4.40) [ 534.781526] traps: gcc[6209] general protection ip:7f6632d1b1ee sp:7fff0a09e2f0 error:0 in libc-2.23.so[7f6632bd8000+1bf000] This may give enough information for someone to suggest the next step. I'm not very experienced at interpreting these kinds of messages, but if I understand right they would suggest a libc compatibility issue ... ? Thanks & best wishes, -- Joe -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
Re: LDC compiler snap issues on 14.04 (ABI compatibility?)
On Fri, Feb 10, 2017 at 09:41:52PM +0100, Joseph Rushton Wakeling wrote: > Attempting to compile this program resulted in a segfault in GCC (which LDC > invokes in order to link programs). [...] > Anyway, does anyone have any thoughts? Hi Joe, can you grab the dmesg output that might include DENIED lines as well as the kernel's segfault report? This may give enough information for someone to suggest the next step. Thanks signature.asc Description: PGP signature -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
Re: LDC compiler snap issues on 14.04 (ABI compatibility?)
On 10/02/17 21:41, Joseph Rushton Wakeling wrote: Running `ldc -v` for verbose output, the precise call that segfaulted was: /usr/bin/gcc hello.o -o hello -L/snap/ldc2/3/bin/../lib -lphobos2-ldc -ldruntime-ldc -Wl,--gc-sections -lrt -ldl -lpthread -lm -m64 My suspicion is that that `libphobos2-ldc` and `libdruntime-ldc`, which are provided as precompiled static libraries in the snap package, are not ABI compatible with 14.04, hence the segfault. For the avoidance of doubt: none of the other linked libraries are provided in the snap itself, only libdruntime-ldc and libphobos2-ldc. -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft