List Info

Thread: Re: png_mmx_support pb on linux x86_64




Re: png_mmx_support pb on linux x86_64
country flaguser name
United States
2007-03-12 19:17:52
At 04:08 PM 3/12/2007 -0700, Greg Roelofs wrote:
>> I did:
>
>> $ cp scripts/makefile.linux Makefile
>> $ vi Makefile
>
>You probably want to start with makefile.gcmmx if you're
going to use
>the MMX support.  (If you don't want MMX support--which
wasn't thread-
>safe, last I checked--then you may need to define a
PNG_NO_ASM macro,
>or something like that.  I'm not sure what the current
names are.

Use makefile.nommx

The 64-bit compilers won't assemble the MMX assembly code
properly.

>> ../libpng12.so: undefined reference to
`png_mmx_support'
>> collect2: ld returned 1 exit status
>> make: *** [pngtest] Error 1
>
>> I found a post on this mailing list saying to add
this line at the end of
>> the Makefile:
>> pnggccrd.o pnggccrd.pic.o: png.h pngconf.h
>
>> I tried that but still have the same error
message.
>
>You need to add the .o files to the relevant
dependency-lists of the
>libraries, too.  Here you've said only that the object
files depend on
>the sources.
>
>Greg
>
>

Followups to png-mng-implement please.

Glenn

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
png-mng-implement mailing list
png-mng-implementlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/png-m
ng-implement

Re: png_mmx_support pb on linux x86_64
country flaguser name
United States
2007-03-13 11:08:03
> The 64-bit compilers won't assemble the MMX assembly
code properly.

In what way?

Greg

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
png-mng-implement mailing list
png-mng-implementlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/png-m
ng-implement

Re: png_mmx_support pb on linux x86_64
user name
2007-03-13 13:07:45
On 3/13/07, Greg Roelofs <newtpobox.com> wrote:
> > The 64-bit compilers won't assemble the MMX
assembly code properly.
>
> In what way?

Like this:

gcc -c -DPNG_THREAD_UNSAFE_OK -DPNG_USE_PNGGCCRD -I../zlib
-Wall -O3
-funroll-loops -fomit-frame-pointer   -o pnggccrd.o
pnggccrd.c
pnggccrd.c:311: warning: '_unmask' defined but not used
pnggccrd.c:344: warning: '_FullLength' defined but not used
/tmp/ccWDmzvo.s: Assembler messages:
/tmp/ccWDmzvo.s:113: Error: suffix or operands invalid for
`push'
/tmp/ccWDmzvo.s:114: Error: suffix or operands invalid for
`push'
/tmp/ccWDmzvo.s:115: Error: suffix or operands invalid for
`push'
/tmp/ccWDmzvo.s:116: Error: suffix or operands invalid for
`pushf'
/tmp/ccWDmzvo.s:117: Error: suffix or operands invalid for
`pop'
/tmp/ccWDmzvo.s:120: Error: suffix or operands invalid for
`push'
/tmp/ccWDmzvo.s:121: Error: suffix or operands invalid for
`popf'
/tmp/ccWDmzvo.s:122: Error: suffix or operands invalid for
`pushf'
/tmp/ccWDmzvo.s:123: Error: suffix or operands invalid for
`pop'
/tmp/ccWDmzvo.s:124: Error: suffix or operands invalid for
`push'
/tmp/ccWDmzvo.s:125: Error: suffix or operands invalid for
`popf'
/tmp/ccWDmzvo.s:143: Error: suffix or operands invalid for
`pop'
/tmp/ccWDmzvo.s:144: Error: suffix or operands invalid for
`pop'
/tmp/ccWDmzvo.s:145: Error: suffix or operands invalid for
`pop'
make: *** [pnggccrd.o] Error 1

I've heard that other platforms will claim to have
assembled
pnggccrd.c OK but then you get a runtime crash.

I'm testing on a RedHat Enterprise 64-bit machine with dual
cpu:

uname -a
Linux [host.domain] 2.6.9-42.0.8.ELsmp #1 SMP Tue Jan 23
12:49:51 EST
2007 x86_64 x86_64 x86_64 GNU/Linux

Glenn

> Greg
>
>
------------------------------------------------------------
-------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the
chance to share your
> opinions on IT & business topics through brief
surveys-and earn cash
> http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> png-mng-implement mailing list
> png-mng-implementlists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/png-m
ng-implement
>

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
png-mng-implement mailing list
png-mng-implementlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/png-m
ng-implement

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )