Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Nov 2019 15:48:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 242109] riscv64 build with binutils 2.33.1
Message-ID:  <bug-242109-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242109

            Bug ID: 242109
           Summary: riscv64 build with binutils 2.33.1
           Product: Base System
           Version: CURRENT
          Hardware: Any
               URL: https://reviews.freebsd.org/D22457
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: lwhsu@FreeBSD.org

riscv64 build fails with binutils 2.33.1:

```
/usr/local/bin/riscv64-unknown-freebsd12.0-gcc
--sysroot=3D/scratch/tmp/lwhsu/obj/scratch/tmp/lwhsu/src/riscv.riscv64/tmp
-B/usr/local/riscv64-unknown-freebsd12.0/bin/ -O2 -pipe -march=3Drv64imafdc
-mabi=3Dlp64d -I. -I/scratch/tmp/lwhsu/src/usr.sbin/jail -DINET6 -DINET -g
-std=3Dgnu99 -Wno-format-zero-length -fstack-protector-strong -Wsystem-head=
ers
-Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-stri=
ngs
-Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline
-Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign
-Wno-error=3Daddress -Wno-error=3Darray-bounds -Wno-error=3Dattributes
-Wno-error=3Dbool-compare -Wno-error=3Dcast-align -Wno-error=3Dclobbered
-Wno-error=3Ddeprecated-declarations -Wno-error=3Denum-compare -Wno-error=
=3Dextra
-Wno-error=3Dinline -Wno-error=3Dlogical-not-parentheses -Wno-error=3Dstric=
t-aliasing
-Wno-error=3Duninitialized -Wno-error=3Dunused-but-set-variable
-Wno-error=3Dunused-function -Wno-error=3Dunused-value
-Wno-error=3Dmisleading-indentation -Wno-error=3Dnonnull-compare
-Wno-error=3Dshift-negative-value -Wno-error=3Dtautological-compare
-Wno-error=3Dunused-const-variable -Wno-error=3Dbool-operation
-Wno-error=3Ddeprecated -Wno-error=3Dexpansion-to-defined
-Wno-error=3Dformat-overflow -Wno-error=3Dformat-truncation
-Wno-error=3Dimplicit-fallthrough -Wno-error=3Dint-in-bool-context
-Wno-error=3Dmemset-elt-size -Wno-error=3Dnoexcept-type -Wno-error=3Dnonnull
-Wno-error=3Dpointer-compare -Wno-error=3Dstringop-overflow
-Wno-error=3Daggressive-loop-optimizations -Wno-error=3Dcast-function-type
-Wno-error=3Dcatch-value -Wno-error=3Dmultistatement-macros -Wno-error=3Dre=
strict
-Wno-error=3Dsizeof-pointer-memaccess -Wno-error=3Dstringop-truncation    -o
jail.full jail.o command.o config.o state.o jaillex.o jailparse.o   -ljail=
=20
-lkvm  -lutil
jailparse.o: in function `yyparse':
/scratch/tmp/lwhsu/src/usr.sbin/jail/jailparse.y:75:(.text+0xfe): relocation
truncated to fit: R_RISCV_GPREL_I against `.LANCHOR2'
collect2: error: ld returned 1 exit status
*** [jail.full] Error code 1

make[4]: stopped in /scratch/tmp/lwhsu/src/usr.sbin/jail
1 error
```

Workaround patch at https://reviews.freebsd.org/D22457

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-242109-227>