Yocto Rocko ld: cannot find -lgcc in glibc 2.23 do_compile
up vote
0
down vote
favorite
I'm using Yocto Rocko for my product.
I am using kernel version 2.6.35 in place of default kernel version of Rocko. (this is due to some issue in graphics rendering problem with new kernel which may take longer time to fix)
To support this old kernel 2.6.35, I'm forced to use glibc 2.23 (yocto rocko glibc folder replaced with yocto krogoth glibc folder) in place of default glibc v 2.26 with rocko (as glibc 2.26 support kernel version 3.2 above. I'm able to compile rocko with old kernel but during booting kernel panic with message "kernel too old". Have set oldest_kernel variable but get the same result).
With glibc 2.23, I get an error -lgcc not found during do_compile. Please refer to below for further details.
I have updated tclib files with preferred version set to glibc 2.23 but still getting an error. Also, I have checked libgcc is duly present in host in /usr/lib (Linux 18.04 Bionic)
How do i need to set the path and libraries?
The complete error message is below:
Linux Kernel – 2.6.35
Glibc – 2.23
Binutils – 2.29
While compiling customized poky-image I’m getting following error:
arm-poky-linux-gnueabi-gcc -march=armv6 -mfpu=vfp -mfloat-abi=softfp --sysroot=/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/recipe-sysroot-tcbootstrap -nostdlib -nostartfiles -r -o /work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/elf/librtld.map.o '-Wl,-(' /work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/elf/dl-allobjs.os /work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/elf/librtld.mapT
| /work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi.gcc-cross-initial-arm/../../libexec/arm-poky-linux-gnueabi.gcc-cross-initial-arm/gcc/arm-poky-linux-gnueabi/7.3.0/ld: cannot find -lgcc
| collect2: error: ld returned 1 exit status
| Makefile:340: recipe for target '/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/elf/librtld.map' failed
| make[2]: *** [/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/elf/librtld.map] Error 1
| make[2]: Leaving directory '/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/git/elf'
| Makefile:234: recipe for target 'elf/subdir_lib' failed
| make[1]: *** [elf/subdir_lib] Error 2
| make[1]: Leaving directory '/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/git'
| ERROR: oe_runmake failed
| Makefile:9: recipe for target 'all' failed
| make: *** [all] Error 2
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/temp/log.do_compile.27335)
ERROR: Task (/work/repo/bsp2/sources/poky/meta/recipes-core/glibc/glibc_2.23.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2002 tasks of which 1980 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/work/repo/bsp2/sources/poky/meta/recipes-core/glibc/glibc_2.23.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
(Please note I had to add STAGING_DIR_TCBOOTSTRAP = "${STAGING_DIR_TARGET}-tcbootstrap" in bitbake.conf to start compilation of glibc v2.23 taken from yocto krogoth)
Any help will be highly appreciated!
glibc yocto
add a comment |
up vote
0
down vote
favorite
I'm using Yocto Rocko for my product.
I am using kernel version 2.6.35 in place of default kernel version of Rocko. (this is due to some issue in graphics rendering problem with new kernel which may take longer time to fix)
To support this old kernel 2.6.35, I'm forced to use glibc 2.23 (yocto rocko glibc folder replaced with yocto krogoth glibc folder) in place of default glibc v 2.26 with rocko (as glibc 2.26 support kernel version 3.2 above. I'm able to compile rocko with old kernel but during booting kernel panic with message "kernel too old". Have set oldest_kernel variable but get the same result).
With glibc 2.23, I get an error -lgcc not found during do_compile. Please refer to below for further details.
I have updated tclib files with preferred version set to glibc 2.23 but still getting an error. Also, I have checked libgcc is duly present in host in /usr/lib (Linux 18.04 Bionic)
How do i need to set the path and libraries?
The complete error message is below:
Linux Kernel – 2.6.35
Glibc – 2.23
Binutils – 2.29
While compiling customized poky-image I’m getting following error:
arm-poky-linux-gnueabi-gcc -march=armv6 -mfpu=vfp -mfloat-abi=softfp --sysroot=/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/recipe-sysroot-tcbootstrap -nostdlib -nostartfiles -r -o /work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/elf/librtld.map.o '-Wl,-(' /work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/elf/dl-allobjs.os /work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/elf/librtld.mapT
| /work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi.gcc-cross-initial-arm/../../libexec/arm-poky-linux-gnueabi.gcc-cross-initial-arm/gcc/arm-poky-linux-gnueabi/7.3.0/ld: cannot find -lgcc
| collect2: error: ld returned 1 exit status
| Makefile:340: recipe for target '/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/elf/librtld.map' failed
| make[2]: *** [/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/elf/librtld.map] Error 1
| make[2]: Leaving directory '/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/git/elf'
| Makefile:234: recipe for target 'elf/subdir_lib' failed
| make[1]: *** [elf/subdir_lib] Error 2
| make[1]: Leaving directory '/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/git'
| ERROR: oe_runmake failed
| Makefile:9: recipe for target 'all' failed
| make: *** [all] Error 2
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/temp/log.do_compile.27335)
ERROR: Task (/work/repo/bsp2/sources/poky/meta/recipes-core/glibc/glibc_2.23.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2002 tasks of which 1980 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/work/repo/bsp2/sources/poky/meta/recipes-core/glibc/glibc_2.23.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
(Please note I had to add STAGING_DIR_TCBOOTSTRAP = "${STAGING_DIR_TARGET}-tcbootstrap" in bitbake.conf to start compilation of glibc v2.23 taken from yocto krogoth)
Any help will be highly appreciated!
glibc yocto
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm using Yocto Rocko for my product.
I am using kernel version 2.6.35 in place of default kernel version of Rocko. (this is due to some issue in graphics rendering problem with new kernel which may take longer time to fix)
To support this old kernel 2.6.35, I'm forced to use glibc 2.23 (yocto rocko glibc folder replaced with yocto krogoth glibc folder) in place of default glibc v 2.26 with rocko (as glibc 2.26 support kernel version 3.2 above. I'm able to compile rocko with old kernel but during booting kernel panic with message "kernel too old". Have set oldest_kernel variable but get the same result).
With glibc 2.23, I get an error -lgcc not found during do_compile. Please refer to below for further details.
I have updated tclib files with preferred version set to glibc 2.23 but still getting an error. Also, I have checked libgcc is duly present in host in /usr/lib (Linux 18.04 Bionic)
How do i need to set the path and libraries?
The complete error message is below:
Linux Kernel – 2.6.35
Glibc – 2.23
Binutils – 2.29
While compiling customized poky-image I’m getting following error:
arm-poky-linux-gnueabi-gcc -march=armv6 -mfpu=vfp -mfloat-abi=softfp --sysroot=/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/recipe-sysroot-tcbootstrap -nostdlib -nostartfiles -r -o /work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/elf/librtld.map.o '-Wl,-(' /work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/elf/dl-allobjs.os /work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/elf/librtld.mapT
| /work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi.gcc-cross-initial-arm/../../libexec/arm-poky-linux-gnueabi.gcc-cross-initial-arm/gcc/arm-poky-linux-gnueabi/7.3.0/ld: cannot find -lgcc
| collect2: error: ld returned 1 exit status
| Makefile:340: recipe for target '/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/elf/librtld.map' failed
| make[2]: *** [/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/elf/librtld.map] Error 1
| make[2]: Leaving directory '/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/git/elf'
| Makefile:234: recipe for target 'elf/subdir_lib' failed
| make[1]: *** [elf/subdir_lib] Error 2
| make[1]: Leaving directory '/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/git'
| ERROR: oe_runmake failed
| Makefile:9: recipe for target 'all' failed
| make: *** [all] Error 2
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/temp/log.do_compile.27335)
ERROR: Task (/work/repo/bsp2/sources/poky/meta/recipes-core/glibc/glibc_2.23.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2002 tasks of which 1980 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/work/repo/bsp2/sources/poky/meta/recipes-core/glibc/glibc_2.23.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
(Please note I had to add STAGING_DIR_TCBOOTSTRAP = "${STAGING_DIR_TARGET}-tcbootstrap" in bitbake.conf to start compilation of glibc v2.23 taken from yocto krogoth)
Any help will be highly appreciated!
glibc yocto
I'm using Yocto Rocko for my product.
I am using kernel version 2.6.35 in place of default kernel version of Rocko. (this is due to some issue in graphics rendering problem with new kernel which may take longer time to fix)
To support this old kernel 2.6.35, I'm forced to use glibc 2.23 (yocto rocko glibc folder replaced with yocto krogoth glibc folder) in place of default glibc v 2.26 with rocko (as glibc 2.26 support kernel version 3.2 above. I'm able to compile rocko with old kernel but during booting kernel panic with message "kernel too old". Have set oldest_kernel variable but get the same result).
With glibc 2.23, I get an error -lgcc not found during do_compile. Please refer to below for further details.
I have updated tclib files with preferred version set to glibc 2.23 but still getting an error. Also, I have checked libgcc is duly present in host in /usr/lib (Linux 18.04 Bionic)
How do i need to set the path and libraries?
The complete error message is below:
Linux Kernel – 2.6.35
Glibc – 2.23
Binutils – 2.29
While compiling customized poky-image I’m getting following error:
arm-poky-linux-gnueabi-gcc -march=armv6 -mfpu=vfp -mfloat-abi=softfp --sysroot=/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/recipe-sysroot-tcbootstrap -nostdlib -nostartfiles -r -o /work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/elf/librtld.map.o '-Wl,-(' /work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/elf/dl-allobjs.os /work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/elf/librtld.mapT
| /work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi.gcc-cross-initial-arm/../../libexec/arm-poky-linux-gnueabi.gcc-cross-initial-arm/gcc/arm-poky-linux-gnueabi/7.3.0/ld: cannot find -lgcc
| collect2: error: ld returned 1 exit status
| Makefile:340: recipe for target '/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/elf/librtld.map' failed
| make[2]: *** [/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/build-arm-poky-linux-gnueabi/elf/librtld.map] Error 1
| make[2]: Leaving directory '/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/git/elf'
| Makefile:234: recipe for target 'elf/subdir_lib' failed
| make[1]: *** [elf/subdir_lib] Error 2
| make[1]: Leaving directory '/work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/git'
| ERROR: oe_runmake failed
| Makefile:9: recipe for target 'all' failed
| make: *** [all] Error 2
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /work/repo/bsp2/build-ebox/tmp/work/armv6-vfp-poky-linux-gnueabi/glibc/2.23-r0/temp/log.do_compile.27335)
ERROR: Task (/work/repo/bsp2/sources/poky/meta/recipes-core/glibc/glibc_2.23.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2002 tasks of which 1980 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/work/repo/bsp2/sources/poky/meta/recipes-core/glibc/glibc_2.23.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
(Please note I had to add STAGING_DIR_TCBOOTSTRAP = "${STAGING_DIR_TARGET}-tcbootstrap" in bitbake.conf to start compilation of glibc v2.23 taken from yocto krogoth)
Any help will be highly appreciated!
glibc yocto
glibc yocto
edited Nov 15 at 17:29
Oleksandr Kravchuk
4,29711426
4,29711426
asked Nov 15 at 16:09
linuxsnail
11
11
add a comment |
add a comment |
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53323504%2fyocto-rocko-ld-cannot-find-lgcc-in-glibc-2-23-do-compile%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53323504%2fyocto-rocko-ld-cannot-find-lgcc-in-glibc-2-23-do-compile%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown