Opened 10 years ago

Closed 10 years ago

#6806 closed defect (fixed)

Mac OS X: build fails for release-0-21-fixes

Reported by: dweller@… Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: MythTV - General Version: 0.21-fixes
Severity: medium Keywords: Mac OS X compile
Cc: Ticket locked: no


I am trying to build MythFrontend on my Mac.

I am encountering an error when building the application with the following command:

./ -verbose -svnbranch release-0-21-fixes

If anyone has any insight as to why this build is failing, I would appreciate your input.

Here is an output of the build process:

[osx-pkg] Forcing -usehdimage due to case-insensitive filesystem
[osx-pkg] Creating a case-sensitive (UFS) disk image for the build
[osx-pkg] hdiutil create -size 2048m /Users/dweller/install/mythtv/21-fixes/.osx-packager.dmg -volname MythTvPackagerHDImage -fs UFS -quiet
[osx-pkg] hdiutil mount /Users/dweller/install/mythtv/21-fixes/.osx-packager.dmg -mountpoint /Users/dweller/install/mythtv/21-fixes/.osx-packager -quiet
[osx-pkg] Including components: mythtv myththemes mythplugins

... many lines skipped here ...

/Users/dweller/install/mythtv/21-fixes/.osx-packager/build/bin/moc mythmainwindow.h -o moc_mythmainwindow.cpp
/Users/dweller/install/mythtv/21-fixes/.osx-packager/build/bin/moc mythuitype.h -o moc_mythuitype.cpp
/Users/dweller/install/mythtv/21-fixes/.osx-packager/build/bin/moc mythuibutton.h -o moc_mythuibutton.cpp
/Users/dweller/install/mythtv/21-fixes/.osx-packager/build/bin/moc mythlistbutton.h -o moc_mythlistbutton.cpp
/Users/dweller/install/mythtv/21-fixes/.osx-packager/build/bin/moc myththemedmenu.h -o moc_myththemedmenu.cpp
make[2]: *** [mythmainwindow.o] Error 1
make[2]: *** Waiting for unfinished jobs....
myththemedmenu.cpp: In member function ‘void MythThemedMenuState::parseShadow(TextAttributes&, QDomElement&)’:
myththemedmenu.cpp:412: warning: ‘alpha’ may be used uninitialized in this function
make[1]: *** [sub-libmythui] Error 2
make: *** [sub-libs] Error 2
[osx-pkg] Failed system call: " /usr/bin/make -j9 " with error code 2
Died at ./ line 1005.

I tried removing the parallel processors option (j9) in and got the same type of error.

Here is what I am using for gcc:

# gcc -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5493~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5493)

Change History (4)

comment:1 Changed 10 years ago by dweller@…

I am compiling this on Mac OS 10.5.7 on a Mac Pro (Intel).

comment:2 Changed 10 years ago by dweller@…

I figured out the problem. The configure script at src/myth-svn/mythtv/configure was not detecting my quad-core Xeon CPU correctly. I applied the following patch to fix it:

--- configure.old	2009-08-04 07:54:24.000000000 -0500
+++ configure	2009-08-04 15:58:36.000000000 -0500
@@ -2074,6 +2074,8 @@
    elif expr "$processor" : ".*Genuine.*Intel.*CPU" > /dev/null ; then
 # P4
+   elif expr "$processor" : ".*Xeon(R) CPU" > /dev/null ; then
+       ARCHFLAGS="-march=pentium4"
    elif expr "$processor" : ".*Xeon(TM) CPU" > /dev/null ; then
    elif expr "$processor" : ".*XEON(TM) CPU" > /dev/null ; then

comment:3 Changed 10 years ago by Nigel

(In [21124]) Detect Quad-Core Xeon on Mac OS X 10.5.7. Thanks Devon. Refs #6806

comment:4 Changed 10 years ago by Nigel

Resolution: fixed
Status: newclosed

Devon kindly provided me with the processor ID string:

$ /usr/sbin/sysctl -n machdep.cpu.brand_string
Intel(R) Xeon(R) CPU           E5462  @ 2.80GHz

That string appears to be detected OK by the trunk configure (where it is mapped to -march=core2). It is only fixes that didn't like it.

Note: See TracTickets for help on using tickets.