[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to build packages with a specific complier ?




Le 16/06/2016 à 10:37, Gianfranco Costamagna a écrit :
> Hi,
>
>> As far as I know, the plan is to switch to gcc-6 by default for stretch:
>> https://lists.debian.org/debian-gcc/2016/01/msg00100.html
>> so while identifying and backporting the fix to gcc-5 would be nice, I'd
>> recommend not putting too much effort there.
>
> fully agree, this is why I didn't bother about bisecting the issue.
>
> Eric, if you want a test build on a porterbox I can do it, just
> give me a list of commands to issue and I'll happily execute them for you
> (please note: porterboxes don't allow "everything", so debugging might not
> be trivial to perform)
>
> G.
First test:

# Install git-buildpackage and build-essential if needed
apt-get --no-install-recommends  install git-buildpackage build-essential

# Clone gnustep-base
gbp clone https://anonscm.debian.org/git/pkg-gnustep/gnustep-base.git

# Enter in gnsutep-base dir
cd gnustep-base

# Install build-dependencies
apt-get --no-install-recommends install debhelper gnustep-make gobjc-5
libffi-dev libxml2-dev libxslt1-dev libgnutls28-dev zlib1g-dev m4
libavahi-client-dev libicu-dev dh-autoreconf dh-exec texinfo
texlive-latex-base texlive-fonts-recommended xml-core

# 1- gcc-6 with libffi-dev

# Install gcc-6 and gobjc-6
sudo apt-get --no-install-recommends install gcc-6 gobjc-6

# Make sure libffi-dev is installed
apt-get --no-install-recommends install libffi-dev

# Make sure ffcall is not-installed
apt remove libffcall1-dev libffcall1

# Edit debian debian/rules,
# in the override_dh_auto_configure target,
# add CC= to dh_auto_configure :
#
#dh_auto_configure -- \
#           ac_cv_lib_kvm_kvm_getenvv=no \
#            --disable-bfd \
#           CC=gcc-6 \
#        CPP=cpp-6
#
# RICHARD, IS IT CORRECT ?

# build package
gbp buildpackage --git-ignore-new

# Send me the Tests/tests.log file
# and ../gnustep-base_1.24.9-1_s390x.build
# (you can rename them)

Thanks
Eric


Reply to: