Opened 2 years ago

Last modified 10 months ago

#50280 assigned defect

arm-none-eabi-gcc @5.1.0_1 does not build on OS X Lion using clang

Reported by: daniel@… Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: arm-none-eabi-gcc


On OS X Lion (10.7.5, Darwin 11.4.2), the default compiler (Clang as Apple LLVM version 4.2 (clang-425.0.28)) bails out with an error during build:

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-none-eabi-gcc/arm-none-eabi-gcc/work/gcc-5.1.0/gcc/config/arm/ fatal error: parser recursion limit reached, program too complex

Solution is to blacklist all clang versions in the Portfile by being more inclusive:

compiler.blacklist {clang < 500}

This forces the compiler chosen to be Xcode LLVM-GCC 4.2, which results in a succesful build, although it complains during staging:

--->  Building arm-none-eabi-gcc
--->  Staging arm-none-eabi-gcc into destroot
Warning: arm-none-eabi-gcc installs files outside the common directory structure.
--->  Installing arm-none-eabi-gcc @5.1.0_1
--->  Cleaning arm-none-eabi-gcc
--->  Computing dependencies for arm-none-eabi-gcc
--->  Deactivating arm-none-eabi-gcc @4.7.2_0
--->  Cleaning arm-none-eabi-gcc
--->  Activating arm-none-eabi-gcc @5.1.0_1
--->  Cleaning arm-none-eabi-gcc

Attachments (1)

arm-none-eabi-gcc.log.gz (55.7 KB) - added by daniel@… 2 years ago.
main.log from failed build

Download all attachments as: .zip

Change History (3)

Changed 2 years ago by daniel@…

main.log from failed build

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

  • Cc stuartwesterman@… removed
  • Owner changed from macports-tickets@… to stuartwesterman@…

comment:2 Changed 10 months ago by mf2k (Frank Schima)

  • Owner stuartwesterman deleted
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.