public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: libgo: Update to Go 1.13beta1 release
@ 2019-09-07  7:33 Bernd Edlinger
  2019-09-07  9:58 ` Andreas Schwab
  0 siblings, 1 reply; 8+ messages in thread
From: Bernd Edlinger @ 2019-09-07  7:33 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: gcc-patches, gofrontend-dev

Hi Ian,

> gotools:
> 
> 2019-09-06  Ian Lance Taylor  <iant@golang.org>
> 
> * Makefile.am (check-carchive-test): Just run "go test", not "go
> test carchive_test.go".
> * Makefile.in: Regenerate.
> 
> gcc/testsuite:
> 
> 2019-09-06  Ian Lance Taylor  <iant@golang.org>
> 
> * go.test/test/fixedbugs/bug369.go: Update to match libgo update
> to Go 1.13beta1.
> 

this patch can't build on arm anymore:

/bin/bash ./libtool  --tag=CC   --mode=compile /home/ed/gnu/gcc-build-arm-linux-gnueabihf-linux64/./gcc/xgcc -B/home/ed/gnu/gcc-build-arm-linux-gnueabihf-linux64/./gcc/ -B/home/ed/gnu/arm-linux-gnueabihf-linux64/arm-linux-gnueabihf/bin/ -B/home/ed/gnu/arm-linux-gnueabihf-linux64/arm-linux-gnueabihf/lib/ -isystem /home/ed/gnu/arm-linux-gnueabihf-linux64/arm-linux-gnueabihf/include -isystem /home/ed/gnu/arm-linux-gnueabihf-linux64/arm-linux-gnueabihf/sys-include    -DHAVE_CONFIG_H -I. -I../../../gcc-trunk/libgo  -I ../../../gcc-trunk/libgo/runtime -I../../../gcc-trunk/libgo/../libffi/include -I../libffi/include -pthread -L../libatomic/.libs  -fexceptions -fnon-call-exceptions  -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror   -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I ../../../gcc-trunk/libgo/../libgcc -I ../../../gcc-trunk/libgo/../libbacktrace -I ../../gcc/include -g -O2 -c -o golang.org/x/sys/cpu_gccgo.lo ../../../gcc-trunk/libgo/go/golang.org/x/sys/cpu/cpu_gccgo.c
libtool: compile:  /home/ed/gnu/gcc-build-arm-linux-gnueabihf-linux64/./gcc/xgcc -B/home/ed/gnu/gcc-build-arm-linux-gnueabihf-linux64/./gcc/ -B/home/ed/gnu/arm-linux-gnueabihf-linux64/arm-linux-gnueabihf/bin/ -B/home/ed/gnu/arm-linux-gnueabihf-linux64/arm-linux-gnueabihf/lib/ -isystem /home/ed/gnu/arm-linux-gnueabihf-linux64/arm-linux-gnueabihf/include -isystem /home/ed/gnu/arm-linux-gnueabihf-linux64/arm-linux-gnueabihf/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-trunk/libgo -I ../../../gcc-trunk/libgo/runtime -I../../../gcc-trunk/libgo/../libffi/include -I../libffi/include -pthread -L../libatomic/.libs -fexceptions -fnon-call-exceptions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I ../../../gcc-trunk/libgo/../libgcc -I ../../../gcc-trunk/libgo/../libbacktrace -I ../../gcc/include -g -O2 -c ../../../gcc-trunk/libgo/go/golang.org/x/sys/cpu/cpu_gccgo.c  -fPIC -DPIC -o golang.org/x/sys/.libs/cpu_gccgo.o
../../../gcc-trunk/libgo/go/golang.org/x/sys/cpu/cpu_gccgo.c:8:10: fatal error: cpuid.h: No such file or directory
    8 | #include <cpuid.h>
      |          ^~~~~~~~~
compilation terminated.
make[4]: *** [golang.org/x/sys/cpu_gccgo.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/home/ed/gnu/gcc-build-arm-linux-gnueabihf-linux64/arm-linux-gnueabihf/libgo'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ed/gnu/gcc-build-arm-linux-gnueabihf-linux64/arm-linux-gnueabihf/libgo'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ed/gnu/gcc-build-arm-linux-gnueabihf-linux64/arm-linux-gnueabihf/libgo'
make[1]: *** [all-target-libgo] Error 2
make[1]: Leaving directory `/home/ed/gnu/gcc-build-arm-linux-gnueabihf-linux64'
make: *** [all] Error 2


Bernd.

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

* Re: libgo: Update to Go 1.13beta1 release
  2019-09-07  7:33 libgo: Update to Go 1.13beta1 release Bernd Edlinger
@ 2019-09-07  9:58 ` Andreas Schwab
  2019-09-09 20:09   ` [gofrontend-dev] " Ian Lance Taylor
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2019-09-07  9:58 UTC (permalink / raw)
  To: Bernd Edlinger; +Cc: Ian Lance Taylor, gcc-patches, gofrontend-dev

On Sep 07 2019, Bernd Edlinger <bernd.edlinger@hotmail.de> wrote:

> Hi Ian,
>
>> gotools:
>> 
>> 2019-09-06  Ian Lance Taylor  <iant@golang.org>
>> 
>> * Makefile.am (check-carchive-test): Just run "go test", not "go
>> test carchive_test.go".
>> * Makefile.in: Regenerate.
>> 
>> gcc/testsuite:
>> 
>> 2019-09-06  Ian Lance Taylor  <iant@golang.org>
>> 
>> * go.test/test/fixedbugs/bug369.go: Update to match libgo update
>> to Go 1.13beta1.
>> 
>
> this patch can't build on arm anymore:

Or any other non-x86 architecture.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

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

* Re: [gofrontend-dev] Re: libgo: Update to Go 1.13beta1 release
  2019-09-07  9:58 ` Andreas Schwab
@ 2019-09-09 20:09   ` Ian Lance Taylor
  2019-09-09 21:00     ` Andreas Schwab
  0 siblings, 1 reply; 8+ messages in thread
From: Ian Lance Taylor @ 2019-09-09 20:09 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Bernd Edlinger, gcc-patches, gofrontend-dev

[-- Attachment #1: Type: text/plain, Size: 762 bytes --]

On Sat, Sep 7, 2019 at 8:20 AM Andreas Schwab <schwab@linux-m68k.org> wrote:
>
> On Sep 07 2019, Bernd Edlinger <bernd.edlinger@hotmail.de> wrote:
>
> > Hi Ian,
> >
> >> gotools:
> >>
> >> 2019-09-06  Ian Lance Taylor  <iant@golang.org>
> >>
> >> * Makefile.am (check-carchive-test): Just run "go test", not "go
> >> test carchive_test.go".
> >> * Makefile.in: Regenerate.
> >>
> >> gcc/testsuite:
> >>
> >> 2019-09-06  Ian Lance Taylor  <iant@golang.org>
> >>
> >> * go.test/test/fixedbugs/bug369.go: Update to match libgo update
> >> to Go 1.13beta1.
> >>
> >
> > this patch can't build on arm anymore:
>
> Or any other non-x86 architecture.

Sorry for the breakage.  I just committed this patch, which should fix
the problem.  Let me know if it doesn't.

Ian

[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1552 bytes --]

Index: gcc/go/gofrontend/MERGE
===================================================================
--- gcc/go/gofrontend/MERGE	(revision 275540)
+++ gcc/go/gofrontend/MERGE	(working copy)
@@ -1,4 +1,4 @@
-17bef47f464983fd8513f88f3f159d28e2423e79
+03fa49394bb4b37453795bef3119e5b40c929aee
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
Index: libgo/Makefile.am
===================================================================
--- libgo/Makefile.am	(revision 275473)
+++ libgo/Makefile.am	(working copy)
@@ -683,6 +683,12 @@ else
 syscall_lib_clone_lo =
 endif
 
+if LIBGO_IS_X86
+golangorg_x_sys_cpu_gccgo_lo = golang.org/x/sys/cpu_gccgo.lo
+else
+golangorg_x_sys_cpu_gccgo_lo =
+endif
+
 PACKAGES = $(shell cat $(srcdir)/libgo-packages.txt)
 
 libgo_go_objs = \
@@ -700,7 +706,7 @@ libgo_go_objs = \
 	runtime/internal/atomic_c.lo \
 	sync/atomic_c.lo \
 	internal/cpu/cpu_gccgo.lo \
-	golang.org/x/sys/cpu_gccgo.lo
+	$(golangorg_x_sys_cpu_gccgo_lo)
 
 libgo_ldflags = \
 	-version-info $(libtool_VERSION) $(PTHREAD_CFLAGS) $(AM_LDFLAGS)
Index: libgo/configure.ac
===================================================================
--- libgo/configure.ac	(revision 275473)
+++ libgo/configure.ac	(working copy)
@@ -354,6 +354,8 @@ AC_SUBST(GOARCH)
 AC_SUBST(ALLGOARCH)
 AC_SUBST(ALLGOARCHFAMILY)
 
+AM_CONDITIONAL(LIBGO_IS_X86, test "$GOARCH" = "386" -o "$GOARCH" = "amd64" -o "$GOARCH" = "amd64p32")
+
 FUNCTION_DESCRIPTORS=false
 case ${host} in
   rs6000*-*-* | powerpc*-*-*)

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

* Re: [gofrontend-dev] Re: libgo: Update to Go 1.13beta1 release
  2019-09-09 20:09   ` [gofrontend-dev] " Ian Lance Taylor
@ 2019-09-09 21:00     ` Andreas Schwab
  2019-09-10 20:41       ` Ian Lance Taylor
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2019-09-09 21:00 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: Bernd Edlinger, gcc-patches, gofrontend-dev

../../../libgo/go/golang.org/x/sys/cpu/cpu.go:17:30: error: reference to undefined name ‘cacheLineSize’
   17 | type CacheLinePad struct{ _ [cacheLineSize]byte }
      |                              ^
../../../libgo/go/golang.org/x/sys/cpu/cpu_linux.go:56:2: error: reference to undefined name ‘doinit’
   56 |  doinit()
      |  ^

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

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

* Re: [gofrontend-dev] Re: libgo: Update to Go 1.13beta1 release
  2019-09-09 21:00     ` Andreas Schwab
@ 2019-09-10 20:41       ` Ian Lance Taylor
  2019-09-11  6:54         ` Andreas Schwab
  0 siblings, 1 reply; 8+ messages in thread
From: Ian Lance Taylor @ 2019-09-10 20:41 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Bernd Edlinger, gcc-patches, gofrontend-dev

On Mon, Sep 9, 2019 at 2:00 PM Andreas Schwab <schwab@linux-m68k.org> wrote:
>
> ../../../libgo/go/golang.org/x/sys/cpu/cpu.go:17:30: error: reference to undefined name ‘cacheLineSize’
>    17 | type CacheLinePad struct{ _ [cacheLineSize]byte }
>       |                              ^
> ../../../libgo/go/golang.org/x/sys/cpu/cpu_linux.go:56:2: error: reference to undefined name ‘doinit’
>    56 |  doinit()
>       |  ^

Thanks, should be fixed by SVN revision 275611, just committed.

Ian

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

* Re: [gofrontend-dev] Re: libgo: Update to Go 1.13beta1 release
  2019-09-10 20:41       ` Ian Lance Taylor
@ 2019-09-11  6:54         ` Andreas Schwab
  2019-09-11 14:06           ` Ian Lance Taylor
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2019-09-11  6:54 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: Bernd Edlinger, gcc-patches, gofrontend-dev

On Sep 10 2019, Ian Lance Taylor <iant@golang.org> wrote:

> On Mon, Sep 9, 2019 at 2:00 PM Andreas Schwab <schwab@linux-m68k.org> wrote:
>>
>> ../../../libgo/go/golang.org/x/sys/cpu/cpu.go:17:30: error: reference to undefined name ‘cacheLineSize’
>>    17 | type CacheLinePad struct{ _ [cacheLineSize]byte }
>>       |                              ^
>> ../../../libgo/go/golang.org/x/sys/cpu/cpu_linux.go:56:2: error: reference to undefined name ‘doinit’
>>    56 |  doinit()
>>       |  ^
>
> Thanks, should be fixed by SVN revision 275611, just committed.

Nope.

../../../libgo/go/golang.org/x/sys/cpu/cpu_linux.go:56:2: error: reference to undefined name 'doinit'
   56 |  doinit()
      |  ^
make[4]: *** [golang.org/x/sys/cpu.lo] Error 1

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

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

* Re: [gofrontend-dev] Re: libgo: Update to Go 1.13beta1 release
  2019-09-11  6:54         ` Andreas Schwab
@ 2019-09-11 14:06           ` Ian Lance Taylor
  2019-09-12 10:00             ` Andreas Schwab
  0 siblings, 1 reply; 8+ messages in thread
From: Ian Lance Taylor @ 2019-09-11 14:06 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Bernd Edlinger, gcc-patches, gofrontend-dev

[-- Attachment #1: Type: text/plain, Size: 972 bytes --]

On Tue, Sep 10, 2019 at 11:54 PM Andreas Schwab <schwab@linux-m68k.org> wrote:
>
> On Sep 10 2019, Ian Lance Taylor <iant@golang.org> wrote:
>
> > On Mon, Sep 9, 2019 at 2:00 PM Andreas Schwab <schwab@linux-m68k.org> wrote:
> >>
> >> ../../../libgo/go/golang.org/x/sys/cpu/cpu.go:17:30: error: reference to undefined name ‘cacheLineSize’
> >>    17 | type CacheLinePad struct{ _ [cacheLineSize]byte }
> >>       |                              ^
> >> ../../../libgo/go/golang.org/x/sys/cpu/cpu_linux.go:56:2: error: reference to undefined name ‘doinit’
> >>    56 |  doinit()
> >>       |  ^
> >
> > Thanks, should be fixed by SVN revision 275611, just committed.
>
> Nope.
>
> ../../../libgo/go/golang.org/x/sys/cpu/cpu_linux.go:56:2: error: reference to undefined name 'doinit'
>    56 |  doinit()
>       |  ^
> make[4]: *** [golang.org/x/sys/cpu.lo] Error 1

Bother, sorry.  I just committed this patch.  Perhaps this will fix it.

Ian

[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 942 bytes --]

Index: gcc/go/gofrontend/MERGE
===================================================================
--- gcc/go/gofrontend/MERGE	(revision 275648)
+++ gcc/go/gofrontend/MERGE	(working copy)
@@ -1,4 +1,4 @@
-1f4ce28409a2d9d4045b1085de55c46de8759d1c
+27b2311fa460b1dd76fb3a796c7c05ebedc64df2
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
Index: libgo/go/golang.org/x/sys/cpu/cpu_linux_other.go
===================================================================
--- libgo/go/golang.org/x/sys/cpu/cpu_linux_other.go	(nonexistent)
+++ libgo/go/golang.org/x/sys/cpu/cpu_linux_other.go	(working copy)
@@ -0,0 +1,9 @@
+// Copyright 2019 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build !amd64,!amd64p32,!386,!arm64,!ppc64,!ppc64le,!s390x
+
+package cpu
+
+func doinit() {}

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

* Re: [gofrontend-dev] Re: libgo: Update to Go 1.13beta1 release
  2019-09-11 14:06           ` Ian Lance Taylor
@ 2019-09-12 10:00             ` Andreas Schwab
  0 siblings, 0 replies; 8+ messages in thread
From: Andreas Schwab @ 2019-09-12 10:00 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: Bernd Edlinger, gcc-patches, gofrontend-dev

On Sep 11 2019, Ian Lance Taylor <iant@golang.org> wrote:

> On Tue, Sep 10, 2019 at 11:54 PM Andreas Schwab <schwab@linux-m68k.org> wrote:
>>
>> On Sep 10 2019, Ian Lance Taylor <iant@golang.org> wrote:
>>
>> > On Mon, Sep 9, 2019 at 2:00 PM Andreas Schwab <schwab@linux-m68k.org> wrote:
>> >>
>> >> ../../../libgo/go/golang.org/x/sys/cpu/cpu.go:17:30: error: reference to undefined name ‘cacheLineSize’
>> >>    17 | type CacheLinePad struct{ _ [cacheLineSize]byte }
>> >>       |                              ^
>> >> ../../../libgo/go/golang.org/x/sys/cpu/cpu_linux.go:56:2: error: reference to undefined name ‘doinit’
>> >>    56 |  doinit()
>> >>       |  ^
>> >
>> > Thanks, should be fixed by SVN revision 275611, just committed.
>>
>> Nope.
>>
>> ../../../libgo/go/golang.org/x/sys/cpu/cpu_linux.go:56:2: error: reference to undefined name 'doinit'
>>    56 |  doinit()
>>       |  ^
>> make[4]: *** [golang.org/x/sys/cpu.lo] Error 1
>
> Bother, sorry.  I just committed this patch.  Perhaps this will fix it.

It does.

Thanks, Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

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

end of thread, other threads:[~2019-09-12 10:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-07  7:33 libgo: Update to Go 1.13beta1 release Bernd Edlinger
2019-09-07  9:58 ` Andreas Schwab
2019-09-09 20:09   ` [gofrontend-dev] " Ian Lance Taylor
2019-09-09 21:00     ` Andreas Schwab
2019-09-10 20:41       ` Ian Lance Taylor
2019-09-11  6:54         ` Andreas Schwab
2019-09-11 14:06           ` Ian Lance Taylor
2019-09-12 10:00             ` Andreas Schwab

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