Opened 10 years ago

Last modified 10 years ago

#44631 closed defect

p5-ifeffit: doesn't build with clang — at Version 4

Reported by: watsodw Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mf2k@…, mojca@…
Port: p5-ifeffit

Description (last modified by mojca (Mojca Miklavec))

Wants to use clang to compile, but get the error "Undefined symbols for architecture x86_64" Is it a problem with using Macports gfortran?

LD_RUN_PATH="/usr/lib" /usr/bin/clang  -shared ifeffit_wrap.o -arch x86_64 -o blib/arch/auto/Ifeffit/Ifeffit.bundle 	\
	  /opt/local/lib/perl5/5.16.3/darwin-thread-multi-2level/CORE/libperl.dylib -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-ifeffit/p5.16-ifeffit/work/ifeffit-1.2.final/wrappers/perl/../../src/lib -L/opt/local/lib -lifeffit -lnopgplot -L/opt/local/lib -lSystem -lm  	\

Undefined symbols for architecture x86_64:
  "__gfortran_compare_string", referenced from:
      _iffcmd_exec_ in libifeffit.a(ifeffit.o)
      _ifeffit_ in libifeffit.a(ifeffit.o)
      _ioflist_ in libifeffit.a(misc_arr.o)
      _file_type_names_ in libifeffit.a(misc_arr.o)
      _glob_ in libifeffit.a(misc_arr.o)
      _settxt_ in libifeffit.a(misc_vars.o)
      _setsca_ in libifeffit.a(misc_vars.o)
      ...
  "__gfortran_concat_string", referenced from:
      _iffcmd_exec_ in libifeffit.a(ifeffit.o)
      _fstop_ in libifeffit.a(echo.o)
      _fixnam_ in libifeffit.a(misc_arr.o)
      _prenam_ in libifeffit.a(misc_arr.o)
      _set_array_index_ in libifeffit.a(misc_arr.o)
      _getsca_ in libifeffit.a(misc_vars.o)
      _iff_bkg_cl_ in libifeffit.a(iff_bkg_cl.o)
      ...

      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [blib/arch/auto/Ifeffit/Ifeffit.bundle] Error 1

Change History (5)

Changed 10 years ago by watsodw

Attachment: main.log added

comment:1 Changed 10 years ago by mf2k (Frank Schima)

I just started seeing this error today and I can't explain it. My current workaround is to build ifeffit with +gcc49 instead.

comment:2 in reply to:  1 Changed 10 years ago by watsodw

Replying to mf2k@…:

I just started seeing this error today and I can't explain it. My current workaround is to build ifeffit with +gcc49 instead.

I did that and it works now. Thanks.

comment:3 Changed 10 years ago by mojca (Mojca Miklavec)

Cc: mojca@… added

Cc Me!

comment:4 Changed 10 years ago by mojca (Mojca Miklavec)

Description: modified (diff)
Port: p5-ifeffit added; p5.16-ifeffit removed
Summary: p5.16-ifeffit won't upgradep5-ifeffit: doesn't build with clang
Version: 2.3.1
Note: See TracTickets for help on using tickets.