Opened 9 years ago

Closed 8 years ago

#49148 closed defect (fixed)

libjpeg-turbo @1.4.0: cannot build x86_64 SIMD extensions with nasm @2.11.08

Reported by: mytix.mail@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: x86_64 Cc: kurtjaeke@…, larryv (Lawrence Velázquez), mfeiri
Port: libjpeg-turbo

Description


Attachments (2)

main.log (35.8 KB) - added by mytix.mail@… 9 years ago.
0001-nasm-Update-to-2.11.09rc1-49148.patch (1.1 KB) - added by larryv (Lawrence Velázquez) 9 years ago.
patch to update nasm to 2.11.09rc1

Download all attachments as: .zip

Change History (10)

Changed 9 years ago by mytix.mail@…

Attachment: main.log added

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: libjpeg-turbo fails to build on OS X 10.11 (El Capitan)libjpeg-turbo: fatal: No section for index 2 offset 0 found

comment:2 Changed 9 years ago by kurtjaeke@…

Cc: kurtjaeke@… added

Cc Me!

comment:3 Changed 9 years ago by mytix.mail@…

Apparently it's a problem with NASM: https://gist.github.com/FiloSottile/7125822

comment:4 Changed 9 years ago by mytix.mail@…

comment:5 Changed 9 years ago by mytix.mail@…

The problem is that libjpeg-turbo is not compatible with NASM 2.11.08. It will work with older or newer versions (https://github.com/libjpeg-turbo/libjpeg-turbo/blob/master/BUILDING.md).

The solution is to downgrade NASM port to 2.11.06 (instructions: wiki:howto/InstallingOlderPort):

svn checkout -r 137573 https://svn.macports.org/repository/macports/trunk/dports/lang/nasm
cd nasm/
sudo port install

And now:

sudo port install libjpeg-turbo
Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 Changed 9 years ago by larryv (Lawrence Velázquez)

Cc: larryv@… mfeiri@… added
Keywords: x86_64 added; elcapitan removed
Summary: libjpeg-turbo: fatal: No section for index 2 offset 0 foundlibjpeg-turbo @1.4.0: cannot build x86_64 SIMD extensions with nasm @2.11.08

Stickier link to problem description:

https://github.com/libjpeg-turbo/libjpeg-turbo/blob/1.4.2/BUILDING.txt#L21

I think the best solution would be to upgrade nasm to 2.11.09rc1. If Michael is not comfortable with that, we could just disable the x86_64 SIMD extensions until NASM 2.11.09 stable is released.

Changed 9 years ago by larryv (Lawrence Velázquez)

patch to update nasm to 2.11.09rc1

comment:7 Changed 9 years ago by mfeiri

nasm 2.11.09 was never tagged/released, but version 2.12 is now available and was added to macports in r146354

comment:8 Changed 8 years ago by larryv (Lawrence Velázquez)

Resolution: fixed
Status: newclosed

With nasm at 2.12 and libjpeg-turbo at 1.5.0 (r149432), this shouldn’t be a problem anymore.

Note: See TracTickets for help on using tickets.