Regarding math library linker error

146 views
Skip to first unread message

Madhu Kumar.s.j.

unread,
Feb 2, 2022, 2:49:12 AM2/2/22
to inside...@googlegroups.com
Hi all,

I am trying to cross compile the lcms2 library for arm64 but I got some below errors related to math library.

/home/madhukumar/TOOL_CHAIN/aarch64-linux-android/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: warning: libm.so, needed by ../../src/.libs/liblcms2.so, not found (try using -rpath or -rpath-link)
../../src/.libs/liblcms2.so: undefined reference to `sqrtf@LIBC'
../../src/.libs/liblcms2.so: undefined reference to `cos@LIBC'
../../src/.libs/liblcms2.so: undefined reference to `sqrt@LIBC'
../../src/.libs/liblcms2.so: undefined reference to `pow@LIBC'
../../src/.libs/liblcms2.so: undefined reference to `atan2@LIBC'
../../src/.libs/liblcms2.so: undefined reference to `exp@LIBC'
../../src/.libs/liblcms2.so: undefined reference to `sin@LIBC'
../../src/.libs/liblcms2.so: undefined reference to `log@LIBC'
../../src/.libs/liblcms2.so: undefined reference to `log10@LIBC'
../../src/.libs/liblcms2.so: undefined reference to `atan@LIBC'
clang80: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [linkicc] Error 1
make[1]: Leaving directory `/home/madhukumar/Libraw/lcms2-2.13/utils/linkicc'
make: *** [all-recursive] Error 1

Any predefined Library is there to link or we need to cross compile that math library also.

If any predefined Library is there to link for cross compling, please suggest me.

Thank you

shashank parsi

unread,
Feb 2, 2022, 4:00:45 AM2/2/22
to inside...@googlegroups.com
Hi,
Try to install library
Sudo apt-get install liblcms2-2:i386

--
You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inside_linux/CAAMD4fynEqYwkic9bb5mOSHDcgxiy44LEb6PfGfq6wJt8ftqKw%40mail.gmail.com.

Madhu Kumar.s.j.

unread,
Feb 2, 2022, 4:23:38 AM2/2/22
to inside...@googlegroups.com
Hi,
Actually above command is giving the library for 32 bit and it's save in usr folder how it is helping To cross compile for arm 64 same error I got.

Thank you 


Anil Kumar Pugalia

unread,
Feb 3, 2022, 10:58:03 AM2/3/22
to inside...@googlegroups.com

Have you linked the math library (-lm), while compiling. If not do it. If yes, check out the hard / soft float related options.

Regards
Anil
Passion: http://sysplay.in (Playing with Systems)
Madhu Kumar.s.j. wrote on 02/02/22 2:53 pm:
Reply all
Reply to author
Forward
0 new messages