Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-4709

AGL SDK for raspberrypi4 for Needlefish branch not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Needlefish 14.0.0, Needlefish 14.0.3
    • Build and Tools
    • None
    • Nifty needlefish for MACHINE = "raspberrypi4" (32bit)
    • Raspberry Pi 4

      Hello everyone,

      when I build an agl-image-minimal-crosssdk for MACHINE raspberrypi4 and I install the SDK using poky-agl-glibc-x86_64-agl-image-minimal-crosssdk-armv7vet2hf-neon-vfpv4-raspberrypi4-toolchain-14.0.3.sh I am not able to compile any application. I get following error in the console output.

      [proc] Executing command: /opt/agl-sdk/14.0.3-armv7vethf-neon-vfpv4/sysroots/x86_64-aglsdk-linux/usr/bin/cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/opt/agl-sdk/14.0.3-armv7vethf-neon-vfpv4/sysroots/x86_64-aglsdk-linux/usr/bin/arm-agl-linux-gnueabi/arm-agl-linux-gnueabi-gcc -DCMAKE_CXX_COMPILER:FILEPATH=/opt/agl-sdk/14.0.3-armv7vethf-neon-vfpv4/sysroots/x86_64-aglsdk-linux/usr/bin/arm-agl-linux-gnueabi/arm-agl-linux-gnueabi-g++ -S/home/csolemendi/Test_sdk -B/home/csolemendi/Test_sdk/build -G Ninja
      [cmake] Not searching for unused variables given on the command line.
      [cmake] – Toolchain file defaulted to '/opt/agl-sdk/14.0.3-armv7vethf-neon-vfpv4/sysroots/x86_64-aglsdk-linux/usr/share/cmake/OEToolchainConfig.cmake'
      [cmake] – The C compiler identification is GNU 11.3.0
      [cmake] – The CXX compiler identification is GNU 11.3.0
      [cmake] – Detecting C compiler ABI info
      [cmake] – Detecting C compiler ABI info - failed
      [cmake] – Check for working C compiler: /opt/agl-sdk/14.0.3-armv7vethf-neon-vfpv4/sysroots/x86_64-aglsdk-linux/usr/bin/arm-agl-linux-gnueabi/arm-agl-linux-gnueabi-gcc
      [cmake] – Check for working C compiler: /opt/agl-sdk/14.0.3-armv7vethf-neon-vfpv4/sysroots/x86_64-aglsdk-linux/usr/bin/arm-agl-linux-gnueabi/arm-agl-linux-gnueabi-gcc - broken
      [cmake] CMake Error at /opt/agl-sdk/14.0.3-armv7vethf-neon-vfpv4/sysroots/x86_64-aglsdk-linux/usr/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:69 (message):
      [cmake]   The C compiler
      [cmake]
      [cmake]     "/opt/agl-sdk/14.0.3-armv7vethf-neon-vfpv4/sysroots/x86_64-aglsdk-linux/usr/bin/arm-agl-linux-gnueabi/arm-agl-linux-gnueabi-gcc"
      [cmake]
      [cmake]   is not able to compile a simple test program.
      [cmake]
      [cmake]   It fails with the following output:
      [cmake]
      [cmake]     Change Dir: /home/csolemendi/Test_sdk/build/CMakeFiles/CMakeTmp
      [cmake]     
      [cmake]     Run Build Command(s):/opt/agl-sdk/14.0.3-armv7vethf-neon-vfpv4/sysroots/x86_64-aglsdk-linux/usr/bin/ninja cmTC_73181 && [1/2] Building C object CMakeFiles/cmTC_73181.dir/testCCompiler.c.o
      [cmake]     [2/2] Linking C executable cmTC_73181
      [cmake]     FAILED: cmTC_73181
      [cmake]     : && /opt/agl-sdk/14.0.3-armv7vethf-neon-vfpv4/sysroots/x86_64-aglsdk-linux/usr/bin/arm-agl-linux-gnueabi/arm-agl-linux-gnueabi-gcc -sysroot=/opt/agl-sdk/14.0.3-armv7vethf-neon-vfpv4/sysroots/armv7vet2hf-neon-vfpv4-agl-linux-gnueabi -O2 -pipe -g -feliminate-unused-debug-types -Wl,-O1 -Wl,hash-style=gnu -Wl,-as-needed  -Wl,-z,relro,-z,now   -rdynamic CMakeFiles/cmTC_73181.dir/testCCompiler.c.o -o cmTC_73181   && :
      [cmake]     /opt/agl-sdk/14.0.3-armv7vethf-neon-vfpv4/sysroots/x86_64-aglsdk-linux/usr/libexec/arm-agl-linux-gnueabi/gcc/arm-agl-linux-gnueabi/11.3.0/ld: error: cmTC_73181 uses VFP register arguments, CMakeFiles/cmTC_73181.dir/testCCompiler.c.o does not
      [cmake]     /opt/agl-sdk/14.0.3-armv7vethf-neon-vfpv4/sysroots/x86_64-aglsdk-linux/usr/libexec/arm-agl-linux-gnueabi/gcc/arm-agl-linux-gnueabi/11.3.0/ld: failed to merge target specific data of file CMakeFiles/cmTC_73181.dir/testCCompiler.c.o
      [cmake]     collect2: error: ld returned 1 exit status
      [cmake]     ninja: build stopped: subcommand failed.
      [cmake]     
      [cmake]     
      [cmake]
      [cmake]   
      [cmake]
      [cmake]   CMake will not be able to correctly generate this project.
      [cmake] Call Stack (most recent call first):
      [cmake]   CMakeLists.txt:2 (project)
      [cmake]
      [cmake]
      [cmake] – Configuring incomplete, errors occurred!
      [cmake] See also "/home/csolemendi/Test_sdk/build/CMakeFiles/CMakeOutput.log".
      [cmake] See also "/home/csolemendi/Test_sdk/build/CMakeFiles/CMakeError.log".
      [proc] The command: /opt/agl-sdk/14.0.3-armv7vethf-neon-vfpv4/sysroots/x86_64-aglsdk-linux/usr/bin/cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/opt/agl-sdk/14.0.3-armv7vethf-neon-vfpv4/sysroots/x86_64-aglsdk-linux/usr/bin/arm-agl-linux-gnueabi/arm-agl-linux-gnueabi-gcc -DCMAKE_CXX_COMPILER:FILEPATH=/opt/agl-sdk/14.0.3-armv7vethf-neon-vfpv4/sysroots/x86_64-aglsdk-linux/usr/bin/arm-agl-linux-gnueabi/arm-agl-linux-gnueabi-g++ -S/home/csolemendi/Test_sdk -B/home/csolemendi/Test_sdk/build -G Ninja exited with code: 1

      I attach also the CMakeError.log file. It seems that some object files like Scrt1.o cannot be found in /libexec folder but they are actually available in /lib folder. There was also an issue with the sdk for raspberrypi4-64 but it was from a different nature. For rasperrypi4-64 the problem was that two different libraries were installed, the gcc and the musl one and in my case vscode was picking the wrong one. That issue was solved by deleting the musl folder manually. However this seems a different issue. 

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            jsmoeller Jan-Simon Moeller
            Csolemendi Carles Sole Mendi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: