Re: two buildworld problems

From: Alexander Best <alexbestms_at_uni-muenster.de>
Date: Mon, 14 Jun 2010 12:44:46 +0200
On Mon, Jun 14, 2010 at 12:05 PM, Roman Divacky <rdivacky_at_freebsd.org> wrote:
> On Sun, Jun 13, 2010 at 10:28:23PM +0200, Alexander Best wrote:
>> hi there. i'm experiencing two problems during buildworld. i'm not
>> sure if these are the result of me doing weird stuff or a problem in
>> the src structure:
>>
>> 1. i have the following in my make.conf:
>>
>> .if empty(.CURDIR:M/usr/src/*) && empty(.CURDIR:M/usr/obj/*) &&
>> exists(/usr/local/bin/gcc44)
>> CC = gcc44
>> CXX = g++44
>> CPP = cpp44
>> .endif
>
> you may want to reverse the condition, ie.
>
> .if !empty(.CURDIR:M/usr/ports/*)

yeah i had something like that in my make.conf beforehand. the problem
was however that this would only use gcc44 when 'make' was run in the
ports directory. however i want make to ALWAYS use gcc44 apart from
/usr/src.

I think this solution works quite well now:

.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

so here're the results:

1. (buildworld without CC/CXX/CPP set in src.conf) => suceeds.

2. (buildworld with CC=gcc CXX=g++ CPP=cpp in src.conf)

mkdep -f .depend -a    -I/usr/src/lib/csu/i386-elf/../common
-I/usr/src/lib/csu/i386-elf/../../libc/include
/usr/src/lib/csu/i386-elf/crti.S /usr/src/lib/csu/i386-elf/crtn.S^M
cc -O2 -pipe -fno-strict-aliasing -funroll-loops
-I/usr/src/lib/csu/i386-elf/../common
-I/usr/src/lib/csu/i386-elf/../../libc/include -g -std=gnu99
-Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-ari
cc -O2 -pipe -fno-strict-aliasing -funroll-loops
-I/usr/src/lib/csu/i386-elf/../common
-I/usr/src/lib/csu/i386-elf/../../libc/include -g -std=gnu99
-Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-ari
cc -O2 -pipe -fno-strict-aliasing -funroll-loops
-I/usr/src/lib/csu/i386-elf/../common
-I/usr/src/lib/csu/i386-elf/../../libc/include -g -std=gnu99
-Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-ari
cc -O2 -pipe -fno-strict-aliasing -funroll-loops
-I/usr/src/lib/csu/i386-elf/../common
-I/usr/src/lib/csu/i386-elf/../../libc/include -g -std=gnu99
-Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-ari
/usr/src/lib/csu/i386-elf/crt1_s.S: Assembler messages:^M
/usr/src/lib/csu/i386-elf/crt1_s.S:34: Error: suffix or operands
invalid for `push'^M
/usr/src/lib/csu/i386-elf/crt1_s.S:37: Error: `8(%ebp)' is not a valid
64 bit base/index expression^M
/usr/src/lib/csu/i386-elf/crt1_s.S:38: Error: suffix or operands
invalid for `push'^M
/usr/src/lib/csu/i386-elf/crt1_s.S:39: Error: `4(%ebp)' is not a valid
64 bit base/index expression^M
/usr/src/lib/csu/i386-elf/crt1_s.S:40: Error: suffix or operands
invalid for `push'^M
*** Error code 1^M
^M
Stop in /usr/src/lib/csu/i386-elf.^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
^[[1m^[[7m%^[[27m^[[1m^[[m

3. (buildworld with CC=clang CXX=clang++ CPP=clang in src.conf)

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

cheers.
alex


>



-- 
Alexander Best
Received on Mon Jun 14 2010 - 08:44:49 UTC

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