[parsec-users] vips and fluidanimate on Solaris/SPARC

Christian Bienia cbienia at CS.Princeton.EDU
Thu Jul 3 08:42:20 EDT 2008


Hi Major,

I'm glad that you got it to run. Thanks for telling us what caused the
issues, we'll improve the scripts for the next PARSEC release.

- Chris



-----Original Message-----
From: parsec-users-bounces at lists.cs.princeton.edu
[mailto:parsec-users-bounces at lists.cs.princeton.edu] On Behalf Of Major B
Sent: Thursday, July 03, 2008 3:18 AM
To: PARSEC Users
Subject: Re: [parsec-users] vips and fluidanimate on Solaris/SPARC

OK, I finally got vips working with parsec.

originally this would fail:

/home/user/gcc/bin/gcc -std=gnu99 -O3 -funroll-loops 
-fprefetch-loop-arrays -DPARSEC_VERSION=1.0 -o vips vips.o -D_REENTRANT 
-D_PTHREADS 
-I/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/include
/glib-2.0 
-I/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/lib/gli
b-2.0/include 
-I/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/include
/glib-2.0 
-I/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/lib/gli
b-2.0/include 
-I/home/user/parsec-1.0/bin/../pkgs/libs/libxml2/inst/sparc-solaris.gcc/incl
ude/libxml2 
-I/usr/include/libpng12  -L/usr/lib64 -L/usr/lib 
-L/mnt/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/lib

../../libsrc/.libs/libvips.a 
-L/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/lib 
-L/home/user/parsec-1.0/bin/../pkgs/libs/libxml2/inst/sparc-solaris.gcc/lib 
-lpng12 -lgthread-2.0 -lpthread -lthread -lrt -lgmodule-2.0 -lxml2 
-lgobject-2.0 -lglib-2.0 -lm

since its picking up other lib paths before the parsec glib one, so I 
moved the 
-L/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/lib 
path before the others and it works.
i.e. this:

/home/user/gcc/bin/gcc -std=gnu99 -O3 -funroll-loops 
-fprefetch-loop-arrays -DPARSEC_VERSION=1.0 -o vips vips.o -D_REENTRANT 
-D_PTHREADS 
-I/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/include
/glib-2.0 
-I/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/lib/gli
b-2.0/include 
-I/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/include
/glib-2.0 
-I/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/lib/gli
b-2.0/include 
-I/home/user/parsec-1.0/bin/../pkgs/libs/libxml2/inst/sparc-solaris.gcc/incl
ude/libxml2 
-I/usr/include/libpng12 
-L/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/lib  
-L/usr/lib64 -L/usr/lib 
-L/mnt/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/lib

../../libsrc/.libs/libvips.a 
-L/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/lib 
-L/home/user/parsec-1.0/bin/../pkgs/libs/libxml2/inst/sparc-solaris.gcc/lib 
-lpng12 -lgthread-2.0 -lpthread -lthread -lrt -lgmodule-2.0 -lxml2 
-lgobject-2.0 -lglib-2.0 -lm


to get it to occur automatically via the parsec script, I added 
following to the build_env variable in  gcc.bldconfig in vips directory 
(file ../pkgs/apps/vips/parsec/gcc.bldconf), and removed it from the 
main /config/gcc.bldconfig file in the parsec root directory:
-L${CC_HOME}/lib64 -L${CC_HOME}/lib

Vips than compiled cleanly and worked with sample inputs.

Perhaps parsec maintainers can change the script so that system libs get 
added to the path after the parsec paths, so parsec paths show up 
sooner, and older system libs don't get picked up instead.


jcupitt at gmail.com wrote:
> 2008/7/2 Major <mbb45 at cornell.edu>:
>   
>> I forgot to export the variable after setting it, doing that gave me the
>> proper ouput via the pkg-config command.
>>     
>
> Great!
>
>   
>> However, after doing that, and getting the output you've described below,
I
>> still get the same error with the parsec output:
>>     
>
> The undefeined symbols are the things that were added in glib 2.6, so
> it sounds like you are still seeing the system glib ahead of the
> parsec glib.
>
> If these errors are happening at link-time, you need to see where the
> parsec build system is injecting the output of pkg-config --libs, and
> check that the values are correct. If it's at run-time, look for a
> missing --rpath, or missing lib areas from LD_LIBRARY_PATH.
>
>   
>> When I tried compiling vips standalone, it has issues during the make
>> process:
>>     
>
> It sounds like (perhaps) your ImageMagick install is old or messed up.
> Try configuring vips standalone with
>
>   ./configure --without-magick ... etc.
>
> and see if that fixes it.
>
> John
> _______________________________________________
> parsec-users mailing list
> parsec-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/parsec-users
>   

_______________________________________________
parsec-users mailing list
parsec-users at lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/parsec-users



More information about the parsec-users mailing list