Summary: | sys-fs/vhba-1.2.1 - KAT will test if C compiler works.../usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.2.4/../../../../hppa2.0-unknown-linux-gnu/bin/ld: final link failed: File truncated | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jeroen Roovers (RETIRED) <jer> |
Component: | Current packages | Assignee: | Marcelo Goes (RETIRED) <vanquirius> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hppa, mgmadden, pva |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://sourceforge.net/tracker/?func=detail&aid=3041832&group_id=93175&atid=603423 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 300331 | ||
Attachments: |
build log [hppa, failure]
Do not use /dev/null but something in $PWD |
Description
Jeroen Roovers (RETIRED)
![]() Created attachment 220363 [details]
build log [hppa, failure]
jeroen@elmer ~ $ echo "main(){}" | gcc -x c - -o /dev/null /usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.2.4/../../../../hppa2.0-unknown-linux-gnu/bin/ld: final link failed: File truncated collect2: ld returned 1 exit status That's odd. jer@hake 0 ~ $ echo "main(){}" | gcc -x c - -o /dev/null /usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.2.4/../../../../hppa2.0-unknown-linux-gnu/bin/ ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status jer@hake 0 ~ $ gcc -v Using built-in specs. Target: hppa2.0-unknown-linux-gnu Configured with: /usr/local/tmp/portage/sys-devel/gcc-4.2.4-r1/work/gcc-4.2.4/configure --prefix=/usr --bindir=/usr/hppa2.0-unknown-linux-gnu/gcc-bin/4.2.4 --includedir=/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.2.4/include --datadir=/usr/share/gcc-data/hppa2.0-unknown-linux-gnu/4.2.4 --mandir=/usr/share/gcc-data/hppa2.0-unknown-linux-gnu/4.2.4/man --infodir=/usr/share/gcc-data/hppa2.0-unknown-linux-gnu/4.2.4/info --with-gxx-include-dir=/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.2.4/include/g++-v4 --host=hppa2.0-unknown-linux-gnu --build=hppa2.0-unknown-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --disable-libgcj --enable-languages=c,c++,treelang --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 4.2.4 (Gentoo 4.2.4-r1 p1.1) Created attachment 220365 [details, diff]
Do not use /dev/null but something in $PWD
I don't know why it fails to act on /dev/null, but apparently the HPPA linker needs to perform some action on the object after it's first created.
Jeroen, upstream commited this fix into svn and suggested to use svn snapshot for everybody. Thus this issue should be fixed in vhba-1.2.1_p682. Please try it :) |