Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686624 - sys-devel/gcc-8.3.0-r1[go]: "version.go:61:13: error: expected ‘;’ or ‘)’ or newline" on hppa
Summary: sys-devel/gcc-8.3.0-r1[go]: "version.go:61:13: error: expected ‘;’ or ‘)’ or ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 685144
  Show dependency tree
 
Reported: 2019-05-23 20:06 UTC by Rolf Eike Beer
Modified: 2019-05-25 08:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (sys-devel_gcc-8.3.0-r1_use_ylBCL.xz,105.42 KB, application/x-xz)
2019-05-23 20:06 UTC, Rolf Eike Beer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf Eike Beer archtester 2019-05-23 20:06:05 UTC
Created attachment 577670 [details]
build.log

The funny thing is that there is at least one "go" configuration that actually builds:

USE='cxx -doc fortran go nls -nptl -objc -objc++ -objc-gc -openmp pch -pgo -pie -sanitize -ssp -vanilla -vtv' failed for =sys-devel/gcc-8.3.0-r1
USE='cxx doc fortran go nls nptl objc -objc++ -objc-gc openmp -pch pgo pie -sanitize -ssp vanilla -vtv' failed for =sys-devel/gcc-8.3.0-r1
USE='-cxx -doc -fortran go -nls -nptl -objc -objc++ objc-gc openmp -pch pgo pie sanitize -ssp -vanilla vtv' succeeded for =sys-devel/gcc-8.3.0-r1

The actual failure is this:

version.go:61:13: error: expected ‘;’ or ‘)’ or newline
   BigEndian =
             ^
version.go:61:3: error: reference to undefined name ‘BigEndian’
   BigEndian =
   ^

I guess the reason is this:

for a in I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 PPC PPC64 RISCV64 S390 S390X SH SPARC SPARC64; do \
  echo "        ${a}" >> version.go.tmp; \
done
echo ")" >> version.go.tmp
echo >> version.go.tmp
for a in 386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mips mipsle mips64 mips64le mips64p32 mips64p32le ppc ppc64 ppc64le riscv64 s390 s390x sh shbe sparc sparc64; do \
  f=`echo ${a} | sed -e 's/\(.\).*/\1/' -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`; \
  n="${f}`echo ${a} | sed -e 's/.//'`"; \
  if test "${a}" = "unknown"; then \
    echo "const Goarch${n} = 1" >> version.go.tmp; \
  else \
    echo "const Goarch${n} = 0" >> version.go.tmp; \
  fi; \
done

Both loops lack hppa.
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2019-05-25 08:22:17 UTC
Looks like ./configure needs quite a bit of plumbing to add hppa support.
Comment 2 Larry the Git Cow gentoo-dev 2019-05-25 08:40:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2a3ffbf6144abcb45f996985cf3bf31b0985a0f

commit c2a3ffbf6144abcb45f996985cf3bf31b0985a0f
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2019-05-25 08:39:10 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-05-25 08:40:22 +0000

    profiles/arch/hppa/package.use.mask: mask gcc[go], bug #686624
    
    USE=go is not ported to hppa.
    
    Reported-by: Rolf Eike Beer
    Closes: https://bugs.gentoo.org/686624
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 profiles/arch/hppa/package.use.mask | 4 ++++
 1 file changed, 4 insertions(+)