Am 4.3.2012 um 21:48 schrieb Dominique Dhumieres: > Failed: phase compiling: inkscape-0.48.3.1-1 failed
Dominique, if you have some hours time, you can (try to) build Inkscape! Here are the INFO and the PATCH file that worked on PPC Leopard (10.5.8):
inkscape.info
Description: Binary data
inkscape.patch
Description: Binary data
If it fails, then it's quite clear that the INFO file needs another update: to
really compile everything with GCC 4.0. As you can see in the INFO file there
is a little Leopard specific block:
if [ `sw_vers -productVersion | cut -f2 -d.` == 5 ] ; then
export IMAGEMAGICK_CFLAGS=-I%p/include/ImageMagick
# export CPPFLAGS="-I%p/include -H"
# export LDFLAGS="-L%p/lib -Wl,-t"
fi
If you uncomment the two lines then GCC will record all C header files it uses
(-H) and all libraries that are linked into the binaries (-Wl,-t).
(-I%p/include and -L%p/lib are necessary for configure that all software is
found because the environment variables CPPFLAGS and LDFLAGS blank all useful
initial values.) Together this produces 1,000,000 extra lines (equals to 0.1 GB
swap space or memory) of output. This can help to find subtle faults. You can
check this version of the two files and see whether Inkscape gets built. Or you
can proceed similarly like Daniel did and add to the block these two lines:
export CC=gcc-4.0
export CXX=g++-4.0
This will certainly produce stable executables. (I'll compile later with these
settings to check whether this compiles "cleanly".)
The PATCH file has received extra patches:
- CPPFLAGS="-Werror=format-security $CPPFLAGS"
+ if [ `uname -r | cut -f1 -d.` -gt 9 ] ; then
CPPFLAGS="-Werror=format-security $CPPFLAGS" ; fi
This removes on Leopard for all later tests the -Werror=format-security switch
which gcc-4.0 understands but not g++-4.0 (g++-4.2 does understand, but
produces with Inkscape once more faulty assembler code). This switch is so bad
that g++ dies instantly.
+/* To make the test function on Mac OS X – Simon Urbanek */
+/*
http://stackoverflow.com/questions/8983038/linker-errors-after-enabling-openmp-on-mac
*/
+#include <pthread.h>
+pthread_attr_t gomp_thread_attr;
This addition above makes the test for OpenMP work.
*Only tested on PPC Leopard 10.5.8.*
--
Greetings
Pete
A lot of us are working harder than we want, at things we don't like to do.
Why? ...In order to afford the sort of existence we don't care to live.
– Bradford Angier
------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________ Fink-users mailing list [email protected] List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users
