error compiling binutils-2.22 with clang v2.9
To Whom It May Concern: i don't know if your project even has an interest in being compiled with anything other than GCC @ this point in time, but here is an error I found when trying to make binutils with clang. note that this was performed on a fairly standard fedora 16 x86_64-bit install ( using kernel 3.2.9-1.fc16.x86_64 #1 SMP ) ... hope this is of some use to your project. let me know if you need further information. libtool: compile: clang -DHAVE_CONFIG_H -I. -I. -I. -I./../include -DHAVE_bfd_elf64_x86_64_vec -DHAVE_bfd_elf32_i386_vec -DHAVE_bfd_elf32_x86_64_vec -DHAVE_i386linux_vec -DHAVE_i386pei_vec -DHAVE_x86_64pei_vec -DHAVE_bfd_elf64_l1om_vec -DHAVE_bfd_elf64_k1om_vec -DHAVE_bfd_elf64_little_generic_vec -DHAVE_bfd_elf64_big_generic_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -DBINDIR=\/usr/local/bin\ -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT opncls.lo -MD -MP -MF .deps/opncls.Tpo -c opncls.c -o opncls.o opncls.c:249:5: error: expression result unused [-Werror,-Wunused-value] bfd_set_cacheable (nbfd, TRUE); ^~ In file included from opncls.c:26: ./bfd.h:524:67: note: instantiated from: #define bfd_set_cacheable(abfd,bool) (((abfd)-cacheable = bool), TRUE) ^ ./bfd.h:127:14: note: instantiated from: #define TRUE 1 ^ 1 error generated. *** Error code 1 Stop. bmake: stopped in /bin_build/binutils-2.22/bfd *** Error code 1___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
Re: error compiling binutils-2.22 with clang v2.9
On Mar 7, 2012, at 2:34 AM, Roy Batty wrote: To Whom It May Concern: i don't know if your project even has an interest in being compiled with anything other than GCC @ this point in time, but here is an error I found when trying to make binutils with clang. note that this was performed on a fairly standard fedora 16 x86_64-bit install ( using kernel 3.2.9-1.fc16.x86_64 #1 SMP ) ... hope this is of some use to your project. let me know if you need further information. Hi, this is a warning that is transformed into an error (by -Werror). Try to configure with --disable-werror. It is very hard to have builds without warnings for many compilers (and even for severals versions of one compiler). Tristan. libtool: compile: clang -DHAVE_CONFIG_H -I. -I. -I. -I./../include -DHAVE_bfd_elf64_x86_64_vec -DHAVE_bfd_elf32_i386_vec -DHAVE_bfd_elf32_x86_64_vec -DHAVE_i386linux_vec -DHAVE_i386pei_vec -DHAVE_x86_64pei_vec -DHAVE_bfd_elf64_l1om_vec -DHAVE_bfd_elf64_k1om_vec -DHAVE_bfd_elf64_little_generic_vec -DHAVE_bfd_elf64_big_generic_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -DBINDIR=\/usr/local/bin\ -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT opncls.lo -MD -MP -MF .deps/opncls.Tpo -c opncls.c -o opncls.o opncls.c:249:5: error: expression result unused [-Werror,-Wunused-value] bfd_set_cacheable (nbfd, TRUE); ^~ In file included from opncls.c:26: ./bfd.h:524:67: note: instantiated from: #define bfd_set_cacheable(abfd,bool) (((abfd)-cacheable = bool), TRUE) ^ ./bfd.h:127:14: note: instantiated from: #define TRUE 1 ^ 1 error generated. *** Error code 1 Stop. bmake: stopped in /bin_build/binutils-2.22/bfd *** Error code 1 ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/13817] New: Broken IFUNC support
http://sourceware.org/bugzilla/show_bug.cgi?id=13817 Bug #: 13817 Summary: Broken IFUNC support Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassig...@sourceware.org ReportedBy: ja...@redhat.com CC: hjl.to...@gmail.com Classification: Unclassified Target: i386-linux The PR ld/13302 changes broke not only x86_64 (fixed http://sources.redhat.com/ml/binutils-cvs/2012-03/msg00019.html ), but also i386. ifunc3.sh test in prelink fails because of that. The problem is that you just can't on i?86 use a standard PLT entry for what you want to do, because unlike x86_64 in i?86 shared libraries/PIEs the PLT slot assumes that %ebx of the caller points to the _GLOBAL_OFFSET_TABLE_ symbol of the library containing the PLT slot. That is normally the responsibility of the compiler or assembly writer, but in this case where you just have a function pointer that resolves internally to an IFUNC symbol you have no such guarantee. If that function pointer is called from the main binary, %ebx can contain random garbage, if it is called from some other shared library, it will contain address of a different _GLOBAL_OFFSET_TABLE_ symbol. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/13817] Broken IFUNC support
http://sourceware.org/bugzilla/show_bug.cgi?id=13817 --- Comment #1 from Jakub Jelinek jakub at redhat dot com 2012-03-07 10:24:56 UTC --- Created attachment 6264 -- http://sourceware.org/bugzilla/attachment.cgi?id=6264 ifunctest.tar.bz2 CC='gcc -m32' sh ./ifunc.sh LD_LIBRARY_PATH=. ./ifunc3 shows the segfault (the PLT calling completely unrelated function). -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
Re: error compiling binutils-2.22 with clang v2.9
Roy Batty nexus6royba...@yahoo.com writes: i don't know if your project even has an interest in being compiled with anything other than GCC @ this point in time, but here is an error I found when trying to make binutils with clang. note that this was performed on a fairly standard fedora 16 x86_64-bit install ( using kernel 3.2.9-1.fc16.x86_64 #1 SMP ) ... hope this is of some use to your project. let me know if you need further information. libtool: compile: clang -DHAVE_CONFIG_H -I. -I. -I. -I./../include -DHAVE_bfd_elf64_x86_64_vec -DHAVE_bfd_elf32_i386_vec -DHAVE_bfd_elf32_x86_64_vec -DHAVE_i386linux_vec -DHAVE_i386pei_vec -DHAVE_x86_64pei_vec -DHAVE_bfd_elf64_l1om_vec -DHAVE_bfd_elf64_k1om_vec -DHAVE_bfd_elf64_little_generic_vec -DHAVE_bfd_elf64_big_generic_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -DBINDIR=\/usr/local/bin\ -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT opncls.lo -MD -MP -MF .deps/opncls.Tpo -c opncls.c -o opncls.o opncls.c:249:5: error: expression result unused [-Werror,-Wunused-value] bfd_set_cacheable (nbfd, TRUE); ^~ In file included from opncls.c:26: ./bfd.h:524:67: note: instantiated from: #define bfd_set_cacheable(abfd,bool) (((abfd)-cacheable = bool), TRUE) ^ ./bfd.h:127:14: note: instantiated from: #define TRUE 1 ^ 1 error generated. *** Error code 1 There is nothing wrong with this code. It is working as intended. Ian ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/13561] AIX link failure: RLD address not contained in section
http://sourceware.org/bugzilla/show_bug.cgi?id=13561 --- Comment #7 from Hans-Georg Thien ka5427-536 at online dot de 2012-03-07 22:01:13 UTC --- it would be great if someone could give me a hint on howto relate the failing addres of 0x1364 to the symbol in question so that I can try to debug the issue by myself. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/13817] Broken IFUNC support
http://sourceware.org/bugzilla/show_bug.cgi?id=13817 --- Comment #2 from H.J. Lu hjl.tools at gmail dot com 2012-03-08 01:14:08 UTC --- So we have to use real function, not PLT entry for non-GOT reference to locally defined IFUNC symbols, at least on i386. Will revert: http://sourceware.org/ml/binutils/2011-10/msg00203.html cause any problems? It will put IRELATIVE relocations in .rel.dyn/.rela.dyn section, which was the previous behavior. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/10340] ld doesn't honor sysroot prefix for ldscripts
http://sourceware.org/bugzilla/show_bug.cgi?id=10340 --- Comment #4 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot gnu.org 2012-03-08 05:29:37 UTC --- CVSROOT:/cvs/src Module name:src Changes by:amo...@sourceware.org2012-03-08 05:29:33 Modified files: ld : ChangeLog ldfile.c ldfile.h ldlang.c ldlang.h ldlex.h ldlex.l Log message: PR ld/10340 * ldfile.c (is_sysrooted_pathname): Remove notsame param. (ldfile_add_library_path): Don't set sysrooted flag. (ldfile_open_file_search): Likewise, and don't copy them. (try_open): Delete exten and code handling such. Add sysrooted param and return whether path is in sysroot. (ldfile_find_command_file): Delete extend param. Add sysrooted param. Rename local var. Update try_open calls. (ldfile_open_command_file_1): Pass sysrooted to lex_push_file. * ldfile.h (search_dirs_type): Remove sysrooted field. * ldlang.c (new_afile): Always set sysrooted from input_flags. (load_symbols): Don't set input_flags.sysrooted. * ldlang.h (struct lang_input_statement_flags): Revise sysrooted comment. * ldlex.h (lex_push_file): Update prototype. * ldlex.l (sysrooted_stack): New array. (EOF): Pop input_flags.sysrooted. (lex_push_file): Add sysrooted param. Save and set input_flags.sysrooted. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ChangeLog.diff?cvsroot=srcr1=1.2416r2=1.2417 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ldfile.c.diff?cvsroot=srcr1=1.65r2=1.66 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ldfile.h.diff?cvsroot=srcr1=1.19r2=1.20 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ldlang.c.diff?cvsroot=srcr1=1.385r2=1.386 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ldlang.h.diff?cvsroot=srcr1=1.102r2=1.103 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ldlex.h.diff?cvsroot=srcr1=1.9r2=1.10 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ldlex.l.diff?cvsroot=srcr1=1.54r2=1.55 -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/10340] ld doesn't honor sysroot prefix for ldscripts
http://sourceware.org/bugzilla/show_bug.cgi?id=10340 Alan Modra amodra at gmail dot com changed: What|Removed |Added Status|NEW |ASSIGNED AssignedTo|unassigned at sources dot |amodra at gmail dot com |redhat.com | -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/10340] ld doesn't honor sysroot prefix for ldscripts
http://sourceware.org/bugzilla/show_bug.cgi?id=10340 Alan Modra amodra at gmail dot com changed: What|Removed |Added URL||http://sourceware.org/ml/bi ||nutils/2012-03/msg00076.htm ||l --- Comment #5 from Alan Modra amodra at gmail dot com 2012-03-08 06:00:39 UTC --- More background discussion http://sourceware.org/ml/binutils/2003-02/msg00449.html -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/13797] ld fails when building firefox?
http://sourceware.org/bugzilla/show_bug.cgi?id=13797 Alan Modra amodra at gmail dot com changed: What|Removed |Added CC||amodra at gmail dot com --- Comment #1 from Alan Modra amodra at gmail dot com 2012-03-08 06:11:29 UTC --- I've seen this too on my new AMD box when building binutils with make -j. It seems to be intermittent; Running make again gets past the problem. Possibly http://it.slashdot.org/story/12/03/06/0136243/amd-confirms-cpu-bug-found-by-dragonfly-bsds-matt-dillon Then again, it may be due to some debian or ubuntu patch.. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils