Re: [gtk-osx-users] New build system (continued).




Le 15 avr. 2019 à 22:31, John Ralls <jralls ceridwen us> a écrit :

On Apr 15, 2019, at 12:59 PM, Pascal <p p14 orange fr> wrote:

John, I've found some suspicious instructions in jhbuildrc line 321:
  if (_osx_version < 14):
      module_extra_env["expat"] = {'CFLAGS':os.environ['CFLAGS'] + ' -arch i386 -arch x86_64'}
      module_extra_env.update(
          {"perl-xml-simple":{"ARCHFLAGS":"-arch i386 -arch x86_64"},
           "perl-xml-parser":{"ARCHFLAGS":"-arch i386 -arch x86_64"}})

I run macOS 10.13.6.
Without theses lines all is fine now.
What are them for?

They're because pre-10.14 perl was distributed with a combined i386/x86_64 library, so perl-xml-simple and 
perl-xml-parser needed to be built that way in order to link, and since they depend on expat it did too.

Are you using Xcode or command line tools? What version? What does `perl -V` say about flags (first line 
under Compiler)?

Hello John,

I've both installed:
$ xcodebuild -version
Xcode 10.1
Build version 10B61
$ pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 10.1.0.0.1.1539992718
$ xcrun --find gcc
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc
$ which gcc
/usr/bin/gcc
$ perl -V
Summary of my perl5 (revision 5 version 18 subversion 2) configuration:
  Compiler:
    cc='cc', ccflags ='-arch x86_64 -arch i386 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing 
-fstack-protector',

Regards, Pascal.
http://blady.pagesperso-orange.fr




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]