Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Feb 2020 22:18:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        powerpc@FreeBSD.org
Subject:   [Bug 243855] devel/raylib: fix build on powerpc64 elfv2
Message-ID:  <bug-243855-25139@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 243855
           Summary: devel/raylib: fix build on powerpc64 elfv2
           Product: Ports & Packages
           Version: Latest
          Hardware: powerpc
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: pkubaj@FreeBSD.org
                CC: freebsd@sysctl.cz, powerpc@FreeBSD.org
             Flags: maintainer-feedback?(freebsd@sysctl.cz)
                CC: freebsd@sysctl.cz, powerpc@FreeBSD.org

Created attachment 211328
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D211328&action=
=3Dedit
patch

Clang has issues compiling this port on powerpc64 elfv2:
Assertion failed: ((Op.getOpcode() =3D=3D ISD::FP_TO_SINT || Subtarget.hasF=
PCVT())
&& "i64 FP_TO_UINT is supported only with FPCVT"), function
LowerFP_TO_INTForReuse, file
/poudriere/jails/powerpc64-elfv2-pkubaj/usr/src/contrib/llvm-project/llvm/l=
ib/Target/PowerPC/PPCISelLowering.cpp,
line 7281.
Stack dump:
0.      Program arguments: /usr/bin/cc -cc1 -triple
powerpc64-unknown-freebsd13.0 -emit-obj -disable-free -main-file-name raudi=
o.c
-mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu ppc64 -target-feature +secure-plt -mfloat-abi hard
-dwarf-column-info -debugger-tuning=3Dgdb -momit-leaf-frame-pointer
-coverage-notes-file
/wrkdirs/usr/ports/devel/raylib/work/.build/src/CMakeFiles/raylib.dir/raudi=
o.c.gcno
-resource-dir /usr/lib/clang/9.0.1 -dependency-file
src/CMakeFiles/raylib.dir/raudio.c.o.d -sys-header-deps -MT
src/CMakeFiles/raylib.dir/raudio.c.o -isystem /usr/local/include -isystem
/usr/local/include -D GLFW_DLL -D GRAPHICS_API_OPENGL_33 -D PLATFORM_DESKTO=
P -D
RAYLIB_CMAKE=3D1 -D raylib_EXPORTS -I . -I
/wrkdirs/usr/ports/devel/raylib/work/raylib-2.5.0/src/. -O2
-Werror=3Dimplicit-function-declaration -Werror=3Dpointer-arith -std=3Dgnu99
-fdebug-compilation-dir /wrkdirs/usr/ports/devel/raylib/work/.build
-ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fno-signed-char
-fobjc-runtime=3Dgnustep -fdiagnostics-show-option -vectorize-loops
-vectorize-slp -faddrsig -o src/CMakeFiles/raylib.dir/raudio.c.o -x c
/wrkdirs/usr/ports/devel/raylib/work/raylib-2.5.0/src/raudio.c=20
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'/wrkdirs/usr/ports/devel/raylib/work/raylib-2.5.0/src/raudio.c'.
4.      Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on
function '@ma_calculate_frame_count_after_src'
#0 0x000000001371e818 (/usr/bin/cc+0x1371e818)
#1 0x000000001371ee94 (/usr/bin/cc+0x1371ee94)
#2 0x000000001371c158 (/usr/bin/cc+0x1371c158)
#3 0x000000001371f60c (/usr/bin/cc+0x1371f60c)
#4 0x000000081520176c (/lib/libthr.so.3+0x1b76c)
cc: error: unable to execute command: Abort trap (core dumped)
cc: error: clang frontend command failed due to signal (use -v to see
invocation)
FreeBSD clang version 9.0.1 (git@github.com:llvm/llvm-project.git
c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1)
Target: powerpc64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin

Use GCC instead. The issue with Clang has been reported upstream.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



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