Opened 15 years ago

Closed 15 years ago

#22775 closed defect (fixed)

jpeg +universal fails to build

Reported by: megAnhalt@… Owned by: waqar@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: haspatch Cc:
Port: jpeg

Description

Hello everybody,

I've looked around the db for a similar report, but they are different afaics:

When trying to install wine-devel +universal on Snow Leopard on a uninstalled and cleaned system (following Migration instructions), wine-devel must be installed as universal. the problem is that jpeg fails to build universal, with the following error code:

...
--->  Building jpeg
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_jpeg/work/jpeg-6b" && /usr/bin/make -j2 all " returned error 2
Command output: /usr/bin/gcc-4.2 -O2 -arch i386 -arch ppc -isystem/opt/local/include -I. -c ./transupp.c -o transupp.o >/dev/null 2>&1
/usr/bin/gcc-4.2 -O2 -arch i386 -arch ppc -isystem/opt/local/include -I. -c ./rdjpgcom.c -o rdjpgcom.o >/dev/null 2>&1
mv -f .libs/rdjpgcom.lo rdjpgcom.lo
./libtool --mode=compile /usr/bin/gcc-4.2 -O2 -arch i386 -arch ppc -isystem/opt/local/include -I. -c ./wrjpgcom.c
rm -f .libs/wrjpgcom.lo
/usr/bin/gcc-4.2 -O2 -arch i386 -arch ppc -isystem/opt/local/include -I. -c ./wrjpgcom.c  -fno-common -DPIC -o .libs/wrjpgcom.lo
/usr/bin/gcc-4.2 -O2 -arch i386 -arch ppc -isystem/opt/local/include -I. -c ./wrjpgcom.c -o wrjpgcom.o >/dev/null 2>&1
mv -f .libs/wrjpgcom.lo wrjpgcom.lo
./libtool --mode=link "/usr/bin/gcc-4.2 -O2 -arch i386 -arch ppc -isystem/opt/local/include -I." -o libjpeg.la jcapimin.lo jcapistd.lo jctrans.lo jcparam.lo jdatadst.lo jcinit.lo jcmaster.lo jcmarker.lo jcmainct.lo jcprepct.lo jccoefct.lo jccolor.lo jcsample.lo jchuff.lo jcphuff.lo jcdctmgr.lo jfdctfst.lo jfdctflt.lo jfdctint.lo jdapimin.lo jdapistd.lo jdtrans.lo jdatasrc.lo jdmaster.lo jdinput.lo jdmarker.lo jdhuff.lo jdphuff.lo jdmainct.lo jdcoefct.lo jdpostct.lo jddctmgr.lo jidctfst.lo jidctflt.lo jidctint.lo jidctred.lo jdsample.lo jdcolor.lo jquant1.lo jquant2.lo jdmerge.lo jcomapi.lo jutils.lo jerror.lo jmemmgr.lo jmemnobs.lo \
		-rpath /opt/local/lib -no-undefined -version-info 62
rm -fr .libs/libjpeg.la .libs/libjpeg.* .libs/libjpeg.*
mv -f .libs/transupp.lo transupp.lo
./libtool --mode=link /usr/bin/gcc-4.2  -o rdjpgcom rdjpgcom.lo -arch x86_64 -arch i386 -arch ppc
/usr/bin/gcc-4.2 -o rdjpgcom rdjpgcom.o -arch x86_64 -arch i386 -arch ppc 
ld: warning: in rdjpgcom.o, missing required architecture x86_64 in file
Undefined symbols for architecture x86_64:
  "_main", referenced from:
      start in crt1.10.6.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccozXoFR.out (No such file or directory)
make: *** [rdjpgcom] Error 1
make: *** Waiting for unfinished jobs....
/usr/bin/gcc-4.2 -O2 -arch i386 -arch ppc -isystem/opt/local/include -I. -dynamiclib  -o .libs/libjpeg.62.0.0.dylib  jcapimin.lo jcapistd.lo jctrans.lo jcparam.lo jdatadst.lo jcinit.lo jcmaster.lo jcmarker.lo jcmainct.lo jcprepct.lo jccoefct.lo jccolor.lo jcsample.lo jchuff.lo jcphuff.lo jcdctmgr.lo jfdctfst.lo jfdctflt.lo jfdctint.lo jdapimin.lo jdapistd.lo jdtrans.lo jdatasrc.lo jdmaster.lo jdinput.lo jdmarker.lo jdhuff.lo jdphuff.lo jdmainct.lo jdcoefct.lo jdpostct.lo jddctmgr.lo jidctfst.lo jidctflt.lo jidctint.lo jidctred.lo jdsample.lo jdcolor.lo jquant1.lo jquant2.lo jdmerge.lo jcomapi.lo jutils.lo jerror.lo jmemmgr.lo jmemnobs.lo  -lc  -install_name /opt/local/lib/libjpeg.62.dylib -compatibility_version 63 -current_version 63.0
(cd .libs && rm -f libjpeg.62.dylib && ln -s libjpeg.62.0.0.dylib libjpeg.62.dylib)
(cd .libs && rm -f libjpeg.dylib && ln -s libjpeg.62.0.0.dylib libjpeg.dylib)
ar cru .libs/libjpeg.a  jcapimin.o jcapistd.o jctrans.o jcparam.o jdatadst.o jcinit.o jcmaster.o jcmarker.o jcmainct.o jcprepct.o jccoefct.o jccolor.o jcsample.o jchuff.o jcphuff.o jcdctmgr.o jfdctfst.o jfdctflt.o jfdctint.o jdapimin.o jdapistd.o jdtrans.o jdatasrc.o jdmaster.o jdinput.o jdmarker.o jdhuff.o jdphuff.o jdmainct.o jdcoefct.o jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o jcomapi.o jutils.o jerror.o jmemmgr.o jmemnobs.o 
ranlib .libs/libjpeg.a
creating libjpeg.la
(cd .libs && rm -f libjpeg.la && ln -s ../libjpeg.la libjpeg.la)

Error: The following dependencies failed to build: jpeg libxml2 libxslt mesa glut makedepend pkgconfig xorg-xproto xorg-dri2proto xorg-glproto xorg-libXfixes xorg-fixesproto xorg-libX11 groff xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-libXdmcp xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-libXi xorg-libXext xorg-libXmu xorg-libXt xorg-libsm xorg-libice ncurses ncursesw openssl xorg-libXcursor xorg-renderproto xrender xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto xorg-libXxf86vm xorg-xf86vidmodeproto
Error: Status 1 encountered during processing.


Wine refuses to build unless it's i386, which is impossible since jpeg doesn't build universal. (tried to build it regularly, which works, but doesn't work as a dependency for wine.

As I said, following the Migration instructions for Macport, I wiped the Macports system clean after installing Snow Leopard, XCode and Macports was updated, and wine was the first one to be installed.

I've been trying for two days to install wine-devel, reading bug reports and tickets, uninstalling, cleaning, and installing again. Is there a working solution to the problem?

I actually hope it's just me and not a general problem...

Attachments (1)

jpeg-archflags.diff (390 bytes) - added by jmroot (Joshua Root) 15 years ago.
possible fix

Download all attachments as: .zip

Change History (7)

comment:1 Changed 15 years ago by megAnhalt@…

Cc: megAnhalt@… added

Cc Me!

comment:2 Changed 15 years ago by jmroot (Joshua Root)

Cc: megAnhalt@… removed
Keywords: wine-devel snow leopard removed
Owner: changed from macports-tickets@… to waqar@…
Port: jpeg added; wine-devel removed
Summary: dependencies for wine-devel fail to build universal, so wine-devel cannot install on Snow Leopardjpeg +universal fails to build

Looks like jpeg is doing something wrong with the archflags, but wouldn't you want universal_archs set to x86_64 i386 rather than i386 ppc anyway?

Changed 15 years ago by jmroot (Joshua Root)

Attachment: jpeg-archflags.diff added

possible fix

comment:3 Changed 15 years ago by jmroot (Joshua Root)

Keywords: haspatch added

comment:4 in reply to:  2 ; Changed 15 years ago by megAnhalt@…

Replying to jmr@…:

Looks like jpeg is doing something wrong with the archflags, but wouldn't you want universal_archs set to x86_64 i386 rather than i386 ppc anyway?

jmr, that's exactly what was the problem! I had suspected the same, but since every instruction for installing ports had ppc i386 I kept it that way. Now, I changed the universal_archs to i386 x86_64 and everything built smoothly. I wonder why this isn't set as default when installing Macports on Snow Leopard... would make things a lot easier for the casual builder like me...

Well, this fixed my problem, but it seems jpeg has a problem with i386 ppc anyway?

comment:5 in reply to:  4 Changed 15 years ago by jmroot (Joshua Root)

Replying to megAnhalt@…:

Now, I changed the universal_archs to i386 x86_64 and everything built smoothly. I wonder why this isn't set as default when installing Macports on Snow Leopard... would make things a lot easier for the casual builder like me...

It is the default. But you didn't install MacPorts on Snow Leopard. The installer doesn't change your existing config file, because for all it knows you want it the way it is.

comment:6 Changed 15 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

r61349 (maintainer timeout)

Note: See TracTickets for help on using tickets.