User avatar
ksharindam
Posts: 161
Joined: Sat Jan 09, 2016 4:16 pm

rebuild.sh in hello_pi failed to build hello_mmal_encode

Wed Aug 22, 2018 11:21 am

I was running rebuild.sh in hello_pi to compile the example sources.
but it failed to build hello_mmal_encode.

Code: Select all

cc -o hello_mmal_encode.bin -Wl,--whole-archive mmal_encode.o -lmmal -lmmal_core -lmmal_components -lmmal_util -lmmal_vc_client --no-as-needed -L/opt/vc/lib/ -lbrcmGLESv2 -lbrcmEGL -lopenmaxil -lbcm_host -lvcos -lvchiq_arm -lpthread -lrt -lm -L/opt/vc/src/hello_pi/libs/ilclient -L/opt/vc/src/hello_pi/libs/vgfont -Wl,--no-whole-archive -rdynamic
cc: error: unrecognized command line option ‘--no-as-needed’; did you mean ‘--no-assert’?
../Makefile.include:19: recipe for target 'hello_mmal_encode.bin' failed
make[1]: *** [hello_mmal_encode.bin] Error 1
rm mmal_encode.o
make[1]: Leaving directory '/opt/vc/src/hello_pi/hello_mmal_encode'
Makefile:10: recipe for target 'apps' failed
make: *** [apps] Error 2
It seems that --no-as-needed is not recognized by linker.
The package maintainer should fix it.

DirkS
Posts: 10301
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: rebuild.sh in hello_pi failed to build hello_mmal_encode

Wed Aug 22, 2018 11:37 am

ksharindam wrote:
Wed Aug 22, 2018 11:21 am
The package maintainer should fix it.
You should open an issue on the userland github repo: https://github.com/raspberrypi/userland/issues

warmbiscuit
Posts: 1
Joined: Tue Aug 28, 2018 11:36 pm

Re: rebuild.sh in hello_pi failed to build hello_mmal_encode

Tue Aug 28, 2018 11:39 pm

I'm having the exact same issue. I can get the Hello_World example to run in the console, but if I try to run anything else, the console essentially freezes.

User avatar
ksharindam
Posts: 161
Joined: Sat Jan 09, 2016 4:16 pm

Re: rebuild.sh in hello_pi failed to build hello_mmal_encode

Thu Aug 30, 2018 6:17 am

warmbiscuit wrote:
Tue Aug 28, 2018 11:39 pm
I'm having the exact same issue. I can get the Hello_World example to run in the console, but if I try to run anything else, the console essentially freezes.
I can successfully run all of the example binaries. The console does not freeze.

DirkS
Posts: 10301
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: rebuild.sh in hello_pi failed to build hello_mmal_encode

Thu Aug 30, 2018 7:59 am

warmbiscuit wrote:
Tue Aug 28, 2018 11:39 pm
I'm having the exact same issue. I can get the Hello_World example to run in the console, but if I try to run anything else, the console essentially freezes.
Sorry, but how can this be exactly the same issue..
OP gets an error while building a program and you have problems running some programs.
Please create a new topic and describe exactly the problems you have. Include information such as model Pi, OS + version, which programs you have problems with, etc

Return to “Raspberry Pi OS”