Re: two buildworld problems

From: Alexander Best <alexbestms_at_uni-muenster.de>
Date: Mon, 14 Jun 2010 12:01:18 +0200
On Mon, Jun 14, 2010 at 6:58 AM, Ed Schouten <ed_at_80386.nl> wrote:
> * Alexander Best <alexbestms_at_uni-muenster.de> wrote:
>> CC=gcc44
>> CXX=g++44
>> CPP=cpp44
>
> 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/gcc44)
CC = /usr/local/bin/gcc44
CXX = /usr/local/bin/g++44
CPP = /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=native
-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=native
-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_skey.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=S[ii]=ROTATE_l32(k,3);^M
^[[0;1;32m                        ^~~~~~~~~~~~~~~^M
^[[0m/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rc5/rc5_skey.c:122:22:
note: instantiated from:^M
                A=S[ii]=ROTATE_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=L[jj]=ROTATE_l32(k,m);^M
^[[0;1;32m                        ^~~~~~~~~~~~~~~^M
^[[0m/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rc5/rc5_skey.c:125:22:
note: instantiated from:^M
                B=L[jj]=ROTATE_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


>
> --
>  Ed Schouten <ed_at_80386.nl>
>  WWW: http://80386.nl/
>



-- 
Alexander Best
Received on Mon Jun 14 2010 - 08:01:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:04 UTC