Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-alt
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-alt@g.o
From: Matt Michalowski <me@...>
Subject: Re: Re: [prefix] a few missing things for smooth x86-linux bootstrap
Date: Thu, 19 Apr 2007 14:54:36 +1000
Fabian Groffen wrote:
> On 19-04-2007 00:27:36 +1000, Matt Michalowski wrote:
>   
>> Michael Haubenwallner wrote:
>>     
>>> Ah yes, one more:
>>> dev-libs/openssl-0.9.8e does not build on x86-linux, but 0.9.8d does.
>>> So please remove that keyword by now, thanks!
>>>   
>>>       
>> It builds for me on x86-linux, with CFLAGS simply set to "-O2 -march=i686". 
>> It breaks, as you pointed out the other week, with -g.
>>     
>
> So I better unmask and strip the -g flag?  Feels awkward, I prefer to
> keep it in p.mask for now.
>
>   
Yeah, I agree it would be awkward.

I've done some further investigating, and I was wrong about it being 
"-g", it's having no optimizations turned on:

(-O0)
# dhcp213:.../work/openssl-0.9.8e/crypto/engine# i686-pc-linux-gnu-gcc 
-I.. -I../.. -I../../include -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB 
-DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN 
-DTERMIO -Wall -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM 
-DRMD160_ASM -DAES_ASM  -Wa,--noexecstack   -c -o eng_padlock.o 
eng_padlock.c  -march=i686 -O0
eng_padlock.c: In function 'padlock_xcrypt_ecb':
eng_padlock.c:445: error: can't find a register in class 'GENERAL_REGS' 
while reloading 'asm'

where as: (-O1 -g)
# dhcp213:.../work/openssl-0.9.8e/crypto/engine# i686-pc-linux-gnu-gcc 
-I.. -I../.. -I../../include -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB 
-DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN 
-DTERMIO -Wall -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM 
-DRMD160_ASM -DAES_ASM   -Wa,--noexecstack   -c -o eng_padlock.o 
eng_padlock.c -O1 -g

compiles fine.

Now for my $0.02. eng_padlock is for VIA Padlock hardware support (hence 
its ASM implementation), which I don't imagine is many x86 users let 
alone prefix portage x86 users (I could be wrong :) ). It's pretty easy 
to disable the VIA support, and OpenSSL will still function without it. 
I've attached a patch. Maybe haubi will have some better ideas.


Matt.


Attachment:
openssl-0.9.8e-novia.patch (Text Data)
Replies:
Re: Re: [prefix] a few missing things for smooth x86-linux bootstrap
-- Michael Haubenwallner
References:
[prefix] a few missing things for smooth x86-linux bootstrap
-- Michael Haubenwallner
Re: [prefix] a few missing things for smooth x86-linux bootstrap
-- Michael Haubenwallner
Re: Re: [prefix] a few missing things for smooth x86-linux bootstrap
-- Matt Michalowski
Re: Re: [prefix] a few missing things for smooth x86-linux bootstrap
-- Fabian Groffen
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: [prefix] a few missing things for smooth x86-linux bootstrap
Next by thread:
Re: Re: [prefix] a few missing things for smooth x86-linux bootstrap
Previous by date:
AIX: emerge vim works
Next by date:
Re: AIX: libiconv issues still ?


Updated Jun 17, 2009

Summary: Archive of the gentoo-alt mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.