Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jun 2020 17:39:00 +0200
From:      Piotr Kubaj <pkubaj@anongoth.pl>
To:        Jan Beich <jbeich@freebsd.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r538880 - head/graphics/libglvnd
Message-ID:  <20200615153900.GB26638@KGPE-D16>
In-Reply-To: <h7vc-4bgm-wny@FreeBSD.org>
References:  <202006151432.05FEW8Jo096922@repo.freebsd.org> <366w-5qb6-wny@FreeBSD.org> <h7vc-4bgm-wny@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--6sX45UoQRIJXqkqR
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I didn't try that. However, that compilation error was only one issue.

The other was LLVM bug (seems to be fixed in 11 already, so I didn't
report it to the upstream):
Assertion failed: (NextLocalOffset + FileSize + 1 > NextLocalOffset && Next=
LocalOffset + FileSize + 1 <=3D CurrentLoadedOffset && "Ran out of source l=
ocations!"), function createFileID, file /usr/src/contrib/llvm-project/clan=
g/lib/Basic/SourceManager.cpp, line 586.
Stack dump:
0.      Program arguments: /usr/bin/cc -cc1 -triple powerpc64-unknown-freeb=
sd13.0 -emit-obj -disable-free -main-file-name entry_ppc64_tls.c -mrelocati=
on-model pic -pic-level 2 -mthread-model posix -mframe-pointer=3Dnone -rela=
xed-aliasing -fno-rounding-math -masm-verbose -mconstructor-aliases -munwin=
d-tables -target-cpu ppc64 -target-feature +secure-plt -mfloat-abi hard -ta=
rget-abi elfv2 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tunin=
g=3Dgdb -sys-header-deps -D _FILE_OFFSET_BITS=3D64 -D USE_PPC64_ASM -D USE_=
DISPATCH_ASM -D USE_X11 -D HAVE_TYPEOF -D GLDISPATCH_USE_TLS -D USE_ATTRIBU=
TE_CONSTRUCTOR -D HAVE_PTHREAD_RWLOCK -D HAVE_SYNC_INTRINSICS -D HAVE_MINCO=
RE -D HAVE_RTLD_NOLOAD -D HAVE_DIRENT_DTYPE -D EGL_NO_X11 -D MAPI_ABI_HEADE=
R=3D"/wrkdirs/usr/ports/graphics/libglvnd/work/libglvnd-1c32de07074fee8edcb=
274899948b6551081ed54-1c32de07074fee8edcb274899948b6551081ed54/_build/src/g=
enerate/glapi_mapi_tmp.h" -O2 -Wall -Winvalid-pch -std=3Dgnu99 -ferror-limi=
t 19 -fmessage-length 0 -fvisibility hidden -stack-protector 2 -fno-signed-=
char -fgnuc-version=3D4.2.1 -fobjc-runtime=3Dgnustep -fdiagnostics-show-opt=
ion -vectorize-loops -vectorize-slp -fcolor-diagnostics -faddrsig -x c entr=
y_ppc64_tls-032b63.c
1.      <eof> parser at end of file
2.      Code generation
#0 0x0000000013bae410 PrintStackTrace
/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:564:13
#1 0x0000000013babad8 RunSignalHandlers
/usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:67:5
#2 0x0000000013baf218 SignalHandler
/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:3
#3 0x0000000815735850 handle_signal
/usr/src/lib/libthr/thread/thr_sig.c:303:3

I will try it, but it's possible that your fix will only take care of
the compilation error, but the LLVM bug will still break the build (at
least until LLVM 11).

On 20-06-15 17:04:25, Jan Beich wrote:
>Jan Beich <jbeich@FreeBSD.org> writes:
>
>> Piotr Kubaj <pkubaj@FreeBSD.org> writes:
>>
>>> Author: pkubaj
>>> Date: Mon Jun 15 14:32:08 2020
>>> New Revision: 538880
>>> URL: https://svnweb.freebsd.org/changeset/ports/538880
>>>
>>> Log:
>>>   graphics/libglvnd: fix build on powerpc64 elfv2
>>>
>>>   Clang fails to build this port, use GCC for now.
>>
>> What was the error? It built fine with GCC 9 on amd64.
>
>Err, I've found the error log. However, the logs are transient thus may
>disappear in a year, unlikely to be cached by Wayback Machine.
>
>http://pylon.nyi.freebsd.org/data/head-powerpc64-default/p538068_s361855/l=
ogs/errors/libglvnd-1.3.1.log
>
>> FAILED: src/GLdispatch/vnd-glapi/692a89e@@libglapi@sta/entry_ppc64_tls.c=
=2Eo
>[...]
>> <inline asm>:69651:14: error: invalid operand for instruction
>>   ld     12, (4096*8)@l (11)
>>              ^
>> <inline asm>:69668:14: error: invalid operand for instruction
>>   ld     12, (4097*8)@l (11)
>
>This looks like something that maybe fixed by
>
>  BUILD_DEPENDS+=3D ${BUILD_DEPENDS_${ARCH}}
>  BUILD_DEPENDS_powerpc64=3D      as:devel/binutils
>  CFLAGS_powerpc64=3D	-no-integrated-as
>
>Did you try?

--6sX45UoQRIJXqkqR
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQJkBAABCgBOFiEEycyIeNkkgohzsoorelmbhSCDnJ0FAl7nlhQwFIAAAAAAFQAS
cGthLWFkZHJlc3NAZ251cGcub3JncGt1YmFqQGFub25nb3RoLnBsAAoJEHpZm4Ug
g5ydI4cQAInuFa+V7/WFmPIowR7rDMjIe/Vob3sP4pPRobWJNDHYwmal5NSBv2Bw
IJDTdQuY91ReyPcPhEqivkVTlpsuJ8zN0i0keCG4V5DiXeu5X1pWQ+eoS9hWqt4x
lRK/6Mr2kneZQXitIMLxOTFvgciVYo5TQ/UL5TUoBmpFOFJoBqhxWKqk+6nqY4TL
9VBu6H/7rHrFmoIdrcjOj98qx50ij4K8AcFWT89flivJi5WpxVDk2P/XwtR+NSDH
xtqPtAWi6FtmXYPMIDAPpLMk15DwHT73gBnepsPMk+/CBfAbmj+PLL9tat99X4Jx
dT8vWZRH/SgglOMA8cQ2Nnbz7r0jsHRsaZhYrbMZJpiwDbXa4Q0Yxf535kQvXpVP
EnU9JfqM+RyMp50YRMnkyH6xlxhSbuN/s+wnSzOvfNwpr+YMKFpucEVTuIWMHXLV
Ojm6jRptd1QXtRxBJi0149igrfrDV4lYCeUsqadNihmIZSa4Hz/hcRu0lK9Ow8s4
tGZ1Xiupz8JHZC59HjOmjdOLVZD5GGclJy+AZXyO0xTEpvGZ3KFLNjOD5yVksdbI
JPZbdrzY2avfUHbygQ9hzvVeV71E5uGF+hvkntNK6H+tXEjFqjNzCcT1KgYVpdhJ
6kxw5MYL9VebNsvVy7Lgj9h/yDKvru7FqO/ZXWXaDc6UBF/MeLTS
=JETA
-----END PGP SIGNATURE-----

--6sX45UoQRIJXqkqR--



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