[MacPorts] #15995: Installation of lame-3.98 +universal fails to build
#15995: Installation of lame-3.98 +universal fails to build ---------------------------------+------------------------------------------ Reporter: tobiasmatzat@web.de | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: lame | ---------------------------------+------------------------------------------ Here is the error message: dummy:~ admin$ sudo port install lame +universal[[BR]] ---> Fetching lame[[BR]] ---> Verifying checksum(s) for lame[[BR]] ---> Extracting lame[[BR]] ---> Configuring lame[[BR]] ---> Building lame with target all[[BR]] Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_lame/work/lame-398" && make all " returned error 2[[BR]] Command output: xmm_quantize_sub.c:42: error: syntax error before '}' token[[BR]] xmm_quantize_sub.c:42: warning: type defaults to 'int' in declaration of 'vecfloat_union'[[BR]] xmm_quantize_sub.c:42: warning: data definition has no type or storage class[[BR]] xmm_quantize_sub.c: In function 'init_xrpow_core_sse':[[BR]] xmm_quantize_sub.c:55: error: nested functions are disabled, use -fnested- functions to re-enable[[BR]] xmm_quantize_sub.c:55: error: syntax error before 'vec_fabs_mask'[[BR]] xmm_quantize_sub.c:59: warning: implicit declaration of function '_mm_prefetch'[[BR]] xmm_quantize_sub.c:59: error: '_MM_HINT_T0' undeclared (first use in this function)[[BR]] xmm_quantize_sub.c:59: error: (Each undeclared identifier is reported only once[[BR]] xmm_quantize_sub.c:59: error: for each function it appears in.)[[BR]] xmm_quantize_sub.c:62: error: 'vec_xrpow_max' undeclared (first use in this function)[[BR]] xmm_quantize_sub.c:62: warning: implicit declaration of function '_mm_set_ps1'[[BR]] xmm_quantize_sub.c:63: error: 'vec_sum' undeclared (first use in this function)[[BR]] xmm_quantize_sub.c:66: error: '__m128' undeclared (first use in this function)[[BR]] xmm_quantize_sub.c:66: error: syntax error before 'vec_tmp'[[BR]] xmm_quantize_sub.c:68: error: 'vec_tmp' undeclared (first use in this function)[[BR]] xmm_quantize_sub.c:68: warning: implicit declaration of function '_mm_loadu_ps'[[BR]] xmm_quantize_sub.c:69: warning: implicit declaration of function '_mm_and_ps'[[BR]] xmm_quantize_sub.c:69: error: 'vec_fabs_mask' undeclared (first use in this function)[[BR]] xmm_quantize_sub.c:71: warning: implicit declaration of function '_mm_add_ps'[[BR]] xmm_quantize_sub.c:73: warning: implicit declaration of function '_mm_sqrt_ps'[[BR]] xmm_quantize_sub.c:73: warning: implicit declaration of function '_mm_mul_ps'[[BR]] xmm_quantize_sub.c:75: warning: implicit declaration of function '_mm_storeu_ps'[[BR]] xmm_quantize_sub.c:77: warning: implicit declaration of function '_mm_max_ps'[[BR]] xmm_quantize_sub.c:54: warning: unused variable 'fabs_mask'[[BR]] lipo: can't figure out the architecture type of: /var/tmp//ccvMlQXM.out[[BR]] make[3]: *** [xmm_quantize_sub.lo] Error 1[[BR]] make[2]: *** [all-recursive] Error 1[[BR]] make[1]: *** [all-recursive] Error 1[[BR]] make: *** [all] Error 2[[BR]] Error: Status 1 encountered during processing. -- Ticket URL: <http://trac.macports.org/ticket/15995> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15995: Installation of lame-3.98 +universal fails to build ----------------------------------+----------------------------------------- Reporter: tobiasmatzat@web.de | Owner: ram@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: lame ----------------------------------+----------------------------------------- Changes (by ram@macports.org): * owner: macports-tickets@lists.macosforge.org => ram@macports.org * status: new => assigned * milestone: => Port Bugs -- Ticket URL: <http://trac.macports.org/ticket/15995#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15995: Installation of lame-3.98 +universal fails to build ----------------------------------+----------------------------------------- Reporter: tobiasmatzat@web.de | Owner: ram@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: lame ----------------------------------+----------------------------------------- Comment (by ram@macports.org): are the universal variants of the dependencies (ncurses and ncursesw) installed? -- Ticket URL: <http://trac.macports.org/ticket/15995#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15995: Installation of lame-3.98 +universal fails to build ----------------------------------+----------------------------------------- Reporter: tobiasmatzat@web.de | Owner: ram@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: lame ----------------------------------+----------------------------------------- Comment (by tobiasmatzat@web.de): Replying to [comment:2 ram@macports.org]:
are the universal variants of the dependencies (ncurses and ncursesw) installed?
Yes, they are. I just did a fresh macports install with enabled +universal -- Ticket URL: <http://trac.macports.org/ticket/15995#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15995: Installation of lame-3.98 +universal fails to build ----------------------------------+----------------------------------------- Reporter: tobiasmatzat@web.de | Owner: ram@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: lame ----------------------------------+----------------------------------------- Comment (by ram@macports.org): Just to keep you posted; I've managed to fix one of the errors, but not the others. What's making matters more complicated is that I'm getting extra errors when trying to do this outside of the MacPorts infrastructure in order for me to report this issue upstream. -- Ticket URL: <http://trac.macports.org/ticket/15995#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15995: Installation of lame-3.98 +universal fails to build ----------------------------------+----------------------------------------- Reporter: tobiasmatzat@web.de | Owner: ram@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: lame ----------------------------------+----------------------------------------- Comment (by hvdwolf@gmail.com): Please find attached a patch file to enable the build of xvid with the universal variant. You need to build it in two steps as the configuration on Intel takes SSE optimalisation itno account which prevents the ppc build. When split into two steps it builds correctly when the configure setting CC="gcc -arch <architecture>" is set. Harry -- Ticket URL: <http://trac.macports.org/ticket/15995#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15995: Installation of lame-3.98 +universal fails to build ----------------------------------+----------------------------------------- Reporter: tobiasmatzat@web.de | Owner: ram@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: lame ----------------------------------+----------------------------------------- Comment (by hvdwolf@gmail.com): I mentioned "the build of xvid". This is off course nonsense. It really is a patch for lame 3.98. (xvid doesn't compile either universally and needs about the same setup and ppc should be enhanced with altivec, but that's another story and not completely finished yet.) -- Ticket URL: <http://trac.macports.org/ticket/15995#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15995: Installation of lame-3.98 +universal fails to build ----------------------------------+----------------------------------------- Reporter: tobiasmatzat@web.de | Owner: ram@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: lame ----------------------------------+----------------------------------------- Comment (by ram@macports.org): Replying to [comment:5 hvdwolf@gmail.com]:
Please find attached a patch file to enable the build of xvid with the universal variant. You need to build it in two steps as the configuration on Intel takes SSE optimalisation itno account which prevents the ppc build. When split into two steps it builds correctly when the configure setting CC="gcc -arch <architecture>" is set.
Thanks for the patch, although I'm not completely convinced this is the correct way to go. I feel that this, using lipo to stitch together the universal binary, should be part of base. Although as there is nothing available at the moment this may be the only option for the time being. Let me do some testing. -- Ticket URL: <http://trac.macports.org/ticket/15995#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15995: Installation of lame-3.98 +universal fails to build ----------------------------------+----------------------------------------- Reporter: tobiasmatzat@web.de | Owner: ram@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: lame ----------------------------------+----------------------------------------- Changes (by ram@macports.org): * cc: hvdwolf@gmail.com (added) Comment: There's a typo in the patch, in the configure stage when you set my_cflags, there is a missing $ in the library path. Also when building this is don't seem to work for me: {{{ $ file /opt/local/bin/lame /opt/local/bin/lame: Mach-O executable i386 $ }}} I've attached the output of: {{{ $ sudo port -d install +universal &> lame-universal.log & }}} -- Ticket URL: <http://trac.macports.org/ticket/15995#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15995: Installation of lame-3.98 +universal fails to build ----------------------------------+----------------------------------------- Reporter: tobiasmatzat@web.de | Owner: ram@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: lame ----------------------------------+----------------------------------------- Comment (by hvdwolf@gmail.com): Sorry for the typo. That was very sloppy (as was my initial xvid reference). I just checked and you are right. The script is not good enough yet. Yesterday when testing I stayed in the "/opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/lame" directory to be able to modify the Portfile immediately. From this location the script works, from any other location it doesn't. I obviously need to make better reference to the workpath but I couldn't see the error at first glance this morning. I can see from your log that you are on Leopard (Environment: MACOSX_DEPLOYMENT_TARGET='10.5' and /Developer/SDKs/MacOSX10.5.sdk). I'm (still) on 10.4.11, but I will test tonight with Leopard on another system (if I can lay my hands on it, otherwise it will be a little later.) I need to check if it will also run on Leopard. You mention as command: "$ sudo port -d install +universal &> lame- universal.log &" where I expected: "$ sudo port -d install lame +universal &> lame- universal.log &" Is this some port option so that port knows what port/Portfile to choose based on ??? or is it a typo? -- Ticket URL: <http://trac.macports.org/ticket/15995#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15995: Installation of lame-3.98 +universal fails to build ----------------------------------+----------------------------------------- Reporter: tobiasmatzat@web.de | Owner: ram@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: lame ----------------------------------+----------------------------------------- Comment (by ram@macports.org): Replying to [comment:9 hvdwolf@gmail.com]:
You mention as command: "$ sudo port -d install +universal &> lame- universal.log &" where I expected: "$ sudo port -d install lame +universal &> lame- universal.log &"
Is this some port option so that port knows what port/Portfile to choose based on ??? or is it a typo?
I just ran the command from the directory where I had the patched Portfile, so port automatically used that. -- Ticket URL: <http://trac.macports.org/ticket/15995#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15995: Installation of lame-3.98 +universal fails to build ----------------------------------+----------------------------------------- Reporter: tobiasmatzat@web.de | Owner: ram@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: lame ----------------------------------+----------------------------------------- Comment (by ram@macports.org): disabled universal variant, in r39372, until a working solution can be found -- Ticket URL: <http://trac.macports.org/ticket/15995#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15995: Installation of lame-3.98 +universal fails to build ----------------------------------+----------------------------------------- Reporter: tobiasmatzat@web.de | Owner: ram@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: lame ----------------------------------+----------------------------------------- Comment (by ram@macports.org): Replying to [comment:9 hvdwolf@gmail.com]:
I'm (still) on 10.4.11, but I will test tonight with Leopard on another system (if I can lay my hands on it, otherwise it will be a little later.) I need to check if it will also run on Leopard.
Any news? -- Ticket URL: <http://trac.macports.org/ticket/15995#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15995: Installation of lame-3.98 +universal fails to build ----------------------------------+----------------------------------------- Reporter: tobiasmatzat@web.de | Owner: ram@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: lame ----------------------------------+----------------------------------------- Comment (by hvdwolf@gmail.com): I'm very sorry that I did not give any feedback any sooner. Almost immediately after my previous mail I had some disturbing news in my family which took quite some time. Last week I was very busy with two packages (hugin and avidemux) where I'm the osx maintainer for. But I should have answered earlier. I have attached a new Portfile which works for me on both Tiger and Leopard. Please test. -- Ticket URL: <http://trac.macports.org/ticket/15995#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15995: Installation of lame-3.98 +universal fails to build ----------------------------------+----------------------------------------- Reporter: tobiasmatzat@web.de | Owner: ram@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: lame ----------------------------------+----------------------------------------- Comment (by ram@macports.org): Thanks for the update, testing it now. -- Ticket URL: <http://trac.macports.org/ticket/15995#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15995: Installation of lame-3.98 +universal fails to build ----------------------------------+----------------------------------------- Reporter: tobiasmatzat@web.de | Owner: ram@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: lame ----------------------------------+----------------------------------------- Comment (by ram@macports.org): Still only showing the i386 architecture for me again: {{{ [ram@cizin lame]$ port installed lame The following ports are currently installed: lame @3.98_0+universal (active) [ram@cizin lame]$ file /opt/local/bin/lame /opt/local/bin/lame: Mach-O executable i386 [ram@cizin lame]$ }}} -- Ticket URL: <http://trac.macports.org/ticket/15995#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15995: Installation of lame-3.98 +universal fails to build ----------------------------------+----------------------------------------- Reporter: tobiasmatzat@web.de | Owner: ram@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: lame ----------------------------------+----------------------------------------- Comment (by hvdwolf@gmail.com): ....And sorry again. I feel very stupid. I only looked at the .dylib and .a library. I never looked at the lame binary. In your previous post you already mentioned it but I only looked at the "i386 file" statement and just assumed it was the lib (without really looking at the line which actually mentions execatable i386). I updated the Portfile to correctly lipo merge the lame binary also. I attached and replaced the Portfile. Please test and check libs and binary with either "file" or "lipo -info" -- Ticket URL: <http://trac.macports.org/ticket/15995#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15995: Installation of lame-3.98 +universal fails to build ----------------------------------+----------------------------------------- Reporter: tobiasmatzat@web.de | Owner: ram@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: lame ----------------------------------+----------------------------------------- Comment (by ram@macports.org): Looks like success! {{{ $ lipo -info /opt/local/bin/lame Architectures in the fat file: /opt/local/bin/lame are: i386 ppc7400 $ lipo -info /opt/local/lib/libmp3lame.a Architectures in the fat file: /opt/local/lib/libmp3lame.a are: i386 ppc7400 $ lipo -info /opt/local/lib/libmp3lame.dylib Architectures in the fat file: /opt/local/lib/libmp3lame.dylib are: i386 ppc7400 $ }}} Thanks for fixing this problem. I'll get it committed ASAP. -- Ticket URL: <http://trac.macports.org/ticket/15995#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15995: Installation of lame-3.98 +universal fails to build ----------------------------------+----------------------------------------- Reporter: tobiasmatzat@web.de | Owner: ram@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: lame ----------------------------------+----------------------------------------- Changes (by ram@macports.org): * status: assigned => closed * resolution: => fixed Comment: Committed in r39490, thanks! -- Ticket URL: <http://trac.macports.org/ticket/15995#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts