[MacPorts] #42361: Build failure for libjpeg-turbo +universal
#42361: Build failure for libjpeg-turbo +universal ------------------------+-------------------------------- Reporter: nneonneo@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: libjpeg-turbo ------------------------+-------------------------------- libjpeg-turbo won't build in the +universal variant. The relevant config.log is attached. configure:13494: checking for nasm configure:13521: result: /opt/local/bin/nasm configure:13534: checking for object file format of host system configure:13608: result: Mach-O64 configure:13616: checking for object file format specifier (NAFLAGS) configure:13631: result: -fmacho64 -DMACHO -D__x86_64__ configure:13635: checking whether the assembler (/opt/local/bin/nasm -fmacho64 -DMACHO -D__x86_64__) works configure:13646: /opt/local/bin/nasm -fmacho64 -DMACHO -D__x86_64__ -o conftest.o conftest.asm configure:13649: $? = 0 configure:13651: result: yes configure:13662: checking whether the linker accepts assembler output configure:13665: /usr/bin/clang -o conftest -L/opt/local/lib -Wl,-headerpad_max_install_names -arch i386 conftest.o 1>&5 ld: warning: ignoring file conftest.o, file was built for unsupported file format ( 0xCF 0xFA 0xED 0xFE 0x07 0x00 0x00 0x01 0x03 0x00 0x00 0x00 0x01 0x00 0x00 0x00 ) which is not the architecture being linked (i386): conftest.o Undefined symbols for architecture i386: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) configure:13668: $? = 1 configure:13675: result: no configure:13677: error: configuration problem: maybe object file format mismatch. -- Ticket URL: <https://trac.macports.org/ticket/42361> MacPorts <http://www.macports.org/> Ports system for OS X
#42361: libjpeg-turbo +universal: build failure ----------------------------+----------------------------- Reporter: nneonneo@… | Owner: rmstonecipher@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: libjpeg-turbo | ----------------------------+----------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => rmstonecipher@… Old description:
libjpeg-turbo won't build in the +universal variant. The relevant config.log is attached.
configure:13494: checking for nasm configure:13521: result: /opt/local/bin/nasm configure:13534: checking for object file format of host system configure:13608: result: Mach-O64 configure:13616: checking for object file format specifier (NAFLAGS) configure:13631: result: -fmacho64 -DMACHO -D__x86_64__ configure:13635: checking whether the assembler (/opt/local/bin/nasm -fmacho64 -DMACHO -D__x86_64__) works configure:13646: /opt/local/bin/nasm -fmacho64 -DMACHO -D__x86_64__ -o conftest.o conftest.asm configure:13649: $? = 0 configure:13651: result: yes configure:13662: checking whether the linker accepts assembler output configure:13665: /usr/bin/clang -o conftest -L/opt/local/lib -Wl,-headerpad_max_install_names -arch i386 conftest.o 1>&5 ld: warning: ignoring file conftest.o, file was built for unsupported file format ( 0xCF 0xFA 0xED 0xFE 0x07 0x00 0x00 0x01 0x03 0x00 0x00 0x00 0x01 0x00 0x00 0x00 ) which is not the architecture being linked (i386): conftest.o Undefined symbols for architecture i386: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) configure:13668: $? = 1 configure:13675: result: no configure:13677: error: configuration problem: maybe object file format mismatch.
New description: libjpeg-turbo won't build in the +universal variant. The relevant config.log is attached. {{{ configure:13494: checking for nasm configure:13521: result: /opt/local/bin/nasm configure:13534: checking for object file format of host system configure:13608: result: Mach-O64 configure:13616: checking for object file format specifier (NAFLAGS) configure:13631: result: -fmacho64 -DMACHO -D__x86_64__ configure:13635: checking whether the assembler (/opt/local/bin/nasm -fmacho64 -DMACHO -D__x86_64__) works configure:13646: /opt/local/bin/nasm -fmacho64 -DMACHO -D__x86_64__ -o conftest.o conftest.asm configure:13649: $? = 0 configure:13651: result: yes configure:13662: checking whether the linker accepts assembler output configure:13665: /usr/bin/clang -o conftest -L/opt/local/lib -Wl,-headerpad_max_install_names -arch i386 conftest.o 1>&5 ld: warning: ignoring file conftest.o, file was built for unsupported file format ( 0xCF 0xFA 0xED 0xFE 0x07 0x00 0x00 0x01 0x03 0x00 0x00 0x00 0x01 0x00 0x00 0x00 ) which is not the architecture being linked (i386): conftest.o Undefined symbols for architecture i386: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) configure:13668: $? = 1 configure:13675: result: no configure:13677: error: configuration problem: maybe object file format mismatch. }}} -- Comment: I'm unable to reproduce this problem on Mavericks. -- Ticket URL: <https://trac.macports.org/ticket/42361#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#42361: libjpeg-turbo +universal: build failure ------------------------------------+----------------------------- Reporter: nneonneo@… | Owner: rmstonecipher@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: libjpeg-turbo mozjpeg | ------------------------------------+----------------------------- Changes (by raimue@…): * cc: raimue@… (added) * port: libjpeg-turbo => libjpeg-turbo mozjpeg Comment: I see the problem on Mavericks, also affects mozjpeg (a libjpeg-turbo fork). -- Ticket URL: <https://trac.macports.org/ticket/42361#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#42361: libjpeg-turbo +universal: build failure ------------------------------------+----------------------------- Reporter: nneonneo@… | Owner: rmstonecipher@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: libjpeg-turbo mozjpeg | ------------------------------------+----------------------------- Comment (by raimue@…): I think the problem is the `--host` argument to configure, we can't use `${build_arch}` there to pass different build flags as the Portfile is only parsed once but needs to be different per architecture. I don't know muniversal very well, but I think this would be the fix: {{{ --- Portfile (revision 117637) +++ Portfile (working copy) @@ -35,6 +35,8 @@ configure.args-append --host x86_64-apple-darwin } } +lappend merger_configure_args(i386) --host i686-apple-darwin +lappend merger_configure_args(x86_64) --host x86_64-apple-darwin post-destroot { xinstall -d ${destroot}${prefix}/share/doc/${name} }}} -- Ticket URL: <https://trac.macports.org/ticket/42361#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts