From owner-freebsd-ppc@freebsd.org Thu Oct 19 05:55:57 2017 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C62B1E2B5D0 for ; Thu, 19 Oct 2017 05:55:57 +0000 (UTC) (envelope-from t_nguy28@uni-muenster.de) Received: from zivm-wwu3.uni-muenster.de (ZIVM-WWU3-1.UNI-MUENSTER.DE [128.176.192.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "zivm-wwu.uni-muenster.de", Issuer "Zertifizierungsstelle Universitaet Muenster - G02" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 337F27FD51 for ; Thu, 19 Oct 2017 05:55:56 +0000 (UTC) (envelope-from t_nguy28@uni-muenster.de) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2BXuwBdPehZ/0sVsIBdHgYMg18qgSiDV?= =?us-ascii?q?oVYhRSPNzwDBgUBBYElARCCbAGKcwyIO4IThT8EhQBKDQECAQEBAQEBAWsoQg6?= =?us-ascii?q?FDoFMMYYng38NmziSOItUgy+CB4EJizKFKAWBLQEBoBIIAQGBCZVfAYllhzeXL?= =?us-ascii?q?E0KgVs0ISaBboFUggsBAQgBAQEBAYJGPoNIhRSCRAEBAQ?= X-IPAS-Result: =?us-ascii?q?A2BXuwBdPehZ/0sVsIBdHgYMg18qgSiDVoVYhRSPNzwDBgU?= =?us-ascii?q?BBYElARCCbAGKcwyIO4IThT8EhQBKDQECAQEBAQEBAWsoQg6FDoFMMYYng38Nm?= =?us-ascii?q?ziSOItUgy+CB4EJizKFKAWBLQEBoBIIAQGBCZVfAYllhzeXLE0KgVs0ISaBboF?= =?us-ascii?q?UggsBAQgBAQEBAYJGPoNIhRSCRAEBAQ?= X-IronPort-AV: E=Sophos;i="5.43,400,1503352800"; d="scan'208";a="140799792" Received: from udc2web45.uni-muenster.de ([128.176.21.75]) by zivm-relay3.uni-muenster.de with ESMTP; 19 Oct 2017 07:54:45 +0200 Received: by udc2web45.uni-muenster.de (Postfix, from userid 10086344) id 538D310DD2A; Thu, 19 Oct 2017 07:54:45 +0200 (CEST) Date: Thu, 19 Oct 2017 07:54:44 +0200 (CEST) From: Thaison Nguyen Organization: Westfaelische Wilhelms-Universitaet Muenster Subject: libc++ on FreeBSD-11.1 powerpc32 To: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Oct 2017 05:55:57 -0000 Hi, I have successfully compiled llvm50 on my ibook G4 using the latest stable = release of FreeBSD. Anyhow i could not make use of it yet as it cannot find libc++. I cannot install it through ports, too because the port has been deleted re= cently. What am i doing wrong here? Greetings, TN From owner-freebsd-ppc@freebsd.org Fri Oct 20 08:20:50 2017 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 70664E52A7C for ; Fri, 20 Oct 2017 08:20:50 +0000 (UTC) (envelope-from devel@stasyan.com) Received: from mx.providersolutions.ru (mx.providersolutions.ru [89.253.252.22]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BE59F6D159 for ; Fri, 20 Oct 2017 08:20:48 +0000 (UTC) (envelope-from devel@stasyan.com) Received: (qmail 3164 invoked from network); 20 Oct 2017 08:20:43 -0000 Received: from unknown (HELO ox01.rsnx.ru) (devel@stasyan.com@[89.253.252.37]) by 89.253.252.22 with ESMTPSA (RC4-MD5 encrypted, authenticated); 20 Oct 2017 08:20:43 -0000 Date: Fri, 20 Oct 2017 16:20:43 +0800 (KRAT) From: Stas Timokhin Reply-To: Stas Timokhin To: freebsd-ppc@freebsd.org Message-ID: <671328634.10514.1508487643910.JavaMail.open-xchange@ox01.rsnx.ru> Subject: problem with loading kernel modules during booting in powerpc32 MIME-Version: 1.0 X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v6.20.7-Rev3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Oct 2017 08:20:50 -0000 Hello ! Some modules aren't loaded during boot via /boot/loader.conf (but some are OK), but there are warning message for all of them: > loading required module 'kernel' module 'kernel' exists but with wrong version > Here is my /boot/loader.conf: ipfw_load="YES" cuse_load="YES" netgraph_load="YES" ng_socket_load="YES" ng_ether_load="YES" ng_iface_load="YES" ng_ipfw_load="YES" ng_tag_load="YES" ng_bpf_load="YES" And kldstat afer booting: Id Refs Address Size Name 1 10 0x100000 fab7ac kernel 2 1 0x10ad000 17f98 cuse.ko 3 1 0xd17ae000 44000 ipfw.ko 4 1 0xd17f4000 15000 ng_socket.ko 5 2 0xd1809000 20000 netgraph.ko 6 1 0xd1855000 13000 ng_bpf.ko So you can see that some modules are loading properly but some aren't. Loading any module after booting via command kldstat are successful. FreeBSD 11.1-RELEASE powerpc32, hardware mini mac G4. From owner-freebsd-ppc@freebsd.org Fri Oct 20 13:54:21 2017 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 40C42E360DA for ; Fri, 20 Oct 2017 13:54:21 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-it0-x22e.google.com (mail-it0-x22e.google.com [IPv6:2607:f8b0:4001:c0b::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F1F3076FCC for ; Fri, 20 Oct 2017 13:54:20 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by mail-it0-x22e.google.com with SMTP id r127so13484063itb.5 for ; Fri, 20 Oct 2017 06:54:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=cc:message-id:from:to:in-reply-to:content-transfer-encoding :mime-version:subject:date:references; bh=Sy4rwT96pMS2L/ViUD4S/hZcwRGxFOLgSPYsValDdts=; b=ESZkVx5ZO0fo7OwZ4ulLOhx+0aZMM+zabvyBJWuTv7cAvo+WUz7YOv2HlLhs/lowYT zrm5euA9Tow4JVA14iatmdID/aszfCkMFqvmiDx/H4UFtiPa6r6FNiJyBhXfbbUmpwJm G/aJm4ieiPg5LthngqQnKS0ppl6pljnz4yzdkp9I+xgysjBmP7RJrP+sM1wU1l1Mo35l ELZHHdwHuPBIhmUP1urtR0F/iv61aqfgHwcmCCocop1cdcaKKsp753YGvWgRgdkS4NR7 TD9CylyvAQjPc0S4nKLNcxgZ3BCrszMIPWnGtqAN50e9wVz1Whco3E/RFoaBIlZg4Qoa BGpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:message-id:from:to:in-reply-to :content-transfer-encoding:mime-version:subject:date:references; bh=Sy4rwT96pMS2L/ViUD4S/hZcwRGxFOLgSPYsValDdts=; b=fUhPllsgH5tg4Hn677XfEg5JrB73ON0EySoAWExLcPeNwcY0SBSFfGaOhsUlaqPQVr sj6SqU9REO2BNuP1cTdSBngKY6ydSXKA0xTOLLeZ1KnIar7bNFDszqBV29yWFl9qLxWb HvGhqmpweOsSGBI/Q1RmkqhfPu0DjWQvJ78Zw2LZzZWcRJZLmkHbAl0XrO7n5t44MMDd moPHJP1pDs10i4I1rlhwUcV77H4aynv/M3pNHXTFJXrKqUXsdl2On5Qea9eFNAn5Oqs8 gbl8+pPsIJh0/hBFLqCfGbVk6tqyg9N79xK2ha/V/CP97hyKqEgZL6d2mwrDxwIIxPfr 29FQ== X-Gm-Message-State: AMCzsaVGxwdHreJxVsQdKOA9hz/2gKrmcMmMOZxuBpVnZERCdDaZPRER swcn6teqiHp2+b0Ou6wTLGNEBg== X-Google-Smtp-Source: ABhQp+TSpbpDNGpoCMlYzRSrkohdYV4GnR8vUu+xOtJBy3Bb0h/AzA9wp8na8nD+4Tg+jMhJwSHV2w== X-Received: by 10.36.3.202 with SMTP id e193mr2629738ite.108.1508507659911; Fri, 20 Oct 2017 06:54:19 -0700 (PDT) Received: from Triad.knownspace (173-18-191-193.client.mchsi.com. [173.18.191.193]) by smtp.gmail.com with ESMTPSA id f16sm364497ioi.30.2017.10.20.06.54.18 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 20 Oct 2017 06:54:18 -0700 (PDT) Cc: Message-Id: <50D12563-0F4D-4E4C-905D-D95D68C5AEBF@gmail.com> From: Justin Hibbits To: Thaison Nguyen In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: libc++ on FreeBSD-11.1 powerpc32 Date: Fri, 20 Oct 2017 08:54:17 -0500 References: X-Mailer: Apple Mail (2.936) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Oct 2017 13:54:21 -0000 On Oct 19, 2017, at 12:54 AM, Thaison Nguyen wrote: > Hi, > I have successfully compiled llvm50 on my ibook G4 using the latest > stable release of FreeBSD. > > Anyhow i could not make use of it yet as it cannot find libc++. > I cannot install it through ports, too because the port has been > deleted recently. > > What am i doing wrong here? > > Greetings, > TN Hi, Unfortunately right now libc++ isn't built for powerpc (neither 32 nor 64). Why is llvm50 looking for libc++? Do you have a test case I can try with? The hope is that soon (in time for FreeBSD 12 to branch) we'll have a full clang world+kernel for all powerpc targets, so this should eventually be resolved naturally. That said, as part of our goal for driving FreeBSD forward we want to also move to a modern toolchain regardless, which can include migrating to an external GCC if needed. This will also allow us to build libc++ as part of base. Long story short -- libc++ isn't in base for powerpc right now, but should be in the not-too-distant future. - Justin From owner-freebsd-ppc@freebsd.org Fri Oct 20 20:40:29 2017 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 77FD9E3F677 for ; Fri, 20 Oct 2017 20:40:29 +0000 (UTC) (envelope-from t_nguy28@uni-muenster.de) Received: from zivm-wwu3.uni-muenster.de (ZIVM-WWU3-1.UNI-MUENSTER.DE [128.176.192.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "zivm-wwu.uni-muenster.de", Issuer "Zertifizierungsstelle Universitaet Muenster - G02" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D3B6664C9C for ; Fri, 20 Oct 2017 20:40:27 +0000 (UTC) (envelope-from t_nguy28@uni-muenster.de) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2BwCADoXepZ/0oVsIBcGQEBAQEBAQEBA?= =?us-ascii?q?QEBBwEBAQEBg19kbieJB5RSPAMBAQEBAQEGgSoFDYg9hTCITYIBIguESU8ChDt?= =?us-ascii?q?DFAECAQEBAQEBAWsohR0BAQEBAgEBATgNByALBRYOBAZPBgEEBRgOBgEHBwQBH?= =?us-ascii?q?ASFc4IHA4FqAwgFCBCtRIM+g34Ng1kBAQgBAQEBASODLoIHgQmCMIMqgl6BdAE?= =?us-ascii?q?RAgECHIV1BYEtAQGIZokkjWoyCAEBgQmGWocFgRCHDl2FHINXhzqNCoopNiFCQ?= =?us-ascii?q?Vg0ISZdgRGBUwmCUxyBaT42CIgSgkQBAQE?= X-IPAS-Result: =?us-ascii?q?A2BwCADoXepZ/0oVsIBcGQEBAQEBAQEBAQEBBwEBAQEBg19?= =?us-ascii?q?kbieJB5RSPAMBAQEBAQEGgSoFDYg9hTCITYIBIguESU8ChDtDFAECAQEBAQEBA?= =?us-ascii?q?WsohR0BAQEBAgEBATgNByALBRYOBAZPBgEEBRgOBgEHBwQBHASFc4IHA4FqAwg?= =?us-ascii?q?FCBCtRIM+g34Ng1kBAQgBAQEBASODLoIHgQmCMIMqgl6BdAERAgECHIV1BYEtA?= =?us-ascii?q?QGIZokkjWoyCAEBgQmGWocFgRCHDl2FHINXhzqNCoopNiFCQVg0ISZdgRGBUwm?= =?us-ascii?q?CUxyBaT42CIgSgkQBAQE?= X-IronPort-AV: E=Sophos;i="5.43,408,1503352800"; d="scan'208";a="140971198" Received: from udc2web44.uni-muenster.de ([128.176.21.74]) by zivm-relay3.uni-muenster.de with ESMTP; 20 Oct 2017 22:40:18 +0200 Received: by udc2web44.uni-muenster.de (Postfix, from userid 10086344) id 754CAD34F2; Fri, 20 Oct 2017 22:40:18 +0200 (CEST) Date: Fri, 20 Oct 2017 22:40:17 +0200 (CEST) From: Thaison Nguyen Organization: Westfaelische Wilhelms-Universitaet Muenster Subject: Re: libc++ on FreeBSD-11.1 powerpc32 To: Joe Nosay , Justin Hibbits Cc: FreeBSD PowerPC ML Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Oct 2017 20:40:29 -0000 Hi, The issue was that i couldn't build portupgrade using clang50.=20 While compiling libtiff it was looking for the iostream library which he co= uldnt find. The reason for this could be the missing libc++. I will add the log to the end of the email. @joe: By compiling from sources are you meaning to build world, or meaning = the sources of libc++? Greets, Thaison Nguyen =3D=3D=3D> License BSD3CLAUSE accepted by the user =3D=3D=3D> portupgrade-2.4.15,2 depends on file: /usr/local/sbin/pkg - fo= und =3D=3D=3D> Fetching all distfiles required by portupgrade-2.4.15,2 for buil= ding =3D=3D=3D> Extracting for portupgrade-2.4.15,2 =3D> SHA256 Checksum OK for portupgrade/freebsd-portupgrade-2.4.15_GH0.tar= =2Egz. =3D=3D=3D> portupgrade-2.4.15,2 depends on file: /usr/local/bin/ruby23 - = not found =3D=3D=3D> ruby-2.3.5,1 depends on package: libffi>=3D0 - found =3D=3D=3D> ruby-2.3.5,1 depends on package: doxygen>=3D1.8.13,2 - not fou= nd =3D=3D=3D> doxygen-1.8.13,2 depends on executable: dot - not found =3D=3D=3D> graphviz-2.40.1_2 depends on executable: bison - found =3D=3D=3D> graphviz-2.40.1_2 depends on executable: gmake - found =3D=3D=3D> graphviz-2.40.1_2 depends on package: pkgconf>=3D1.3.0_1 - fou= nd =3D=3D=3D> graphviz-2.40.1_2 depends on executable: msgfmt - found =3D=3D=3D> graphviz-2.40.1_2 depends on package: ghostscript9-agpl-base>= =3D9.16_2 - not found =3D=3D=3D> ghostscript9-agpl-base-9.16_5 depends on executable: autoconf-= 2.69 - found =3D=3D=3D> ghostscript9-agpl-base-9.16_5 depends on executable: autoheade= r-2.69 - found =3D=3D=3D> ghostscript9-agpl-base-9.16_5 depends on executable: autorecon= f-2.69 - found =3D=3D=3D> ghostscript9-agpl-base-9.16_5 depends on executable: aclocal-1= =2E15 - found =3D=3D=3D> ghostscript9-agpl-base-9.16_5 depends on executable: automake-= 1.15 - found =3D=3D=3D> ghostscript9-agpl-base-9.16_5 depends on executable: gmake - f= ound =3D=3D=3D> ghostscript9-agpl-base-9.16_5 depends on package: pkgconf>=3D1= =2E3.0_1 - found =3D=3D=3D> ghostscript9-agpl-base-9.16_5 depends on shared library: libex= pat.so - found (/usr/local/lib/libexpat.so) =3D=3D=3D> ghostscript9-agpl-base-9.16_5 depends on shared library: libfr= eetype.so - found (/usr/local/lib/libfreetype.so) =3D=3D=3D> ghostscript9-agpl-base-9.16_5 depends on shared library: libid= n.so - found (/usr/local/lib/libidn.so) =3D=3D=3D> ghostscript9-agpl-base-9.16_5 depends on shared library: libjb= ig2dec.so - found (/usr/local/lib/libjbig2dec.so) =3D=3D=3D> ghostscript9-agpl-base-9.16_5 depends on shared library: liblc= ms2.so - not found =3D=3D=3D> lcms2-2.8 depends on shared library: libtiff.so - not found =3D=3D=3D> Building for tiff-4.0.8 Making all in port Making all in libtiff /usr/bin/make all-am /bin/sh ../libtool --tag=3DCXX --mode=3Dcompile clang++50 -DHAVE_CONFIG= _H -I. -I/usr/local/include -O2 -pipe -fno-strict-aliasing -MT tif_str= eam.lo -MD -MP -MF .deps/tif_stream.Tpo -c -o tif_stream.lo tif_stream.cxx libtool: compile: clang++50 -DHAVE_CONFIG_H -I. -I/usr/local/include -O2 -= pipe -fno-strict-aliasing -MT tif_stream.lo -MD -MP -MF .deps/tif_stream.Tp= o -c tif_stream.cxx -fPIC -DPIC -o .libs/tif_stream.o tif_stream.cxx:31:10: fatal error: 'iostream' file not found #include ^~~~~~~~~~ 1 error generated. *** [tif_stream.lo] Error code 1 make[16]: stopped in /usr/ports/graphics/tiff/work/tiff-4.0.8/libtiff 1 error make[16]: stopped in /usr/ports/graphics/tiff/work/tiff-4.0.8/libtiff *** [all] Error code 2 make[15]: stopped in /usr/ports/graphics/tiff/work/tiff-4.0.8/libtiff 1 error make[15]: stopped in /usr/ports/graphics/tiff/work/tiff-4.0.8/libtiff *** [all-recursive] Error code 1 make[14]: stopped in /usr/ports/graphics/tiff/work/tiff-4.0.8 make[14]: stopped in /usr/ports/graphics/tiff/work/tiff-4.0.8 =3D=3D=3D> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure = to the maintainer. *** Error code 1 Stop. make[13]: stopped in /usr/ports/graphics/tiff *** Error code 1 Stop. make[12]: stopped in /usr/ports/graphics/tiff *** Error code 1 Stop. make[11]: stopped in /usr/ports/graphics/lcms2 *** Error code 1 Stop. make[10]: stopped in /usr/ports/graphics/lcms2 *** Error code 1 Stop. make[9]: stopped in /usr/ports/print/ghostscript9-agpl-base *** Error code 1 Stop. make[8]: stopped in /usr/ports/print/ghostscript9-agpl-base *** Error code 1 Stop. make[7]: stopped in /usr/ports/graphics/graphviz *** Error code 1 Stop. make[6]: stopped in /usr/ports/graphics/graphviz *** Error code 1 Stop. make[5]: stopped in /usr/ports/devel/doxygen *** Error code 1 Stop. make[4]: stopped in /usr/ports/devel/doxygen *** Error code 1 Stop. make[3]: stopped in /usr/ports/lang/ruby23 *** Error code 1 Stop. make[2]: stopped in /usr/ports/lang/ruby23 *** Error code 1 Stop. make[1]: stopped in /usr/ports/ports-mgmt/portupgrade *** Error code 1 Stop. make: stopped in /usr/ports/ports-mgmt/portupgrade Joe Nosay schrieb am 2017-10-20: > Justin and the FreeBSD-PPC mailing list will bounce my reply; so, please > reply with my reply to both the list and Justin. > Justin and others, from my experience of working with the POWER and other > architectures, it is in best practice to encourage people to build from > source within a folder or sub-level of /usr/home|/home . > This will allow the libc++ to be part of the ports collection with a test= ed > environment of the POWER architecture. > It is also possible to build libc++ for other architectures as well. > On Fri, Oct 20, 2017 at 9:54 AM, Justin Hibbits > wrote: > > On Oct 19, 2017, at 12:54 AM, Thaison Nguyen wrote: > > > > Hi, > >> I have successfully compiled llvm50 on my ibook G4 using the latest > >> stable release of FreeBSD. > >> > >> Anyhow i could not make use of it yet as it cannot find libc++. > >> I cannot install it through ports, too because the port has been delet= ed > >> recently. > >> > >> What am i doing wrong here? > >> > >> Greetings, > >> TN > >> > > > > Hi, > > > > Unfortunately right now libc++ isn't built for powerpc (neither 32 nor > > 64). Why is llvm50 looking for libc++? Do you have a test case I can = try > > with? > > > > The hope is that soon (in time for FreeBSD 12 to branch) we'll have a f= ull > > clang world+kernel for all powerpc targets, so this should eventually b= e > > resolved naturally. That said, as part of our goal for driving FreeBSD > > forward we want to also move to a modern toolchain regardless, which ca= n > > include migrating to an external GCC if needed. This will also allow u= s to > > build libc++ as part of base. > > > > Long story short -- libc++ isn't in base for powerpc right now, but sho= uld > > be in the not-too-distant future. > > > > - Justin > > > > > > _______________________________________________ > > freebsd-ppc@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-ppc > > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" > > From owner-freebsd-ppc@freebsd.org Fri Oct 20 22:09:51 2017 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CCCB4E41717 for ; Fri, 20 Oct 2017 22:09:51 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-161.reflexion.net [208.70.211.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7398D67D74 for ; Fri, 20 Oct 2017 22:09:51 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 2749 invoked from network); 20 Oct 2017 22:09:49 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 20 Oct 2017 22:09:49 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Fri, 20 Oct 2017 18:09:49 -0400 (EDT) Received: (qmail 19464 invoked from network); 20 Oct 2017 22:09:48 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 20 Oct 2017 22:09:48 -0000 Received: from [192.168.1.25] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 2E2F4EC8B8D; Fri, 20 Oct 2017 15:09:48 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: libc++ on FreeBSD-11.1 powerpc32 From: Mark Millard In-Reply-To: Date: Fri, 20 Oct 2017 15:09:47 -0700 Cc: Joe Nosay , Justin Hibbits , FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: <14969DC7-E72B-4912-A4CE-014F9DB92FE0@dsl-only.net> References: To: Thaison Nguyen X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Oct 2017 22:09:51 -0000 On 2017-Oct-20, at 1:40 PM, Thaison Nguyen = wrote: > . . . > /bin/sh ../libtool --tag=3DCXX --mode=3Dcompile clang++50 = -DHAVE_CONFIG_H -I. -I/usr/local/include -O2 -pipe = -fno-strict-aliasing -MT tif_stream.lo -MD -MP -MF .deps/tif_stream.Tpo = -c -o tif_stream.lo tif_stream.cxx > libtool: compile: clang++50 -DHAVE_CONFIG_H -I. -I/usr/local/include = -O2 -pipe -fno-strict-aliasing -MT tif_stream.lo -MD -MP -MF = .deps/tif_stream.Tpo -c tif_stream.cxx -fPIC -DPIC -o = .libs/tif_stream.o > tif_stream.cxx:31:10: fatal error: 'iostream' file not found > #include > ^~~~~~~~~~ > 1 error generated. > *** [tif_stream.lo] Error code 1 > . . . It looks to me that, even if iostream from either libc++ or libstdc++ was present, the: -I. -I/usr/local/include would not normally be sufficient for finding the libc++ or libstdc++ related headers in the system headers (using amd64 as an example here, so, libc++): # find /usr/include/ -name iostream -print | more /usr/include/c++/v1/tr1/iostream /usr/include/c++/v1/iostream As for a gcc 4.2.1 based powerpc buildworld and its (old) libstdc++ (the below is from a cross build environment, not on powerpc itself): # find /usr/obj/DESTDIRs/gcc421-powerpc-installworld -name iostream = -print | more = =20 = /usr/obj/DESTDIRs/gcc421-powerpc-installworld/usr/include/c++/4.2/iostream= So, again, the -I usage looks insufficient for finding the C++ headers involved: -I/usr/include/c++/4.2 would find the system iostream file in this older context. You might be able to use the system libstdc++ and its headers if you can get the proper options to the compiles and links in your port builds. (This is not a type of experiment that I've done.) As I remember clang has a -stdlib=3Dlibstdc++ option and a -stdlib=3Dlibc++ option but I've never tried the non-default -stdlib=3Dlibstdc++ option and I do not know just what it is supposed to do differently than the default -stdlib=3Dlibc++ option. Going in a different direction. . . As far as I know there is no FreeBSD port that includes libc++ sources to build. Nor do any supply libstdc++ source to independently build as far as I know. If those are correct then you would be on your own for building and using either library independent of the system implementation of one or the other. Just FYI: Using lang/gcc7 as an example of its path to its own installed iostream file: # find /usr/local/ -name iostream -print | more = = =20 /usr/local/lib/gcc7/include/c++/iostream So again the C++ specific path would not be just . . ./include/ . This is a fairly general property for finding C++ headers and the detailed paths vary from library implementation to library implementation. =3D=3D=3D Mark Millard markmi at dsl-only.net