Current-Users archive

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

[libc] collect2: ld returned 1 exit status



hello

i seem to have problem compiling current sources. here is excerpt from the log

do-lib-libc ===> .
dependall ===> lib/libc
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+0x277): warning: warning: reference to
compatibility __stat13(); include <sys/stat.h> to generate correct
reference
compat___fts13.c:(.text+0x3b2): warning: warning: reference to
compatibility __fstat13(); include <sys/stat.h> to generate correct
reference
compat___fts13.c:(.text+0x28f): 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+0x397): 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 ***

the mk.conf

COMMONFLAGS     = -pipe -Os

COPTS += ${COMMONFLAGS}
CFLAGS  += ${COMMONFLAGS}
CXXFLAGS += ${COMMONFLAGS}

WARNS = 0 # quell problems

TOOLDIR = /usr/obj/tooldir.NetBSD-${MACHINE_ARCH}

MAKEVERBOSE = 0
MKUPDATE = yes

MKATF = no
MKCVS = no
MKIPFILTER = no
MKGDB = no
MKHESIOD = no
MKHTML = no
MKISCSI = yes
MKLDAP = yes
MKMANZ = yes
MKMODULAR = yes
MKNVI = yes
MKPCC = no
MKPCCCMDS = no
MKPIE = yes
MKPUFFS = yes
MKTEST = no
MKX11 = no
MKXORG = no
MKYP = no

USE_SSP = yes

with command

./build.sh -O /usr/obj build

also, can I share /usr/obj with different archs?

sorry for my english

mecislav


Home | Main Index | Thread Index | Old Index