Opened 8 months ago

Closed 7 months ago

Last modified 6 months ago

#12551 closed Bugs (fixed)

Building boost on arm64 causes error: unknown directive

Reported by: nidal_mi@… Owned by: olli
Milestone: To Be Determined Component: context
Version: Boost 1.61.0 Severity: Problem
Keywords: Cc:


"clang++" -x assembler-with-cpp -O3 -Wno-inline -Wall -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_STATIC_LINK=1 -DBOOST_CONTEXT_SOURCE -DBOOST_DISABLE_ASSERTS -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_LIB=1 -DNDEBUG -I"." -c -o "bin.v2/libs/context/build/clang-linux-3.8.0/release/abi-aapcs/architecture-arm/link-static/target-os-android/threading-multi/asm/jump_arm64_aapcs_elf_gas.o" "libs/context/src/asm/jump_arm64_aapcs_elf_gas.S"

...failed clang-linux.compile.asm bin.v2/libs/context/build/clang-linux-3.8.0/release/abi-aapcs/architecture-arm/link-static/target-os-android/threading-multi/asm/jump_arm64_aapcs_elf_gas.o... clang-linux.compile.asm bin.v2/libs/context/build/clang-linux-3.8.0/release/abi-aapcs/architecture-arm/link-static/target-os-android/threading-multi/asm/ontop_arm64_aapcs_elf_gas.o libs/context/src/asm/ontop_arm64_aapcs_elf_gas.S:40:1: error: unknown directive .cpu generic+fp+simd

This happens when trying to run the boost build on arm64. I don't have this issue for arm7 architecture. Is there a work around for this or a potential fix?

Attachments (0)

Change History (6)

comment:1 Changed 8 months ago by edaskel@…

  • Component changed from None to Building Boost

comment:2 Changed 7 months ago by takahashi

  • Component changed from Building Boost to context
  • Owner set to olli

comment:3 Changed 7 months ago by olli

compiles fine for AArch64 (APM X-Gene Mustang board) with gcc 4.8.4

might be a problem of clang

Last edited 7 months ago by olli (previous) (diff)

comment:4 Changed 7 months ago by olli

  • Resolution set to fixed
  • Status changed from new to closed

comment:5 Changed 6 months ago by anonymous

This is happening to me too with the android NDK installed by android studio, ie: I get an 'unrecognized directive .code' from the assembler when building arm64, for jump, move and ontop.

I get this is a clang issue, but it would be VERY convenient if this code could be used as-is with the android NDK!

Just commenting out the .cpu directive allows the code to build, although I haven't tried to run it on an emulator or anything yet.

Should it be OK to comment this out?

comment:6 Changed 6 months ago by anonymous

directive .code is no longer contained in the files (1.64)

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain olli.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.