Current-Users archive

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

Re: MKPIE breaks build



On Wed, Oct 15, 2008 at 2:05 PM, Christos Zoulas 
<christos%astron.com@localhost> wrote:
> In article 
> <d70139200810142105s3f8d01dfl942366a2c51f15a4%mail.gmail.com@localhost>,
> Mecislav Salar <mecislavsalar%googlemail.com@localhost> wrote:
>>good day
>>
>>i have read mk.conf(8) man page.
>>
>>i would like to use this feature PIE (Position Independent
>>Executables). but building the important libc seems to break on a ld
>>error
>>
>>collect2: ld returned 1 exit status
>
> What was the error before that line?
>
> christos
>
>

sorry, made me miss it

#     build  libc/libc.so.12.163
rm -f libc.so.12.163
/usr/obj/tooldir.NetBSD-x86_64/bin/x86_64--netbsd-gcc -nodefaultlibs
-Wl,-nostdlib -B/usr/obj/destdir.amd64/usr/lib/
-B/usr/obj/destdir.amd64/usr/lib/
-Wl,-rpath-link,/usr/obj/destdir.amd64/lib:/usr/obj/destdir.amd64/usr/lib
 -R/lib  -L/usr/obj/destdir.amd64/lib  -Wl,-x -shared
-Wl,-soname,libc.so.12 -Wl,--warn-shared-textrel -Wl,-z,initfirst
-Wl,--fatal-warnings -Wl,-pie -shared-libgcc  -o libc.so.12.163
-Wl,--whole-archive libc_pic.a  -Wl,--no-whole-archive  -lgcc_pic
-L/usr/obj/destdir.amd64/usr/lib
libc_pic.a(gets_chk.so): In function `__gets_chk':
gets_chk.c:(.text+0x2c): warning: warning: this program uses gets(),
which is unsafe.
libc_pic.a(compat_getmntinfo.so): In function `_getmntinfo':
compat_getmntinfo.c:(.text+0x1e): warning: warning: reference to
obsolete getfsstat(); use getvfsstat()
libc_pic.a(compat___fts13.so): In function `__fts_close13':
compat___fts13.c:(.text+0x27c): warning: warning: reference to
compatibility __stat13(); include <sys/stat.h> to generate correct
reference
compat___fts13.c:(.text+0x3b7): warning: warning: reference to
compatibility __fstat13(); include <sys/stat.h> to generate correct
reference
compat___fts13.c:(.text+0x294): warning: warning: reference to
compatibility __lstat13(); include <sys/stat.h> to generate correct
reference
libc_pic.a(compat_glob.so): In function `_globfree':
compat_glob.c:(.text+0x3c2): warning: warning: reference to
compatibility stat(); include <sys/stat.h> to generate correct
reference
libc_pic.a(compat_fts.so): In function `_fts_close':
compat_fts.c:(.text+0x39c): warning: warning: reference to
compatibility fstat(); include <sys/stat.h> to generate correct
reference
libc_pic.a(compat_glob.so): In function `_globfree':
compat_glob.c:(.text+0x357): warning: warning: reference to
compatibility lstat(); include <sys/stat.h> to generate correct
reference
collect2: ld returned 1 exit status

*** Failed target:  libc.so.12.163
*** Failed command:
/usr/obj/tooldir.NetBSD-x86_64/bin/x86_64--netbsd-gcc -nodefaultlibs
-Wl,-nostdlib -B/usr/obj/destdir.amd64/usr/lib/
-B/usr/obj/destdir.amd64/usr/lib/
-Wl,-rpath-link,/usr/obj/destdir.amd64/lib:/usr/obj/destdir.amd64/usr/lib
-R/lib -L/usr/obj/destdir.amd64/lib -Wl,-x -shared
-Wl,-soname,libc.so.12 -Wl,--warn-shared-textrel -Wl,-z,initfirst
-Wl,--fatal-warnings -Wl,-pie -shared-libgcc -o libc.so.12.163
-Wl,--whole-archive libc_pic.a -Wl,--no-whole-archive -lgcc_pic
-L/usr/obj/destdir.amd64/usr/lib
*** Error code 1

Stop.
nbmake: stopped in /usr/src/lib/libc

*** Failed target:  dependall
*** Failed command: cd /usr/src/lib/libc;
/usr/obj/tooldir.NetBSD-x86_64/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/lib/libc

*** Failed target:  do-lib-libc
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)
this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}"
;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with:
$@)}"; cd "${real}" && /usr/obj/tooldir.NetBSD-x86_64/bin/nbmake
_THISDIR_="${this}" "$@" ${target}; }; _makedirtarget lib/libc
dependall
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  build
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)
this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}"
;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with:
$@)}"; cd "${real}" && /usr/obj/tooldir.NetBSD-x86_64/bin/nbmake
_THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . do-lib-libc
*** Error code 1

Stop.
nbmake: stopped in /usr/src

ERROR: Failed to make build
*** BUILD ABORTED ***


Home | Main Index | Thread Index | Old Index