NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-arm/45520: -pie broken, breaks some pkgsrc builds.

>Number:         45520
>Category:       port-arm
>Synopsis:       execution of pie is broken, resulting in some broken pkgs
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-arm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 25 08:00:00 +0000 2011
>Originator:     Ignatios Souvatzis
>Release:        NetBSD 5.1
seal your e-mail:
System: NetBSD marie 5.1 NetBSD 5.1 (MARIE) #0: Wed Jan 5 20:52:48 CET 2011 
ignatios@random87:/var/itch/obj/shark/sys/arch/shark/compile/MARIE shark
Architecture: arm
Machine: shark
PIE executables on ARM get SIGABORT.
Try to build print/cups - it uses -pie in a lot of places, including
a helper program called "mantohtml" which is further used to translate
documentation, and results in aborts. Faster test:
% cat hello.c
int main() {
        write(1, "hello\n", 6);
        return 0;
% cat Makefile

.include <>

test: hello
% make test
#   compile  hello/hello.o
cc -pie   -Werror      -c    hello.c
#      link  hello/hello
cc     -pie      -o hello  hello.o          -Wl,-rpath-link,/lib  -L/lib 
-Wl,-rpath-link,/usr/lib  -L/usr/lib
*** Signal 6

make: stopped in /home/is/ctest/hello
make: stopped in /home/is/ctest/hello
        Workaround might be to remove -pie everywhere.


Home | Main Index | Thread Index | Old Index