svn commit: r538880 - head/graphics/libglvnd

Piotr Kubaj pkubaj at anongoth.pl
Mon Jun 15 15:39:05 UTC 2020


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 && NextLocalOffset + FileSize + 1 <= CurrentLoadedOffset && "Ran out of source locations!"), function createFileID, file /usr/src/contrib/llvm-project/clang/lib/Basic/SourceManager.cpp, line 586.
Stack dump:
0.      Program arguments: /usr/bin/cc -cc1 -triple powerpc64-unknown-freebsd13.0 -emit-obj -disable-free -main-file-name entry_ppc64_tls.c -mrelocation-model pic -pic-level 2 -mthread-model posix -mframe-pointer=none -relaxed-aliasing -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu ppc64 -target-feature +secure-plt -mfloat-abi hard -target-abi elfv2 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -sys-header-deps -D _FILE_OFFSET_BITS=64 -D USE_PPC64_ASM -D USE_DISPATCH_ASM -D USE_X11 -D HAVE_TYPEOF -D GLDISPATCH_USE_TLS -D USE_ATTRIBUTE_CONSTRUCTOR -D HAVE_PTHREAD_RWLOCK -D HAVE_SYNC_INTRINSICS -D HAVE_MINCORE -D HAVE_RTLD_NOLOAD -D HAVE_DIRENT_DTYPE -D EGL_NO_X11 -D MAPI_ABI_HEADER="/wrkdirs/usr/ports/graphics/libglvnd/work/libglvnd-1c32de07074fee8edcb274899948b6551081ed54-1c32de07074fee8edcb274899948b6551081ed54/_build/src/generate/glapi_mapi_tmp.h" -O2 -Wall -Winvalid-pch -std=gnu99 -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -stack-protector 2 -fno-signed-char -fgnuc-version=4.2.1 -fobjc-runtime=gnustep -fdiagnostics-show-option -vectorize-loops -vectorize-slp -fcolor-diagnostics -faddrsig -x c entry_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 at FreeBSD.org> writes:
>
>> Piotr Kubaj <pkubaj at 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/logs/errors/libglvnd-1.3.1.log
>
>> FAILED: src/GLdispatch/vnd-glapi/692a89e@@libglapi at sta/entry_ppc64_tls.c.o
>[...]
>> <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+= ${BUILD_DEPENDS_${ARCH}}
>  BUILD_DEPENDS_powerpc64=      as:devel/binutils
>  CFLAGS_powerpc64=	-no-integrated-as
>
>Did you try?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 898 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-head/attachments/20200615/b1b704ea/attachment.sig>


More information about the svn-ports-head mailing list