Bug#731393: Acknowledgement (gcc-snapshot: "undefined reference" link error when compiling with LTO)

2014-05-03 Thread Miles Bader
I notice that gcc 4.9 has the same issue, but that the gcc 4.9 release notes say you should use "gcc-ar" instead of ar to make it work correctly in conjunction with LTO (and similarly "gcc-ranlib" instead of ranlib). In my testing, it seems to work correctly... so... maybe this bug should be close

Bug#731393: gcc-snapshot: "undefined reference" link error when compiling with LTO

2013-12-04 Thread Miles Bader
Package: gcc-snapshot Version: 20131201-1 Severity: normal With the most recent Debian gcc snapshot[1] and using the gold linker[2], I'm getting linker "undefined reference" errors when compiling with LTO. This only happens when the object file containing the undefined symbol is stored in an .a

Re: Is there a way to make ld.gold the default?

2013-08-23 Thread Miles Bader
Matthias Klose writes: >> Is there an official way to make ld.gold the default with the new >> state of things, or is one expected to just manually change the >> symlink in /usr/bin? > > yes, pass -fuse-ld=gold to the linker. Right, I understand that method, I'm wondering how I can make it the _d

Is there a way to make ld.gold the default?

2013-08-21 Thread Miles Bader
Recent changes get rid of the binutils-gold package and put gold in the normal binutils package. A side effect of this is that ld.bfd is now the default, whereas ld.gold was the default with binutils-gold install. Is there an official way to make ld.gold the default with the new state of things,

Re: Bug#666162: Acknowledgement (gcc-4.7: hppa build fails: error: bits/predefs.h: No such file or directory)

2012-04-01 Thread Miles Bader
Matthias Klose writes: >> I'm surprised. From what I see, copying of the GCC manual >> components is covered by the GNU Free Documentation License, > > right, but including front and back cover texts and an invariant > section, which unfortunately is not DFSG compliant. > >> Version 1.3. It's not

Bug#658442: g++-4.7: standard include path is messed up

2012-02-02 Thread Miles Bader
Package: g++-4.7 Version: 4.7-20120129-1 Severity: important This one's easy to illustrate: :] $ echo '#include ' > v.cc $ g++-4.7 -c v.cc v.cc:1:18: fatal error: vector: No such file or directory compilation terminated. $ g++-4.7 -v -c v.cc Using built-in specs. COLLECT_G

Re: Bug#650238: libgcc1 (4.6.2-4) breaks gcc-4.3 << 4.3.6-1, but, there is no package for gcc-4.3(4.3.6-1)

2011-12-16 Thread Miles Bader
The Wanderer writes: > Eh? How is this "wishlist"? > > The bug here is that it is possible, using only Debian-provided > packages and the Debian dependencies system, to get the system into > a state where it is not possible to compile modules for the > currently-running kernel. Wait, I'm confused

Re: Increasing minimum 'i386' processor

2011-12-08 Thread Miles Bader
Ian Jackson writes: >> The 486-class processors that would no longer be supported are: >> 1. All x86 processors with names including '486' > > I'm still running the machine below, and it would be irritating to > have to replace it. ... > vendor_id : CentaurHauls > cpu family: 6 > model

Re: Bug#619933: gcc-4.6-doc: please upload to unstable

2011-10-08 Thread Miles Bader
Samuel Bronson writes: > We appreciate that the Debian project is even more zealous about free > software than RMS himself, and recognize that the GFDL, when used with > invariant sections and/or cover texts, is not totally free. > > Nevertheless, for practical reasons, we really do want that manu

Re: Bug#644727: gcc fails on i586 processor

2011-10-08 Thread Miles Bader
Tsendrovskiy Vladislav writes: > Gcc in package gcc-4.6 is compiled with i686 support. And it fails to > run on i586 or k5 processor. And it's impossiple to recompile it, or any > other package for this architecture besause it fails to compile > anything. Is this a bad thing? The i586 had its h

Re: Bug#630441: g++-4.6 miscompilation

2011-09-23 Thread Miles Bader
Philip Ashmore writes: > "reference to a char *" should read "reference to a char * on the stack" gcc does warn about obvious instances of this; do you know why it doesn't in this case? For instance in this case: #include char *f () { char a[10]; return strcpy (a, "hello");

Bug#630441: g++-4.6 miscompilation

2011-09-22 Thread Miles Bader
Philip Ashmore writes: > It appears that gcc-4.6 (and clang for that matter) make some dodgy > decisions about what appear to be references to temporaries created > during optimization. You don't seem to have addressed the issue raised by Matthias Klose in the bug thread though: specifically, wh

Bug#610535: g++: Using a global std::string in a constructor in another files generates a crashing binary

2011-01-19 Thread Miles Bader
Ludovic Rousseau writes: > I found a strange bug I can't explain myself. I am not a C++ expert so > maybe this construction is illegal. ... > If my C++ construction is not supported by the language feel free to > refer me to the C++ specification with details. It looks like a bug in your program:

stupid mailing-list tricks

2010-10-12 Thread Miles Bader
I sent a followup to a bug I had filed (#599572), and got the following two emails in rapid succession. I don't know how the forwarding for the gcc-snapshot package is setup, but surely it's Not Good for bug reports to be sent to a only-subscribers-can-post mailing list...? Thanks, -Miles (1)

Bug#599572: gcc-snapshot: bogus "array subscript is above array bounds" in extremely simple code with no loops

2010-10-08 Thread Miles Bader
Package: gcc-snapshot Version: 20100918-1 Severity: normal There are many bugs in gcc's bugzilla related to bogus array-bounds warnings, but most of them seem to involve non-trivial loops and other situations that may need non-trivial analysis by the compiler. By contrast, the appended code seem

Bug#575997: libstdc++6-4.5-dev: c++config.h doesn't seem to match reality

2010-04-05 Thread Miles Bader
Matthias Klose writes: > Same in 4.4. > > libstdc++-v3/acinclude.m4: > dnl Check for clock_gettime, nanosleep and sched_yield, used in the > dnl implementation of 20.8.5 [time.clock], and 30.2.2 [thread.thread.this] > dnl in the current C++0x working draft. > dnl > dnl --enable-libstdcxx-time > dn

Bug#576485: Acknowledgement (libstdc++: std::thread completely broken)

2010-04-04 Thread Miles Bader
BTW, one thing I noticed is that the "error code" field in the std::system_error exception which is raised, seems to be set to EPERM ("Operation not permitted"), but this code is not apparently caused by a system call (determined by stracing the process). For instance, changing the test case to th

Bug#576485: libstdc++: std::thread completely broken

2010-04-04 Thread Miles Bader
Package: libstdc++6 Version: 4.5-20100227-1 Severity: normal File: libstdc++ The following program: #include #include int g = 0; void f () { g++; } int main () { std::thread t (f); t.join (); std::cout << "after joing, g = " << g << std::endl; return 0;

std::thread with g++-4.5 / libstdc++6 4.5-20100227-1

2010-03-31 Thread Miles Bader
Is std::thread (only usable with g++-4.5 I think) known to be broken? The following program: #include #include int g = 0; void f () { g++; } int main () { std::thread t (f); t.join (); std::cout << "after joing, g = " << g << std::endl; return

Bug#575997: libstdc++6-4.5-dev: c++config.h doesn't seem to match reality

2010-03-31 Thread Miles Bader
Package: libstdc++6-4.5-dev Version: 4.5-20100103-1 Severity: normal The file "/usr/include/c++/4.5/x86_64-linux-gnu/bits/c++config.h" doesn't seem to actually reflect the available facilities of the system. In particular (from that file): /* Defined if nanosleep is available. */ /* #und

Bug#568616: libstdc++6-4.5-dev: range of random-number generator seems wrong/confusing

2010-02-06 Thread Miles Bader
Package: libstdc++6-4.5-dev Version: 4.5-20100202-1 Severity: normal The random-number distributions in C++0x include a special "one-shot" facility, where the random bounds can be passed to the generator function. This is explicitly intended (judging from committee writings, and source comment

Bug#525244: libstdc++6-4.4-doc: conflict with manpages-dev

2009-04-23 Thread Miles Bader
Package: libstdc++6-4.4-doc Version: 4.4-20090329-1 Severity: normal I see this error when trying to install manpages-dev; I'm not sure where where the fault actually lies, but given that libstdc++6-4.4-doc is in experimental, I'll report it here instead: $ LANG=C sudo aptitude install Re

Re: Error while using pthreads

2007-11-03 Thread Miles Bader
"Vijaya Kumar B.H." <[EMAIL PROTECTED]> writes: > I am trying to compile pthread application , but getting the following > error . I think this is a bug in GCC libraries. ... > connEntities[connid]->rcvWinFillMutex = PTHREAD_MUTEX_INITIALIZER; It looks to me like your code is wrong -- PTHREAD_MUTE

Bug#448370: Acknowledgement (gcc-4.2: gcc screws up "-mtune" when "-march=native" is used)

2007-10-28 Thread Miles Bader
BTW, I just tried the same test-case on a different machine -- and it seems to work properly there (-march=native results in a correct default value for -mtune). The only real difference between the machines is that the previous machine (where gcc showed the bug) has a pentium3 cpu, whereas the cu

Bug#448370: gcc-4.2: gcc screws up "-mtune" when "-march=native" is used

2007-10-28 Thread Miles Bader
Package: gcc-4.2 Version: 4.2.2-3 Severity: normal The option "-march=native" can be used to set the target architecture from the current host (and "-mtune=native" should do the same thing for tuning). By my reading of the docs, "-march=native" should otherwise work just like any other -march o

Bug#423383: gcj-4.2: compilation fails; libgcj.spec not found

2007-05-11 Thread Miles Bader
Package: gcj-4.2 Version: 4.2-20070405-1 Severity: normal Trying to compile a very simple test program fails: $ LANG=C gcj-4.2 -c Test.java gcj-4.2: libgcj.spec: No such file or directory Here's the simple test prog ftw: public class Test { public static void main(String[]

Re: gcc-snapshot dependencies

2007-04-09 Thread Miles Bader
Thiemo Seufer <[EMAIL PROTECTED]> writes: >> Hi, I noticed that the "gcc-snapshot" package seems to have a lot of >> rather dubious dependencies -- in particular, it depends on a bunch of >> libraries from both gtk and qt4 (and x11 etc). > > I figure the java support may need that. Both gtk _and_

gcc-snapshot dependencies

2007-04-08 Thread Miles Bader
Hi, I noticed that the "gcc-snapshot" package seems to have a lot of rather dubious dependencies -- in particular, it depends on a bunch of libraries from both gtk and qt4 (and x11 etc). None of the actual binaries in the package seem to depend on any of these libraries, so I'm curious why all tha

Re: g++/stl -frepo problem?

2005-11-19 Thread Miles Bader
2005/11/19, Miles Bader <[EMAIL PROTECTED]>: > Really? I only started using -frepo because my executable had become > bloated, and it seemed to help quite a bit; I'll have to try again > without... Ok, I tried it without -frepo, and you're absolutely right -- the bina

Re: g++/stl -frepo problem?

2005-11-19 Thread Miles Bader
2005/11/19, Florian Weimer <[EMAIL PROTECTED]>: > Thanks to the .gnu.linkonce sections, the finaly binary should be of > the same size. Compilation time might increase, though. Really? I only started using -frepo because my executable had become bloated, and it seemed to help quite a bit; I'll h

Re: g++/stl -frepo problem? (was: library renaming due to changed libstdc++ configuration)

2005-11-19 Thread Miles Bader
2005/11/19, Steinar H. Gunderson <[EMAIL PROTECTED]>: > BTW, you are _linking_ with -frepo as well, right? I've tried both with and without [at link time], it doesn't seem to affect the compiler's behavior. -MIles -- Do not taunt Happy Fun Ball.

g++/stl -frepo problem? (was: library renaming due to changed libstdc++ configuration)

2005-11-18 Thread Miles Bader
I wrote earlier > I've noticed that with recent updates, I'm suddenly getting tons of > undefined function errors resulting from STL-related template > instantiation. [I've attached an example at the end of this message.] Er, any comments on this? It's driving me nuts that I now can't compile my