Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Nov 2007 09:43:52 +0300
From:      Yuri Pankov <yuri.pankov@gmail.com>
To:        freebsd-questions@freebsd.org
Cc:        Yuri <yuri@rawbw.com>, yuri@tsoft.com
Subject:   Re: FreeBSD-7.0 fails to compile after upgrade
Message-ID:  <200711200943.52727.yuri.pankov@gmail.com>
In-Reply-To: <1195540240.47427f104a1c3@webmail.rawbw.com>
References:  <1195529076.47425374ade31@webmail.rawbw.com> <200711200843.36139.yuri.pankov@gmail.com> <1195540240.47427f104a1c3@webmail.rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 20 November 2007 09:30:40 Yuri wrote:
> > What about /etc/src.conf and more complete build log (at least
> > whole compiler line)?
>
> I don't have /etc/src.conf file. Please see last few build commands
> below.
>
> Versions of relevant commands:
> cc (GCC) 4.2.1 20070719  [FreeBSD]
> GNU assembler 2.15 [FreeBSD] 2004-05-23
>
> Yuri
>
>
> cc -fpic -DPIC -I/usr/local/include  -DTERMIOS -DANSI_SOURCE
> -I/usr/src/secure/l ib/libcrypto/../../../crypto/openssl
> -I/usr/src/secure/lib/libcrypto/../../../cr ypto/openssl/crypto
> -I/usr/obj/usr/src/secure/lib/libcrypto -DOPENSSL_THREADS -D
> DSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_IDEA -DL_ENDIAN -DNO_IDEA
> -std=gnu89  -c /
> usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/engine/en
>g_openssl.c -o eng_openssl.So
> cc -fpic -DPIC -I/usr/local/include  -DTERMIOS -DANSI_SOURCE
> -I/usr/src/secure/l ib/libcrypto/../../../crypto/openssl
> -I/usr/src/secure/lib/libcrypto/../../../cr ypto/openssl/crypto
> -I/usr/obj/usr/src/secure/lib/libcrypto -DOPENSSL_THREADS -D
> DSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_IDEA -DL_ENDIAN -DNO_IDEA
> -std=gnu89  -c /
> usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/engine/en
>g_padlock.c -o eng_padlock.So
> /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/engine/e
>ng_padlock. c: In function 'padlock_xcrypt_ecb':
> /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/engine/e
>ng_padlock. c:445: error: can't find a register in class
> 'GENERAL_REGS' while reloading 'asm '
> /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/engine/e
>ng_padlock. c:445: error: 'asm' operand has impossible constraints
> *** Error code 1

Yes, that's what I'm talking about, you don't have any optimizations 
(-Ox) in flags to cc and that's why it fails. Make sure that you don't 
have CFLAGS set to '' in your environment or elsewhere (cd /usr/src ; 
make -V CFLAGS  will show your current settings).


Yuri



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