Opened 9 months ago

Last modified 9 months ago

#69337 assigned defect

MenuMeters uses x86_64 strip with i386 build

Reported by: barracuda156 Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: i386, snowleopard Cc: Tatsh (Andrew Udvare)
Port: MenuMeters

Description

:info:build CpResource build/Debug/MenuMeters.prefPane/Contents/Resources/MenuCracker.menu MenuCracker/MenuCracker.menu
:info:build     cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_MenuMeters/MenuMeters/work/MenuMeters
:info:build     /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -strip-debug-symbols -resolve-src-symlinks /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_MenuMeters/MenuMeters/work/MenuMeters/MenuCracker/MenuCracker.menu /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_MenuMeters/MenuMeters/work/MenuMeters/build/Debug/MenuMeters.prefPane/Contents/Resources
:info:build strip: for architecture x86_64 object: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_MenuMeters/MenuMeters/work/MenuMeters/MenuCracker/MenuCracker.menu/Contents/MacOS/MenuCracker malformed object (unknown load command 4)
:info:build pbxcp: warning: couldn't strip: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_MenuMeters/MenuMeters/work/MenuMeters/build/Debug/MenuMeters.prefPane/Contents/Resources/MenuCracker.menu/Contents/MacOS/MenuCracker: No such file or directory
:info:build CompileC build/MenuMeters.build/Debug/PrefPane.build/Objects-normal/i386/MenuMeterDefaults.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_MenuMeters/MenuMeters/work/MenuMeters/Common/MenuMeterDefaults.m normal i386 objective-c com.apple.compilers.gcc.4_2
:info:build     cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_MenuMeters/MenuMeters/work/MenuMeters

This breaks the build:

:info:build ** BUILD FAILED **
:info:build The following build commands failed:
:info:build PrefPane:
:info:build 	CpResource build/Debug/MenuMeters.prefPane/Contents/Resources/MenuCracker.menu MenuCracker/MenuCracker.menu
:info:build (1 failure)
:info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_MenuMeters/MenuMeters/work/MenuMeters" && /usr/bin/xcodebuild  -target "PrefPane" -configuration Debug build INSTALL_PATH=/Applications/MacPorts  OBJROOT="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_MenuMeters/MenuMeters/work/MenuMeters/build/" SYMROOT="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_MenuMeters/MenuMeters/work/MenuMeters/build/" MACOSX_DEPLOYMENT_TARGET=10.6 ARCHS=i386 SDKROOT="" GCC_VERSION=4.2 CLANG_CXX_LIBRARY="libstdc++" CODE_SIGN_IDENTITY=- ARCHS=i386 ONLY_ACTIVE_ARCH=yes
:info:build Exit code: 1

Attachments (1)

menumeters.log (196.5 KB) - added by barracuda156 9 months ago.

Download all attachments as: .zip

Change History (7)

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

"uses x86_64 strip with i386 build" is not a cause of this problem that I've ever heard of. Instead, this could be caused by compiling with a newer clang but trying to use strip or other tools from Xcode; the solution would be to use updated versions of strip or other tools from the cctools port.

comment:2 in reply to:  1 Changed 9 months ago by barracuda156

Replying to ryandesign:

"uses x86_64 strip with i386 build" is not a cause of this problem that I've ever heard of. Instead, this could be caused by compiling with a newer clang but trying to use strip or other tools from Xcode; the solution would be to use updated versions of strip or other tools from the cctools port.

This port builds with Xcode, so hopefully should not be using any clang stuff on systems where the default OS compiler is gcc.

Perhaps I phrased it wrongly, but I believe, nothing x86_64-related should appear in the build, since a) build arch is i386 and universal_archs are i386 ppc, b) this is CoreDuo, 64-bit binaries are unsupported.

comment:3 Changed 9 months ago by barracuda156

UPD. I installed 10.5.8 on i386 now and got the same failure. Unmodified Macports setup, standard system with its Xcode 3.1.4. So it is definitely a bug in the port.

comment:4 Changed 9 months ago by kencu (Ken)

pretty hard for anyone to comment with No Log.

Changed 9 months ago by barracuda156

Attachment: menumeters.log added

comment:5 in reply to:  4 Changed 9 months ago by barracuda156

Replying to kencu:

pretty hard for anyone to comment with No Log.

Added the log from 10.5.8.

comment:6 Changed 9 months ago by kencu (Ken)

It seems to be building with gcc-4.2, indeed.

   /Developer/usr/bin/gcc-4.2 -x objective-c -arch i386

Something is generating those new objects with the unrecognized load commands, though… hmmm… It may be that cctools is using macports-clang as the assembler and that is generating them. I can’t think where else they would come from.

Solution would still seem to be to force the use of the cctools commands instead of the Xcode commands… ENV VARs, force the PATH, etc… whatever it takes to make cctools strip be used…

Note: See TracTickets for help on using tickets.