Opened 5 years ago

Closed 3 years ago

#59197 closed defect (fixed)

disktype @9: builds universal when it should not

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.1
Keywords: Cc:
Port: disktype

Description

disktype fails to build on Snow Leopard i386 because, although MacPorts did not request it, an i386/ppc universal build is attempted, and now that we are using clang 8, PowerPC builds are no longer possible:

--->  Building disktype
DEBUG: Executing org.macports.build (disktype)
DEBUG: Environment: 
CC='/opt/local/bin/clang-mp-8.0'
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_disktype/disktype/work/.CC_PRINT_OPTIONS'
CFLAGS='-Os -arch i386'
CPATH='/opt/local/include'
DEVELOPER_DIR='/Developer'
LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch i386'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.6'
Executing:  cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_disktype/disktype/work/disktype-9" && /usr/bin/make -j4 -w all 
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_disktype/disktype/work/disktype-9" && /usr/bin/make -j4 -w all 
make: Entering directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_disktype/disktype/work/disktype-9'
/opt/local/bin/clang-mp-8.0 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_MACOS_TYPE -DUSE_IOCTL_DARWIN -isysroot /Developer/SDKs/MacOSX10.4u.sdk -Os -arch i386 -Wall -arch i386 -arch ppc -c main.c
/opt/local/bin/clang-mp-8.0 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_MACOS_TYPE -DUSE_IOCTL_DARWIN -isysroot /Developer/SDKs/MacOSX10.4u.sdk -Os -arch i386 -Wall -arch i386 -arch ppc -c lib.c
/opt/local/bin/clang-mp-8.0 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_MACOS_TYPE -DUSE_IOCTL_DARWIN -isysroot /Developer/SDKs/MacOSX10.4u.sdk -Os -arch i386 -Wall -arch i386 -arch ppc -c buffer.c
/opt/local/bin/clang-mp-8.0 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_MACOS_TYPE -DUSE_IOCTL_DARWIN -isysroot /Developer/SDKs/MacOSX10.4u.sdk -Os -arch i386 -Wall -arch i386 -arch ppc -c file.c
fatal error: error in backend: Darwin is no longer supported for PowerPC
clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)

The port should build for the requested architectures.

Change History (4)

comment:1 Changed 5 years ago by kencu (Ken)

Not fixable; people using i386 only SL will have to set their universal archs to "i386". People on i386 Leopard the same.

If you have a CORE2, you can set them "i386 x86_64"

On PowerPC, the same idea, but sub ppc and ppc64 depending on your processor capabilities.

Perhaps we can override this in base, as it's a pretty hard rule now.

Last edited 5 years ago by kencu (Ken) (previous) (diff)

comment:2 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

The port is building universal, though no universal variant was requested. That needs to be fixed.

comment:3 Changed 5 years ago by kencu (Ken)

Right. That part is fixable, to be sure. I thought it was set to +universal by default in the portfile, as some ports are, but if it's just hardwired to build that way, --- well it must be absolutely ancient -- but that does need to be stripped out.

comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.