Bug 32484 - build of junit 4.3.1 native lib fails
Summary: build of junit 4.3.1 native lib fails
Status: RESOLVED DUPLICATE of bug 33639
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-24 14:20 UTC by Hanno Meyer-Thurow
Modified: 2008-01-15 15:32 UTC (History)
6 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
jar file (79.19 KB, application/octet-stream)
2007-06-24 14:22 UTC, Hanno Meyer-Thurow
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Meyer-Thurow 2007-06-24 14:20:23 UTC
# /usr/lib/gcj-4.3.0_alpha20070622/bin/gcj -shared -Wl,-Bsymbolic -fPIC -findirect-dispatch -fjni -g0 -O0 -mtune=nocona -march=nocona -pipe -w -save-temps -o libjunit.jar.so junit.jar

gcj: Warnung: -pipe ignoriert, da -save-temps angegeben
junit.s: Assembler messages:
junit.s:2812: Error: junk at end of line, first unrecognized character is `-'
junit.s:2813: Error: bad or irreducible absolute expression
junit.s:2813: Error: junk at end of line, first unrecognized character is `,'
junit.s:2816: Error: unrecognized symbol type ""
junit.s:2816: Error: junk at end of line, first unrecognized character is `-'
junit.s:2817: Error: expected comma after name `_CD_junit_extensions_package' in .size directive
junit.s:2818: Error: invalid character '_' in mnemonic
junit.s:2822: Error: unrecognized symbol type ""
junit.s:2822: Error: junk at end of line, first unrecognized character is `-'
junit.s:2823: Error: expected comma after name `_CT_junit_extensions_package' in .size directive
junit.s:2824: Error: invalid character '_' in mnemonic
junit.s:2828: Error: unrecognized symbol type ""
junit.s:2828: Error: junk at end of line, first unrecognized character is `-'
junit.s:2829: Error: expected comma after name `_catch_classes_junit.extensions.package' in .size directive
junit.s:2830: Error: invalid character '_' in mnemonic

(... and more like these)

junit.s first failing part looks like:

2804:	.hidden	_ZN5junit10extensions11TestSetup$17class$$E
2805:.globl _ZN5junit10extensions11TestSetup$17class$$E
2806-	.bss
2807-	.align 8
2808:	.type	_ZN5junit10extensions11TestSetup$17class$$E, @object
2809:	.size	_ZN5junit10extensions11TestSetup$17class$$E, 8
2810:_ZN5junit10extensions11TestSetup$17class$$E:
2811-	.zero	8
2812-	.local	_MT_junit_extensions_package-info
2813-	.comm	_MT_junit_extensions_package-info,0,8
2814-	.section	.data.rel.local
2815-	.align 16
2816-	.type	_CD_junit_extensions_package-info, @object
2817-	.size	_CD_junit_extensions_package-info, 16
2818-_CD_junit_extensions_package-info:
2819-	.quad	0
2820-	.quad	_Utf65
2821-	.data
2822-	.type	_CT_junit_extensions_package-info, @object
2823-	.size	_CT_junit_extensions_package-info, 2
2824-_CT_junit_extensions_package-info:
2825-	.byte	0
2826-	.byte	7
2827-	.align 32
2828-	.type	_catch_classes_junit.extensions.package-info, @object
2829-	.size	_catch_classes_junit.extensions.package-info, 48
2830-_catch_classes_junit.extensions.package-info:
2831-	.zero	48
2832-	.section	.rodata
2833-	.align 2
2834-	.type	_Utf69, @object
2835-	.size	_Utf69, 4

# LC_ALL=C /usr/lib/gcj-4.3.0_alpha20070622/bin/gcj -v
Using built-in specs.
Reading specs from /usr/lib64/gcj-4.3.0_alpha20070622/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.3.0-alpha20070622/../../../libgcj.spec
rename spec startfile to startfileorig
rename spec lib to liborig
Target: x86_64-unknown-linux-gnu
Configured with: /mnt/data/tmp/portage/dev-java/gcj-4.3.0_alpha20070622/work/gcc-4.3-20070622/configure --prefix=/usr/lib/gcj-4.3.0_alpha20070622 --libdir=/usr/lib/gcj-4.3.0_alpha20070622/lib64 --libexecdir=/usr/lib/gcj-4.3.0_alpha20070622/lib64 --with-gxx-include-dir=/usr/lib/gcj-4.3.0_alpha20070622/include/c++ --enable-languages=c,c++,java --enable-ssp --enable-libstdcxx-allocator=new --disable-static --disable-altivec --disable-gtktest --disable-glibtest --disable-multilib --disable-maintainer-mode --disable-libada --disable-libarttest --disable-libjava-multilib --disable-libmudflap --disable-libssp --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-secureplt --enable-nls --without-included-gettext --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-java-awt=gtk --with-java-home=/usr/lib/gcj-4.3.0_alpha20070622/jre --enable-plugin --disable-gconf-peer --with-ecj-jar=/usr/share/eclipse-ecj-3.
 3/lib/ecj.jar --enable-java-maintainer-mode
Thread model: posix
gcc version 4.3.0-alpha20070622  (experimental) (Gentoo 4.3.0_alpha20070622)

binutils version is 2.17.
Comment 1 Hanno Meyer-Thurow 2007-06-24 14:22:23 UTC
Created attachment 13780 [details]
jar file
Comment 2 Debian GCC Maintainers 2008-01-15 14:54:45 UTC
confirmed.

  Matthias
Comment 3 Andrew Haley 2008-01-15 15:13:35 UTC
Fixed in trunk.

Tested:

zorro:~ $ ~/gcc/trunk/install/bin/gcj -shared -Wl,-Bsymbolic -fPIC -findirect-dispatch -fjni -g0 -O0 -mtune=nocona -march=nocona -pipe -w -save-temps -o libjunit.jar.so junit.jar
gcj: warning: -pipe ignored because -save-temps specified
zorro:~ $ 
Comment 4 Andrew Haley 2008-01-15 15:32:24 UTC
.
Comment 5 Andrew Haley 2008-01-15 15:32:36 UTC

*** This bug has been marked as a duplicate of 33639 ***