From owner-freebsd-arm@FreeBSD.ORG Fri Jan 9 22:30:57 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5EE0DDE9 for ; Fri, 9 Jan 2015 22:30:57 +0000 (UTC) Received: from mail-yh0-f50.google.com (mail-yh0-f50.google.com [209.85.213.50]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 19AF58CE for ; Fri, 9 Jan 2015 22:30:56 +0000 (UTC) Received: by mail-yh0-f50.google.com with SMTP id b6so5371861yha.9 for ; Fri, 09 Jan 2015 14:30:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=r+q6oX8QAE+FzzhgKqrC6zXaTpbVpZPk6iSPYRzdjoQ=; b=MEqY9lgJh7BqylCKHMDUynM4sBvrjs67WaBQNHZFOdRejZbjmL6b+hRhXLkNAfWoZG BIZyS6fK+G5dXlX4Go98wLNLRqb9AupkuaJz5jGDaNBubwbuhclwUH3STaj8d+CpMaok /m332brkXg+C+LNdei3zvVfjPFsW8SOnAh3xkQtoD05bcOdQIuM+38KBnNi5zuT9EKhX GRhcsKBneAIT3r0qLPgo6J2zoGS6JYt2azdGDLasl+eS6f6jIsDEtKlMHKk6DwSkc2tQ PN1INA7AoQpsXOSaDsjMlokEgQvBoWVKBP8Hd7i6/I4zFCInFXn3hVxUgChDLvP+YAvo c0tQ== X-Gm-Message-State: ALoCoQmX2VVmcksdIbqkR3PgkD4MtOlQv3/oecGLEQ/CaDvk7UEQ5P5P+0v/C+GMVgq1jEfRToqf X-Received: by 10.236.1.234 with SMTP id 70mr13393321yhd.64.1420842655336; Fri, 09 Jan 2015 14:30:55 -0800 (PST) Received: from [10.64.26.9] ([69.53.236.236]) by mx.google.com with ESMTPSA id k28sm5470988yhg.25.2015.01.09.14.30.53 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Jan 2015 14:30:54 -0800 (PST) Sender: Warner Losh Subject: Re: Issue with arm cross compiler xdev on FreeBSD 10.1 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: multipart/signed; boundary="Apple-Mail=_A23F4EAF-A658-4B6C-B530-E928724264C4"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b3 From: Warner Losh In-Reply-To: Date: Fri, 9 Jan 2015 15:30:51 -0700 Message-Id: References: To: Kai Noetzel X-Mailer: Apple Mail (2.1993) Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2015 22:30:57 -0000 --Apple-Mail=_A23F4EAF-A658-4B6C-B530-E928724264C4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Let=E2=80=99s get back to basics=E2=80=A6 can you do the following? make buildworld TARGET_ARCH=3Darmv6 WITHOUT_CLANG=3Dt = WITHOUT_CLANG_BOOTSTRAP=3Dt WITH_GCC=3Dt WITH_GCC_BOOTSTRAP=3Dt ???? Warner > On Jan 9, 2015, at 3:26 PM, Kai Noetzel wrote: >=20 > Hi, >=20 > I'm having issues trying to build the arm cross compiler on the = following > system: >=20 > root@bsdcompy:/usr/src # uname -a > FreeBSD bsdcompy 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov = 11 > 21:02:49 UTC 2014 > root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC > amd64 >=20 > I checked out: >=20 > svn co http://svn.freebsd.org/base/head /usr/src >=20 > When I run: >=20 > root@bsdcompy:/usr/src # make XDEV=3Darm XDEV_ARCH=3Darmv6 WITH_GCC=3D1 = xdev >=20 > I get the following error: >=20 > ...... > =3D=3D=3D> xdev lib/libelftc (obj,depend,all) > =3D=3D=3D> xdev usr.bin/addr2line (obj,depend,all) > cc -O2 -pipe > -I/usr/src/usr.bin/addr2line/../../contrib/elftoolchain/libelftc > -I/usr/src/usr.bin/addr2line/../../contrib/elftoolchain/common = -std=3Dgnu99 > -fstack-protector -Qunused-arguments -c > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:105:39: > error: passing 'Dwarf_Error' (aka 'struct _Dwarf_Error') to parameter = of > incompatible type 'Dwarf_Error *' (aka 'struct _Dwarf_Error *'); take = the > address > with & > warnx("dwarf_tag: %s", dwarf_errmsg(de)); > ^~ > & > /usr/include/libdwarf.h:122:39: note: passing argument to parameter = here > const char *dwarf_errmsg(Dwarf_Error *); > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:119:14: > error: use of undeclared identifier 'DW_DLV_ERROR' > if (ret =3D=3D DW_DLV_ERROR) > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:122:8: > warning: implicit declaration of function 'dwarf_formstring' is = invalid in > C99 [-Wimplicit-function-declaration] > if (dwarf_formstring(sub_at, &func0, &de)) > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:136:7: > warning: implicit declaration of function 'dwarf_global_formref' is = invalid > in C99 [-Wimplicit-function-declaration] > if (dwarf_global_formref(spec_at, &ref, &de)) > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:138:7: > warning: implicit declaration of function 'dwarf_offdie' is invalid in = C99 > [-Wimplicit-function-declaration] > if (dwarf_offdie(dbg, ref, &spec_die, &de)) > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:150:13: > error: use of undeclared identifier 'DW_DLV_ERROR' > if (ret =3D=3D DW_DLV_ERROR) > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:151:54: > error: passing 'Dwarf_Error' (aka 'struct _Dwarf_Error') to parameter = of > incompatible type 'Dwarf_Error *' (aka 'struct _Dwarf_Error *'); take = the > address > with & > errx(EXIT_FAILURE, "dwarf_child: %s", = dwarf_errmsg(de)); > ^~ > & > /usr/include/libdwarf.h:122:39: note: passing argument to parameter = here > const char *dwarf_errmsg(Dwarf_Error *); > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:157:13: > error: use of undeclared identifier 'DW_DLV_ERROR' > if (ret =3D=3D DW_DLV_ERROR) > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:158:58: > error: passing 'Dwarf_Error' (aka 'struct _Dwarf_Error') to parameter = of > incompatible type 'Dwarf_Error *' (aka 'struct _Dwarf_Error *'); take = the > address > with & > errx(EXIT_FAILURE, "dwarf_siblingof: %s", = dwarf_errmsg(de)); > = ^~ > = & > /usr/include/libdwarf.h:122:39: note: passing argument to parameter = here > const char *dwarf_errmsg(Dwarf_Error *); > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:189:22: > error: passing 'Dwarf_Error' (aka 'struct _Dwarf_Error') to parameter = of > incompatible type 'Dwarf_Error *' (aka 'struct _Dwarf_Error *'); take = the > address > with & > dwarf_errmsg(de)); > ^~ > & > /usr/include/libdwarf.h:122:39: note: passing argument to parameter = here > const char *dwarf_errmsg(Dwarf_Error *); > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:210:7: > warning: implicit declaration of function 'dwarf_srclines' is invalid = in > C99 [-Wimplicit-function-declaration] > if (dwarf_srclines(die, &lbuf, &lcount, &de) !=3D = DW_DLV_OK) { > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:211:45: > error: passing 'Dwarf_Error' (aka 'struct _Dwarf_Error') to parameter = of > incompatible type 'Dwarf_Error *' (aka 'struct _Dwarf_Error *'); take = the > address > with & > warnx("dwarf_srclines: %s", dwarf_errmsg(de)); > ^~ > & > /usr/include/libdwarf.h:122:39: note: passing argument to parameter = here > const char *dwarf_errmsg(Dwarf_Error *); > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:219:8: > warning: implicit declaration of function 'dwarf_lineaddr' is invalid = in > C99 [-Wimplicit-function-declaration] > if (dwarf_lineaddr(lbuf[i], &lineaddr, &de)) { > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:221:22: > error: passing 'Dwarf_Error' (aka 'struct _Dwarf_Error') to parameter = of > incompatible type 'Dwarf_Error *' (aka 'struct _Dwarf_Error *'); take = the > address > with & > dwarf_errmsg(de)); > ^~ > & > /usr/include/libdwarf.h:122:39: note: passing argument to parameter = here > const char *dwarf_errmsg(Dwarf_Error *); > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:224:8: > warning: implicit declaration of function 'dwarf_lineno' is invalid in = C99 > [-Wimplicit-function-declaration] > if (dwarf_lineno(lbuf[i], &lineno, &de)) { > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:226:22: > error: passing 'Dwarf_Error' (aka 'struct _Dwarf_Error') to parameter = of > incompatible type 'Dwarf_Error *' (aka 'struct _Dwarf_Error *'); take = the > address > with & > dwarf_errmsg(de)); > ^~ > & > /usr/include/libdwarf.h:122:39: note: passing argument to parameter = here > const char *dwarf_errmsg(Dwarf_Error *); > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:229:8: > warning: implicit declaration of function 'dwarf_linesrc' is invalid = in C99 > [-Wimplicit-function-declaration] > if (dwarf_linesrc(lbuf[i], &file0, &de)) { > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:231:22: > error: passing 'Dwarf_Error' (aka 'struct _Dwarf_Error') to parameter = of > incompatible type 'Dwarf_Error *' (aka 'struct _Dwarf_Error *'); take = the > address > with & > dwarf_errmsg(de)); > ^~ > & > /usr/include/libdwarf.h:122:39: note: passing argument to parameter = here > const char *dwarf_errmsg(Dwarf_Error *); > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:269:14: > error: use of undeclared identifier 'DW_DLV_ERROR' > if (ret =3D=3D DW_DLV_ERROR) > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:271:21: > error: passing 'Dwarf_Error' (aka 'struct _Dwarf_Error') to parameter = of > incompatible type 'Dwarf_Error *' (aka 'struct _Dwarf_Error *'); take = the > address > with & > dwarf_errmsg(de)); > ^~ > & > /usr/include/libdwarf.h:122:39: note: passing argument to parameter = here > const char *dwarf_errmsg(Dwarf_Error *); > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:387:46: > error: too many arguments to function call, expected 4, have 6 > if (dwarf_init(fd, DW_DLC_READ, NULL, NULL, &dbg, &de)) > ~~~~~~~~~~ ^~~~~~~~~ > /usr/include/libdwarf.h:144:1: note: 'dwarf_init' declared here > int dwarf_init(int, int, Dwarf_Debug *, Dwarf_Error *); > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:388:53: > error: passing 'Dwarf_Error' (aka 'struct _Dwarf_Error') to parameter = of > incompatible type 'Dwarf_Error *' (aka 'struct _Dwarf_Error *'); take = the > address > with & > errx(EXIT_FAILURE, "dwarf_init: %s", dwarf_errmsg(de)); > ^~ > & > /usr/include/libdwarf.h:122:39: note: passing argument to parameter = here > const char *dwarf_errmsg(Dwarf_Error *); > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:390:6: > warning: implicit declaration of function 'dwarf_get_elf' is invalid = in C99 > [-Wimplicit-function-declaration] > if (dwarf_get_elf(dbg, &e, &de) !=3D DW_DLV_OK) > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:391:56: > error: passing 'Dwarf_Error' (aka 'struct _Dwarf_Error') to parameter = of > incompatible type 'Dwarf_Error *' (aka 'struct _Dwarf_Error *'); take = the > address > with & > errx(EXIT_FAILURE, "dwarf_get_elf: %s", = dwarf_errmsg(de)); > ^~ > & > /usr/include/libdwarf.h:122:39: note: passing argument to parameter = here > const char *dwarf_errmsg(Dwarf_Error *); > ^ > = /usr/src/usr.bin/addr2line/../../contrib/elftoolchain/addr2line/addr2line.= c:407:15: > warning: incompatible pointer types passing 'Dwarf_Debug' (aka 'struct > _Dwarf_Debug *') to parameter of type 'Dwarf_Debug *' > (aka 'struct _Dwarf_Debug **'); take the address with & > [-Wincompatible-pointer-types] > dwarf_finish(dbg, &de); > ^~~ > & > /usr/include/libdwarf.h:141:32: note: passing argument to parameter = here > int dwarf_finish(Dwarf_Debug *, Dwarf_Error *); > ^ > 9 warnings and 16 errors generated. > *** Error code 1 >=20 > Stop. > make[2]: stopped in /usr/src/usr.bin/addr2line > *** Error code 1 >=20 > Stop. > make[1]: stopped in /usr/src > *** Error code 1 >=20 > Stop. > make: stopped in /usr/src >=20 > Would be great if someone could take a look. > Thanks in advance. >=20 > Best, > Kai > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" --Apple-Mail=_A23F4EAF-A658-4B6C-B530-E928724264C4 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJUsFacAAoJEGwc0Sh9sBEA4jgP/i73n9WiMBQXo3E0VS33uaFV VhznvtTcYE8oE9G4LnVuGyv7ZRUGjgUcugnbtipiTeqqDzQnvcRl+OIHIrfcMQtE LpaforQ9dsbktf1pxjW9xhVm8aHcUeo+UYQCe5UD6Y9VfjFvPBHC4rKb4MZBmbaR QLPEYtUNIezi2F6sXPAdp5RDmpShotDCK4htqoFld3WncnrEW6ycVnjA2371L55m 6TLnupkchuncMoTA6BqmFNbWCeNyepydHeD8SLxz3jV8a1AfYa8QoaTnjm2nlMiB zOLvKJ1YZfuQWHkXkobwCelvxLJRfyUMZ7OFhRR9NPtoEjNYsQ1+0v57fG6Qg8iv zIXrW/B1VKNbdjWXpff9hxYzYy7DTDO9G4PDkIWiEcWido/gHgjp8IN/tiUmLwzC j4X+6/+tyeM/ye6rvPWJRN1PdXHOZhBMCKw3lMkBYYR/TPSwKsUIuYbl1x/BkWlm FwWeJIcJNiG3Gz6dftlJfnH3ek9Dtn2X2SYhQyWNovGepq7Ss8Te/GdFSnUTZr83 hrJV22XPZlLBHqtpf5MVmXjaUW8yzcEUVFoYe7hOkc/4DQ3Kgbq5I30ZMdwNoOOL YEsSkKazekyVb9cTSU1N4wtuawKxgLDD/fRc7A/NNUzwiqrbPA13Rg4b5lJvWcPR qDQu0/E/XUF8VzlaoZ2u =atE+ -----END PGP SIGNATURE----- --Apple-Mail=_A23F4EAF-A658-4B6C-B530-E928724264C4--