Opened 12 years ago

Last modified 3 years ago

#34891 new defect

swig: subports do not respect build_arch

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc: jyrkiwahlstedt, cooljeanius (Eric Gallager)
Port: swig

Description

Here's what happens with swig-tcl:

/usr/bin/g++-4.2  -pipe -O2 -Wall -W -ansi -pedantic  -L/i386-10.6-mp/lib -o eswig CParse/cscanner.o CParse/parser.o CParse/templ.o CParse/util.o DOH/base.o DOH/file.o DOH/fio.o DOH/hash.o DOH/list.o DOH/memory.o DOH/string.o DOH/void.o Modules/allegrocl.o Modules/allocate.o Modules/browser.o Modules/cffi.o Modules/chicken.o Modules/clisp.o Modules/contract.o Modules/csharp.o Modules/d.o Modules/directors.o Modules/emit.o Modules/go.o Modules/guile.o Modules/java.o Modules/lang.o Modules/lua.o Modules/main.o Modules/modula3.o Modules/module.o Modules/mzscheme.o Modules/ocaml.o Modules/octave.o Modules/overload.o Modules/perl5.o Modules/php.o Modules/pike.o Modules/python.o Modules/r.o Modules/ruby.o Modules/s-exp.o Modules/swigmain.o Modules/tcl8.o Modules/typepass.o Modules/uffi.o Modules/utils.o Modules/xml.o Preprocessor/cpp.o Preprocessor/expr.o Swig/cwrap.o Swig/deprecate.o Swig/error.o Swig/fragment.o Swig/getopt.o Swig/include.o Swig/misc.o Swig/naming.o Swig/parms.o Swig/scanner.o Swig/stype.o Swig/symbol.o Swig/tree.o Swig/typeobj.o Swig/typemap.o Swig/typesys.o Swig/wrapfunc.o  -ldl  -L/i386-10.6-mp/lib -lpcre
ld: warning: in /i386-10.6-mp/lib/libpcre.dylib, file was built for i386 which is not the architecture being linked (x86_64)
Undefined symbols:
  "_pcre_version", referenced from:
      _Swig_pcre_version in misc.o
     (maybe you meant: _Swig_pcre_version)
  "_pcre_compile", referenced from:
      _Swig_string_regex in misc.o
      _Swig_name_regexmatch_value in naming.o
  "_pcre_free", referenced from:
      _Swig_string_regex in misc.o
      _Swig_string_regex in misc.o
      _Swig_name_regexmatch_value in naming.o
  "_pcre_exec", referenced from:
      _Swig_string_regex in misc.o
      _Swig_name_regexmatch_value in naming.o
ld: symbol(s) not found

swig-perl does the same.

While you're fixing this you could possibly add a universal variant as well.

Change History (7)

comment:1 Changed 12 years ago by jyrkiwahlstedt

Doesn't happen with me, but then, my build uses clang, curious? Must admit that a universal variant could be useful, but no immediate bug is visible.

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

It should not matter what compiler is used. The "-arch" flags are plainly missing from all the compile lines.

comment:3 Changed 11 years ago by cooljeanius (Eric Gallager)

While you're fixing this you could possibly add a universal variant as well.

swig-tcl does have a universal variant though? I think that happened when the "supported_archs noarch" line was removed in r117038...

comment:4 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:5 Changed 10 years ago by michaelld (Michael Dickens)

Owner: changed from kevin@… to michaelld@…

comment:6 Changed 10 years ago by cooljeanius (Eric Gallager)

Also another example of this is swig-clisp, which is x86_64, even though its dependency clisp is only ppc/i386

comment:7 in reply to:  6 Changed 3 years ago by cooljeanius (Eric Gallager)

Replying to cooljeanius:

Also another example of this is swig-clisp, which is x86_64, even though its dependency clisp is only ppc/i386

Update: this one at least appears to have been fixed

Note: See TracTickets for help on using tickets.