Opened 20 months ago

Last modified 20 months ago

#51133 new defect

Xcode 7.3 bug: __DATA/__thread_bss extends beyond end of file

Reported by: ith140@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: elcapitan Cc: jeremyhu (Jeremy Huddleston Sequoia), mojca (Mojca Miklavec)
Port: geant4.10.1

Description (last modified by mojca (Mojca Miklavec))

Bug building the new version with the p03 patch. I've looked at log file and am not really sure how to diagnose problem further, so I've attached it.

ld: section __DATA/__thread_bss extends beyond end of file, file 'CMakeFiles/G4processes.dir/hadronic/models/rpg/src/G4RPGAntiNeutronInelastic.cc.o' for architecture x86_64

Attachments (1)

main.log (34.2 MB) - added by ith140@… 20 months ago.
Log file from build process

Change History (7)

Changed 20 months ago by ith140@…

Log file from build process

comment:1 Changed 20 months ago by mf2k (Frank Schima)

  • Owner changed from macports-tickets@… to mojca@…

In the future, please Cc the port maintainers (port info --maintainers geant4.10.1), if any.

comment:2 Changed 20 months ago by mojca (Mojca Miklavec)

  • Cc jeremyhu@… mojca@… added
  • Description modified (diff)
  • Keywords elcapitan added
  • Owner changed from mojca@… to macports-tickets@…
  • Summary changed from Geant 4.10.1 to Xcode 7.3 bug: __DATA/__thread_bss extends beyond end of file
  • Version 2.3.4 deleted

This seems to be a bug in Xcode. Please try to downgrade your Xcode to version 7.2 until the problem gets fixed by Apple. There is nothing I can to about Geant4 (but I left it in the list of affected ports).

comment:3 follow-up: Changed 20 months ago by mojca (Mojca Miklavec)

... unless I can blacklist the compiler. Can you please try if the following works?

sudo port install geant4.10.1 configure.compiler=macports-clang-3.7

You can try with different versions of clang, but I don't know if that changes anything or not.

comment:4 in reply to: ↑ 3 Changed 20 months ago by ith140@…

Replying to mojca@…:

... unless I can blacklist the compiler. Can you please try if the following works?

sudo port install geant4.10.1 configure.compiler=macports-clang-3.7

You can try with different versions of clang, but I don't know if that changes anything or not.

It's not too easy to downgrade Xcode, however explicitly setting the compiler to clang-3.7 as suggested worked great. Thanks for the help!

comment:5 Changed 20 months ago by mojca (Mojca Miklavec)

What does clang --version return? We could try to blacklist the compiler shipped by Xcode 7.3. (I'm not yet sure about the proper syntax for blacklisting just that.)

comment:6 Changed 20 months ago by ith140@…

It returns...

Apple LLVM version 7.3.0 (clang-703.0.29)

Note: See TracTickets for help on using tickets.