[csw-maintainers] packaging issue with multiple ISA

Yann Rouillard yann at pleiades.fr.eu.org
Mon Apr 15 06:51:16 CEST 2013


Hi Ihsan,

When trying to package unbound to reproduce your problem, I've got the
following error on i386:

libtool: compile:  /opt/SUNWspro/bin/cc -I. -I/opt/csw/include
-I/opt/csw/include -I/opt/csw/include -I/opt/csw/include -I/opt/csw/include
-xO3 -m32 -xarch=pentium_pro -xchip=pentium_pro -xc99 -flto -D_REENTRANT -c
util/storage/dnstree.c -o dnstree.o >/dev/null 2>&1
./libtool --tag=CC --mode=compile /opt/SUNWspro/bin/cc -I.
-I/opt/csw/include -I/opt/csw/include -I/opt/csw/include -I/opt/csw/include
-I/opt/csw/include -xO3 -m32 -xarch=pentium_pro -xchip=pentium_pro -xc99
-flto -D_REENTRANT -o lookup3.lo -c `cat .source`
libtool: compile:  /opt/SUNWspro/bin/cc -I. -I/opt/csw/include
-I/opt/csw/include -I/opt/csw/include -I/opt/csw/include -I/opt/csw/include
-xO3 -m32 -xarch=pentium_pro -xchip=pentium_pro -xc99 -flto -D_REENTRANT -c
util/storage/lookup3.c  -KPIC -DPIC -o .libs/lookup3.o
cc: Warning: illegal option -flto
"util/storage/lookup3.c", line 76: unexpected ")"
cc: acomp failed for util/storage/lookup3.c
gmake: *** [lookup3.lo] Error 1
gmake: Leaving directory
`/home/yann/opencsw/unbound/trunk/work/solaris10-i386/build-isa-pentium_pro/unbound-1.4.20'
gmake[1]: ***
[build-work/solaris10-i386/build-isa-pentium_pro/unbound-1.4.20/Makefile]
Error 2
gmake[1]: Leaving directory `/home/yann/opencsw/unbound/trunk'
gmake: *** [merge-isa-pentium_pro] Error 2


You didn't have the same problem ?

Yann



2013/4/14 İhsan Doğan <ihsan at opencsw.org>

> Hi,
>
> I've build the unbound package with multiple ISA, but excluded the
> parts, were CPU optimization is not necessary.
>
> MERGE_DIRS_isa-sparcv8plus  = $(libdir)
> MERGE_DIRS_isa-sparcv8plus += $(sbindir)
> MERGE_DIRS_isa-pentium_pro  = $(libdir)
> MERGE_DIRS_isa-pentium_pro += $(sbindir)
>
> ISAXEC_DIRS                  = $(sbindir)
> EXTRA_ISAEXEC_EXCLUDE_FILES  = $(sbindir)/unbound-anchor
> EXTRA_ISAEXEC_EXCLUDE_FILES += $(sbindir)/unbound-checkconf
> EXTRA_ISAEXEC_EXCLUDE_FILES += $(sbindir)/unbound-control
> EXTRA_ISAEXEC_EXCLUDE_FILES += $(sbindir)/unbound-control-setup
> EXTRA_ISAEXEC_EXCLUDE_FILES += $(sbindir)/unbound-host
>
> EXTRA_MERGE_EXCLUDE_FILES_isa-pentium_pro  = $(prefix)/sbin/unbound-anchor
> EXTRA_MERGE_EXCLUDE_FILES_isa-pentium_pro +=
> $(prefix)/sbin/unbound-checkconf
> EXTRA_MERGE_EXCLUDE_FILES_isa-pentium_pro += $(prefix)/sbin/unbound-control
> EXTRA_MERGE_EXCLUDE_FILES_isa-pentium_pro +=
> $(prefix)/sbin/unbound-control-setup
> EXTRA_MERGE_EXCLUDE_FILES_isa-pentium_pro += $(prefix)/sbin/unbound-host
>
> EXTRA_MERGE_EXCLUDE_FILES_isa-sparcv8plus  = $(prefix)/sbin/unbound-anchor
> EXTRA_MERGE_EXCLUDE_FILES_isa-sparcv8plus +=
> $(prefix)/sbin/unbound-checkconf
> EXTRA_MERGE_EXCLUDE_FILES_isa-sparcv8plus += $(prefix)/sbin/unbound-control
> EXTRA_MERGE_EXCLUDE_FILES_isa-sparcv8plus +=
> $(prefix)/sbin/unbound-control-setup
> EXTRA_MERGE_EXCLUDE_FILES_isa-sparcv8plus += $(prefix)/sbin/unbound-host
>
> And specified the files for the package:
>
> CATALOGNAME_CSWunbound-host       = unbound_host
> SPKG_DESC_CSWunbound-host         = Unbound DNS lookup utility
> PKGFILES_CSWunbound-host         += $(sbindir)/unbound-host
> PKGFILES_CSWunbound-host         += $(mandir)/man1/unbound-host.1
> RUNTIME_DEP_PKGS_CSWunbound-host += CSWlibldns1
> RUNTIME_DEP_PKGS_CSWunbound-host += CSWlibssl1-0-0
> RUNTIME_DEP_PKGS_CSWunbound-host += CSWlibunbound2
> RUNTIME_DEP_PKGS_CSWunbound-host += CSWlibevent2-0-5
>
> That worked once, but now it produced empty packages.
>
> What would be the appropriate way to package unbound?
>
>
>
>
> Ihsan
>
> --
> ihsan at dogan.ch        http://blog.dogan.ch/
> _______________________________________________
> maintainers mailing list
> maintainers at lists.opencsw.org
> https://lists.opencsw.org/mailman/listinfo/maintainers
> .:: This mailing list's archive is public. ::.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencsw.org/pipermail/maintainers/attachments/20130415/d087f90f/attachment-0001.html>


More information about the maintainers mailing list