[Bug other/67020] /gcc/gcc.c:878:32: error: macro "CHOOSE_DYNAMIC_LINKER" requires 4 arguments, but only 3 given

karthik.gottimukkala at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Jul 29 11:14:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67020

--- Comment #4 from karthik <karthik.gottimukkala at gmail dot com> ---
Hi!

I am sorry, its my mistake.
I copy pasted the problem area and by mistake I pasted the wrong command with
version 4.7.3
My mistake! my bad!

Below is the script I used for pass 1: FOR 5.2.0
../gcc-5.2.0/configure \
--prefix=${CLFS}/cross-tools \
--build=${CLFS_HOST} \
--host=${CLFS_HOST} \
--target=${CLFS_TARGET} \
--with-sysroot=${CLFS}/cross-tools/${CLFS_TARGET} \
--disable-nls \
--disable-shared \
--without-headers \
--with-newlib \
--disable-decimal-float \
--disable-libgomp \
--disable-libmudflap \
--disable-libssp \
--disable-libatomic \
--disable-libquadmath \
--disable-threads \
--enable-languages=c \
--disable-multilib \
--with-mpfr-include=$(pwd)/../gcc-5.2.0/mpfr/src \
--with-mpfr-lib=$(pwd)/mpfr/src/.libs \
--with-arch=${CLFS_ARM_ARCH} \
--with-float=${CLFS_FLOAT} \
--with-fpu=${CLFS_FPU}

I tried both with and without applying the MUSL patch.
And
later I tried with 4.8.3 after finding this error with 5.2.0.

It was done properly without any error with 4.8.3 version and I am proceeding
with the next steps of the CLFS document.

Steps I followed with version 4.8.3 are as below: same steps with version 5.2.0

1)Pass 1 command: before make all-gcc all-targer-libgcc
../gcc-4.8.3/configure --prefix=${CLFS}/cross-tools --build=${CLFS_HOST}
--host=${CLFS_HOST} --target=${CLFS_TARGET}
--with-sysroot=${CLFS}/cross-tools/${CLFS_TARGET} --disable-nls
--disable-shared --without-headers --with-newlib --disable-decimal-float
--disable-libgomp --disable-libmudflap --disable-libssp --disable-libatomic
--disable-libquadmath --disable-threads --enable-languages=c --disable-multilib
--with-mpfr-include=$(pwd)/../gcc-4.8.3/mpfr/src
--with-mpfr-lib=$(pwd)/mpfr/src/.libs --with-arch=${CLFS_ARM_ARCH}
--with-float=${CLFS_FLOAT} --with-fpu=${CLFS_FPU}

2)make install-gcc install-target-libgcc

3)installed musl-libs
CC=${CLFS_TARGET}-gcc ./configure \
--prefix=/ \
--target=${CLFS_TARGET}

CC=${CLFS_TARGET}-gcc make

DESTDIR=${CLFS}/cross-tools/${CLFS_TARGET} make install

4)Tried Applying path gcc-4.7.3-musl-1.patch 
-Few lines succeeded and few lines already patched. 

5)once again:
tar xf ../mpfr-3.1.2.tar.bz2
mv -v mpfr-3.1.2 mpfr
tar xf ../gmp-5.1.2.tar.bz2
mv -v gmp-5.1.2 gmp
tar xf ../mpc-1.0.1.tar.gz
mv -v mpc-1.0.1 mpc

6)pass 2 command: before make and make install:
../gcc-4.8.3/configure --prefix=${CLFS}/cross-tools --build=${CLFS_HOST}
--target=${CLFS_TARGET} --host=${CLFS_HOST}
--with-sysroot=${CLFS}/cross-tools/${CLFS_TARGET} --disable-nls
--enable-languages=c --enable-c99 --enable-long-long --disable-libmudflap
--disable-multilib --with-mpfr-include=$(pwd)/../gcc-4.8.3/mpfr/src
--with-mpfr-lib=$(pwd)/mpfr/src/.libs --with-arch=${CLFS_ARM_ARCH}
--with-float=${CLFS_FLOAT} --with-fpu=${CLFS_FPU}

7)make
8)make install
9) finally - successful



More information about the Gcc-bugs mailing list