public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* s390-linux fails to build
@ 2015-07-23 12:18 Nick Clifton
  2015-07-23 12:33 ` Jakub Jelinek
  0 siblings, 1 reply; 8+ messages in thread
From: Nick Clifton @ 2015-07-23 12:18 UTC (permalink / raw)
  To: hpenner@de.ibm.com uweigand, Andreas.Krebbel, Ulrich Weigand; +Cc: gcc-patches


Hi Helmut, Hi Ulrich, Hi Andreas,

   A toolchain configured as --target=s390-linux currently fails to build
   gcc because of an undefined function:

     undefined reference to `s390_host_detect_local_cpu(int, char const**)'
     Makefile:1858: recipe for target 'xgcc' failed

   The patch below fixes the problem for me by adding a stub function in
   s390-common.c, but I am not sure if it is the correct solution.
   Please can you advise ?

Cheers
   Nick

Index: gcc/common/config/s390/s390-common.c
===================================================================
--- gcc/common/config/s390/s390-common.c	(revision 226094)
+++ gcc/common/config/s390/s390-common.c	(working copy)
@@ -119,6 +119,14 @@
      }
  }

+const char * s390_host_detect_local_cpu (int, const char **) 
__attribute__((weak));
+const char *
+s390_host_detect_local_cpu (int argc ATTRIBUTE_UNUSED,
+			    const char **argv ATTRIBUTE_UNUSED)
+{
+  return NULL;
+}
+
  #undef TARGET_DEFAULT_TARGET_FLAGS
  #define TARGET_DEFAULT_TARGET_FLAGS (TARGET_DEFAULT)

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

end of thread, other threads:[~2015-07-24  8:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-23 12:18 s390-linux fails to build Nick Clifton
2015-07-23 12:33 ` Jakub Jelinek
2015-07-23 12:56   ` Ulrich Weigand
2015-07-23 13:09     ` Jakub Jelinek
2015-07-23 13:26       ` Ulrich Weigand
2015-07-23 13:31         ` Jakub Jelinek
2015-07-23 13:44           ` Dominik Vogt
2015-07-24  8:48             ` Dominik Vogt

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).