Bug 198133

Summary: graphics/opencv-core fails to build on powerpc64
Product: Ports & Packages Reporter: Justin Hibbits <jhibbits>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: jhale, ppc
Priority: --- Keywords: needs-qa
Version: LatestFlags: vlad-fbsd: maintainer-feedback+
Hardware: powerpc   
OS: Any   
Attachments:
Description Flags
poudriere failure log for graphics/opencv-core none

Description Justin Hibbits freebsd_committer freebsd_triage 2015-03-01 16:22:34 UTC
Created attachment 153643 [details]
poudriere failure log for graphics/opencv-core

graphics/opencv-core throws a linker error:

cd /wrkdirs/usr/ports/graphics/opencv-core/work/opencv-2.4.9/modules/core && /usr/local/bin/g++48 -O2 -pipe -mcpu=970 -Wl,-rpath=/usr/local/lib/gcc48 -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc48 -DNDEBUG -fPIC -I"/wrkdirs/usr/ports/graphics/opencv-core/work/opencv-2.4.9/modules/dynamicuda/include" -I"/wrkdirs/usr/ports/graphics/opencv-core/work/opencv-2.4.9/modules/core" -I"/wrkdirs/usr/ports/graphics/opencv-core/work/opencv-2.4.9/modules/core/src" -I"/wrkdirs/usr/ports/graphics/opencv-core/work/opencv-2.4.9/modules/core/include" -isystem"/wrkdirs/usr/ports/graphics/opencv-core/work/opencv-2.4.9" -isystem"/usr/local/include/eigen3" -isystem"/usr/include" -O2 -pipe -mcpu=970 -Wl,-rpath=/usr/local/lib/gcc48 -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc48 -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -pthread -fomit-frame-pointer -mtune=G5 -ffunction-sections -DCVAPI_EXPORTS -x c++-header -o /wrkdirs/usr/ports/graphics/opencv-core/work/opencv-2.4.9/modules/core/precomp.hpp.gch/opencv_core_Release.gch /wrkdirs/usr/ports/graphics/opencv-core/work/opencv-2.4.9/modules/core/precomp.hpp
/usr/lib/crt1.o:(.got+0x60): undefined reference to `main'
collect2: error: ld returned 1 exit status
*** Error code 1

Building on powerpc64.  I've attached the poudriere log.  The only difference from default is this is being built with lang/gcc instead of base.
Comment 1 Jason E. Hale freebsd_committer freebsd_triage 2016-09-19 22:54:53 UTC
Return to pool.
Comment 2 VK 2016-10-04 07:43:11 UTC
Justin, thanks for the report. Is this still an issue?
Comment 3 Justin Hibbits freebsd_committer freebsd_triage 2016-10-06 16:01:23 UTC
Looks like the update to 2.4.13 must've fixed it.  Just tested and it builds successfully.