All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: Khem Raj <raj.khem@gmail.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] gcc5: Fix build on NIOS2
Date: Wed, 6 Jan 2016 12:56:18 +0100	[thread overview]
Message-ID: <201601061256.18384.marex@denx.de> (raw)
In-Reply-To: <C6305912-A665-4147-82C8-DB3213161A88@gmail.com>

On Wednesday, January 06, 2016 at 03:54:11 AM, Khem Raj wrote:
> > On Jan 5, 2016, at 6:13 PM, Marek Vasut <marex@denx.de> wrote:
> > 
> > The gcc 5.3 does not build on NIOS2 due to a missing MUSL_DYNAMIC_LINKER
> > definition in it's config file. Add the definition to fix the build
> > issue. The output produced during the failing build is as follows:
> > 
> > g++    -isystem/b/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe
> > -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 -static-libstdc++ -static-libgcc
> > -L/b/tmp/sysroots/x86_64-linux/usr/lib
> > -L/b/tmp/sysroots/x86_64-linux/lib
> > -Wl,-rpath-link,/b/tmp/sysroots/x86_64-linux/usr/lib
> > -Wl,-rpath-link,/b/tmp/sysroots/x86_64-linux/lib
> > -Wl,-rpath,/b/tmp/sysroots/x86_64-linux/usr/lib
> > -Wl,-rpath,/b/tmp/sysroots/x86_64-linux/lib -Wl,-O1 gcc-ar.o -o gcc-ar \
> > 
> >        file-find.o libcommon.a ../libcpp/libcpp.a  
> >        ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a
> >        ../libdecnumber/libdecnumber.a
> > 
> > In file included from ./tm.h:27:0,
> > 
> >                 from /b/tmp/work-shared/gcc-5.3.0-r0/gcc-5.3.0/gcc/gcc.c:34:
> > ./config/linux.h:92:28: error: expected ',' or ';' before
> > 'MUSL_DYNAMIC_LINKER'
> > 
> >     BIONIC_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER)
> >     
> >                            ^
> > 
> > ./config/linux.h:59:60: note: in definition of macro
> > 'CHOOSE_DYNAMIC_LINKER1'
> > 
> >   "%{" LIBC2 ":" LD2 ";:%{" LIBC3 ":" LD3 ";:%{" LIBC4 ":" LD4 ";:" LD1
> >   "}}}"
> >   
> >                                                            ^
> > 
> > ./config/linux.h:91:3: note: in expansion of macro
> > 'CHOOSE_DYNAMIC_LINKER'
> > 
> >   CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER, \
> >   ^
> > 
> > ./config/nios2/linux.h:40:25: note: in expansion of macro
> > 'GNU_USER_DYNAMIC_LINKER'
> > 
> >       -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
> >       
> >                         ^
> > 
> > /b/tmp/work-shared/gcc-5.3.0-r0/gcc-5.3.0/gcc/gcc.c:884:32: note: in
> > expansion of macro 'LINK_SPEC' static const char *link_spec = LINK_SPEC;
> > 
> >                                ^
> > 
> > <command-line>:0:27: warning: deprecated conversion from string constant
> > to 'char*' [-Wwrite-strings]
> > /b/tmp/work-shared/gcc-5.3.0-r0/gcc-5.3.0/gcc/gcc.c:1295:48: note: in
> > expansion of macro 'STANDARD_STARTFILE_PREFIX' static char *const
> > standard_startfile_prefix = STANDARD_STARTFILE_PREFIX;
> 
> This is ok to install.

Hi Khem, I don't quite get your comment, but check the error above. That's
what this patch addresses, the splat below is just a fallout from it.

Best regards,
Marek Vasut


  reply	other threads:[~2016-01-06 12:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-06  2:13 [PATCH] gcc5: Fix build on NIOS2 Marek Vasut
2016-01-06  2:54 ` Khem Raj
2016-01-06 11:56   ` Marek Vasut [this message]
2016-01-06 15:41     ` Khem Raj
2016-01-06 17:09       ` Marek Vasut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201601061256.18384.marex@denx.de \
    --to=marex@denx.de \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=raj.khem@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.