Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sun, 31 Mar 2013 11:30:35 +0400
From: gremlin@...mlin.ru
To: owl-dev@...ts.openwall.com
Subject: Re: embedded Owl - glibc/i586 build error SOLVED

On 29-Mar-2013 13:52:54 +0100, Pavel Kankovsky wrote:

 >> I tried setting ARCHITECTURE=i386 in buildworld.conf together
 >> with passing "-march=i486 -mtune=i586" to %optflags (via
 >> ~build/.rpmmacros), and everything went fine except the only
 >> package. Alas, that's glibc:
 >> error: conflicting types for '__lll_lock_wait'

 > It's Glibc's way of telling you NPTL is not
 > supported on i386 according to comment #4 here:
 > <http://www.sourceware.org/bugzilla/show_bug.cgi?id=849>

That's why I use -march=i486

 > I think you need to build it with ARCHITECTURE=i486 or i586 but
 > it'll take some cunning to make buildworld.sh &al. swallow it.

buildworld.sh uses the ARCHITECTURE= parameter for getting correct
%optflags from ~build/.rpmmacros; besides that, I simply changed
%define _target_platform i486-openwall-linux
in glibc.spec and it built just fine. So, the final solution is

1. Change to "-march=i486 -mtune=i586" in ~build/.rpmmacros
2. Add the following lines to glibc.spec:

%if 0%(test %_target_platform = i386-openwall-linux && echo 1)
	%define _target_platform i486-openwall-linux
%endif

I think this may be safely committed to mainstream. Also, we may
want to define %_target_platform using ~build/.rpmmacros as well.

Solar, all?


-- 
Alexey V. Vissarionov aka Gremlin from Kremlin <gremlin ПРИ gremlin ТЧК ru>
GPG key ID: 0xEF3B1FA8, keyserver: hkp://subkeys.pgp.net
GPG key fingerprint: 8832 FE9F A791 F796 8AC9 6E4E 909D AC45 EF3B 1FA8

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.