Forums - /TransLib.c:function wakeAnotherThread: error: undefined reference to '__umodsi3'

13 posts / 0 new
Last post
/TransLib.c:function wakeAnotherThread: error: undefined reference to '__umodsi3'
davidlglozo
Join Date: 8 Jul 15
Posts: 6
Posted: Sun, 2015-08-30 09:39

Hello. I try this tools for compile AndroidRom but i have this error

/TransLib.c:function wakeAnotherThread: error: undefined reference to '__umodsi3'

Any idea?

 

Thanks

  • Up0
  • Down0
Raja Moderator
Join Date: 17 Apr 13
Posts: 42
Posted: Sun, 2015-08-30 09:57

Is this a compile-time or run-time error? What options are you using to build your code?

  • Up0
  • Down0
davidlglozo
Join Date: 8 Jul 15
Posts: 6
Posted: Sun, 2015-08-30 12:40

in the compile-time! i use brunch "device"

  • Up0
  • Down0
Raja Moderator
Join Date: 17 Apr 13
Posts: 42
Posted: Sun, 2015-08-30 15:40

Can you kindly post the entire command line including options used? "mm showcommands" will show you the output that you can share with us

  • Up0
  • Down0
davidlglozo
Join Date: 8 Jul 15
Posts: 6
Posted: Sun, 2015-08-30 16:11
target Executable: mount.exfat (/media/david/e27163e1-afa9-496f-bf28-1bf62cd09597/home/david/Escritorio/NuclearSlim/out/target/product/bacon/obj/EXECUTABLES/mount.exfat_intermediates/LINKED/mount.exfat)
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar 
prebuilts/clang/linux-x86/host/llvm-Snapdragon_LLVM_for_Android_3.6/prebuilt/linux-x86_64/bin/../lib/clang/3.6.0/lib/linux-propri_rt/libclang_rt.translib32.a(TransLib.c.o):/prj/llvm-arm/home/nightly/src/qc-release-36-ndk/propri-rt/lib/translib/TransLib.c:function wakeAnotherThread: error: undefined reference to '__umodsi3'
prebuilts/clang/linux-x86/host/llvm-Snapdragon_LLVM_for_Android_3.6/prebuilt/linux-x86_64/bin/../lib/clang/3.6.0/lib/linux-propri_rt/libclang_rt.translib32.a(TransLib.c.o):/prj/llvm-arm/home/nightly/src/qc-release-36-ndk/propri-rt/lib/translib/TransLib.c:function wakeAnotherThread: error: undefined reference to '__umodsi3'
collect2: error: ld returned 1 exit status
ADSP firmware link: /media/david/e27163e1-afa9-496f-bf28-1bf62cd09597/home/david/Escritorio/NuclearSlim/out/target/product/bacon/system/etc/firmware/adsp.b00
build/core/shared_library_internal.mk:68: recipe for target '/media/david/e27163e1-afa9-496f-bf28-1bf62cd09597/home/david/Escritorio/NuclearSlim/out/target/product/bacon/obj/SHARED_LIBRARIES/libstagefright_intermediates/LINKED/libstagefright.so' failed
make: *** [/media/david/e27163e1-afa9-496f-bf28-1bf62cd09597/home/david/Escritorio/NuclearSlim/out/target/product/bacon/obj/SHARED_LIBRARIES/libstagefright_intermediates/LINKED/libstagefright.so] Error 1
make: *** Se espera a que terminen otras tareas....
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar 
 
#### make failed to build some targets (01:44 (mm:ss)) ####
 
  • Up0
  • Down0
davidlglozo
Join Date: 8 Jul 15
Posts: 6
Posted: Mon, 2015-08-31 13:02

i used this 
 

USE_CLANG_QCOM := true
CLANG_QCOM_COMPILE_BIONIC := true
CLANG_QCOM_COMPILE_MIXED := true
USE_CLANG_QCOM_VERBOSE := true
  • Up0
  • Down0
moludo
Join Date: 31 Jul 15
Posts: 2
Posted: Mon, 2015-08-31 18:21

Im having the same problem, any idea?

i activate this, like davidlglozo

USE_CLANG_QCOM := true
CLANG_QCOM_COMPILE_BIONIC := true
CLANG_QCOM_COMPILE_MIXED := true
USE_CLANG_QCOM_VERBOSE := true
  • Up0
  • Down0
Raja Moderator
Join Date: 17 Apr 13
Posts: 42
Posted: Mon, 2015-08-31 19:05

Can you build without -fparallel option? The translib.c reference is coming from translib library which will get included only if -fparallel is used.

  • Up0
  • Down0
davidlglozo
Join Date: 8 Jul 15
Posts: 6
Posted: Tue, 2015-09-01 04:21

i have same error without this

  • Up0
  • Down0
davidlglozo
Join Date: 8 Jul 15
Posts: 6
Posted: Tue, 2015-09-01 04:34

ohh finaly woks! thaks

  • Up0
  • Down0
amitmankikar
Join Date: 24 Sep 15
Posts: 2
Posted: Thu, 2015-10-01 01:28

I am having same problem, how did you fix this, davidlglozo?

Please tell me. 

If it got solved by disabling -fparallel, where can I find that option?

I am building cyanogenmod 12.1

Thank you

Amit

  • Up0
  • Down0
Raja Moderator
Join Date: 17 Apr 13
Posts: 42
Posted: Thu, 2015-10-01 07:43

The -fparallel option is not enabled by default. Kindly make sure this option is not passed through any of the command line flags or in any makefiles

  • Up0
  • Down0
amitmankikar
Join Date: 24 Sep 15
Posts: 2
Posted: Sun, 2015-10-04 04:45

Hi Raja,

Thanks for replying. Yes, if I remove -fparallel, it builds successfully.

What if I need -fparallel? Where can I get this symbol?

Thanks,

Amit

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.