Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 705484 - cross-armv7a-unknown-linux-uclibceabihf/uclibc-ng-1.0.32 - ../utils/getconf.c:1065:5: error: '__progname' undeclared (first use in this function)
Summary: cross-armv7a-unknown-linux-uclibceabihf/uclibc-ng-1.0.32 - ../utils/getconf.c...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-01-15 12:49 UTC by tt_1
Modified: 2021-11-18 12:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
compressed build log (cross-armv7a-unknown-linux-uclibceabihf-uclibc-ng.log.gz,45.23 KB, application/gzip)
2020-01-15 12:49 UTC, tt_1
Details
output from emerge --info (emerge--info,5.12 KB, text/plain)
2020-01-15 12:50 UTC, tt_1
Details
this patch fixes the the breakage (cross-compile.patch,414 bytes, patch)
2020-01-15 12:53 UTC, tt_1
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tt_1 2020-01-15 12:49:54 UTC
Created attachment 603344 [details]
compressed build log

how to reproduce: 

grab a uclibc amd64 stage, chroot into it and bootstrap a cross compiler with crossdev via: crossdev -S armv7a-unknown-linux-uclibceabihf --libc 1.0.32 

it's not yet possible to bootstrap a uclibc based cross compiler cross libc wise, so to grab an extra stage3 is a must. 

result: the build is going to fail when crossdev tries to bootstrap into uclibc-ng with:

make: Entering directory '/var/tmp/portage/cross-armv7a-unknown-linux-uclibceabihf/uclibc-ng-1.0.32/work/uClibc-ng-1.0.32/utils'
  HOSTCC utils/getconf.host
  HOSTCC utils/ldconfig.host
  HOSTCC utils/ldd.host
../utils/ldd.c: In function 'elf_find_dynamic':
../utils/ldd.c:238:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  238 |     return (void *)byteswap_to_host(dynp->d_un.d_val);
      |            ^
../utils/getconf.c: In function 'usage':
../utils/getconf.c:1065:5: error: '__progname' undeclared (first use in this function)
 1065 |     __progname);
      |     ^~~~~~~~~~
../utils/getconf.c:1065:5: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Makefile.in:122: ../utils/getconf.host] Error 1
make: *** Waiting for unfinished jobs....
Comment 1 tt_1 2020-01-15 12:50:45 UTC
Created attachment 603346 [details]
output from emerge --info
Comment 2 tt_1 2020-01-15 12:53:23 UTC
Created attachment 603348 [details, diff]
this patch fixes the the breakage

I gave doing what the error message demands a try, and to my surprise it makes cross-armv7a-unknown-linux-uclibceabihf/uclibc-ng compile and bootstrap the whole toolchain till the end.