Opened 15 years ago

Closed 14 years ago

#23294 closed defect (wontfix)

mumble-1.21 Build failure

Reported by: boydb@… Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: tiger Cc:
Port: mumble

Description (last modified by nerdling (Jeremy Lavergne))

Attempting to build mumble on an Intel Mac running 10.4.11:

$ sudo port install mumble
--->  Computing dependencies for mumble
--->  Building mumble
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_mumble/work/mumble-1.2.1" && /usr/bin/make -j1 all " returned error 2
Command output: cd speexbuild/ && /usr/bin/make -f Makefile all
/usr/bin/make -f Makefile.Release all
/usr/bin/gcc-4.2 -c -pipe -Wfatal-errors -Wshadow -Wconversion -Wsign-compare -fvisibility=hidden -mmacosx-version-min=10.4 -Xarch_i386 -mmmx -Xarch_i386 -msse -Xarch_i386 -msse2 -O2 -fPIC -w -arch i386 -isysroot /SDKs/MacOSX10.5.sdk -DNO_UPDATE_CHECK -DRESTRICT=__restrict__ -DNDEBUG -DHAVE_CONFIG_H -I/opt/local/libexec/qt4-mac/mkspecs/macx-g++ -I. -I../speex/include -I../speex/libspeex -I../speexbuild -o release/mdf.o ../speex/libspeex/mdf.c
make[2]: /usr/bin/gcc-4.2: Command not found
make[2]: *** [release/mdf.o] Error 127
make[1]: *** [release-all] Error 2
make: *** [sub-speexbuild-all-ordered] Error 2

Error: Status 1 encountered during processing.
$ sudo port -d install mumble
... snip ...
--->  Building mumble
DEBUG: Executing proc-pre-org.macports.build-build-0
DEBUG: Executing org.macports.build (mumble)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.4' QMAKESPEC='/opt/local/libexec/qt4-mac/mkspecs/macx-g++'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_mumble/work/mumble-1.2.1" && /usr/bin/make -j1 all'
cd speexbuild/ && /usr/bin/make -f Makefile all
/usr/bin/make -f Makefile.Release all
/usr/bin/gcc-4.2 -c -pipe -Wfatal-errors -Wshadow -Wconversion -Wsign-compare -fvisibility=hidden -mmacosx-version-min=10.4 -Xarch_i386 -mmmx -Xarch_i386 -msse -Xarch_i386 -msse2 -O2 -fPIC -w -arch i386 -isysroot /SDKs/MacOSX10.5.sdk -DNO_UPDATE_CHECK -DRESTRICT=__restrict__ -DNDEBUG -DHAVE_CONFIG_H -I/opt/local/libexec/qt4-mac/mkspecs/macx-g++ -I. -I../speex/include -I../speex/libspeex -I../speexbuild -o release/mdf.o ../speex/libspeex/mdf.c
make[2]: /usr/bin/gcc-4.2: Command not found
make[2]: *** [release/mdf.o] Error 127
make[1]: *** [release-all] Error 2
make: *** [sub-speexbuild-all-ordered] Error 2
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_mumble/work/mumble-1.2.1" && /usr/bin/make -j1 all " returned error 2
DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_mumble/work/mumble-1.2.1" && /usr/bin/make -j1 all " returned error 2
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for mumble): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Not sure where the actual error is being thrown, though this is the second error in the build process; building the qt4-mac dependency on this 10.4.11 box generated an error as outlined in this bug, and was worked around as per my comment there.

Change History (16)

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

Cc: boydb@… removed
Owner: changed from macports-tickets@… to snc@…
Port: qt4-mac removed

If you're running on a 10.3.9 system it's the strangest one I've ever seen. Check "About This Mac".

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

Or maybe not, given that gcc-4.2 is not found... Panther has not been supported since 2007 when Leopard was released. I'm curious how you managed to get 1.8.2 installed, if that's indeed the base version you are running.

comment:3 Changed 15 years ago by nerdling (Jeremy Lavergne)

If I'm not mistaken, gcc4.2 wasn't shipped until 10.5.

comment:4 Changed 15 years ago by nerdling (Jeremy Lavergne)

Also, keep in mind in the compile flags:

-mmacosx-version-min=10.4

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

And just to complete the confusion, Panther doesn't run on Intel Macs.

comment:6 Changed 15 years ago by boydb@…

Bad me! Sorry for all the confusion; my laptop runs 10.3.9, which is what I'm using to writing bugs about (since it's getting rather old for the paces I put it through). The tower that this bug is generating on is running 10.4.11 (2 Dual core Xeon Intel Mac Pro tower).

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

Keywords: tiger added

comment:8 in reply to:  6 ; Changed 15 years ago by nerdling (Jeremy Lavergne)

Replying to boydb@…:

Can you verify that you have GCC 4.2? It's either the case of a missing compiler or we need to make sure we're UsingTheRightCompiler.

comment:9 Changed 15 years ago by nerdling (Jeremy Lavergne)

Description: modified (diff)

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

Tiger doesn't have gcc-4.2.

comment:11 in reply to:  8 Changed 15 years ago by boydb@…

Replying to snc@…:

Replying to boydb@…:

Can you verify that you have GCC 4.2? It's either the case of a missing compiler or we need to make sure we're UsingTheRightCompiler.

Aha, there's the error:

$ gcc -v
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /var/tmp/gcc/gcc-5370~2/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=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic --program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5370)

So I've got version 4.0, where 4.2 is trying to be called. Following the instructions on the UsingTheRightCompiler seem to reveal that this makefile isn't using the proper variables, right?

$ sudo port install mumble configure.compiler=apple-gcc-4.0
Password:
--->  Computing dependencies for mumble
--->  Building mumble
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_mumble/work/mumble-1.2.1" && /usr/bin/make -j1 all " returned error 2
Command output: cd speexbuild/ && /usr/bin/make -f Makefile all
/usr/bin/make -f Makefile.Release all
/usr/bin/gcc-4.2 -c -pipe -Wfatal-errors -Wshadow -Wconversion -Wsign-compare -fvisibility=hidden -mmacosx-version-min=10.4 -Xarch_i386 -mmmx -Xarch_i386 -msse -Xarch_i386 -msse2 -O2 -fPIC -w -arch i386 -isysroot /SDKs/MacOSX10.5.sdk -DNO_UPDATE_CHECK -DRESTRICT=__restrict__ -DNDEBUG -DHAVE_CONFIG_H -I/opt/local/libexec/qt4-mac/mkspecs/macx-g++ -I. -I../speex/include -I../speex/libspeex -I../speexbuild -o release/mdf.o ../speex/libspeex/mdf.c
make[2]: /usr/bin/gcc-4.2: Command not found
make[2]: *** [release/mdf.o] Error 127
make[1]: *** [release-all] Error 2
make: *** [sub-speexbuild-all-ordered] Error 2

Error: Status 1 encountered during processing.
sudo port install mumble configure.compiler=gcc-4.0
--->  Computing dependencies for mumble
--->  Building mumble
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_mumble/work/mumble-1.2.1" && /usr/bin/make -j1 all " returned error 2
Command output: cd speexbuild/ && /usr/bin/make -f Makefile all
/usr/bin/make -f Makefile.Release all
/usr/bin/gcc-4.2 -c -pipe -Wfatal-errors -Wshadow -Wconversion -Wsign-compare -fvisibility=hidden -mmacosx-version-min=10.4 -Xarch_i386 -mmmx -Xarch_i386 -msse -Xarch_i386 -msse2 -O2 -fPIC -w -arch i386 -isysroot /SDKs/MacOSX10.5.sdk -DNO_UPDATE_CHECK -DRESTRICT=__restrict__ -DNDEBUG -DHAVE_CONFIG_H -I/opt/local/libexec/qt4-mac/mkspecs/macx-g++ -I. -I../speex/include -I../speex/libspeex -I../speexbuild -o release/mdf.o ../speex/libspeex/mdf.c
make[2]: /usr/bin/gcc-4.2: Command not found
make[2]: *** [release/mdf.o] Error 127
make[1]: *** [release-all] Error 2
make: *** [sub-speexbuild-all-ordered] Error 2

Error: Status 1 encountered during processing.

So, it looks like this port's makefile needs a patch? Someone more skilled at that than I want to tackle that?

comment:12 in reply to:  9 Changed 15 years ago by boydb@…

Replying to snc@…: You might want to change the last paragraph of the initial description of this bug to say 10.4.11, since you changed the one at the beginning

comment:13 Changed 14 years ago by nerdling (Jeremy Lavergne)

Description: modified (diff)
Status: newassigned

comment:14 Changed 14 years ago by nerdling (Jeremy Lavergne)

I can do a simple find/replace in compiler.pri to fix the compiler issue. Unfortunately I cannot build mumble on 10.6 so I have no real way of checking this. Do you or someone you know have interest in testing some patches?

comment:15 in reply to:  14 Changed 14 years ago by boydb@…

I've since upgraded my computer to OS 10.6, so no longer am experiencing this issue; don't know if others on 10.4 are still experiencing it or can help test patches.

comment:16 Changed 14 years ago by nerdling (Jeremy Lavergne)

Resolution: wontfix
Status: assignedclosed

Alright, since you're no longer affected and no one else is on this ticket I'll close it.

Note: See TracTickets for help on using tickets.