Opened 9 years ago

Closed 6 years ago

#50280 closed defect (worksforme)

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:
Keywords: Cc: mojca (Mojca Miklavec)
Port: arm-none-eabi-gcc

Description

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/neon.md:3463:10917: 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@… 9 years ago.
main.log from failed build

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by daniel@…

Attachment: arm-none-eabi-gcc.log.gz added

main.log from failed build

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

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

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

Owner: stuartwesterman deleted
Status: newassigned

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

Cc: mojca added

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

Resolution: worksforme
Status: assignedclosed
Version: 2.3.4

I'm cleaning up some tickets and I'm somewhat confused by this one. According to http://packages.macports.org/arm-none-eabi-gcc/ the port currently builds on Lion. Some other crossgcc compilers seem to be blacklisting {clang >= 421 < 422} (apparently there used to be a problem at some point which was fixed later; most ports don't blacklist those because users are no longer supposed to have an old Xcode installed), but your report is about clang 425.

I'm closing it as I believe it has been fixed. If not, please reopen.

Note: See TracTickets for help on using tickets.