Opened 9 years ago

Closed 9 years ago

#48338 closed defect (fixed)

x265 @1.7 fails building using llvm-gcc-4.2 on 10.6.8

Reported by: udbraumann Owned by: ays388@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: dbevans (David B. Evans)
Port: x265

Description

As I have XCode 4.2 installed on my Snow Leopard 64 bit system, the preset compiler is llvm-gcc-4.2. While building x265 the compiler crashes at this point>

...
:info:build /opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_x265/x265/work/build/CMakeFiles 16
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_x265/x265/work/x265_1.7/source/encoder/analysis.cpp: In member function ‘void x265::Analysis::checkBidir2Nx2N(x265::Mode&, x265::Mode&, const x265::CUGeom&)’:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_x265/x265/work/x265_1.7/source/encoder/analysis.cpp:1553: internal compiler error: Segmentation fault
:info:build Please submit a full bug report,
:info:build with preprocessed source if appropriate.
:info:build See <URL:http://developer.apple.com/bugreporter> for instructions.
:info:build make[2]: *** [encoder/CMakeFiles/encoder.dir/analysis.cpp.o] Error 1
...

As building using the call

sudo port install x265 configure.compiler=gcc-4.2

has worked fine, I propose to blacklist llvm-gcc-4.2.

Attachments (2)

main.log.gz (5.8 KB) - added by udbraumann 9 years ago.
x265.diff (236 bytes) - added by ays388@… 9 years ago.
Blacklist llvm-gcc-4.2, as it crashes during build

Download all attachments as: .zip

Change History (7)

Changed 9 years ago by udbraumann

Attachment: main.log.gz added

comment:1 Changed 9 years ago by dbevans (David B. Evans)

Cc: devans@… added; ays388@… removed
Keywords: llvm-gcc-4.2 crashes removed
Owner: changed from macports-tickets@… to ays388@…

comment:2 Changed 9 years ago by ays388@…

Agreed. Here is a patch that does it.

Changed 9 years ago by ays388@…

Attachment: x265.diff added

Blacklist llvm-gcc-4.2, as it crashes during build

comment:3 in reply to:  2 Changed 9 years ago by udbraumann

Thanks, after blacklisting llvm-gcc-4.2 now it automatically selects /usr/bin/clang, (version 3.0, apparently it was also shipped with Xcode 4.2), which had no problems to build x265 @1.7. Don't know what happens on other 10.6.8 platforms using Xcode 3.2.6.

comment:4 Changed 9 years ago by dbevans (David B. Evans)

Apple clang 3.0 was introduced in Xcode 4.2. Earlier versions of clang are often found to be problematic and can be blacklisted by version using the compiler_blacklist_versions portgroup

PortGroup compiler_blacklist_versions 1.0
...
compiler.blacklist  *llvm-gcc-4.2 {clang < 300}

or such depending on what testing with earlier Xcode versions reveals.

See XcodeVersionInfo for details of what compilers are available by OS X and Xcode version.

Which compilers are selected after black listing is determined by compiler.fallback, the default values of which are set based on Xcode version. See code in base/src/port1.0/portconfigure.tcl for details.

Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 9 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

Patch committed in r138603.

Note: See TracTickets for help on using tickets.