public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/67020] /gcc/gcc.c:878:32: error: macro "CHOOSE_DYNAMIC_LINKER" requires 4 arguments, but only 3 given
       [not found] <bug-67020-4@http.gcc.gnu.org/bugzilla/>
@ 2015-07-29  8:00 ` ramana at gcc dot gnu.org
  2015-07-29 10:12 ` nsz at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: ramana at gcc dot gnu.org @ 2015-07-29  8:00 UTC (permalink / raw)
  To: gcc-bugs

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

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2015-07-29
                 CC|                            |nsz at gcc dot gnu.org,
                   |                            |ramana at gcc dot gnu.org
            Version|5.2.0                       |4.7.3
     Ever confirmed|0                           |1

--- Comment #1 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
The version in the bug report indicates the version against which the bug is to
be filed, the text below suggests this is 4.7.3, the version above states 5.2.0
. Both cannot be correct.

GCC 4.7.x is unmaintained - please try a currently supported release or better
still trunk. Your triplet appears to suggest that you are building against musl
libc rather than glibc.

>From what I can see some MUSL support for ARM in GCC went in after the release
branch for 5 was cut. However I don't know what the current status is. I've
CC'd Szabolcs as I know he's been looking in this area.

At the very least, I recommend you try trunk rather than 4.7.3 and report back
if you see any issues.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug other/67020] /gcc/gcc.c:878:32: error: macro "CHOOSE_DYNAMIC_LINKER" requires 4 arguments, but only 3 given
       [not found] <bug-67020-4@http.gcc.gnu.org/bugzilla/>
  2015-07-29  8:00 ` [Bug other/67020] /gcc/gcc.c:878:32: error: macro "CHOOSE_DYNAMIC_LINKER" requires 4 arguments, but only 3 given ramana at gcc dot gnu.org
@ 2015-07-29 10:12 ` nsz at gcc dot gnu.org
  2015-07-29 11:12 ` karthik.gottimukkala at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: nsz at gcc dot gnu.org @ 2015-07-29 10:12 UTC (permalink / raw)
  To: gcc-bugs

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

nsz at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from nsz at gcc dot gnu.org ---
the musl patches are in gcc-trunk and were not yet backported to gcc-5 (or any
4.x branches), bug 58446 tracks their current state.

it seems clfs has its own musl patch at
http://patches.clfs.org/embedded-dev/gcc-4.7.3-musl-1.patch

so this is not a gcc bug (ask on clfs or musl mailing lists for help).

looking at the clfs patch i think it is ok, but it probably did not apply
correctly to the gcc source you were using (e.g. it won't work for gcc-5.2,
make sure you use the same gcc version as the patch).


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug other/67020] /gcc/gcc.c:878:32: error: macro "CHOOSE_DYNAMIC_LINKER" requires 4 arguments, but only 3 given
       [not found] <bug-67020-4@http.gcc.gnu.org/bugzilla/>
  2015-07-29  8:00 ` [Bug other/67020] /gcc/gcc.c:878:32: error: macro "CHOOSE_DYNAMIC_LINKER" requires 4 arguments, but only 3 given ramana at gcc dot gnu.org
  2015-07-29 10:12 ` nsz at gcc dot gnu.org
@ 2015-07-29 11:12 ` karthik.gottimukkala at gmail dot com
  2015-07-29 11:14 ` karthik.gottimukkala at gmail dot com
  2015-07-29 11:15 ` karthik.gottimukkala at gmail dot com
  4 siblings, 0 replies; 5+ messages in thread
From: karthik.gottimukkala at gmail dot com @ 2015-07-29 11:12 UTC (permalink / raw)
  To: gcc-bugs

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

karthik <karthik.gottimukkala at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|4.7.3                       |5.2.0

--- Comment #3 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug other/67020] /gcc/gcc.c:878:32: error: macro "CHOOSE_DYNAMIC_LINKER" requires 4 arguments, but only 3 given
       [not found] <bug-67020-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2015-07-29 11:12 ` karthik.gottimukkala at gmail dot com
@ 2015-07-29 11:14 ` karthik.gottimukkala at gmail dot com
  2015-07-29 11:15 ` karthik.gottimukkala at gmail dot com
  4 siblings, 0 replies; 5+ messages in thread
From: karthik.gottimukkala at gmail dot com @ 2015-07-29 11:14 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug other/67020] /gcc/gcc.c:878:32: error: macro "CHOOSE_DYNAMIC_LINKER" requires 4 arguments, but only 3 given
       [not found] <bug-67020-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2015-07-29 11:14 ` karthik.gottimukkala at gmail dot com
@ 2015-07-29 11:15 ` karthik.gottimukkala at gmail dot com
  4 siblings, 0 replies; 5+ messages in thread
From: karthik.gottimukkala at gmail dot com @ 2015-07-29 11:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 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









(In reply to nsz from comment #2)
> the musl patches are in gcc-trunk and were not yet backported to gcc-5 (or
> any 4.x branches), bug 58446 tracks their current state.
> 
> it seems clfs has its own musl patch at
> http://patches.clfs.org/embedded-dev/gcc-4.7.3-musl-1.patch
> 
> so this is not a gcc bug (ask on clfs or musl mailing lists for help).
> 
> looking at the clfs patch i think it is ok, but it probably did not apply
> correctly to the gcc source you were using (e.g. it won't work for gcc-5.2,
> make sure you use the same gcc version as the patch).


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-07-29 11:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-67020-4@http.gcc.gnu.org/bugzilla/>
2015-07-29  8:00 ` [Bug other/67020] /gcc/gcc.c:878:32: error: macro "CHOOSE_DYNAMIC_LINKER" requires 4 arguments, but only 3 given ramana at gcc dot gnu.org
2015-07-29 10:12 ` nsz at gcc dot gnu.org
2015-07-29 11:12 ` karthik.gottimukkala at gmail dot com
2015-07-29 11:14 ` karthik.gottimukkala at gmail dot com
2015-07-29 11:15 ` karthik.gottimukkala at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).