D.gnu - building gdc on Debian 64-bit (wheezy)
- Brad (92/92) Oct 28 2011 Does anyone know how to get gdc to build on a 64-bit linux machine?
Does anyone know how to get gdc to build on a 64-bit linux machine?
I can build gdc on linuxmint11 (32-bit) and gdc v2 on FreeBSD 8.2 (32-bit).
I have included below the script I use.
I've tried removing "." from PATH; I've tried --enable-multilib and
--disable-multilib.
The error I get is:
checking whether the /home/bll/gdc/gdc2/dev/gcc-4.6.1/objdir/./gcc/xgcc -B/home/
bll/gdc/gdc2/dev/gcc-4.6.1/objdir/./gcc/ -B/opt/gdc2/x86_64-unknown-linux-gnu/bi
n/ -B/opt/gdc2/x86_64-unknown-linux-gnu/lib/ -isystem /opt/gdc2/x86_64-unknown-l
inux-gnu/include -isystem /opt/gdc2/x86_64-unknown-linux-gnu/sys-include link
er (/home/bll/gdc/gdc2/dev/gcc-4.6.1/objdir/./gcc/collect-ld -m elf_x86_64) supp
orts shared libraries... yes
checking dynamic linker characteristics... configure: error: Link tests are not
allowed after GCC_NO_EXECUTABLES.
make[1]: *** [configure-target-libquadmath] Error 1
[...]
checking whether the /home/bll/gdc/gdc2/dev/gcc-4.6.1/objdir/./gcc/xgcc
-B/home/bll/gdc/gdc2/dev/gcc-4.6.1/objdir/./gcc/
-B/opt/gdc2/x86_64-unknown-linux-gnu/bin/
-B/opt/gdc2/x86_64-unknown-linux-gnu/lib/ -isystem
/opt/gdc2/x86_64-unknown-linux-gnu/include -isystem
/opt/gdc2/x86_64-unknown-linux-gnu/sys-include linker
(/home/bll/gdc/gdc2/dev/gcc-4.6.1/objdir/./gcc/collect-ld -m elf_x86_64)
supports shared libraries... yes
checking dynamic linker characteristics... configure: error: Link tests are not
allowed after GCC_NO_EXECUTABLES.
make[1]: *** [configure-target-libssp] Error 1
PATH=$(echo $PATH | sed 's/:*$//;s/::/:/g;s/^:*//')
echo $PATH > /dev/tty
MAKE=make
if [ -x /usr/local/bin/gmake ]; then
MAKE=gmake
fi
export MAKE
cwd=$(pwd)
gccvers=4.6.1
if [ ! -f gcc-${gccvers}.tar.bz2 ]; then
wget "http://fileboar.com/gcc/releases/gcc-${gccvers}/gcc-${gccvers}.tar.bz2"
fi
test -d gdcold && rm -rf gdcold
test -d gdc && rm -rf gdc
test -d gdc2 && rm -rf gdc2
test -d gdc1 && rm -rf gdc1
hg clone https://goshawk bitbucket.org/goshawk/gdc
mv gdc gdc2
mkdir gdc2/dev
(cd gdc2/dev;tar xfj ../../gcc-${gccvers}.tar.bz2)
cp -pr gdc2 gdc1
for d in gdc2 gdc1; do
cd ${cwd}
cd ${d}/dev/gcc-${gccvers}
ln -sf ../../../d gcc/d
if [ $d = "gdc2" ]; then
./gcc/d/setup-gcc.sh -v2
else
./gcc/d/setup-gcc.sh -v1
fi
mkdir objdir
cd objdir
../configure \
CC=$(which cc) \
--prefix=/opt/${d} \
--enable-languages=d \
--disable-shared \
--disable-bootstrap \
--with-bugurl="https://bitbucket.org/goshawk/gdc/issues" \
--enable-checking=release \
--enable-multilib
${MAKE} -j4
rc=$?
if [ $rc -ne 0 ]; then
break
fi
${MAKE} install
done
Oct 28 2011
export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu export $CPATH=/usr/include/x86_64-linux-gnu
Oct 29 2011
Trass3r Wrote:export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu export $CPATH=/usr/include/x86_64-linux-gnuThanks for the reply. This did not help with my particular issue. For some reason I'm getting those cross-compile errors. Are there any CFLAGS you use? I've tried building w/gcc-4.6.1 and gcc-4.4.6.
Oct 29 2011
This did not help with my particular issue. For some reason I'm getting those cross-compile errors. Are there any CFLAGS you use? I've tried building w/gcc-4.6.1 and gcc-4.4.6.No. I only needed to set these 2 variables to make it work on Ubuntu 11.10
Oct 30 2011
export $CPATH=/usr/include/x86_64-linux-gnuOf course it's export CPATH=/usr/include/x86_64-linux-gnu
Oct 30 2011









Trass3r <un known.com> 