Gnuradio-core fails to make on an Intel MacBook Pro using XC

I just submitted a ticket (41) for this one. Sorry about the bad
formatting in the ticket … I’ll do better next time.

I think the issue is a change in XCode 2.4 from 2.3, but as I don’t
have an Intel Mac I really can’t check it myself. Any Intel-Mac
users able to spend a little time checking it out (or helping me
check it out)? Email me off-list if you can run some quick scripts &
get back to me. - MLD

MacBook Pro running OSX 10.4.7 and XCode 2.4 .
SVN checkout is from last night.
My compile is failing in gnuradio-core/src/lib/filters/ :

/bin/sh …/…/…/…/libtool --mode=compile gcc -g -O2 -Wall -c -o
float_dotprod_sse.lo float_dotprod_sse.S
gcc -g -O2 -Wall -c float_dotprod_sse.S -fno-common -DPIC -o
.libs/float_dotprod_sse.o
float_dotprod_sse.S:61:Unknown pseudo-op: .scl
float_dotprod_sse.S:61:Rest of line ignored. 1st junk character
valued 50 (2).
float_dotprod_sse.S:61:Unknown pseudo-op: .type
float_dotprod_sse.S:61:Rest of line ignored. 1st junk character
valued 51 (3).
float_dotprod_sse.S:61:Unknown pseudo-op: .endef
make[4]: *** [float_dotprod_sse.lo] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

On Fri, Aug 18, 2006 at 03:02:31PM -0400, Michael D. wrote:

SVN checkout is from last night.
float_dotprod_sse.S:61:Rest of line ignored. 1st junk character
valued 51 (3).
float_dotprod_sse.S:61:Unknown pseudo-op: .endef
make[4]: *** [float_dotprod_sse.lo] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

The fix needs to go in gnuradio-core/src/lib/filters/assembly.h

On the macbook it’s executing the !ELF branch.
I suspect that there’s some Mach magic required here.

Looking at some compiler generated assember and checking the
predefined preprocessor defines should lead to enlightenment.

Be sure to leave the old default branch – I think it handled COFF or
a.out – and add a new check for whatever’s right for OS/X.

Eric

I’d already tracked it down to the file Eric mentions, so it’s good
to have commonality here. I’ll have access to a MacBook Pro (in
person, even, every so often) next Wednesday, and will spend some
time debugging this issue at that time unless someone else has
figured it out by then. Since gnuradio-core did compile on an Intel-
Mac once upon a time, there has to be something in the way Apple is
handling the ELF directive … Eric has some good suggestions on
how to proceed … we’ll get to the bottom of this sooner or later. -
MLD

Which version of gcc comes with Xcode 2.4? Can’t find anything in the
release notes.
As of 3341, gnuradio-core does compile on OSX /Intel with Xcode 2.2.1,
(gcc 4.0.1), I have never tried it with anything newer.

Cheers,
Jan

On Fri, Aug 18, 2006 at 03:02:31PM -0400, Michael D. wrote:

I just submitted a ticket (41) for this one. Sorry about the bad
formatting in the ticket … I’ll do better next time.

No problem.

Just use
{{{
around verbatim sections
like this…
}}}