Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jun 2010 12:01:18 +0200
From:      Alexander Best <alexbestms@uni-muenster.de>
To:        Ed Schouten <ed@80386.nl>
Cc:        Doug Barton <dougb@freebsd.org>, freebsd-current@freebsd.org
Subject:   Re: two buildworld problems
Message-ID:  <AANLkTin23T4PzrHACiZl_2_vAhxUFF7NvsQdExfAiYFY@mail.gmail.com>
In-Reply-To: <20100614045806.GI1797@hoeg.nl>
References:  <AANLkTinchxOQRJ8qsfS1VDcnALSi1L06dl8W4GMSj20b@mail.gmail.com> <20100613214600.GH1797@hoeg.nl> <AANLkTinJUs_xoahBmllzr3SdNiz7aGxWAxHLhzIz-9dL@mail.gmail.com> <4C156384.40105@FreeBSD.org> <AANLkTinrNId0q3So3N04uxnIexL2xMH6Nna-YanIOBRS@mail.gmail.com> <4C1569B9.9060804@FreeBSD.org> <AANLkTimbj9GkWFDXC_I135bGdJHsn1XGsN7CQe22f3Sh@mail.gmail.com> <20100614045806.GI1797@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 14, 2010 at 6:58 AM, Ed Schouten <ed@80386.nl> wrote:
> * Alexander Best <alexbestms@uni-muenster.de> wrote:
>> CC=3Dgcc44
>> CXX=3Dg++44
>> CPP=3Dcpp44
>
> As I mentioned before, "gcc44" and "/usr/local/bin/gcc44" are spelled
> differently.

yes, but the point is: i don't want gcc44 to be used at all during
buildworld/buildkernel. so even if buildworld/buildkernel are chaging
$PATH it shouldn't cause any problems because both targets should
never use gcc44. i changed the values of CC/CXX/CPP like you suggested
however because somewhere else (apart from /usr/src) $PATH might get
changed somehow. what i'm now trying to do in order to having
everything being built with gcc44 expect buildworld and buildkernel is
this (in make.conf):

.if !target(buildworld) && !target(buildkernel) && exists(/usr/local/bin/gc=
c44)
CC =3D /usr/local/bin/gcc44
CXX =3D /usr/local/bin/g++44
CPP =3D /usr/local/bin/cpp44
.endif

i'm just running buildworld to see if it works.

cheers.
alex

btw: making 'buildworld' with clang also failed when CXX was set to
'clang++' (CCC/CPP remained being set to 'clang'). here's the output:

clang -O2 -pipe -fno-strict-aliasing -funroll-loops -march=3Dnative
-DTERMIOS -DANSI_SOURCE
-I/usr/src/secure/lib/libcrypto/../../../crypto/openssl
-I/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto
-I/usr/obj/usr/src/secure/lib/libcrypto -DOPENSSL_THREADS -DDSO_DLF
clang: warning: argument unused during compilation: '-funroll-loops'^M
clang -O2 -pipe -fno-strict-aliasing -funroll-loops -march=3Dnative
-DTERMIOS -DANSI_SOURCE
-I/usr/src/secure/lib/libcrypto/../../../crypto/openssl
-I/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto
-I/usr/obj/usr/src/secure/lib/libcrypto -DOPENSSL_THREADS -DDSO_DLF
clang: warning: argument unused during compilation: '-funroll-loops'^M
^[[1m/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rc5/rc5_s=
key.c:122:11:
^[[0m^[[0;1;31merror: ^[[0m^[[1munsupported inline asm: input with
type 'unsigned long' matching output with type 'unsigned int'^M
^[[0m                A=3DS[ii]=3DROTATE_l32(k,3);^M
^[[0;1;32m                        ^~~~~~~~~~~~~~~^M
^[[0m/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rc5/rc5_s=
key.c:122:22:
note: instantiated from:^M
                A=3DS[ii]=3DROTATE_l32(k,3);^M
^[[0;1;32m                                   ^^M
^[[0m^[[1m/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rc5/=
rc5_skey.c:125:11:
^[[0m^[[0;1;31merror: ^[[0m^[[1munsupported inline asm: input with
type 'unsigned long' matching output with type 'unsigned int'^M
^[[0m                B=3DL[jj]=3DROTATE_l32(k,m);^M
^[[0;1;32m                        ^~~~~~~~~~~~~~~^M
^[[0m/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rc5/rc5_s=
key.c:125:22:
note: instantiated from:^M
                B=3DL[jj]=3DROTATE_l32(k,m);^M
^[[0;1;32m                                   ^^M
^[[0m2 errors generated.^M
*** Error code 1^M
^M
Stop in /usr/src/secure/lib/libcrypto.^M
*** Error code 1^M
^M
Stop in /usr/src.^M
*** Error code 1^M
^M
Stop in /usr/src.^M
*** Error code 1^M
^M
Stop in /usr/src.^M
*** Error code 1^M
^M
Stop in /usr/src.^M


>
> --
> =A0Ed Schouten <ed@80386.nl>
> =A0WWW: http://80386.nl/
>



--=20
Alexander Best



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTin23T4PzrHACiZl_2_vAhxUFF7NvsQdExfAiYFY>