Thank you so much ! Fltk now compiles. I’m trying to compile octave-atlas 3.8.2 
and all dependencies are now successfully compiled but octave-atlas itself 
fails in configuration stage.

My system :

Package manager version: 0.38.1
Distribution version: selfupdate-cvs Thu Oct 23 17:32:35 2014, 10.10, x86_64
Trees: local/main stable/main stable/crypto
Xcode.app: 6.1
Xcode command-line tools: 6.1.0.0.1.1413057044
Max. Fink build jobs:  1

Output from configuration stage:


% fink install octave-atlas
Information about 10045 packages read in 1 seconds.
The following package will be installed or updated:
octave-atlas
The following additional package will be installed:
octave382-atlas
Default answer will be chosen in 60 seconds...
Do you want to continue? [Y/n] 
Setting runtime build-lock...
dpkg-deb -b /sw/src/fink.build/root-fink-buildlock-octave-atlas-3.8.2-1 
/sw/src/fink.build
dpkg-deb: building package `fink-buildlock-octave-atlas-3.8.2-1' in 
`/sw/src/fink.build/fink-buildlock-octave-atlas-3.8.2-1_2014.10.23-17.33.03_darwin-x86_64.deb'.
Installing build-lock package...
/sw/bin/dpkg-lockwait -i 
/sw/src/fink.build/fink-buildlock-octave-atlas-3.8.2-1_2014.10.23-17.33.03_darwin-x86_64.deb
Selecting previously deselected package fink-buildlock-octave-atlas-3.8.2-1.
(Reading database ... 146669 files and directories currently installed.)
Unpacking fink-buildlock-octave-atlas-3.8.2-1 (from 
.../fink-buildlock-octave-atlas-3.8.2-1_2014.10.23-17.33.03_darwin-x86_64.deb) 
...
Setting up fink-buildlock-octave-atlas-3.8.2-1 (2014.10.23-17.33.03) ...

sudo -u fink-bld [ENV] sh -c /tmp/fink.KKfbp
env LANG=C LC_ALL=C /sw/bin/tar  --no-same-owner --no-same-permissions -xf 
/sw/src/octave-3.8.2.tar.bz2
sudo -u fink-bld [ENV] sh -c /tmp/fink.Znqjq
[ -r /sw/fink/dists/stable/main/finkinfo/sci/octave-3.8.2-octaverc.patch ]
sudo -u fink-bld [ENV] sh -c /tmp/fink.fJqzi
[ -r /sw/fink/dists/stable/main/finkinfo/sci/octave-3.8-manpages.patch ]
sudo -u fink-bld [ENV] sh -c /tmp/fink._TLcJ
[ -r /sw/fink/dists/stable/main/finkinfo/sci/octave-3.8.2-clang-libcxx.patch ]
sudo -u fink-bld [ENV] sh -c /tmp/fink.xrLZr
/tmp/fink.sYNLo
#!/bin/sh -ev

        # create versioned manpages
        cp doc/interpreter/octave.1 doc/interpreter/octave-3.8.2.1
        cp doc/interpreter/octave-config.1 doc/interpreter/octave-config-3.8.2.1
        cp doc/interpreter/octave-cli.1 doc/interpreter/octave-cli-3.8.2.1
        cp doc/interpreter/mkoctfile.1 doc/interpreter/mkoctfile-3.8.2.1
        # fix executable names in versioned manpages
        sed -e 's/@OCTVERSION@/3.8.2/g' 
/sw/fink/dists/stable/main/finkinfo/sci/octave-3.8-manpages.patch | patch -p1 
patching file doc/interpreter/mkoctfile-3.8.2.1
patching file doc/interpreter/octave-3.8.2.1
patching file doc/interpreter/octave-cli-3.8.2.1
patching file doc/interpreter/octave-config-3.8.2.1

        #Fink-specific structural changes
        sed -e 's/@OCTVERSION@/3.8.2/g' -e 's|@FINKPREFIX@|/sw|g' 
/sw/fink/dists/stable/main/finkinfo/sci/octave-3.8.2-octaverc.patch | patch -p1 
patching file octaverc
        # Put in the Fink tree.
        sed -i -e 's|@FINKPREFIX@|/sw|g' doc/interpreter/*.1 src/mkoctfile*in.cc

        # instead of using flag-sort, ensure that the right sysdep.h is used
        grep -lr '#include "sysdep.h"' * | xargs perl -pi.orig -e 
's,sysdep.h,/sw/src/fink.build/octave-atlas-3.8.2-1/octave-3.8.2/libinterp/corefcn/sysdep.h,'

        # If we're not using an X11-based FLTK, just because we _have_ X 
doesn't mean
        # we want to use it.
        if [ "." != "-x11" ] ; then
                perl -pi -e 's/HAVE_X_WINDOWS/HAVE_X_BINDOWS/g' 
libinterp/dldfcn/__init_fltk__.cc
        fi

        # fix build using clang-6
        clangvers=`clang --version | head -n 1 | cut -d\  -f 4`
clang --version | head -n 1 | cut -d\  -f 4
        if [ "$clangvers" > "5.9.9" ] ; then
                patch -p1 < 
/sw/fink/dists/stable/main/finkinfo/sci/octave-3.8.2-clang-libcxx.patch
        fi
patching file liboctave/operators/libcxx-fix.h
patching file liboctave/operators/mx-inlines.cc
sudo -u fink-bld [ENV] sh -c /tmp/fink.DQHMD
/tmp/fink.l6P5g
#!/bin/sh -ev
# Encode Fink compiler wrappers
if [ "." = "-x11" ] ; then
        export CXXFLAGS="$CXXFLAGS -I/usr/X11/include"
fi
export F77=/sw/bin/gfortran-fsf-4.9
# -ff2c is required when using gfortran and Accelerate.framework
if [ "-atlas" = "." ]
        then export FFLAGS='-O3 -ff2c'
        else export FFLAGS='-O3'
fi
FLIBDIR="/sw/lib/gcc4.9/lib"
export FLIBS="-L${FLIBDIR} -lgfortran"
export PKG_CONFIG=/sw/bin/pykg-config
qt_type=`echo  | cut -dt -f2`
echo  | cut -dt -f2
if [ "." != "."  ] ; then       
        export 
PKG_CONFIG_PATH="/sw/lib/qt4-$qt_type/lib/pkgconfig:$PKG_CONFIG_PATH"
        export PATH="/sw/lib/qt4-$qt_type/bin:$PATH"
        # QtCore is inherited
        export LDFLAGS=`pkg-config QtNetwork --libs`" "`pkg-config QtGui 
--libs`" -L/sw/lib/qt4-$qt_type/lib $LDFLAGS"
fi

./configure --prefix=/sw \
\
--with-lapack="-ltatlas" \
--with-blas="-ltatlas" \
\
\
--with-framework-carbon \
\
\
\
\
        --with-magick=GraphicsMagick \
        --with-qhull-includedir=/sw/include/libqhull \
        --host=x86_64-apple-darwin \
        --build=x86_64-apple-darwin \
        --infodir='${prefix}/share/info' \
        --mandir='${prefix}/share/man' \
        --libexecdir='${prefix}/lib' \
        --enable-shared \
        --enable-dl \
        --disable-static \
--disable-gui \
        --enable-dependency-tracking
checking for a BSD-compatible install... /sw/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /sw/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '601' is supported by ustar format... yes
checking whether GID '600' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-apple-darwin
checking host system type... x86_64-apple-darwin
checking for style of include used by make... GNU
checking for x86_64-apple-darwin-gcc... oct-cc
checking whether the C compiler works... no
configure: error: in `/sw/src/fink.build/octave-atlas-3.8.2-1/octave-3.8.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
### execution of /tmp/fink.l6P5g failed, exit code 77
### execution of /tmp/fink.DQHMD failed, exit code 77
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-octave-atlas-3.8.2-1
(Reading database ... 146670 files and directories currently installed.)
Removing fink-buildlock-octave-atlas-3.8.2-1 ...
Failed: phase compiling: octave-atlas-3.8.2-1 failed






> On 23 Oct 2014, at 16:29, Alexander Hansen <alexanderk.han...@gmail.com> 
> wrote:
> 
> On 10/23/14, 12:06 AM, Petri Piila wrote:
>> Dear fltk maintainer,
>> 
>> I’m not able to compile fltk13-aqua.
>> 
>> My system :
>> 
>> Package manager version: 0.38.1
>> Distribution version: selfupdate-cvs Thu Oct 23 09:51:40 2014, 10.10, x86_64
>> Trees: local/main stable/main stable/crypto
>> Xcode.app: 6.1
>> Xcode command-line tools: 6.1.0.0.1.1413057044
>> Max. Fink build jobs:  1
>> 
>> Configuration log:
>> 
> 
> <snip>
> 
>> === making src ===
>> echo Compiling Fl_cocoa.mm...
>> Compiling Fl_cocoa.mm...
>> g++ -I..  -Os -Wno-deprecated-declarations -Wall -Wunused -Wno-format-y2k  
>> -fPIC -fno-exceptions -fno-strict-aliasing -D_LARGEFILE_SOURCE 
>> -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -I/sw/include  
>> -DFL_LIBRARY -x objective-c++ -c Fl_cocoa.mm -o Fl_cocoa.o
>> Fl_cocoa.mm:1325:24: error: cannot initialize a parameter of type 
>> 'id<NSFileManagerDelegate>' with an rvalue of
>>       type 'FLDelegate *'
>>     [NSApp setDelegate:[[FLDelegate alloc] init]];
>>                        ^~~~~~~~~~~~~~~~~~~~~~~~~
>> /usr/include/objc/NSObject.h:60:1: note: instance method 'init' is assumed 
>> to return an instance of its receiver
>>       type ('FLDelegate *')
>> - (instancetype)init;
>> ^
>> /System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:109:47:
>>  note: passing argument to
>>       parameter 'delegate' here
>> @property (assign) id <NSFileManagerDelegate> delegate NS_AVAILABLE(10_5, 
>> 2_0);
>>                                               ^
>> Fl_cocoa.mm:2234:21: error: cannot initialize a parameter of type 
>> 'id<NSWindowDelegate>' with an rvalue of type
>>       'id<NSFileManagerDelegate>'
>>     [cw setDelegate:[NSApp delegate]];
>>                     ^~~~~~~~~~~~~~~~
>> /System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:307:41: note: 
>> passing argument to parameter
>>       'delegate' here
>> @property (assign) id<NSWindowDelegate> delegate;
>>                                         ^
>> 2 errors generated.
>> make[1]: *** [Fl_cocoa.o] Error 1
>> make: *** [all] Error 1
>> ### execution of make failed, exit code 2
>> ### execution of /tmp/fink.nOuAY failed, exit code 2
>> Removing runtime build-lock...
>> Removing build-lock package...
>> /sw/bin/dpkg-lockwait -r fink-buildlock-fltk13-aqua-1.3.2-3
>> (Reading database ... 31590 files and directories currently installed.)
>> Removing fink-buildlock-fltk13-aqua-1.3.2-3 ...
>> Failed: phase compiling: fltk13-aqua-1.3.2-3 failed
>> 
>> BR
>> Petri Piila
>> 
>> 
> 
> Thanks for the report.  I'm trying out a patch right now and I'll let you 
> know if it works.
> 
> 
> -- 
> Alexander Hansen, Ph.D.
> Fink User Liaison
> My package updates: http://finkakh.wordpress.com/


------------------------------------------------------------------------------
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to