Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#46208 closed defect (fixed)

libvpx: failes with unknown argument: '-fno-integrated-as' using Xcode 6.1.1

Reported by: skymoo (Adam Mercer) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: libvpx

Description (last modified by skymoo (Adam Mercer))

I'm setting up a new iMac, running Mac OS X 10.10.1 and Xcode-6.1.1 and the build is failing with the following:

:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_libvpx/libvpx/work/libvpx-v1.3.0'
:info:build /usr/bin/clang -S -pipe -Os -arch x86_64 -m64 -arch x86_64 -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused-variable -fno-strict-aliasing -Wno-unused-function -I. -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_libvpx/libvpx/work/libvpx-v1.3.0" -DINLINE_ASM -fno-integrated-as -o vp8/encoder/vp8_asm_enc_offsets.c.S vp8/encoder/vp8_asm_enc_offsets.c
:info:build clang: error: unknown argument: '-fno-integrated-as'

My clang is:

$ clang --version
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
$

A full build log is attached.

Attachments (1)

main.log (266.8 KB) - added by skymoo (Adam Mercer) 9 years ago.

Download all attachments as: .zip

Change History (9)

Changed 9 years ago by skymoo (Adam Mercer)

Attachment: main.log added

comment:1 Changed 9 years ago by skymoo (Adam Mercer)

Description: modified (diff)

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

Status: newassigned
Summary: libvpx: failes with unknown argument: '-fno-integrated-as' on Yosemitelibvpx: failes with unknown argument: '-fno-integrated-as' using Xcode 6.1.1

Looks like this is not Yosemite specific but due to using Xcode 6.1.1. Can be reproduced on Mavericks as well with that version.

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

This is a consequence of jeremyhu's fix for clang-3.5 and later committed in r129110.

Although the clang version included with Xcode 6.1.1

Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix

claims to be based on LLVN 3.5svn, it does not recognize '-fno-integrated-as'. Possibly fails on earlier Xcode versions as well.

Copying jeremyhu for comment.

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

Cc: jeremyhu@… added

comment:5 Changed 9 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Owner: changed from devans@… to jeremyhu@…
Status: assignednew

Wha... ? oO

:info:build /usr/bin/clang -S -pipe -Os -arch x86_64 -m64 -arch x86_64 -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused-variable -fno-strict-aliasing -Wno-unused-function -I. -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_libvpx/libvpx/work/libvpx-v1.3.0" -DINLINE_ASM -fno-integrated-as -o vp8/encoder/vp8_asm_enc_offsets.c.S vp8/encoder/vp8_asm_enc_offsets.c
:info:build clang: error: unknown argument: '-fno-integrated-as'
Last edited 9 years ago by jeremyhu (Jeremy Huddleston Sequoia) (previous) (diff)

comment:6 Changed 9 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

comment:7 Changed 9 years ago by jeremyhu (Jeremy Huddleston Sequoia)

I thought that was added a while ago and that pre-integrated-as clang were already blacklisted. Sorry about that. Adjusted.

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

Fix also required for MacPorts clang-3.6 and presumably later versions

Further refinement with updated comments added in r129403.

Tested successfully with Xcode 6.1.1 clang, Macports clang-3.4, clang-3.5, clang-3.6.

Note: See TracTickets for help on using tickets.