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

            Bug ID: 67020
           Summary: /gcc/gcc.c:878:32: error: macro
                    "CHOOSE_DYNAMIC_LINKER" requires 4 arguments, but only
                    3 given
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: karthik.gottimukkala at gmail dot com
  Target Milestone: ---

Created attachment 36061
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36061&action=edit
Error at the end of the file - The file error.txt contains the same output

gengtype.o gengtype-lex.o gengtype-parse.o gengtype-state.o version.o errors.o
libcommon.a ../libcpp/libcpp.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a ../libbacktrace/.libs/libbacktrace.a libcommon.a
../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a 
g++ -c  -DSTANDARD_STARTFILE_PREFIX=\"../../../\"
-DSTANDARD_EXEC_PREFIX=\"/build-disk/clfs/cross-tools/lib/gcc/\"
-DSTANDARD_LIBEXEC_PREFIX=\"/build-disk/clfs/cross-tools/libexec/gcc/\"
-DDEFAULT_TARGET_VERSION=\"5.2.0\"
-DDEFAULT_REAL_TARGET_MACHINE=\"arm-linux-musleabihf\"
-DDEFAULT_TARGET_MACHINE=\"arm-linux-musleabihf\"
-DSTANDARD_BINDIR_PREFIX=\"/build-disk/clfs/cross-tools/bin/\"
-DTOOLDIR_BASE_PREFIX=\"../../../../\" -DACCEL_DIR_SUFFIX=\"\"
-DTARGET_SYSTEM_ROOT=\"/build-disk/clfs/cross-tools/arm-linux-musleabihf\"
-DTARGET_SYSTEM_ROOT_RELOCATABLE   -DCONFIGURE_SPECS="\"\"" -g -O2 -DIN_GCC 
-DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H
-I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include
-I../.././gcc/../libcpp/include
-I/build-disk/clfs/sources/gcc-5.2.0/host-x86_64-cross-linux-gnu/gmp
-I/build-disk/clfs/sources/gcc-5.2.0/gmp
-I/build-disk/clfs/sources/gcc-5.2.0/../gcc-5.2.0/mpfr/src
-I/build-disk/clfs/sources/gcc-5.2.0/mpc/src  -I../.././gcc/../libdecnumber
-I../.././gcc/../libdecnumber/dpd -I../libdecnumber
-I../.././gcc/../libbacktrace   -o gcc.o -MT gcc.o -MMD -MP -MF ./.deps/gcc.TPo
../.././gcc/gcc.c
../.././gcc/gcc.c:878:32: error: macro "CHOOSE_DYNAMIC_LINKER" requires 4
arguments, but only 3 given
 static const char *link_spec = LINK_SPEC;
                                ^
../.././gcc/gcc.c:878:32: error: macro "CHOOSE_DYNAMIC_LINKER" requires 4
arguments, but only 3 given
In file included from ./tm.h:29:0,
                 from ../.././gcc/gcc.c:34:
../.././gcc/config/linux.h:91:3: error: expected ',' or ';' before
'CHOOSE_DYNAMIC_LINKER'
   CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER, \
   ^
../.././gcc/config/linux-android.h:38:37: note: in definition of macro
'LINUX_OR_ANDROID_LD'
   "%{" NOANDROID "|tno-android-ld:" LINUX_SPEC ";:" ANDROID_SPEC "}"
                                     ^
../.././gcc/config/arm/linux-elf.h:73:34: note: in expansion of macro
'GNU_USER_DYNAMIC_LINKER'
      %{!shared:-dynamic-linker " GNU_USER_DYNAMIC_LINKER "}} \
                                  ^
../.././gcc/config/arm/linux-eabi.h:101:24: note: in expansion of macro
'LINUX_TARGET_LINK_SPEC'
   LINUX_OR_ANDROID_LD (LINUX_TARGET_LINK_SPEC,    \
                        ^
../.././gcc/gcc.c:878:32: note: in expansion of macro 'LINK_SPEC'
 static const char *link_spec = LINK_SPEC;
                                ^
make[1]: *** [gcc.o] Error 1
make[1]: Leaving directory
`/build-disk/clfs/sources/gcc-5.2.0/host-x86_64-cross-linux-gnu/gcc'
make: *** [all-gcc] Error 2
clfs:/build-disk/clfs/sources/gcc-5.2.0$



I am trying to build GCC: with the below instructions as explained in the book
http://rdepablos.merlitec.com/sites/default/files/CLFS-arm.pdf
page no 22 to 24

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

and

../gcc-4.7.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.7.3/mpfr/src \
--with-mpfr-lib=$(pwd)/mpfr/src/.libs \
--with-arch=${CLFS_ARM_ARCH} \
--with-float=${CLFS_FLOAT} \
--with-fpu=${CLFS_FPU}
and
make all-gcc all-target-libgcc

Please kindly help me with this

Thank you,
karthik

Reply via email to