Menu

#353 buildroot package fails to compile

1.30.x
closed-fixed
nobody
None
5
2023-09-23
2023-08-07
No

Hi,
in buildroot we are having problems with cross-compiling 1.31.3.
http://autobuild.buildroot.net/?reason=mpg123-1.31.3

It always fails with:
/home/autobuild/autobuild/instance-7/output-1/host/lib/gcc/mips64el-buildroot-linux-gnu/11.4.0/../../../../mips64el-buildroot-linux-gnu/bin/ld: src/libmpg123/.libs/libmpg123.so: undefined reference to `INT123_getcpuflags'

With different architectures and libc combinations.

Any idea what is going wrong here?
thanks in advance
Waldemar

Discussion

  • Thomas Orgis

    Thomas Orgis - 2023-08-07

    Oh, this must be the the unnecessary definition of wrap_getcpuflags(), which doesn't pose an error for all linkers … others seem to silently drop this static function that is never called. Or, rather, the optimizer before linking.

    Does the attached patch help?

     
  • Waldemar Brodkorb

    Hi Thomas,
    yes wonderful this fixes the issue.
    best regards
    Waldemar

     
  • Thomas Orgis

    Thomas Orgis - 2023-09-23
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB