Re: Reg: gcc option for printing large number (large double)
On Mon, Sep 09, 2013 at 08:21:43AM +0100, Dom wrote: It does have a manpage: http://manpages.debian.net/cgi-bin/man.cgi?query=float.h root@tal:~# apt-cache show manpages-dev but perhaps you don't have it installed. I certainly don't. root@tal:~# apt-cache policy manpages-dev -- If you're not careful, the newspapers will have you hating the people who are being oppressed, and loving the people who are doing the oppressing. --- Malcolm X -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20130909120058.GE25870@tal
Re: Reg: gcc option for printing large number (large double)
On 2013-09-09, Joel Rees joel.r...@gmail.com wrote: It does have a manpage: http://manpages.debian.net/cgi-bin/man.cgi?query=float.h It's funny, I was sure I had gotten that particular man page before. root@tal:~# apt-cache show manpages-dev You don't need to be root, by the way, to apt-cache your way around. Just a side note for anyone who might be reading the thread and thinking otherwise by example. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/slrnl2s4l9.3op.cu...@einstein.electron.org
Re: Reg: gcc option for printing large number (large double)
On Mon, Sep 9, 2013 at 4:21 PM, Dom to...@rpdom.net wrote: On 09/09/13 07:21, Joel Rees wrote: snip code and stuff Not sure why neither man -k nor whereis can find float.h, but it compiles okay. dom@oz:~$ locate float.h /usr/lib/gcc/i486-linux-gnu/4.6/include/float.h /usr/lib/gcc/i486-linux-gnu/4.7/include/float.h /usr/lib/pymodules/python2.6/numpy/core/include/numpy/halffloat.h /usr/lib/pymodules/python2.7/numpy/core/include/numpy/halffloat.h /usr/share/pyshared/numpy/core/include/numpy/halffloat.h whereis looks on the PATH for a command. float.h isn't a command. It does also look for manpages, but... whereis picks up stuff in /usr/include and /usr/lib, as well. It does have a manpage: http://manpages.debian.net/cgi-bin/man.cgi?query=float.h but perhaps you don't have it installed. I certainly don't. -- Dom I actually do have manpages-dev installed, so I can get a man page on fgetc, but it still doesn't give me a man page for stuff in float.h. It's two am here. I'm going to bed. -- Joel Rees -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAAr43iNwX-z8=4g+dp-jxyo+ngfftmithsmnmjyfmfmsrma...@mail.gmail.com
Re: Reg: gcc option for printing large number (large double)
On Mon, Sep 9, 2013 at 9:00 PM, Chris Bannister cbannis...@slingshot.co.nz wrote: On Mon, Sep 09, 2013 at 08:21:43AM +0100, Dom wrote: It does have a manpage: http://manpages.debian.net/cgi-bin/man.cgi?query=float.h It's funny, I was sure I had gotten that particular man page before. root@tal:~# apt-cache show manpages-dev but perhaps you don't have it installed. I certainly don't. root@tal:~# apt-cache policy manpages-dev manpages-dev is loaded on my machine. But digging in, I see something about glibc-doc. Using synaptic because I'm lazy, I see that glibc-doc has been split, and glibc-doc-reference contains most of the documentation for glibc. Split because of license issues, it says. And glibc-doc is in the usual repository, but glibc-doc-reference is not. So I enable contrib and non-free because it's late and I don't care which one has glibc-doc-reference and now I can load glibc-doc-reference. But still no response when I do man float.h or man -k DBL_DIG or info DBL_DIG. man fgetc works. So does info fgetc My memory is that it worked with only manpages-dev installed. But even with glibc-doc-reference installed, nothing on the macros in limits.h or float.h. Or locale.h. But man HUGE_VAL brings up the man page for the constants in math.h. And I think it did with just manpages-dev. I wonder what gives here. -- If you're not careful, the newspapers will have you hating the people who are being oppressed, and loving the people who are doing the oppressing. --- Malcolm X -- Joel Rees -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAAr43iNbLjv0=7g3t6-JNK=4preqlqu4hq2h+atcfs4-3br...@mail.gmail.com
Re: Reg: gcc option for printing large number (large double)
DEC_EVAL_METHOD Can't seem to turn this loose. On Tue, Sep 10, 2013 at 1:51 AM, Joel Rees joel.r...@gmail.com wrote: On Mon, Sep 9, 2013 at 4:21 PM, Dom to...@rpdom.net wrote: On 09/09/13 07:21, Joel Rees wrote: snip code and stuff Not sure why neither man -k nor whereis can find float.h, but it compiles okay. dom@oz:~$ locate float.h /usr/lib/gcc/i486-linux-gnu/4.6/include/float.h /usr/lib/gcc/i486-linux-gnu/4.7/include/float.h /usr/lib/pymodules/python2.6/numpy/core/include/numpy/halffloat.h /usr/lib/pymodules/python2.7/numpy/core/include/numpy/halffloat.h /usr/share/pyshared/numpy/core/include/numpy/halffloat.h whereis looks on the PATH for a command. float.h isn't a command. It does also look for manpages, but... whereis picks up stuff in /usr/include and /usr/lib, as well. It does have a manpage: http://manpages.debian.net/cgi-bin/man.cgi?query=float.h but perhaps you don't have it installed. I certainly don't. -- Dom I actually do have manpages-dev installed, so I can get a man page on fgetc, but it still doesn't give me a man page for stuff in float.h. Now that I see that man works for the functions and macros and not for the header name (But why wouldn't man-k pick that up?), I do a man pow and notice there is a powl() function that looks like it might work but maybe doesn't: --- #include stdio.h #include stdlib.h #include float.h #include math.h int main( int argc, char * argv[] ) { double temp; long double ltemp; printf( max double digits: %d, double exponent %d\n, DBL_DIG, DBL_MAX_10_EXP ); printf( max double value: %Lf\n, (long double) DBL_MAX ); temp = pow( 2, 2000 ); ltemp = powl( 2, 2000 ); printf( 2^2000 as double: %f\n, temp ); printf( 2^2000 as long double: %Lf\n, ltemp ); ltemp = ltemp + 1.0; printf( 2^2000 + 1 as long double: %Lf\n, ltemp ); return EXIT_SUCCESS; } --- which prints out the value of 2^2000 okay, but fails to increment it. Which makes sense, since we have no reason to believe long double ever gets 2000 bits of significance, but powers of two should be accurately stored up to the limit of the exponent. Thus the need for GMP or MPFR or similar libraries. (Or you can just do it in python. ;) http://en.wikipedia.org/wiki/GNU_Multi-Precision_Library and http://en.wikipedia.org/wiki/MPFR I note: cat /usr/lib/gcc/x86_64-linux-gnu/4.7/include/float.h a constant, DEC_EVAL_METHOD, #undef DEC_EVAL_METHOD #define DEC_EVAL_METHOD2 might force all operations and constants to the range and precision of the _Decimal128 type, which might be of interest for compiling environments which do not make long doubles longer than doubles -- a kind of last chance on those systems. Unless he only needs the constant, and doesn't need precision/accuracy, the OP is going to want GMP or MPFR or the like, if python can't do his job. Since I seem to be convincing myself against my better judgment that I have time, and since I've always wanted to play with the multiprecision stuff, I'm going to install libgmp-dev and read the website http://gmplib.org/ and risk stealing the OP's opportunity for learning. - #include stdio.h #include stdlib.h #include float.h #include math.h #include gmp.h /* NOT a standard header! */ int main( int argc, char * argv[] ) { double temp; long double ltemp; mpz_t z_result; /* Doing it with arbitrary precision integers. */ mpf_t f_result; /* Doing it with arbitrary precision floats. */ mpf_t f_2; /* Don't seem to have mpf_ui_pow_ui(). */ printf( max double digits: %d, double exponent %d\n, DBL_DIG, DBL_MAX_10_EXP ); printf( max double value: %Lf\n, (long double) DBL_MAX ); temp = pow( 2, 2000 ); ltemp = powl( 2, 2000 ); printf( 2^2000 as double: %f\n, temp ); printf( 2^2000 as long double: %Lf\n, ltemp ); ltemp = ltemp + 1.0; printf( 2^2000 + 1 as long double: %Lf\n, ltemp ); mpz_init( z_result ); mpz_ui_pow_ui( z_result, 2, 2000 ); gmp_printf( \n integer 2^2000 is \n%Zd\n, z_result ); mpz_add_ui( z_result, z_result, 1 ); gmp_printf( \n integer 2^2000 + 1 is \n%Zd\n, z_result ); mpz_clear( z_result ); mpf_init2( f_result, 2500 ); /* A bit of extra room in the precision. */ mpf_init_set_ui( f_2, 2 ); mpf_pow_ui( f_result, f_2, 2000 ); gmp_printf( \n float 2^2000 is \n%Ff\n, f_result ); mpf_add_ui( f_result, f_result, 1 ); gmp_printf( \n float 2^2000 + 1 is \n%Ff\n, f_result ); mpf_clear( f_result ); return EXIT_SUCCESS; } - Save it as float_h.c and compile it with cc -o float_h -lgmp -Wall float_h.c run it with ./float_h -- Joel Rees Look around, the leaves are green, The grass is high, it's the springtime of my life! Yeah! FUN! -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble
Reg: gcc option for printing large number (large double)
Hi, I have an issue in printing a large number in a c program. Please find below the code snippet : #include math.h int main() { double temp = 0.0; temp = pow(2, 2000); printf(The value of temp is %lf\n, temp); return 0; } I compiled and ran as below: [balamurugan@balamurugan C_Programs]$ gcc test.c -o test [balamurugan@balamurugan C_Programs]$ ./test The value of temp is _inf_ But for the same expression, I am able to get the value from python, [balamurugan@balamurugan C_Programs]$ python Python 2.6.6 (r266:84292, Feb 22 2013, 00:00:18) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2 Type help, copyright, credits or license for more information. pow(2,2000) 11481306952742545242328332011776819840223177020886952004776427368257662613923703138566594863165062699184459646389874627734471189608630553314259313561666531853912998914531228688779148240044871428926990063486244781615463646388363947317026040466353970904996558162398808944629605623311649536164221970332681344168908984458505602379484807914058900934776500429002716706625830522008132236281291761267883317206598995396418127021779858404042159853183251540889433902091920554957783589672039160081957216630582755380425583726015528348786419432054508915275783882625175435528800822842770817965453762184851149029376L I know that in gcc, there is an option for getting this done. Can any body help with that option? Thanks and Regards, Balamurugan R
Re: Reg: gcc option for printing large number (large double)
On Mon, Sep 9, 2013 at 1:41 PM, Balamurugan emailstorb...@gmail.com wrote: Hi, I have an issue in printing a large number in a c program. Please find below the code snippet : #include math.h int main() { double temp = 0.0; temp is a double. In your ordinary environment, doubles are stored in 64 bits. But that's 64 bits total, and you have to have some room for the exponent. In some environments, you have 128 bits for doubles, but that's not the usual case. Checking the foat.h header should give you some idea how large a number you can store in a double. Except I don't see any sign of float.h in /usr/include. Hmm. Checking my copy of the old C89 standard, doubles are only guaranteed to have more than 10 digits accuracy with a maximum storeable value of at least 10 to the 37th power. temp = pow(2, 2000); 2 to the 2000 power is, at any rate, at least 2000 bits long. That's way more than 128 bits even. Counting the digits of output from Python, that's way more than 37 decimal digits. printf(The value of temp is %lf\n, temp); return 0; } I compiled and ran as below: [balamurugan@balamurugan C_Programs]$ gcc test.c -o test [balamurugan@balamurugan C_Programs]$ ./test The value of temp is inf inf, borrowed to invoke the idea of infinity, indicates that the number is too large to store. But for the same expression, I am able to get the value from python, [balamurugan@balamurugan C_Programs]$ python Python 2.6.6 (r266:84292, Feb 22 2013, 00:00:18) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2 Type help, copyright, credits or license for more information. pow(2,2000) 11481306952742545242328332011776819840223177020886952004776427368257662613923703138566594863165062699184459646389874627734471189608630553314259313561666531853912998914531228688779148240044871428926990063486244781615463646388363947317026040466353970904996558162398808944629605623311649536164221970332681344168908984458505602379484807914058900934776500429002716706625830522008132236281291761267883317206598995396418127021779858404042159853183251540889433902091920554957783589672039160081957216630582755380425583726015528348786419432054508915275783882625175435528800822842770817965453762184851149029376L I know that in gcc, there is an option for getting this done. Can any body help with that option? Not so much an option as a library, that is not part of the standard. Several libraries, in fact. I don't remember their names right off-hand, don't seem to have them loaded in my system, either. Looking up BigInt led me to them in the past. Thanks and Regards, Balamurugan R There is a C newsgroup that would likely be more helpful. -- Joel Rees -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/caar43in8lha-8ihc642pwybxpqdyfw39dchapbua+hqvsbv...@mail.gmail.com
Re: Drivers wifi (era: IDE para gcc)
El Sun, 20 Jan 2013 16:45:22 -0300, ALEXIS BALTRAMAITIS escribió: El 18 de enero de 2013 11:36, Camaleón noela...@gmail.com escribió: On Thu, 17 Jan 2013 20:33:31 -0300, ALEXIS BALTRAMAITIS wrote: Has secuestrado un hilo, abro uno nuevo. Hola necesitaria una ayudita a encontrar como adaptar los drivers de wifi de la Familia de Productos: *Notebook, Ultrabook* Línea de productos: *Aspire* Modelo de Producto: *Aspire 5736Z* *para que funcionen en debian.-* Puedes empezar por aquí: http://wiki.debian.org/WiFi logre encontralo ahi pero me dicen agregar un non free, y ahi ya me perdi, no se como es el paso a paso, hay algun tutorial.? Sí, claro, Debian tiene muy buena documentación: 6.1.1. Other Available Official Repositories http://debian-handbook.info/browse/stable/apt.html#idp22871264 recuerden que soy nuevo en esto es mi primer debian que instalo.- Pues no recuerdo que dijeras que eras nuevo en Debian :-? Saludos, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/kdjiqs$u0$1...@ger.gmane.org
Re: Drivers wifi (era: IDE para gcc)
gracias ahora lo voy a probar, si soy nuevo, recien participo en uno o dos mails, y me tengo que acostumbrar a la lista, no quiero romper las reglas. tengame paciencia es mas no le puedo cambiar el asunto al mail . ja El 21 de enero de 2013 11:20, Camaleón noela...@gmail.com escribió: El Sun, 20 Jan 2013 16:45:22 -0300, ALEXIS BALTRAMAITIS escribió: El 18 de enero de 2013 11:36, Camaleón noela...@gmail.com escribió: On Thu, 17 Jan 2013 20:33:31 -0300, ALEXIS BALTRAMAITIS wrote: Has secuestrado un hilo, abro uno nuevo. Hola necesitaria una ayudita a encontrar como adaptar los drivers de wifi de la Familia de Productos: *Notebook, Ultrabook* Línea de productos: *Aspire* Modelo de Producto: *Aspire 5736Z* *para que funcionen en debian.-* Puedes empezar por aquí: http://wiki.debian.org/WiFi logre encontralo ahi pero me dicen agregar un non free, y ahi ya me perdi, no se como es el paso a paso, hay algun tutorial.? Sí, claro, Debian tiene muy buena documentación: 6.1.1. Other Available Official Repositories http://debian-handbook.info/browse/stable/apt.html#idp22871264 recuerden que soy nuevo en esto es mi primer debian que instalo.- Pues no recuerdo que dijeras que eras nuevo en Debian :-? Saludos, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/kdjiqs$u0$1...@ger.gmane.org -- ALEXIS BALTRAMAITIS xigm...@arnet.com.ar CELULAR 155416756 4120990 FIJO 4591009
Re: Drivers WiFi para Aspire 5736Z (era: Re: IDE para gcc)
On Sun, Jan 20, 2013 at 04:47:57PM -0300, ALEXIS BALTRAMAITIS wrote: en realidad no se es mi primer debian el fabricante parece broadcom pero no se como hacer que ande la instalacion, tampoco le puedo cambiar el asunto al mail, ya que estoy formateando la pc y escribo con el celu. igual gracias Si hubieras leído el enlace que te pasé sobre las normas de la lista, habrías dado información concreta sobre los pasos que has seguido/dudas que te han surgido/mensajes de error que te has encontrado, no me habrías enviado la respuesta a mi correo privado sino a la lista, no harías top-posting y no redactarías los correos a la lista en HTML. Camaleón te pasó un enlace al apartado de WiFi de la Wiki de Debian, yo te pedí información acerca de la distribución para guiarte con los paquetes que podrías necesitar, y ha habido alguien más, si no recuerdo mal, que tambien te ha intentado ayudar. Por favor, pon un poco de tu parte, que al fin y al cabo es para echarte una mano. Te remito nuevamente a las normas de la lista que se redactaron para el buen funcionamiento de la misma. Saludos. El 18 de enero de 2013 04:26, Adrià [1]adri...@gmail.com escribió: On Thu, Jan 17, 2013 at 08:33:31PM -0300, ALEXIS BALTRAMAITIS wrote: Hola necesitaria una ayudita a encontrar como adaptar los drivers de wifi de la� Familia de Productos:�Notebook, Ultrabook L�nea de productos:�Aspire Modelo de Producto:�Aspire 5736Z para que funcionen en debian.- gracias Gracias por juntar en un solo correo tantos ejemplos de lo que no se _debería_ hacer en una lista de correo (pretendía ser sarcasmo). Puedes consultar las buenas prácticas en [2]http://wiki.debian.org/es/NormasLista. Dicho esto, comentar que deberías indicar qué pruebas has hecho hasta ahora, qué resultados te han dado, qué has buscado, qué distribución usas (rama, arquitectura, kernel...) y en definitiva, todos los aspectos que puedan ser de interés para que no se te mande a Google. Yo lo que he encontrado, es que el fabricante parece ser Atheros, así que un punto de partida podría ser [3]https://www.google.com/search?q=atheros+debian -- Adrià García-Alzórriz adri...@gmail.com GPG Key: 9DE37ED4 Los hemofílicos siempre se quedan con la sangre en el ojo. -- Anónimo. signature.asc Description: Digital signature
Re: Drivers wifi (era: IDE para gcc)
El 20 de enero de 2013 1:45:22 PM ALEXIS BALTRAMAITIS tecnicopc...@gmail.com escribio: logre encontralo ahi pero me dicen agregar un non free, y ahi ya me perdi, no se como es el paso a paso, hay algun tutorial.? recuerden que soy nuevo en esto es mi primer debian que instalo.- Hola, como ya lo encontraste, ahora todos que agregar el repo al archivo sources.list encontrado en /etc/apt/ Busca en google como agregar un repositorio en Debian, en la wiki de Debian están los ejemplos, es muy sencillo... Posteriormente sólo actualizada e instala el módulo que necesites, para conocer exactamente el módulo a instalar puedes utilizar fwdetect ó fw-detect (no recuerdo si se escribe exactamente así), yo uso la versión sid en su sabor aptosid en mi notebook, espero que en la versión que intentas instalar esté disponible. El 18 de enero de 2013 11:36, Camaleón noela...@gmail.com escribió: On Thu, 17 Jan 2013 20:33:31 -0300, ALEXIS BALTRAMAITIS wrote: Has secuestrado un hilo, abro uno nuevo. Hola necesitaria una ayudita a encontrar como adaptar los drivers de wifi de la Familia de Productos: *Notebook, Ultrabook* Línea de productos: *Aspire* Modelo de Producto: *Aspire 5736Z* *para que funcionen en debian.-* Puedes empezar por aquí: http://wiki.debian.org/WiFi Saludos, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/kdbmlp$igb$2...@ger.gmane.org -- ALEXIS BALTRAMAITIS xigm...@arnet.com.ar CELULAR 155416756 4120990 FIJO 4591009 Pablo S. -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/13c599261ea.282f.ffe504ecfce43f80a553c0190bc59...@gmail.com
Re: IDE para gcc
El Thu, 17 Jan 2013 18:44:23 +, Altair Linux escribió: estoy mirando que IDE para gcc usar en un entorno ligero. Estoy usando icewm, mousepad como editor de texto y gcc con algunas librerias. Es decir, busco algo ligero, a ser posible dentro de repositorios. ¿Recomendaciones? Google también recomienda codelight (disponible para estable/testing) y codeblocks (testing). Características y comparativas de varios IDE en la tabla de Wikipedia: http://en.wikipedia.org/wiki/Comparison_of_integrated_development_environments#C.2FC.2B.2B Saludos, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/kdbmfb$igb$1...@ger.gmane.org
Drivers wifi (era: IDE para gcc)
On Thu, 17 Jan 2013 20:33:31 -0300, ALEXIS BALTRAMAITIS wrote: Has secuestrado un hilo, abro uno nuevo. Hola necesitaria una ayudita a encontrar como adaptar los drivers de wifi de la Familia de Productos: *Notebook, Ultrabook* Línea de productos: *Aspire* Modelo de Producto: *Aspire 5736Z* *para que funcionen en debian.-* Puedes empezar por aquí: http://wiki.debian.org/WiFi Saludos, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/kdbmlp$igb$2...@ger.gmane.org
IDE para gcc
Buenas, estoy mirando que IDE para gcc usar en un entorno ligero. Estoy usando icewm, mousepad como editor de texto y gcc con algunas librerias. Es decir, busco algo ligero, a ser posible dentro de repositorios. ¿Recomendaciones? Gracias. -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CA+HdPfJ=+hj3fbsceggmvmbugbojgswmcaw6nt0hijvm2y-...@mail.gmail.com
Re: IDE para gcc
On Thu, 17 Jan 2013 18:44:23 + Altair Linux altairli...@gmail.com wrote: Geany es buena opción. Saludos -- Voip Mumble :. http://mumble.com.ar Web Hosting :. http://mamalibre.com.ar Red Social :. http://legadolibre.com.ar Jabber/XMPP :. http://mamalibre.com.ar/xmpp/ MamaLibre, Casa en Lincoln, Ituzaingo 1085 CP6070, Buenos Aires, Argentina pgpnrtxebZKu8.pgp Description: PGP signature
Re: IDE para gcc
On Thu, Jan 17, 2013 at 06:44:23PM +, Altair Linux wrote: Buenas, estoy mirando que IDE para gcc usar en un entorno ligero. Estoy usando icewm, mousepad como editor de texto y gcc con algunas librerias. Es decir, busco algo ligero, a ser posible dentro de repositorios. ¿Recomendaciones? Gracias. Vim. En serio. -- Adrià García-Alzórriz adri...@gmail.com GPG Key: 9DE37ED4 I'm not afraid of death -- I just don't want to be there when it happens. -- Woody Allen signature.asc Description: Digital signature
Re: IDE para gcc
El día 17 de enero de 2013 21:48, Adrià adri...@gmail.com escribió: On Thu, Jan 17, 2013 at 06:44:23PM +, Altair Linux wrote: Buenas, estoy mirando que IDE para gcc usar en un entorno ligero. Estoy usando icewm, mousepad como editor de texto y gcc con algunas librerias. Es decir, busco algo ligero, a ser posible dentro de repositorios. ¿Recomendaciones? Gracias. Vim. En serio. Quieres decir Emacs ;-p -- Adrià García-Alzórriz adri...@gmail.com GPG Key: 9DE37ED4 I'm not afraid of death -- I just don't want to be there when it happens. -- Woody Allen -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAGw=rHgc8yr3nxJg3azQ6=Zu27TO4F219zztkppMkOZ0fH=r...@mail.gmail.com
Re: IDE para gcc
El 17/01/13 16:19, Angel Claudio Alvarez escribió: El Thu, 17 Jan 2013 18:44:23 + Altair Linux altairli...@gmail.com escribió: Buenas, estoy mirando que IDE para gcc usar en un entorno ligero. Estoy usando icewm, mousepad como editor de texto y gcc con algunas librerias. Es decir, busco algo ligero, a ser posible dentro de repositorios. ¿Recomendaciones? vim Gracias. -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CA+HdPfJ=+hj3fbsceggmvmbugbojgswmcaw6nt0hijvm2y-...@mail.gmail.com pues hasta nano lo puedes usar y tiene reconocimiento de lenguaje. pero si quieres algo más bonito (en modo gráfico) está codelite, codeblocks, netbeans (bajalo de su página porq el de los repos no se puede configurar al 100%), eclipse CDT. -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/blu0-smtp2487bc52a7d2beeb93f15edd5...@phx.gbl
Re: IDE para gcc
Hola necesitaria una ayudita a encontrar como adaptar los drivers de wifi de la Familia de Productos: *Notebook, Ultrabook* Línea de productos: *Aspire* Modelo de Producto: *Aspire 5736Z* *para que funcionen en debian.-* * * * * *gracias* El 17 de enero de 2013 18:04, fernando sainz fernandojose.sa...@gmail.comescribió: El día 17 de enero de 2013 21:48, Adrià adri...@gmail.com escribió: On Thu, Jan 17, 2013 at 06:44:23PM +, Altair Linux wrote: Buenas, estoy mirando que IDE para gcc usar en un entorno ligero. Estoy usando icewm, mousepad como editor de texto y gcc con algunas librerias. Es decir, busco algo ligero, a ser posible dentro de repositorios. ¿Recomendaciones? Gracias. Vim. En serio. Quieres decir Emacs ;-p -- Adrià García-Alzórriz adri...@gmail.com GPG Key: 9DE37ED4 I'm not afraid of death -- I just don't want to be there when it happens. -- Woody Allen -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/cagwrhgc8yr3nxjg3azq6zu27to4f219zztkppmkoz0fh...@mail.gmail.com -- ALEXIS BALTRAMAITIS xigm...@arnet.com.ar CELULAR 155416756 4120990 FIJO 4591009
Drivers WiFi para Aspire 5736Z (era: Re: IDE para gcc)
On Thu, Jan 17, 2013 at 08:33:31PM -0300, ALEXIS BALTRAMAITIS wrote: Hola necesitaria una ayudita a encontrar como adaptar los drivers de wifi de la� Familia de Productos:�Notebook, Ultrabook L�nea de productos:�Aspire Modelo de Producto:�Aspire 5736Z para que funcionen en debian.- gracias Gracias por juntar en un solo correo tantos ejemplos de lo que no se _debería_ hacer en una lista de correo (pretendía ser sarcasmo). Puedes consultar las buenas prácticas en http://wiki.debian.org/es/NormasLista. Dicho esto, comentar que deberías indicar qué pruebas has hecho hasta ahora, qué resultados te han dado, qué has buscado, qué distribución usas (rama, arquitectura, kernel...) y en definitiva, todos los aspectos que puedan ser de interés para que no se te mande a Google. Yo lo que he encontrado, es que el fabricante parece ser Atheros, así que un punto de partida podría ser https://www.google.com/search?q=atheros+debian Saludos. El 17 de enero de 2013 18:04, fernando sainz [1]fernandojose.sa...@gmail.com escribi �l d�a 17 de enero de 2013 21:48, Adri� [2]adri...@gmail.com escribi � On Thu, Jan 17, 2013 at 06:44:23PM +, Altair Linux wrote: Buenas, estoy mirando que IDE para gcc usar en un entorno ligero. Estoy usando icewm, mousepad como editor de texto y gcc con algunas librerias. Es decir, busco algo ligero, a ser posible dentro de repositorios. �Recomendaciones? Gracias. Vim. En serio. Quieres decir Emacs ;-p -- Adri� Garc�a-Alz�rriz [3]adri...@gmail.com GPG Key: 9DE37ED4 I'm not afraid of death -- I just don't want to be there when it happens. � � � � � � � � -- Woody Allen -- Adrià García-Alzórriz adri...@gmail.com GPG Key: 9DE37ED4 Para el que quiere, siempre hay trabajo. signature.asc Description: Digital signature
Re: [r...@verizon.net: Re: GCC - Best way to build cross compiler?]
On 05/21/2012 06:20 AM, Chris Bannister wrote: Hi, rbmj, Please keep messages on list. Read: http://www.debian.org/MailingLists/ If you are not subscribed, you will not rec replies to your queries! Weird, I know, butI thought I'd seen emails from you before hence thought you were subscribed. Sorry about that. I wasn't paying attention and hit reply instead of reply list. It's people like me that convince some people to munge reply-tos :-D. If debian-embedd is the wrong list, then please let the list know so that, hopefully, the mistake will only be made once. I looked at the mailing list list, and debian-embedded says its for Debian on embedded systems. Now, the cross compiler I'm creating doesn't target Debian, but VxWorks, so my gut reaction is that it would *not* be the proper mailing list. But I don't know the community over there. It does mention that there is a debian-gcc list, but that says its for gcc maintainers. Now, those may be the people most knowledgeable about my question, but at the same time, it might be considered off topic there. Sorry again, -- rbmj -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4fbe35b7@verizon.net
[r...@verizon.net: Re: GCC - Best way to build cross compiler?]
Hi, rbmj, Please keep messages on list. Read: http://www.debian.org/MailingLists/ If you are not subscribed, you will not rec replies to your queries! Weird, I know, butI thought I'd seen emails from you before hence thought you were subscribed. If debian-embedd is the wrong list, then please let the list know so that, hopefully, the mistake will only be made once. - Forwarded message from rbmj r...@verizon.net - Date: Sun, 20 May 2012 12:34:27 -0400 From: rbmj r...@verizon.net To: Chris Bannister cbannis...@slingshot.co.nz Subject: Re: GCC - Best way to build cross compiler? On 05/20/2012 11:33 AM, Chris Bannister wrote: On Sat, May 19, 2012 at 10:00:59PM -0400, rbmj wrote: Bump... Am I posting this on the wrong list? Did you see: http://lists.debian.org/debian-user/2012/05/msg01511.html I did not see that. Thanks for the tip - I'll check that out. On 05/20/2012 05:27 AM, keith wrote: Maybe; take a look here http://gcc.gnu.org/lists.html I am on gcc-help, however the problem is not related to building the cross compiler. That much is fine. What I am having trouble with is the using the debian toolchain so that I can get proper (i.e. fit for distribution, so not checkinstall style) debian packages out of the customized compiler. Thanks, -- rbmj - End forwarded message - -- If you're not careful, the newspapers will have you hating the people who are being oppressed, and loving the people who are doing the oppressing. --- Malcolm X -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120521102058.GB24726@tal
Re: GCC - Best way to build cross compiler?
On Sat, 19 May 2012 22:00:59 -0400 rbmj r...@verizon.net wrote: On 05/14/2012 08:49 PM, rbmj wrote: Hi all, So, I want to create packages for a cross compiler targeting powerpc-wrs-vxworks on Wheezy. I don't exactly know how to approach [] Bump... Am I posting this on the wrong list? -- rbmj Maybe; take a look here http://gcc.gnu.org/lists.html -- keith km3...@gmail.com -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120520102745.b4959fd73e34c2c6588ff...@gmail.com
Re: GCC - Best way to build cross compiler?
On Sat, May 19, 2012 at 10:00:59PM -0400, rbmj wrote: Bump... Am I posting this on the wrong list? Did you see: http://lists.debian.org/debian-user/2012/05/msg01511.html -- If you're not careful, the newspapers will have you hating the people who are being oppressed, and loving the people who are doing the oppressing. --- Malcolm X -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120520153300.GT31474@tal
Re: GCC - Best way to build cross compiler?
On 05/20/2012 11:33 AM, Chris Bannister wrote: On Sat, May 19, 2012 at 10:00:59PM -0400, rbmj wrote: Bump... Am I posting this on the wrong list? Did you see: http://lists.debian.org/debian-user/2012/05/msg01511.html I did not see that. Thanks for the tip - I'll check that out. On 05/20/2012 05:27 AM, keith wrote: Maybe; take a look here http://gcc.gnu.org/lists.html I am on gcc-help, however the problem is not related to building the cross compiler. That much is fine. What I am having trouble with is the using the debian toolchain so that I can get proper (i.e. fit for distribution, so not checkinstall style) debian packages out of the customized compiler. Thanks, -- rbmj -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4fb91d47.2080...@verizon.net
Re: GCC - Best way to build cross compiler?
On 05/14/2012 08:49 PM, rbmj wrote: Hi all, So, I want to create packages for a cross compiler targeting powerpc-wrs-vxworks on Wheezy. I don't exactly know how to approach the problem. With binutils it's easy enough to just grab the sources with apt-get source and then run 'TARGET=powerpc-wrs-vxworks debuild'. However, it's a little different with gcc. With GCC, it's a little more difficult. I need to have a little more control over the flags passed to configure. At the same time, the debian/rules et al for gcc is _very_ intimidating. I could make my own source package, but that seems like a lot of duplicated effort. At the same time, because I need a very specialized build (I need to add a dependency on a custom package, add some patches, and exactly control configure flags) that seems like the only option available to me. PLEASE, stop me now if I'm not seeing the solution in front of my face - I really did try to sort through all of the debian sources! On the other hand, it seems like it would be nice if environment variables for build/host/target and appending to configure flags is standardized and documented. It may be (/probably is), but I didn't see it :-(, at least for pre-written debian/rules scripts - debhelper = 7 makes everything easier if you're writing from scratch. One more thing- why are there so many build-depends for gcc? I've successfully built gcc many times before and never needed all of those - just the compiler, mpfr-dev, mpc-dev, gmp-dev, and build-essential. Please forgive the ignorance :-) OK, so how I would try to do this is I would make two directories, gcc-4.7 and gcc-4.7-src. I would make a script in gcc-4.7, and name it configure: #!/bin/sh ../gcc-4.7-src/configure $@ Then I'd run dh_make -p..., edit debian/*, and then in debian/rules: #!/usr/bin/make -f export DH_OPTIONS override_dh_auto_configure: dh_auto_configure -- \ --target=powerpc-wrs-vxworks \ #lots of compile options, etc. %: dh $@ --with autotools-dev Then, hopefully, just a simple debuild would work.Then I'd just copy over the debian/control files from my box and edit them appropriately. Any feedback/sanity checking would be AWESOME. Thank you all, Bump... Am I posting this on the wrong list? -- rbmj -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4fb8505b.6070...@verizon.net
GCC - Best way to build cross compiler?
Hi all, So, I want to create packages for a cross compiler targeting powerpc-wrs-vxworks on Wheezy. I don't exactly know how to approach the problem. With binutils it's easy enough to just grab the sources with apt-get source and then run 'TARGET=powerpc-wrs-vxworks debuild'. However, it's a little different with gcc. With GCC, it's a little more difficult. I need to have a little more control over the flags passed to configure. At the same time, the debian/rules et al for gcc is _very_ intimidating. I could make my own source package, but that seems like a lot of duplicated effort. At the same time, because I need a very specialized build (I need to add a dependency on a custom package, add some patches, and exactly control configure flags) that seems like the only option available to me. PLEASE, stop me now if I'm not seeing the solution in front of my face - I really did try to sort through all of the debian sources! On the other hand, it seems like it would be nice if environment variables for build/host/target and appending to configure flags is standardized and documented. It may be (/probably is), but I didn't see it :-(, at least for pre-written debian/rules scripts - debhelper = 7 makes everything easier if you're writing from scratch. One more thing- why are there so many build-depends for gcc? I've successfully built gcc many times before and never needed all of those - just the compiler, mpfr-dev, mpc-dev, gmp-dev, and build-essential. Please forgive the ignorance :-) OK, so how I would try to do this is I would make two directories, gcc-4.7 and gcc-4.7-src. I would make a script in gcc-4.7, and name it configure: #!/bin/sh ../gcc-4.7-src/configure $@ Then I'd run dh_make -p..., edit debian/*, and then in debian/rules: #!/usr/bin/make -f export DH_OPTIONS override_dh_auto_configure: dh_auto_configure -- \ --target=powerpc-wrs-vxworks \ #lots of compile options, etc. %: dh $@ --with autotools-dev Then, hopefully, just a simple debuild would work.Then I'd just copy over the debian/control files from my box and edit them appropriately. Any feedback/sanity checking would be AWESOME. Thank you all, -- rbmj -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4fb1a820.8060...@verizon.net
Re: GCC - Best way to build cross compiler?
On Mon, May 14, 2012 at 08:49:36PM -0400, rbmj wrote: Hi all, So, I want to create packages for a cross compiler targeting powerpc-wrs-vxworks on Wheezy. I don't exactly know how to approach the problem. You'll _probably_ have better luck on the debian-embedded mailing list, mainly because it involves a cross compiler. -- Religion is excellent stuff for keeping common people quiet. -- Napoleon Bonaparte -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120515033015.GA15411@tal
gcc unable to find 32-bit gtk-x11-2.0 library (x86_64)
Hi all, I am currently investigating a build failure of GNU Classpath/Jikes RVM on Debian Squeeze 6.0.4 (cf. http://jira.codehaus.org/browse/RVM-942): The problem is that gcc is unable to find the 32-bit gtk-x11-2.0 library, even though it sits right there in /usr/lib32: ls /usr/lib32/libgdk-x11-2.0* /usr/lib32/libgdk-x11-2.0.so.0 /usr/lib32/libgdk-x11-2.0.so.0.2000.1 The offending gcc command used by during the Jikes RVM build boils down to this: gcc -m32 -L/usr/lib32 -lgdk-x11-2.0 /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../libgdk-x11-2.0.so when searching for -lgdk-x11-2.0 /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../libgdk-x11-2.0.a when searching for -lgdk-x11-2.0 /usr/bin/ld: skipping incompatible /usr/lib/libgdk-x11-2.0.so when searching for -lgdk-x11-2.0 /usr/bin/ld: skipping incompatible /usr/lib/libgdk-x11-2.0.a when searching for -lgdk-x11-2.0 /usr/bin/ld: cannot find -lgdk-x11-2.0 (The -m32 is needed as Jikes RVM itself is really a 32-bit VM.) Also, /usr/lib32 *is* part of gcc's search dirs, at least as far as I can tell: gcc -m32 -L/usr/lib32 -lgdk-x11-2.0 -print-search-dirs install: /usr/lib/gcc/x86_64-linux-gnu/4.4.5/ programs: =/usr/lib/gcc/x86_64-linux-gnu/4.4.5/:/usr/lib/gcc/x86_64-linux-gnu/4.4.5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.4.5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/libexec/gcc/x86_64-linux-gnu/4.4.5/:/usr/libexec/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.4.5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../x86_64-linux-gnu/bin/x86_64-linux-gnu/4.4.5/:/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../x86_64-linux-gnu/bin/ libraries: =/usr/lib/gcc/x86_64-linux-gnu/4.4.5/32/:/usr/lib/gcc/x86_64-linux-gnu/4.4.5/32/:/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../x86_64-linux-gnu/lib/x86_64-linux-gnu/4.4.5/32/:/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../x86_64-linux-gnu/lib/../lib32/:/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../x86_64-linux-gnu/4.4.5/32/:/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib32/:/lib/x86_64-linux-gnu/4.4.5/32/:/lib/../lib32/:/usr/lib/x86_64-linux-gnu/4.4.5/32/:/usr/lib/../lib32/:/usr/lib/x86_64-linux-gnu/x86_64-linux-gnu/4.4.5/32/:/usr/lib/x86_64-linux-gnu/../lib32/:/usr/lib/gcc/x86_64-linux-gnu/4.4.5/:/usr/lib/gcc/x86_64-linux-gnu/4.4.5/:/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../x86_64-linux-gnu/lib/x86_64-linux-gnu/4.4.5/:/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../x86_64-linux-gnu/lib/:/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../x86_64-linux-gnu/4.4.5/:/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../:/lib/x86_64-linux-gnu/4.4.5/:/lib/:/usr/lib/x86_64- linux-gnu/4.4.5/:/usr/lib/:/usr/lib/x86_64-linux-gnu/x86_64-linux-gnu/4.4.5/:/usr/lib/x86_64-linux-gnu/ Does anyone see what's causing the problem? (It's probably really obvious for someone more experienced with this 32/64-bit mess, but Google didn't turn up an answer useful to me.) Best wishes, Andreas -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4f4b6ab6.9080...@st.informatik.tu-darmstadt.de
Documentation -- gcc?
OK, so gcc documentation is unfree. I have no dog in that fight. Save an old man a few days of reading the GFDL flame wars from seven years ago, and someone (one) just kindly say where this non-free documentation is. I have 16 (two architectures) DVDs. Could it be lurking somewhere in those 64 GB of compressed files? Or have I been had? Dave I would RTFM, but there's no FM TR. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4ecf7051.4050...@pennswoods.net
RE: Documentation -- gcc?
OK, so gcc documentation is unfree. I have no dog in that fight. Save an old man a few days of reading the GFDL flame wars from seven years ago, and someone (one) just kindly say where this non-free documentation is. http://packages.debian.org/squeeze/gcc-doc-base and http://packages.debian.org/squeeze/gcc-doc Maybe http://gcc.gnu.org/onlinedocs/ will be faster? I have 16 (two architectures) DVDs. Could it be lurking somewhere in those 64 GB of compressed files? Or have I been had? A quick scan of http://cdimage.debian.org/debian-cd/6.0.3/amd64/list-dvd/ shows no sign of these packages. Presumably because the DVDs only contain the main archive? Regards, Arno
Re: Documentation -- gcc?
Woodchuck mar...@pennswoods.net wrote: Save an old man a few days of reading the GFDL flame wars from seven years ago, and someone (one) just kindly say where this non-free documentation is. Package gcc-doc? Or is that too obvious? http://ftp.uk.debian.org stable/non-free gcc-doc-base 4.4.4.nf1-1 [30.1kB] http://ftp.uk.debian.org stable/non-free gcc-4.4-doc 4.4.4.nf1-1 [2,323kB] http://ftp.uk.debian.org stable/contrib gcc-doc 5:3 [2,908B] The value content in these packages appears to land in /usr/share/doc/gcc-4.4-doc/*.html. Is there more that you were looking for? Chris -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/3ta4q8xvsa@news.roaima.co.uk
Re: GCC-AVR
Em 13-11-2011 14:44, Sergio Pereira escreveu: Boa tarde. Estou tentando instalar o pacote gcc-avr mas não está disponível nos repositórios wheezy. Encontrei aqui: http://packages.debian.org/sid/gcc-avr mas está disponível para Lenny, Squeezy e Sid. Pensei em adicionar uma linha no sources.list com repositório Sid, fazer um aptitude update, instalar o gcc-avr, depois excluir a linha com repositório Sid e retornar sources.list original, somente com os repositórios Wheezy. Mas não sei se ao instalar o gcc-avr do Sid, pode gerar um monte de crash por causa de pacotes que podem ser atualizados ou instalados para o Sid. Gostaria de uma opinião quanto a fazer isto ou aguardar que o pacote esteja disponível para o Wheezy. Estou rodando kernel 3.0.0-1-amd64. Desde já agradeço a ajuda. []'s Sérgio Boa tarde. Resolvido da seguinte forma: Adicionei a seguinte linha no meu sources.list: deb http://ftp.br.debian.org/debian sid main Depois de um aptitude update, instalei os 2 pacotes faltantes nos repositórios Wheezy, que eram o gcc-avr e o avr-libc. Depois da instalação, para não correr riscos de algum crash por causa de pacotes Sid, removi a linha com repositório Sid do sources.list e fiz um novo aptitude update. Com isto estou podendo desenvolver usando chips Atmel/AVR, usando o Vim como editor e compilando pela linha de comando, ou usando o IDE CodeClocks. Estou postando aqui porque pode haver (e certamente há) algum desenvolvedor de sistemas para automação industrial na lista, e pode ter se deparado com o mesmo problema. []'s Sérgio -- Linux User #426387 / Ubuntu User #13964 Linux: A liberdade da escolha. A escolha da liberdade. The freedom of choice. The choice of freedom. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFF9vhuJ+YDTomMwA8RAvSAAJoDwkzHJK3P98vEDx5pJxeyT3xyzgCg22/u W/MTldaxqdeNLjlWF49wpig= =MVB7 -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-user-portuguese-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4ec16575.4050...@sein.com.br
Re: GCC-AVR
Boa dica velho, Vou repassar aqui para o pessoal da faculdade que estava com problemas em desenvolver as coisas, para esses atmel's, da vida usando o Wheezy. Inteh, Em 14/11/11, Sergio Pereirastgpere...@sein.com.br escreveu: Em 13-11-2011 14:44, Sergio Pereira escreveu: Boa tarde. Estou tentando instalar o pacote gcc-avr mas não está disponível nos repositórios wheezy. Encontrei aqui: http://packages.debian.org/sid/gcc-avr mas está disponível para Lenny, Squeezy e Sid. Pensei em adicionar uma linha no sources.list com repositório Sid, fazer um aptitude update, instalar o gcc-avr, depois excluir a linha com repositório Sid e retornar sources.list original, somente com os repositórios Wheezy. Mas não sei se ao instalar o gcc-avr do Sid, pode gerar um monte de crash por causa de pacotes que podem ser atualizados ou instalados para o Sid. Gostaria de uma opinião quanto a fazer isto ou aguardar que o pacote esteja disponível para o Wheezy. Estou rodando kernel 3.0.0-1-amd64. Desde já agradeço a ajuda. []'s Sérgio Boa tarde. Resolvido da seguinte forma: Adicionei a seguinte linha no meu sources.list: deb http://ftp.br.debian.org/debian sid main Depois de um aptitude update, instalei os 2 pacotes faltantes nos repositórios Wheezy, que eram o gcc-avr e o avr-libc. Depois da instalação, para não correr riscos de algum crash por causa de pacotes Sid, removi a linha com repositório Sid do sources.list e fiz um novo aptitude update. Com isto estou podendo desenvolver usando chips Atmel/AVR, usando o Vim como editor e compilando pela linha de comando, ou usando o IDE CodeClocks. Estou postando aqui porque pode haver (e certamente há) algum desenvolvedor de sistemas para automação industrial na lista, e pode ter se deparado com o mesmo problema. []'s Sérgio -- Linux User #426387 / Ubuntu User #13964 Linux: A liberdade da escolha. A escolha da liberdade. The freedom of choice. The choice of freedom. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFF9vhuJ+YDTomMwA8RAvSAAJoDwkzHJK3P98vEDx5pJxeyT3xyzgCg22/u W/MTldaxqdeNLjlWF49wpig= =MVB7 -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-user-portuguese-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4ec16575.4050...@sein.com.br -- == ..:Luiz Paulo Colombiano:.. Contra Negantem Principia Non Est Disputandum Graduando Eng Elétrica - Unifacs Linux User # 415937 Lattes:http://lattes.cnpq.br/9789604686994795 O possível só é atingível através da tentativa de se atingir o impossível. Karl Liebcknecht -- To UNSUBSCRIBE, email to debian-user-portuguese-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAJ=jqgm4fjg9jcgxp62kxhxbfwl1-z2csdb+yr0brabrxnv...@mail.gmail.com
GCC-AVR
Boa tarde. Estou tentando instalar o pacote gcc-avr mas não está disponível nos repositórios wheezy. Encontrei aqui: http://packages.debian.org/sid/gcc-avr mas está disponível para Lenny, Squeezy e Sid. Pensei em adicionar uma linha no sources.list com repositório Sid, fazer um aptitude update, instalar o gcc-avr, depois excluir a linha com repositório Sid e retornar sources.list original, somente com os repositórios Wheezy. Mas não sei se ao instalar o gcc-avr do Sid, pode gerar um monte de crash por causa de pacotes que podem ser atualizados ou instalados para o Sid. Gostaria de uma opinião quanto a fazer isto ou aguardar que o pacote esteja disponível para o Wheezy. Estou rodando kernel 3.0.0-1-amd64. Desde já agradeço a ajuda. []'s Sérgio -- Linux User #426387 / Ubuntu User #13964 Linux: A liberdade da escolha. A escolha da liberdade. The freedom of choice. The choice of freedom. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFF9vhuJ+YDTomMwA8RAvSAAJoDwkzHJK3P98vEDx5pJxeyT3xyzgCg22/u W/MTldaxqdeNLjlWF49wpig= =MVB7 -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-user-portuguese-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4ebff40a.2080...@sein.com.br
linux-headers with GCC 4.6 when
Hello! I have installed virtualbox-ose and virtualbox-ose-dkms. DKMS needs linux-headers which depends on gcc-4.5 even I have an already installed gcc and gcc-4.6. Is it intentional or not? Is gcc 4.6 cannot compile kernel? I have enough disk space yet but gcc twice is unnecessary and I just wondering. Bye, a -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/capkuxvgnog-qa-qfx34w78hnfbl+w3+vve2akjznvn-cck-...@mail.gmail.com
Re: linux-headers with GCC 4.6 when
On Sat, Nov 05, 2011 at 01:39:17PM +0100, Artifex Maximus wrote: Hello! I have installed virtualbox-ose and virtualbox-ose-dkms. DKMS needs linux-headers which depends on gcc-4.5 even I have an already installed gcc and gcc-4.6. Is it intentional or not? Is gcc 4.6 cannot compile kernel? I have enough disk space yet but gcc twice is unnecessary and I just wondering. The modules built by dkms must match the gcc version used to compile the kernel. Install gcc-4.5 and add it to the alternatives system to select which to use, or export CC for manual compilations. From my POV, it's not unnecessary to have different versions of some software (gcc, perl java,...). -- Huella de clave primaria: AD8F BDC0 5A2C FD5F A179 60E7 F79B AB04 5299 EC56 signature.asc Description: Digital signature
Re: linux-headers with GCC 4.6 when
Hello! On Sat, Nov 5, 2011 at 2:20 PM, David Sastre d.sastre.med...@gmail.com wrote: On Sat, Nov 05, 2011 at 01:39:17PM +0100, Artifex Maximus wrote: I have installed virtualbox-ose and virtualbox-ose-dkms. DKMS needs linux-headers which depends on gcc-4.5 even I have an already installed gcc and gcc-4.6. Is it intentional or not? Is gcc 4.6 cannot compile kernel? I have enough disk space yet but gcc twice is unnecessary and I just wondering. The modules built by dkms must match the gcc version used to compile the kernel. Install gcc-4.5 and add it to the alternatives system to select which to use, or export CC for manual compilations. I see. Thanks for the answer. This means as long as kernel compiled with gcc 4.5 dkms depends on gcc 4.5. From my POV, it's not unnecessary to have different versions of some software (gcc, perl java,...). Different people different needs. :-) Bye, a -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAPkuXvGq7-wgFJWeBvMvA-_RQZsp69mJyf2o0W=upwbf1hr...@mail.gmail.com
Re: distcc: gcc 4.6 on stable?
Hi, we went with a VM, however it turned out the network connection is a bottleneck - as it seems, distcc can only be used properly in a LAN, not through the internet. Kind regards, Ralf On Wednesday 05 October 2011 18:15:59 Bob Proulx wrote: Ralf Jung wrote: I am trying to use a friend's machine as distcc daemon, since it has much more CPU power than my poor laptop. However distcc fails to compile stuff on his machine, which I assume is because I am using Debian testing and GCC 4.6, and he is on Debian stable and GCC 4.4 For distcc types of builds you should ensure that all of the build systems have the same version of the tools. Is there a good way to get GCC 4.6 on his machine, preferably isolated from the rest of the system to be used by distcc only? You could install in a chroot. See the 'debootstrap' utility. http://wiki.debian.org/Debootstrap Bob -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201110061137.03494.ralfjun...@gmx.de
distcc: gcc 4.6 on stable?
Hi list, I am trying to use a friend's machine as distcc daemon, since it has much more CPU power than my poor laptop. However distcc fails to compile stuff on his machine, which I assume is because I am using Debian testing and GCC 4.6, and he is on Debian stable and GCC 4.4 Is there a good way to get GCC 4.6 on his machine, preferably isolated from the rest of the system to be used by distcc only? Kind regards, Ralf -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201110051220.39586.ralfjun...@gmx.de
Re: distcc: gcc 4.6 on stable?
Ralf Jung wrote: I am trying to use a friend's machine as distcc daemon, since it has much more CPU power than my poor laptop. However distcc fails to compile stuff on his machine, which I assume is because I am using Debian testing and GCC 4.6, and he is on Debian stable and GCC 4.4 For distcc types of builds you should ensure that all of the build systems have the same version of the tools. Is there a good way to get GCC 4.6 on his machine, preferably isolated from the rest of the system to be used by distcc only? You could install in a chroot. See the 'debootstrap' utility. http://wiki.debian.org/Debootstrap Bob signature.asc Description: Digital signature
Are openssh-server, vim-full and gcc available in debian-6.0.2.1-i386-DVD-1.iso?
I am going to install Debian from DVD-1 at http://cdimage.debian.org/debian-cd/6.0.2.1/i386/iso-dvd/ into a computer with no connectivity to the internet. It would be handy to know if I can install certain packages I need from DVD-1 itself. For example, I need to install openssh-server, vim-full and gcc after the installation. Is there a way to find out if these packages are available in DVD-1 before performing the installation? Regards, Susam Pal http://blog.susam.in/ | http://cotpi.com/ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/cak-5m924khteaayfou6kku5t5yguuwab_at9njzxj+d9n4-...@mail.gmail.com
Re: Are openssh-server, vim-full and gcc available in debian-6.0.2.1-i386-DVD-1.iso?
On Thu, 15 Sep 2011 18:57:56 +0530, Susam Pal wrote: I am going to install Debian from DVD-1 at http://cdimage.debian.org/debian-cd/6.0.2.1/i386/iso-dvd/ into a computer with no connectivity to the internet. It would be handy to know if I can install certain packages I need from DVD-1 itself. For example, I need to install openssh-server, vim-full and gcc after the installation. Is there a way to find out if these packages are available in DVD-1 before performing the installation? You can find it from here: http://www.debian.org/CD/jigdo-cd/index.en.html#search Which points to this: http://cdimage.debian.org/cdimage/release/6.0.2.1/i386/list-dvd/debian-6.0.2.1-i386-DVD-1.list.gz Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/pan.2011.09.15.13.39...@gmail.com
gcc using Pipes Done!
lee writes: And leftchannel_pipe is supposed to be an array? Without seeing more of your program, we're left in the dark ... Now that I got it working, here it is. All this does is to give you an 8-bit 8000 sample per second audio feed from both the left and right channels of the sound card as /tmp/leftchannel and /tmp/rightchannel. For it to work, you must cat both files in to either a program that continuously reads them or cat both in to respective files because the fifo I ended up using instead of pipes blocks if you stuff bytes in to the input and there is nothing to read the fifo yet. If you start this code without anything connected to both fifos, it patiently blocks until both streams are going, then it works fine. There is a catch as to the type of audio you can use with this code because it actually has to configure the sound card to sample in stereo at 32000 samples per second. The Nyquist low-pass filter needed on both the input and output of the sound card is set to block sounds above 16000 HZ but the sound streams we want can only carry audio at 4000 HZ. I do not have any kind of Nyquist filtering built in to this code so the best audio to feed it is audio from radio scanners, communications receivers and any other device with a limited audio bandwidth so that the low-pass filtering is already there. Do anything else such as feeding music from a FM broadcast radio or television sound source in to the splitter gives you sound that is peculiar to listen to because frequencies above 4 KHZ heterodyne with the sampling rate and produce what are called aliases. Trust me. S sounds sound like tearing paper and chimes or bells put one in mind of the world through a bad ear ache. Here is the splitter code. I used sample code from others to learn how to setup the sound card. Many thanks to all. /* Create 2 independent 8-bit sound streams */ #include unistd.h #include fcntl.h #include sys/types.h #include sys/stat.h #include sys/ioctl.h #include stdlib.h #include stdio.h #include errno.h #include linux/soundcard.h #define RATE 32000 /* the sampling rate */ #define rightchbits 0b /*all left channel bits*/ #define highleftchbits 0b /*all high left channel bits*/ #define highrightchbits 0b /*all left channel bits*/ #define leftchbits 0b /*all left channel bits*/ #define SIZE 16 /* sample size: 8 or 16 bits */ #define CHANNELS 2 /* 1 = mono 2 = stereo */ signed long int sample = 0; signed long int prevsample = 0; signed long int rawleft = 0; signed long int rawright = 0; signed long int prevleft = 0; signed long int prevright = 0; signed long testsample = 0; void cleanup(); int main(int argc, char **argv) { /*main start*/ int fd; /* sound device file descriptor */ int arg; /* argument for ioctl calls */ int status; /* return status of system calls */ signed long lefthighbytestore = 0; signed long righthighbytestore = 0; signed long highbytestore = 0; unsigned char leftbyte = 0; unsigned char rightbyte = 0; char rightswitch = 0; char *leftchannel_fifo = /tmp/leftchannel; char *rightchannel_fifo = /tmp/rightchannel; /*Code starts*/ /*Get rid of any old fifos.*/ cleanup(); /* open sound device */ fd = open(/dev/dsp, O_RDONLY); if (fd 0) { perror(open of /dev/dsp failed); exit(1); } /* set sampling parameters */ arg = SIZE; /* sample size */ status = ioctl(fd, SOUND_PCM_WRITE_BITS, arg); if (status == -1) perror(SOUND_PCM_WRITE_BITS ioctl failed); if (arg != SIZE) perror(unable to set sample size); arg = CHANNELS; /* mono or stereo */ status = ioctl(fd, SOUND_PCM_WRITE_CHANNELS, arg); if (status == -1) perror(SOUND_PCM_WRITE_CHANNELS ioctl failed); if (arg != CHANNELS) perror(unable to set number of channels); arg = RATE; /* sampling rate */ status = ioctl(fd, SOUND_PCM_WRITE_RATE, arg); if (status == -1) perror(SOUND_PCM_WRITE_WRITE ioctl failed); if (mkfifo( leftchannel_fifo, 0600) 0) { if (errno == EEXIST) printf(Message Queue (i.e. FIFO) %s already exists\n, leftchannel_fifo); else { perror(Unable to create UNIX FIFO\n); return -1; } } if (mkfifo( rightchannel_fifo, 0600) 0) { if (errno == EEXIST) printf(Message Queue (i.e. FIFO) %s already exists\n, rightchannel_fifo); else { perror(Unable to create UNIX FIFO\n); return -1; } } if ((leftchannel_fifo = fopen(leftchannel_fifo,w)) == NULL) { perror(/tmp/leftchannel); exit(1); } if ((rightchannel_fifo = fopen(rightchannel_fifo,w)) == NULL) { perror(/tmp/rightchannel); exit(1); } while (1) { /* loop until Control-C */ status = read(fd, sample, sizeof(sample)); /*Get sample.*/ if (!(rightswitch 3)) {/*process every 4TH sample.*/ /*This is how we get back to 8000 samples per second.*/ /*Start process here.*/ rawleft = (sample leftchbits);
gcc using Pipes Some Progress
Ivan Jager writes: Rather than using fwrite() you could just use write(), which takes a file descriptor. Alternately, if you really want to use fwrite or other stdio functions rather than the *nix syscalls, you could use fdopen() to get a FILE* corresponding to the pipe's fd. If you check the pipe manpage, you'll find an example of how to use pipes. What I ended up doing was to use write as you suggested. I had confused the file descriptor with the file so write was what I really needed. In the write command, I forgot the address of operator so once I fixed that I had: if( write(leftchannel_pipe[1], leftbyte, 1) 0) { printf(write error!\n); exit (1); } That appears to work but I need the pipe to show up as a newly-created file so that a separate program can attach to it and that's where it looks like I need fdopen. In the case of this particular program, the pipe function gave me 7 and 8 as the descriptors for leftchannel_pipe[0] and leftchannel_pipe[1] so I added the following line to the code: if ((leftchannel_pipe[0] = fdopen(leftdata,r)) == NULL) { perror(leftdata); exit(1); } Leftdata is a string set to leftchannel and should have been the file name that shows up when the code runs. I may be misunderstanding how this all works, but it should have opened the file discriptor already created by the pipe() function. At that point, I get the bad file descriptor error. One interesting point. the man page for pipe on my debian lenny system exists in section 7 and discusses pipes and fifo's but there is no example. I did, however, find an man page by doing a Google search which did include an example of a program that uses fork to let data flow from whatever wrote it to whatever needs to read it. I think I am on the wrong track, here, because I want to run this code and see 2 new entries pop up in the file system which are each data streams, one to the left channel of my sound card and the other, to the right channel. mkfifo is probably what I need. Except for the I/O, this project is almost done. For the curious, I wrote some code years ago that uses /dev/dsp which, when read or written without any fcntl commands, either produces or plays 8-bit audio samples at 8,000 samples per second. It's horrible for music, but fine for communications-level audio such as from short wave radios, scanner receivers and amateur radio gear. You only get the input from the left channel, however. If you also want the right channel, you have to set the sound card to stereo at 32,000 16-bit samples per second so to get the 8-KHZ samples, you must throw away 3 out of 4 samples and then mask off the 8 LSB's from each channel to get the same thing as before plus change from signed to unsined data. I actually got that to work so what's left is to build the I/O or the O, to be specific so that this code is sort of a railroad switch to route all the left-channel data and right-channel data to their respective outlets. Finally, I wrote a VOX or Voice Activated Relay program that takes one stream and only writes to a file when there is sound. When I get the splitter to work, I will be able to put a VOX on each channel and double the number of streams to record from. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201107151256.p6fcu4sh048...@x.it.okstate.edu
Re: gcc using Pipes Some Progress
Martin McCormick mar...@x.it.okstate.edu writes: Ivan Jager writes: if( write(leftchannel_pipe[1], leftbyte, 1) 0) if ((leftchannel_pipe[0] = fdopen(leftdata,r)) == NULL) { And leftchannel_pipe is supposed to be an array? Without seeing more of your program, we're left in the dark ... -- html messages are obsolete -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/8762n3d62z@yun.yagibdah.de
gcc using Pipes
I want to send two output streams from a code module I wrote to two pipes so that other programs can read the streams. The rest of the module works but I am doing something wrong when writing to a pipe. The way I understand pipes, you write to one end. A small buffer fills and the operation blocks until something else reads the read end of the pipe to clear the buffer. The bytes are defined as unsigned char and I can send them to test files with fwrite with no problem but here is what happens when I try to send to a pipe. Here is the trace with annotation: Breakpoint 2, main () at 2pipes.c:47 47 if( pipe(leftchannel_pipe) 0) #Let's see what the uninitialized integers are. (gdb) output leftchannel_pipe {-1217699554, -1216988295}(gdb) step #After the step, we should have two file descriptors. (gdb) output leftchannel_pipe {7, 8} #good! I also did the same thing to open a second pipe called #rightchannel_pipe. (gdb) output rightchannel_pipe {9, 10} #that also looks right, but let's try to write to leftchannel_pipe. main () at 2pipes.c:98 98 fwrite(leftbyte,sizeof(leftbyte),1,leftchannel_pipe[1]); (gdb) step Program received signal SIGSEGV, Segmentation fault. 0xb76a78d1 in fwrite () from /lib/i686/cmov/libc.so.6 That looks like what you get when confusing the contents of a pointer with the name of that pointer but the fwrite statement is what I used when writing to a normal file and that worked. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201107141130.p6ebulaf042...@x.it.okstate.edu
Re: gcc using Pipes
On Thu, Jul 14, 2011 at 06:30:21AM -0500, Martin McCormick scribbled: #After the step, we should have two file descriptors. (gdb) output leftchannel_pipe {7, 8} [...] #that also looks right, but let's try to write to leftchannel_pipe. main () at 2pipes.c:98 98 fwrite(leftbyte,sizeof(leftbyte),1,leftchannel_pipe[1]); (gdb) step Program received signal SIGSEGV, Segmentation fault. 0xb76a78d1 in fwrite () from /lib/i686/cmov/libc.so.6 That looks like what you get when confusing the contents of a pointer with the name of that pointer but the fwrite statement is what I used when writing to a normal file and that worked. It also happens when you try to use 7 as a pointer. Note that fwrite does not take a file descriptor but a FILE*. I'm not sure what options you're passing gcc, but I would have expected it to at least warn you that you were passing an int as a pointer. Rather than using fwrite() you could just use write(), which takes a file descriptor. Alternately, if you really want to use fwrite or other stdio functions rather than the *nix syscalls, you could use fdopen() to get a FILE* corresponding to the pipe's fd. If you check the pipe manpage, you'll find an example of how to use pipes. Also, I'm not sure what kind of modules you're writing, but if they both live in the same address space, then using pipes is like calling your cellphone from your work phone so that you can talk to yourself. If your modules are separate processes, then that's exactly what pipes are for. Ivan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110714162537.ga26...@mrph.org
Re: Debian Squeeze gcc 4.3 and 4.4 why two C compilers?
On Thu, Mar 10, 2011 at 10:32:05AM -0600, Hugo Vanwoerkom wrote: Camaleón wrote: On Wed, 09 Mar 2011 09:52:38 -0800, David Christensen wrote: I recently installed Debian 6.0.0 i386 Squeeze on a system with NVIDIA graphics. When I went to build/ install the proprietary NVIDIA video driver, it wanted gcc. So I installed the Debian gcc package. The NVIDIA installer then informed me that the version of gcc installed on my system (4.4) did not match the version used to compile the kernel (4.3). So, I installed the Debian package gcc-4.3, set the CC environment variable, and installed the NVIDIA driver. Why does Debian have, and I presume use (?), two versions of gcc? Two versions? I'd say there are even more (3.4, 4.1, 4.2, 4.3, 4.4, 4.5...) and I'm afraid this is not a Debian specific (other distributions should do the same way) :-) Different GCC versions may be needed to match different software compilation requirements. Right. I see it when I use 4.4 but the kernel-headers package needs 4.3 because the kernel is compiled with that particular version, so 4.3 is installed. I now have 4.4 and 4.5 installed. I believe it's Debian Policy to always build the kernel with the current STABLE GCC. At the moment, that's 4.3. Unfortunately, my google-fu's failing me at the moment and I can't find a source for this factoid. signature.asc Description: Digital signature
Re: Debian Squeeze gcc 4.3 and 4.4 why two C compilers?
Camaleón wrote: On Wed, 09 Mar 2011 09:52:38 -0800, David Christensen wrote: I recently installed Debian 6.0.0 i386 Squeeze on a system with NVIDIA graphics. When I went to build/ install the proprietary NVIDIA video driver, it wanted gcc. So I installed the Debian gcc package. The NVIDIA installer then informed me that the version of gcc installed on my system (4.4) did not match the version used to compile the kernel (4.3). So, I installed the Debian package gcc-4.3, set the CC environment variable, and installed the NVIDIA driver. Why does Debian have, and I presume use (?), two versions of gcc? Two versions? I'd say there are even more (3.4, 4.1, 4.2, 4.3, 4.4, 4.5...) and I'm afraid this is not a Debian specific (other distributions should do the same way) :-) Different GCC versions may be needed to match different software compilation requirements. Right. I see it when I use 4.4 but the kernel-headers package needs 4.3 because the kernel is compiled with that particular version, so 4.3 is installed. I now have 4.4 and 4.5 installed. Hugo -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/ilaue6$d2h$1...@dough.gmane.org
Debian Squeeze gcc 4.3 and 4.4 why two C compilers?
debian-user: I recently installed Debian 6.0.0 i386 Squeeze on a system with NVIDIA graphics. When I went to build/ install the proprietary NVIDIA video driver, it wanted gcc. So I installed the Debian gcc package. The NVIDIA installer then informed me that the version of gcc installed on my system (4.4) did not match the version used to compile the kernel (4.3). So, I installed the Debian package gcc-4.3, set the CC environment variable, and installed the NVIDIA driver. Why does Debian have, and I presume use (?), two versions of gcc? David -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4d77be66.1090...@holgerdanske.com
Re: Debian Squeeze gcc 4.3 and 4.4 why two C compilers?
On Wed, 09 Mar 2011 09:52:38 -0800, David Christensen wrote: I recently installed Debian 6.0.0 i386 Squeeze on a system with NVIDIA graphics. When I went to build/ install the proprietary NVIDIA video driver, it wanted gcc. So I installed the Debian gcc package. The NVIDIA installer then informed me that the version of gcc installed on my system (4.4) did not match the version used to compile the kernel (4.3). So, I installed the Debian package gcc-4.3, set the CC environment variable, and installed the NVIDIA driver. Why does Debian have, and I presume use (?), two versions of gcc? Two versions? I'd say there are even more (3.4, 4.1, 4.2, 4.3, 4.4, 4.5...) and I'm afraid this is not a Debian specific (other distributions should do the same way) :-) Different GCC versions may be needed to match different software compilation requirements. Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/pan.2011.03.09.20.00...@gmail.com
Re: Problema con GCC al compilar
El día 18 de febrero de 2011 00:00, Juan Lavieri jlavi...@gmail.com escribió: Hola Roberto El 17/02/11 16:56, Roberto Quiñones escribió: El día 17 de febrero de 2011 17:05, JulHerjul...@escomposlinux.org escribió: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 El 17/02/11 20:24, Roberto Quiñones escribió: ¿Y ya has hecho el #apt-get -f install ? Si y no tuve existo Por favor desde un terminal y como root ejecuta: #aptitude Debe salirte la interfaz curses de aptitude; en la parte superior debería decirte si hay paquetes rotos (mostrados al lado de una B) En la parte de abajo debería guiarte con las posibles soluciones: pulsando e examinas las sugerencias, pulsando ! ejecutas la primera, . selecciona la próxima sugerencia. Lo tienes documentado en: file:///usr/share/doc/aptitude/html/es/ch02s01s02.html Espero que te ayude Saludos Juan Lavieri ¿Y que error da cuando haces el apt-get -f install? Un saludo JulHer -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1df4MACgkQN4Xu4S1+RIvPIgCdGv1O+vmnMhVqDTcua8pihl9t iJ0An0LCJbHT86cCgf7J+FKRn094QSLC =Wbzh -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4d5d7f83.7060...@escomposlinux.org Mismo error cuando quiero remover con APT. -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4d5de0df.1020...@gmail.com Al final lo solucione de otra manera, como era una maquina virtual y no tenia nada ya que la estoy preparando para instalarle un helpdesk, elimine la maquina virtual y la cree nuevamente puesto que era de muchar urgencia tenerla funcionando. Ahora que esta instalada nuevamente ya no tengo ese problema en particular, pero si tengo el problema que por alguna razon no me esta funcionando la clave del apt ya que según el siguiente link. http://www.debian.org/News/2011/20110209 Desde esa fecha cambio la clave para los repo y que agregue de la siguiente manera. # gpg --keyserver keys.gnupg.net --recv-key 473041FA # gpg -a --export 473041FA | apt-key add - Aun asi no puedo aplicar un apt-get update por que señala que la llave no es la correcta. Saludos Cordiales -- Roberto Quiñones Owner - Service Manager and System ACShell.NET – Internet Services robe...@acshell.net - www.acshell.net San Martin #311 Santiago – CL (Chile) +560981361713 -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/AANLkTinGWJPPmOqXDNpB=awspttsjrq1f-otp1s...@mail.gmail.com
Problema con GCC al compilar
Hola Listeros, Nuevamente recurro a ustedes por que he tenido algunos problemas con un equipo y que les paso a comentar, sucede que instale GCC en mi caso la version es gcc version 4.3.2 (Debian 4.3.2-1.1). Bueno el problema es que intenten compilar un servicio (Unreal). y no puedo por que arroja el siguiente mensaje de error. checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables Viendo esto encuentro que aparentemente no esta reconociendo el GCC o por lo menos la version instalada y debido a ello es que no es capas de compilar. La cosa es que volvi a tras la versión de GCC remove con el apt dicha version e instale una más antigua para probar. Ahora aquí tengo otro problema y es el que me esta dando mayor dolor de cabeza. Cuando Instale GCC (version vieja). 4.2 paso que como tampoco no funciono para compilar, volvi a la 4.3.2-1.1 y además instale el build-essential y el apt posterior a esto quedo mal, ahora no puedo remover ni instalar nada por que en caso de instalar me dice que haga un apt-get -f install para concluir un proceso entiendo y cuando quiero remover algo no deja por que dice que: libc6: Depends: libc-bin (= 2.11.2-6+squeeze1) but it is not going to be installed Recommends: libc6-i686 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). En definitiva deje la cagada y recurro a su ayuda, de ante mano gracias. Saludos Cordiales. -- Roberto Quiñones Owner - Service Manager and System ACShell.NET – Internet Services robe...@acshell.net - www.acshell.net San Martin #311 Santiago – CL (Chile) +560981361713 -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/AANLkTi=8rr8wmphrbvd6sywdx3neas9z_5hhpj7cz...@mail.gmail.com
Re: Problema con GCC al compilar
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 El 17/02/11 19:03, Roberto Quiñones escribió: ahora no puedo remover ni instalar nada por que en caso de instalar me dice que haga un apt-get -f install para concluir un proceso entiendo y cuando quiero remover algo no deja por que dice que: libc6: Depends: libc-bin (= 2.11.2-6+squeeze1) but it is not going to be installed Recommends: libc6-i686 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). En definitiva deje la cagada y recurro a su ayuda, de ante mano gracias. ¿Y ya has hecho el #apt-get -f install ? Un saludo -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1dbncACgkQN4Xu4S1+RIsKTQCgvMSBfhV712lIosZBSM43znGR lb0AoICLSF/TJyvukXUaPiuwfgl53/mg =6nd9 -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4d5d6e77.1000...@escomposlinux.org
Re: Problema con GCC al compilar
¿Y ya has hecho el #apt-get -f install ? Si y no tuve existo, cada vez que quiero hacer algo me sugiere que haga el apt-get -f install y por eso intente remover lo ultimo instalado y es cuado arroja el problema de que tal paquete depende de x paquete. Un saludo Igualmente. -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1dbncACgkQN4Xu4S1+RIsKTQCgvMSBfhV712lIosZBSM43znGR lb0AoICLSF/TJyvukXUaPiuwfgl53/mg =6nd9 -END PGP SIGNATURE- Saludos Cordiales. -- Roberto Quiñones Owner - Service Manager and System ACShell.NET – Internet Services robe...@acshell.net - www.acshell.net San Martin #311 Santiago – CL (Chile) +560981361713 -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/AANLkTinCcRY6L9i4KN4yvofngB=crcduk-tshfsrp...@mail.gmail.com
Re: Problema con GCC al compilar
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 El 17/02/11 20:24, Roberto Quiñones escribió: ¿Y ya has hecho el #apt-get -f install ? Si y no tuve existo ¿Y que error da cuando haces el apt-get -f install? Un saludo JulHer -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1df4MACgkQN4Xu4S1+RIvPIgCdGv1O+vmnMhVqDTcua8pihl9t iJ0An0LCJbHT86cCgf7J+FKRn094QSLC =Wbzh -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4d5d7f83.7060...@escomposlinux.org
Re: Problema con GCC al compilar
El día 17 de febrero de 2011 17:05, JulHer jul...@escomposlinux.org escribió: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 El 17/02/11 20:24, Roberto Quiñones escribió: ¿Y ya has hecho el #apt-get -f install ? Si y no tuve existo ¿Y que error da cuando haces el apt-get -f install? Un saludo JulHer -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1df4MACgkQN4Xu4S1+RIvPIgCdGv1O+vmnMhVqDTcua8pihl9t iJ0An0LCJbHT86cCgf7J+FKRn094QSLC =Wbzh -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4d5d7f83.7060...@escomposlinux.org Mismo error cuando quiero remover con APT. -- Roberto Quiñones Owner - Service Manager and System ACShell.NET – Internet Services robe...@acshell.net - www.acshell.net San Martin #311 Santiago – CL (Chile) +560981361713 -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/AANLkTikAvqvW4Pns2x1w1HZPBPnY=Apvr=+tggwkp...@mail.gmail.com
Re: Problema con GCC al compilar
Hola Roberto El 17/02/11 16:56, Roberto Quiñones escribió: El día 17 de febrero de 2011 17:05, JulHerjul...@escomposlinux.org escribió: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 El 17/02/11 20:24, Roberto Quiñones escribió: ¿Y ya has hecho el #apt-get -f install ? Si y no tuve existo Por favor desde un terminal y como root ejecuta: #aptitude Debe salirte la interfaz curses de aptitude; en la parte superior debería decirte si hay paquetes rotos (mostrados al lado de una B) En la parte de abajo debería guiarte con las posibles soluciones: pulsando e examinas las sugerencias, pulsando ! ejecutas la primera, . selecciona la próxima sugerencia. Lo tienes documentado en: file:///usr/share/doc/aptitude/html/es/ch02s01s02.html Espero que te ayude Saludos Juan Lavieri ¿Y que error da cuando haces el apt-get -f install? Un saludo JulHer -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1df4MACgkQN4Xu4S1+RIvPIgCdGv1O+vmnMhVqDTcua8pihl9t iJ0An0LCJbHT86cCgf7J+FKRn094QSLC =Wbzh -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4d5d7f83.7060...@escomposlinux.org Mismo error cuando quiero remover con APT. -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4d5de0df.1020...@gmail.com
gcc-4.4 building from the source
Hello! I'm trying to build gcc-4.4 on Debian Squeeze and have no success. On my ppc machine i got a this error: configure:2415: /home/axet/source/cross-toolchain/gcc-4.4/build/./gcc/xgcc -B/home/axet/source/cross-toolchain/gcc-4.4/build/./gcc/ -B/usr/i486-linux-gnu/bin/ -B/usr/i486-linux-gnu/lib64/ -isystem /usr/i486-linux-gnu/include -isystem /usr/i486-linux-gnu/sys-include -m64 -o conftest -g -O2conftest.c 5 Assembler messages: Fatal error: No compiled in support for x86_64 On my vps / virtual machine it fail always different, but mostly on File not found: mv stamps/07-install-stamp stamps/07-install-stamp-tmp rm -rf debian/lib64gcc1-i386-cross debian/lib64gcc1-dbg-i386-cross dh_installdirs -plib64gcc1-i386-cross usr/share/doc/lib64gcc1-i386-cross usr/i486-linux-gnu/lib64 mv debian/tmp/usr/i486-linux-gnu/lib64/libgcc_s.so.1 debian/lib64gcc1-i386-cross/usr/i486-linux-gnu/lib64/. mv: cannot stat `debian/tmp/usr/i486-linux-gnu/lib64/libgcc_s.so.1': No such file or directory make[1]: *** [stamps/08-binary-stamp-lib64gcc] Error 1 As initial instruction (how to bulid) i'v toked from: http://wiki.debian.org/BuildingCrossCompilers For more details please refer to the forum: http://forums.debian.net/viewtopic.php?f=10t=59989p=350009 -- AK
Re: alternatives for gcc
On 2011-02-02 03:01 +0100, Andrew Reid wrote: On Tuesday 01 February 2011 20:11:31 Joe Riel wrote: Why are there no alternatives, configurable with update-alternatives, for gcc? Seems like I should be able to configure whether /usr/bin/gcc is linked to gcc-4.3, gcc-4.4, etc. Of course I can just set the link manually (which I do), but ... See /usr/share/doc/gcc/README.Debian why gcc is not managed via alternatives. Can't you set up new alterantives within the update-alternatives mechanism? I have never done this, but it was one of the options I was considering a while ago to control which version of an app was the default -- as it turned out, I was able to use the stow mechanism to good effect, because it was a non-packaged app, so I only got as far as reading the update-alterantives documentation. The man-page says that the --install option sets up a new batch of alternatives. I don't know if this will interact constructively with the package manager. It will break very badly when you install/upgrade the gcc package which sets up the compiler links itself. Therefore, don't do that and use CC=gcc-4.3 when necessary. Sven -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87pqraq287@turtle.gmx.de
Re: alternatives for gcc
Joe Riel wrote: update-alternatives --install as part of their postinstall routine. is not that bad idea -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/iibhol$ks8$2...@dough.gmane.org
Re: alternatives for gcc
On Wed, 02 Feb 2011 09:18:00 +0100 Sven Joachim svenj...@gmx.de wrote: On 2011-02-02 03:01 +0100, Andrew Reid wrote: On Tuesday 01 February 2011 20:11:31 Joe Riel wrote: Why are there no alternatives, configurable with update-alternatives, for gcc? Seems like I should be able to configure whether /usr/bin/gcc is linked to gcc-4.3, gcc-4.4, etc. Of course I can just set the link manually (which I do), but ... See /usr/share/doc/gcc/README.Debian why gcc is not managed via alternatives. Thanks for pointing me here. -- Joe Riel -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110202073203.2e563728@gauss
alternatives for gcc
Why are there no alternatives, configurable with update-alternatives, for gcc? Seems like I should be able to configure whether /usr/bin/gcc is linked to gcc-4.3, gcc-4.4, etc. Of course I can just set the link manually (which I do), but ... -- Joe Riel -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110201171131.491f2628@gauss
Re: alternatives for gcc
On Tuesday 01 February 2011 20:11:31 Joe Riel wrote: Why are there no alternatives, configurable with update-alternatives, for gcc? Seems like I should be able to configure whether /usr/bin/gcc is linked to gcc-4.3, gcc-4.4, etc. Of course I can just set the link manually (which I do), but ... Can't you set up new alterantives within the update-alternatives mechanism? I have never done this, but it was one of the options I was considering a while ago to control which version of an app was the default -- as it turned out, I was able to use the stow mechanism to good effect, because it was a non-packaged app, so I only got as far as reading the update-alterantives documentation. The man-page says that the --install option sets up a new batch of alternatives. I don't know if this will interact constructively with the package manager. -- A. -- Andrew Reid / rei...@bellatlantic.net -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201102012101.13639.rei...@bellatlantic.net
Re: alternatives for gcc
Joe Riel wrote: Why are there no alternatives, configurable with update-alternatives, for gcc? Seems like I should be able to configure whether /usr/bin/gcc is linked to gcc-4.3, gcc-4.4, etc. Of course I can just set the link manually (which I do), but ... every normal automake or cmake accepts the CC,CXX, CPP or equivalents to manage this. Especially in later releases of gcc this seems to be working very well, so I'm not sure if it's really necessary to do so. Let me know if you are able to update it with update-alternatives and how, because I've been asking myself how this could be setup as default in the past. regards -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/iiaq7i$6ck$1...@dough.gmane.org
Re: alternatives for gcc
On Tue, 01 Feb 2011 21:01:13 -0500 Andrew Reid rei...@bellatlantic.net wrote: On Tuesday 01 February 2011 20:11:31 Joe Riel wrote: Why are there no alternatives, configurable with update-alternatives, for gcc? Seems like I should be able to configure whether /usr/bin/gcc is linked to gcc-4.3, gcc-4.4, etc. Of course I can just set the link manually (which I do), but ... Can't you set up new alterantives within the update-alternatives mechanism? I have never done this, but it was one of the options I was considering a while ago to control which version of an app was the default -- as it turned out, I was able to use the stow mechanism to good effect, because it was a non-packaged app, so I only got as far as reading the update-alterantives documentation. The man-page says that the --install option sets up a new batch of alternatives. I don't know if this will interact constructively with the package manager. -- A. The following worked: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 60 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.3 50 Then, to configure 4.3 as the default, I did sudo update-alternatives --config gcc and selected 4.3. The packages that install gcc-4.3 and gcc-4.4 should possibly call update-alternatives --install as part of their postinstall routine. -- Joe Riel -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110201220515.1f365b41@gauss
Re: alternatives for gcc
On Wed, 02 Feb 2011 06:31:30 +0100 deloptes delop...@yahoo.com wrote: Joe Riel wrote: Why are there no alternatives, configurable with update-alternatives, for gcc? Seems like I should be able to configure whether /usr/bin/gcc is linked to gcc-4.3, gcc-4.4, etc. Of course I can just set the link manually (which I do), but ... every normal automake or cmake accepts the CC,CXX, CPP or equivalents to manage this. Especially in later releases of gcc this seems to be working very well, so I'm not sure if it's really necessary to do so. Let me know if you are able to update it with update-alternatives and how, because I've been asking myself how this could be setup as default in the past. The problem I ran into was that Matlab R2010b works with gcc 4.3 but not 4.4 and I didn't know how to configure Matlab to use 4.3. However, I now see that that can be solved by editing ~/.matlab/R2010b/mexopts.sh, changing CC=gcc to CC=gcc-4.3 So I didn't need the use the debian alternatives after all. But see my other response for how I did it. As you suggest, this is probably the typical case, which explains why alternatives are not used with gcc. -- Joe Riel -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110201221544.440805e1@gauss
Re: What are the dependencies of the gcc-4.2-base package?
On 2010-12-13 02:55 +0100, Frank Church wrote: I was paring down my installation and the command for gcc-4.2-base more or less threatened to wipe out everything on the server. apt-get purge gcc-4.2-base Is that the norm, or is it due to a corrupted package database? My hunch is that the libgcc1 package (required by libc6, among others) still depends on gcc-4.2-base, which means that your system is not up to date. What does apt-cache policy libgcc1 print? Sven -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87vd2y59sx@turtle.gmx.de
Re: What are the dependencies of the gcc-4.2-base package?
On 13 December 2010 08:58, Sven Joachim svenj...@gmx.de wrote: On 2010-12-13 02:55 +0100, Frank Church wrote: I was paring down my installation and the command for gcc-4.2-base more or less threatened to wipe out everything on the server. apt-get purge gcc-4.2-base Is that the norm, or is it due to a corrupted package database? My hunch is that the libgcc1 package (required by libc6, among others) still depends on gcc-4.2-base, which means that your system is not up to date. What does apt-cache policy libgcc1 print? Sven == r...@heron01:/usr/src# apt-cache policy libgcc1 libgcc1: Installed: 1:4.2.4-1ubuntu4 Candidate: 1:4.2.4-1ubuntu4 Version table: *** 1:4.2.4-1ubuntu4 0 500 http://www.ftp.uni-erlangen.de hardy-updates/main Packages 100 /var/lib/dpkg/status 1:4.2.4-1ubuntu3 0 500 http://security.ubuntu.com hardy-security/main Packages 1:4.2.3-2ubuntu7 0 500 http://www.ftp.uni-erlangen.de hardy/main Packages I thought gcc name referred to just the compiler, not on libraries created by the compiler. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87vd2y59sx@turtle.gmx.de -- Frank Church === http://devblog.brahmancreations.com
Re: What are the dependencies of the gcc-4.2-base package?
On 2010-12-13 10:47 +0100, Frank Church wrote: == r...@heron01:/usr/src# apt-cache policy libgcc1 libgcc1: Installed: 1:4.2.4-1ubuntu4 Candidate: 1:4.2.4-1ubuntu4 Version table: *** 1:4.2.4-1ubuntu4 0 500 http://www.ftp.uni-erlangen.de hardy-updates/main Packages 100 /var/lib/dpkg/status 1:4.2.4-1ubuntu3 0 500 http://security.ubuntu.com hardy-security/main Packages 1:4.2.3-2ubuntu7 0 500 http://www.ftp.uni-erlangen.de hardy/main Packages Please ask on Ubuntu lists for help next time. I thought gcc name referred to just the compiler, not on libraries created by the compiler. The libgcc1 package is built from the gcc sources. Sven -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87pqt6577d@turtle.gmx.de
Re: What are the dependencies of the gcc-4.2-base package?
On 13 December 2010 09:54, Sven Joachim svenj...@gmx.de wrote: On 2010-12-13 10:47 +0100, Frank Church wrote: == r...@heron01:/usr/src# apt-cache policy libgcc1 libgcc1: Installed: 1:4.2.4-1ubuntu4 Candidate: 1:4.2.4-1ubuntu4 Version table: *** 1:4.2.4-1ubuntu4 0 500 http://www.ftp.uni-erlangen.de hardy-updates/main Packages 100 /var/lib/dpkg/status 1:4.2.4-1ubuntu3 0 500 http://security.ubuntu.com hardy-security/main Packages 1:4.2.3-2ubuntu7 0 500 http://www.ftp.uni-erlangen.de hardy/main Packages Please ask on Ubuntu lists for help next time. I thought gcc name referred to just the compiler, not on libraries created by the compiler. The libgcc1 package is built from the gcc sources. Sven Aren't ubuntu questions welcome here? I thought that at this kind of low level Ubuntu and Debian are the same. Many Debian packages work on ubuntu unchanged. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87pqt6577d@turtle.gmx.de -- Frank Church === http://devblog.brahmancreations.com
Re: What are the dependencies of the gcc-4.2-base package?
On 2010-12-13 11:50 +0100, Frank Church wrote: Aren't ubuntu questions welcome here? Depends on the type of question. In any case, please mention that you are using Ubuntu, and which distribution. I thought that at this kind of low level Ubuntu and Debian are the same. Except that you would not have this problem with gcc-4.2-base in any current Debian distribution. Many Debian packages work on ubuntu unchanged. And many others don't. Worst of all, some packages may be unchanged but don't work due to changes in _other_ packages that Ubuntu deploys. This mostly affects packages in universe which are imported from Debian and built automatically, but might never have been tested by anyone in Ubuntu. Sven -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87bp4q53va@turtle.gmx.de
Re: What are the dependencies of the gcc-4.2-base package?
On Mon, Dec 13, 2010 at 10:50:16AM +, Frank Church wrote: Aren't ubuntu questions welcome here? What is wrong with the ubuntu-user support mailing lists? -- Religion is excellent stuff for keeping common people quiet. -- Napoleon Bonaparte -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20101213124820.ga22...@fischer
Re: What are the dependencies of the gcc-4.2-base package?
On Lu, 13 dec 10, 10:50:16, Frank Church wrote: Please ask on Ubuntu lists for help next time. Aren't ubuntu questions welcome here? Please don't take it the wrong way, it's not that we don't want to help Ubuntu users[1][2], it's just that some of our advices will not work, be completely wrong or even dangerous for an Ubuntu system. [1] actually it's quite the opposite, many Ubuntu users solved their problems on debian-user, but it is important to mention you use Ubuntu, preferably in the Subject, so that the people using it can chime in, and all others can add proper warnings for their suggestions or ignore if not interested. [2] there have been occasional complaints about Ubuntu questions on debian-user, even in cases were they were properly marked as such, but I don't think it applies to all or even most of the subscribers. Kind regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic signature.asc Description: Digital signature
Re: What are the dependencies of the gcc-4.2-base package?
On Mon, 13 Dec 2010 01:55:37 +, Frank Church wrote: I was paring down my installation and the command for gcc-4.2-base more or less threatened to wipe out everything on the server. apt-get purge gcc-4.2-base Wow, gcc is an important package on every linux system: s...@stt008:~$ apt-cache show gcc-4.2-base | grep -i priority Priority: required s...@stt008:~$ apt-cache rdepends gcc-4.2-base gcc-4.2-base Reverse Depends: libstdc++6-4.2-pic libstdc++6-4.2-doc libstdc++6-4.2-dev libstdc++6-4.2-dbg libmudflap0-4.2-dev libgfortran2 libgfortran2-dbg lib32stdc++6-4.2-dbg lib32gfortran2 lib32gfortran2-dbg gobjc-4.2 gobjc-4.2-multilib gobjc++-4.2 gobjc++-4.2-multilib gfortran-4.2 gfortran-4.2-multilib gcc-4.2 gcc-4.2 gcc-4.2-source gcc-4.2-multilib gcc-4.2-locales g++-4.2 g++-4.2-multilib cpp-4.2 Is that the norm, or is it due to a corrupted package database? (...) After this operation, 643MB disk space will be freed. You are about to do something potentially harmful. To continue type in the phrase 'Yes, do as I say!' Is the norm for base packages, like this. At least the package manager is smart enough to warn you against the operation :-) Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/pan.2010.12.13.14.33...@gmail.com
Re: What are the dependencies of the gcc-4.2-base package?
On Lu, 13 dec 10, 14:33:39, Camaleón wrote: Is the norm for base packages, like this. At least the package manager is smart enough to warn you against the operation :-) AFAIK this is warning is only done for packages with Essential: yes. Regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic signature.asc Description: Digital signature
Re: What are the dependencies of the gcc-4.2-base package?
On Mon, 13 Dec 2010 16:55:19 +0200, Andrei Popescu wrote: On Lu, 13 dec 10, 14:33:39, Camaleón wrote: Is the norm for base packages, like this. At least the package manager is smart enough to warn you against the operation :-) AFAIK this is warning is only done for packages with Essential: yes. Whatever :-P The fact is that by removing gcc-4.2-base it triggers the uninstall of those essential packages which make the package manager to ring the bell. But curious is that some of those packages are not essential but are selected to be unistalled as they were... from OP's log, apt and das, for instance :-? Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/pan.2010.12.13.16.49...@gmail.com
Re: What are the dependencies of the gcc-4.2-base package?
On Lu, 13 dec 10, 16:49:33, Camaleón wrote: But curious is that some of those packages are not essential but are selected to be unistalled as they were... from OP's log, apt and das, for instance :-? Don't forget OP is running Ubuntu ;) Regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic signature.asc Description: Digital signature
What are the dependencies of the gcc-4.2-base package?
I was paring down my installation and the command for gcc-4.2-base more or less threatened to wipe out everything on the server. apt-get purge gcc-4.2-base Is that the norm, or is it due to a corrupted package database? r...@sys-1275:~# apt-get purge gcc-4.2-base Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libdns35 linux-libc-dev autotools-dev openvpn-blacklist Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libdns35 The following packages will be REMOVED: adduser* ajaxterm* apache2* apache2-mpm-prefork* apache2-utils* apache2.2-common* apt* apt-show-versions* apt-utils* aptitude* base-files* base-passwd* bash* belocs-locales-bin* bind9* binutils* bsdmainutils* bsdutils* build-essential* bzip2* comerr-dev* console-setup* console-terminus* console-tools* coreutils* cpio* cpp* cpp-4.2* cron* curl* dash* debconf* debconf-i18n* debianutils* debootstrap* defoma* dhcp3-client* dhcp3-common* dhcp3-server* diff* dmidecode* dpkg* dpkg-dev* e2fslibs* e2fsprogs* eject* ethtool* fail2ban* file* findutils* fontconfig* fontconfig-config* g++* g++-4.2* gcc* gcc-4.2* gcc-4.2-base* gettext-base* gnupg* gpgv* grep* groff-base* gzip* hostname* ifupdown* initramfs-tools* initscripts* iproute* iptables* iputils-ping* klogd* laptop-detect* less* libacl1* libapache2-mod-php5* libapr1* libaprutil1* libapt-pkg-perl* libatm1* libattr1* libaudio2* libauthen-pam-perl* libbind9-30* libblkid1* libbz2-1.0* libc6* libc6-dev* libc6-i686* libcap1* libck-connector0* libcomerr2* libconsole* libcupsys2* libcurl3* libcurl3-gnutls* libcwidget3* libdb4.6* libdbd-mysql-perl* libdbd-pg-perl* libdbi-perl* libdbus-1-3* libdevmapper1.02.1* libedit2* libexpat1* libfontconfig1* libfreetype6* libfribidi0* libgcc1* libgcrypt11* libgdbm3* libgnutls13* libgomp1* libgpg-error0* libice6* libidn11* libio-pty-perl* libisc35* libisccc30* libisccfg30* libiw29* libjpeg62* libkadm55* libkeyutils1* libkrb5-dev* libkrb53* liblcms1* libldap-2.4-2* liblocale-gettext-perl* libltdl3* libltdl3-dev* liblwres30* liblzo2-2* libmagic1* libmd5-perl* libmng1* libmyodbc* libmysqlclient15-dev* libmysqlclient15off* libncurses5* libncurses5-dev* libncursesw5* libnet-daemon-perl* libnet-ssleay-perl* libnewt0.52* libodbcinstq1c2* libopencdk10* libossp-uuid15* libpam-modules* libpam-smbpass* libpam0g* libpcap0.8* libpcre3* libplrpc-perl* libpng12-0* libpopt0* libpq-dev* libpq5* libqt3-mt* libreadline5* libsamplerate0* libsasl2-2* libsasl2-modules* libselinux1* libsepol1* libsigc++-2.0-0c2a* libslang2* libsm6* libsox0* libsqlite0* libsqlite3-0* libss2* libssl-dev* libssl0.9.8* libstdc++6* libstdc++6-4.2-dev* libsysfs2* libtasn1-3* libtext-charwidth-perl* libtext-iconv-perl* libtext-wrapi18n-perl* libtimedate-perl* libtool* libusb-0.1-4* libuuid1* libvolume-id0* libwrap0* libx11-6* libx11-data* libxau6* libxcb-xlib0* libxcb1* libxcursor1* libxdmcp6* libxext6* libxfixes3* libxft2* libxi6* libxinerama1* libxml2* libxrandr2* libxrender1* libxslt1.1* libxt6* locales* login* logrotate* lsb-base* lsb-release* lynx* lzma* make* makedev* man-db* mawk* mii-diag* mktemp* module-init-tools* mount* mysql-client* mysql-client-5.0* mysql-server* mysql-server-5.0* nano* ncurses-base* ncurses-bin* net-tools* netbase* netcat* netcat-traditional* ntpdate* odbc-postgresql* odbcinst1debian1* openssh-client* openssh-server* openssl* openssl-blacklist* openvpn* passwd* patch* pciutils* pcmciautils* perl* perl-base* perl-modules* php5-cgi* php5-cli* php5-common* php5-mysql* php5-pgsql* postgresql* postgresql-8.3* postgresql-client* postgresql-client-8.3* postgresql-client-8.4* postgresql-client-common* postgresql-common* postgresql-contrib* postgresql-contrib-8.3* postgresql-server-dev-8.3* procps* psmisc* python* python-central* python-minimal* python-support* python2.5* python2.5-minimal* resolvconf* samba* samba-common* sed* smbclient* smbfs* sox* sqlite* ssh* ssl-cert* startup-tasks* sudo* sysklogd* system-services* sysvutils* tar* tasksel* tasksel-data* tcpd* telnet* traceroute* ttf-dejavu* ttf-dejavu-core* ttf-dejavu-extra* tzdata* ubuntu-keyring* ubuntu-minimal* ucf* udev* unixodbc* unixodbc-dev* update-inetd* upstart* upstart-compat-sysv* upstart-logd* usbutils* util-linux* util-linux-locales* uuid-runtime* vim-common* vim-tiny* webmin* wget* whiptail* winbind* wireless-tools* wpasupplicant* x11-common* zlib1g* zlib1g-dev* The following packages will be upgraded: libdns35 WARNING: The following essential packages will be removed. This should NOT be done unless you know exactly what you are doing! apt libc6 (due to apt) libgcc1 (due to apt) libstdc++6 (due to apt) base-files base-passwd (due to base-files) libpam-modules (due to base-files) bash debianutils (due to bash) libncurses5 (due to bash) bsdutils coreutils libacl1 (due to coreutils) libselinux1 (due to coreutils) dash mktemp (due to debianutils) diff dpkg lzma (due to dpkg
Re: What are the dependencies of the gcc-4.2-base package?
- Original message - I was paring down my installation and the command for gcc-4.2-base more or less threatened to wipe out everything on the server. apt-get purge gcc-4.2-base http://packages.debian.org/lenny/gcc-4.2-base Is that the norm, or is it due to a corrupted package database? i think its what it should do The following packages were automatically installed and are no longer required: libdns35 linux-libc-dev autotools-dev openvpn-blacklist The following extra packages will be installed: libdns35 The following packages will be REMOVED: adduser* ajaxterm* apache2* apache2-mpm-prefork* apache2-utils* apache2.2-common* apt* apt-show-versions* apt-utils* aptitude* base-files* base-passwd* bash* belocs-locales-bin* bind9* binutils* bsdmainutils* bsdutils* build-essential* bzip2* comerr-dev* console-setup* console-terminus* console-tools* coreutils* cpio* cpp* cpp-4.2* cron* curl* dash* debconf* debconf-i18n* debianutils* debootstrap* defoma* dhcp3-client* dhcp3-common* dhcp3-server* diff* dmidecode* dpkg* dpkg-dev* e2fslibs* e2fsprogs* eject* ethtool* fail2ban* file* findutils* fontconfig* fontconfig-config* g++* g++-4.2* gcc* gcc-4.2* gcc-4.2-base* gettext-base* gnupg* gpgv* grep* groff-base* gzip* hostname* ifupdown* initramfs-tools* initscripts* iproute* iptables* iputils-ping* klogd* laptop-detect* less* libacl1* libapache2-mod-php5* libapr1* libaprutil1* libapt-pkg-perl* libatm1* libattr1* libaudio2* libauthen-pam-perl* libbind9-30* libblkid1* libbz2-1.0* libc6* I think that ones quite essentiell GNU C Library: Shared libraries Contains the standard libraries that are used by nearly all programs on the system. This package includes shared versions of the standard C library and the standard math library, as well as many others. http://packages.debian.org/lenny/libc6 libc6-dev* libc6-i686* libcap1* libck-connector0* libcomerr2* libconsole* libcupsys2* libcurl3* libcurl3-gnutls* libcwidget3* libdb4.6* libdbd-mysql-perl* libdbd-pg-perl* libdbi-perl* libdbus-1-3* libdevmapper1.02.1* libedit2* libexpat1* libfontconfig1* libfreetype6* libfribidi0* libgcc1* libgcrypt11* libgdbm3* libgnutls13* libgomp1* libgpg-error0* libice6* libidn11* libio-pty-perl* libisc35* libisccc30* libisccfg30* libiw29* libjpeg62* libkadm55* libkeyutils1* libkrb5-dev* libkrb53* liblcms1* libldap-2.4-2* liblocale-gettext-perl* libltdl3* libltdl3-dev* liblwres30* liblzo2-2* libmagic1* libmd5-perl* libmng1* libmyodbc* libmysqlclient15-dev* libmysqlclient15off* libncurses5* libncurses5-dev* libncursesw5* libnet-daemon-perl* libnet-ssleay-perl* libnewt0.52* libodbcinstq1c2* libopencdk10* libossp-uuid15* libpam-modules* libpam-smbpass* libpam0g* libpcap0.8* libpcre3* libplrpc-perl* libpng12-0* libpopt0* libpq-dev* libpq5* libqt3-mt* libreadline5* libsamplerate0* libsasl2-2* libsasl2-modules* libselinux1* libsepol1* libsigc++-2.0-0c2a* libslang2* libsm6* libsox0* libsqlite0* libsqlite3-0* libss2* libssl-dev* libssl0.9.8* libstdc++6* libstdc++6-4.2-dev* libsysfs2* libtasn1-3* libtext-charwidth-perl* libtext-iconv-perl* libtext-wrapi18n-perl* libtimedate-perl* libtool* libusb-0.1-4* libuuid1* libvolume-id0* libwrap0* libx11-6* libx11-data* libxau6* libxcb-xlib0* libxcb1* libxcursor1* libxdmcp6* libxext6* libxfixes3* libxft2* libxi6* libxinerama1* libxml2* libxrandr2* libxrender1* libxslt1.1* libxt6* locales* login* logrotate* lsb-base* lsb-release* lynx* lzma* make* makedev* man-db* mawk* mii-diag* mktemp* module-init-tools* mount* mysql-client* mysql-client-5.0* mysql-server* mysql-server-5.0* nano* ncurses-base* ncurses-bin* net-tools* netbase* netcat* netcat-traditional* ntpdate* odbc-postgresql* odbcinst1debian1* openssh-client* openssh-server* openssl* openssl-blacklist* openvpn* passwd* patch* pciutils* pcmciautils* perl* perl-base* perl-modules* php5-cgi* php5-cli* php5-common* php5-mysql* php5-pgsql* postgresql* postgresql-8.3* postgresql-client* postgresql-client-8.3* postgresql-client-8.4* postgresql-client-common* postgresql-common* postgresql-contrib* postgresql-contrib-8.3* postgresql-server-dev-8.3* procps* psmisc* python* python-central* python-minimal* python-support* python2.5* python2.5-minimal* resolvconf* samba* samba-common* sed* smbclient* smbfs* sox* sqlite* ssh* ssl-cert* startup-tasks* sudo* sysklogd* system-services* sysvutils* tar* tasksel* tasksel-data* tcpd* telnet* traceroute* ttf-dejavu* ttf-dejavu-core* ttf-dejavu-extra* tzdata* ubuntu-keyring* ubuntu-minimal* ucf* udev* unixodbc* unixodbc-dev* update-inetd* upstart* upstart-compat-sysv* upstart-logd* usbutils* util-linux* util-linux-locales* uuid-runtime* vim-common* vim-tiny* webmin* wget* whiptail* winbind* wireless-tools* wpasupplicant* x11-common* zlib1g* zlib1g-dev* The following packages will be upgraded: libdns35 WARNING: The following essential packages will be removed. This should NOT be done unless you know exactly what you are doing! apt libc6
Re: What are the dependencies of the gcc-4.2-base package?
On Mon, Dec 13, 2010 at 12:20 AM, Simon Hollenbach ionpowe...@googlemail.com wrote: - Original message - I was paring down my installation and the command for gcc-4.2-base more or less threatened to wipe out everything on the server. apt-get purge gcc-4.2-base http://packages.debian.org/lenny/gcc-4.2-base Is that the norm, or is it due to a corrupted package database? i think its what it should do The following packages were automatically installed and are no longer required: libdns35 linux-libc-dev autotools-dev openvpn-blacklist The following extra packages will be installed: libdns35 The following packages will be REMOVED: adduser* ajaxterm* apache2* apache2-mpm-prefork* apache2-utils* apache2.2-common* apt* apt-show-versions* apt-utils* aptitude* base-files* base-passwd* bash* belocs-locales-bin* bind9* binutils* bsdmainutils* bsdutils* build-essential* bzip2* comerr-dev* console-setup* console-terminus* console-tools* coreutils* cpio* cpp* cpp-4.2* cron* curl* dash* debconf* debconf-i18n* debianutils* debootstrap* defoma* dhcp3-client* dhcp3-common* dhcp3-server* diff* dmidecode* dpkg* dpkg-dev* e2fslibs* e2fsprogs* eject* ethtool* fail2ban* file* findutils* fontconfig* fontconfig-config* g++* g++-4.2* gcc* gcc-4.2* gcc-4.2-base* gettext-base* gnupg* gpgv* grep* groff-base* gzip* hostname* ifupdown* initramfs-tools* initscripts* iproute* iptables* iputils-ping* klogd* laptop-detect* less* libacl1* libapache2-mod-php5* libapr1* libaprutil1* libapt-pkg-perl* libatm1* libattr1* libaudio2* libauthen-pam-perl* libbind9-30* libblkid1* libbz2-1.0* libc6* I think that ones quite essentiell GNU C Library: Shared libraries Contains the standard libraries that are used by nearly all programs on the system. This package includes shared versions of the standard C library and the standard math library, as well as many others. http://packages.debian.org/lenny/libc6 gcc != libc or glibc (as it's currently known) gcc == gnu c compiler they're also separate packages under debian. i don't know what's up with the purge. it should just mess with things like build-essentials and possibly things gotten through 'apt-get source'. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlkti=q_rsbu9_oogexujrhybx_0u9qefnqlx9iz...@mail.gmail.com
Alias definition [Was: Re: how to configure gcc]
On 2010-09-29, David Jardine da...@jardine.de wrote: On Wed, Sep 29, 2010 at 06:46:20PM +0100, abdelkader belahcene wrote: hi, by default I have to add option -lm to the command gcc -lm file.c when I use math functions. Where can I configure gcc to add it to the default gcc, after what I don't need the option -lm , just gcc file.c thanks for help You could add alias gcc='gcc -lm ' (note the last space) What's the significance of the last space? to /etc/profile nitpick I would put the alias definition in /etc/bash.bashrc or ~/.bashrc instead. It's a shell customisation, not an environment modification. /nitpick -- Liam O'Toole Cork, Ireland -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/slrnia8jaa.398.liam.p.oto...@dipsy.tubbynet
Re: Alias definition [Was: Re: how to configure gcc]
On Thu, Sep 30, 2010 at 08:41:46AM +, Liam O'Toole wrote: On 2010-09-29, David Jardine da...@jardine.de wrote: [...] You could add alias gcc='gcc -lm ' (note the last space) What's the significance of the last space? This, as far as I remember, allows the user to continue the command on the command line. to /etc/profile nitpick I would put the alias definition in /etc/bash.bashrc or ~/.bashrc instead. It's a shell customisation, not an environment modification. /nitpick I'm sure you're right. :) Cheers, David -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100930102905.ga2...@gennes.augarten
Re: how to configure gcc
On Thu, 30 Sep 2010 09:20:36 +0530, Anand Sivaram aspn...@gmail.com said: AS On Thu, Sep 30, 2010 at 09:12, Boyd Stephen Smith Jr. wrote: B On Wednesday 29 September 2010 15:18:46 abdelkader belahcene wrote: A yes but normally gcc should be configured, where is the config file, B It's in the same place as the config file for ls, cp, and rm. (There B isn't one.) This is where the BSD version of make has an advantage over GNU make. It checks for system-wide defaults in the file /etc/make.conf: me% uname -sr FreeBSD 6.2-RELEASE me% cat /etc/make.conf CPUTYPE?=pentium4 CFLAGS= -O2 -pipe -funroll-loops COPTFLAGS= -O -pipe AS I think using an alias 'gcc -lm' is not a good idea. It may be looking AS easier for this particular C file, but '-lm' would be linked always for AS even in the case of hello_world.c which is really unnecessary. The additional linking won't do much besides take an extra millisecond of time and add around 25 bytes to your binary; that's what I saw when comparing on a Deadrat Enterprise system. Build the executable both ways, run nm and chop the first 10 characters to see for yourself. The results should be identical. You're right about the alias -- it works fine right up to the part where someone changes their login shell or alias setup. It's safer to use a script as a front-end, so you can check for environment variables in a global or user-specific config file: #!/bin/sh # front-end for make with preset preferences. export PATH=/usr/local/bin:/bin:/sbin:/usr/sbin:/usr/bin cbase='make.conf' for cfg in /etc/$cbase $HOME/etc/$cbase; do test -f $cfg . $cfg done exec /usr/bin/make ${1+$@} # Use full path just to be safe... exit 1 Under Linux, the config file looks like this: me% cat $HOME/etc/make.conf # Default values for make. export CC=gcc export CFLAGS=-O2 -pipe -funroll-loops export COPTFLAGS=-O -pipe Comparison: me% cat Makefile hello: hello.o hello.o: hello.c me% cat hello.c #include stdio.h #include stdlib.h main() { printf(hello, world\n); #ifdef unix printf(unix defined\n); #endif exit(0); } me% make cc -c -o hello.o hello.c cc hello.o -o hello me% ./make # using the frontend script gcc -O2 -pipe -funroll-loops -c -o hello.o hello.c gcc hello.o -o hello -- Karl Vogel I don't speak for the USAF or my company Beauty is only a light switch away. --Perkins Library, Duke University, Durham, North Carolina -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100930192027.79c5ab...@kev.msw.wpafb.af.mil
how to configure gcc
hi, by default I have to add option -lm to the command gcc -lm file.c when I use math functions. Where can I configure gcc to add it to the default gcc, after what I don't need the option -lm , just gcc file.c thanks for help -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1285782380.1853.26.ca...@belahome.bela.home
Fwd: how to configure gcc
-- Forwarded message -- From: abdelkader belahcene abelahc...@gmail.com Date: Wed, Sep 29, 2010 at 23:16 Subject: how to configure gcc To: debian-user@lists.debian.org hi, by default I have to add option -lm to the command gcc -lm file.c when I use math functions. Where can I configure gcc to add it to the default gcc, after what I don't need the option -lm , just gcc file.c thanks for help -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1285782380.1853.26.ca...@belahome.bela.home In fact all -llibrary name is getting passed to the linker ld. The best way to avoid that is to write a makefile to use that.
Re: how to configure gcc
On 9/29/2010 12:46 PM, abdelkader belahcene wrote: hi, by default I have to add option -lm to the command gcc -lm file.c when I use math functions. Where can I configure gcc to add it to the default gcc, after what I don't need the option -lm , just gcc file.c thanks for help You can pass a filename of a file containing your command line options using @file, where file is the filename, but if you type that every time, you aren't gaining anything. That method is really for cases when there is a long list of options, or they are complicated and easy to get wrong. Just put everything in a makefile, and call make. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4ca38804.5010...@allums.com
Re: how to configure gcc
On Wed, Sep 29, 2010 at 06:46:20PM +0100, abdelkader belahcene wrote: hi, by default I have to add option -lm to the command gcc -lm file.c when I use math functions. Where can I configure gcc to add it to the default gcc, after what I don't need the option -lm , just gcc file.c thanks for help You could add alias gcc='gcc -lm ' (note the last space) to /etc/profile Cheers, David -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100929193157.ga1...@gennes.augarten
Re: how to configure gcc
It's called a makefile. http://www.cs.utah.edu/dept/old/texinfo/make/make_toc.html On 9/29/2010 12:46 PM, abdelkader belahcene wrote: hi, by default I have to add option -lm to the command gcc -lm file.c when I use math functions. Where can I configure gcc to add it to the default gcc, after what I don't need the option -lm , just gcc file.c thanks for help -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4ca3992a.8000...@gmail.com
Re: how to configure gcc
On 9/29/2010 2:31 PM, David Jardine wrote: On Wed, Sep 29, 2010 at 06:46:20PM +0100, abdelkader belahcene wrote: hi, by default I have to add option -lm to the command gcc -lm file.c when I use math functions. Where can I configure gcc to add it to the default gcc, after what I don't need the option -lm , just gcc file.c thanks for help You could add alias gcc='gcc -lm ' (note the last space) to /etc/profile Good idea. There may be an existing alias for gcc, then he might want to edit it carefully, rather than simply adding the line. :) -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4ca39e4b.9000...@allums.com
Re: Re: how to configure gcc
Thanks for answer yes but normally gcc should be configured, where is the config file, for example sshd_config is a config file for ssh, vsftpd.conf for ftp server and so on .., so where is the config file for gcc, just this I couldn't find it. thanks a lot regards -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1285791526.1853.29.ca...@belahome.bela.home
RE: how to configure gcc
Original Message From: abelahc...@gmail.com To: debian-user@lists.debian.org Subject: RE: how to configure gcc Date: Wed, 29 Sep 2010 18:46:20 +0100 hi, by default I have to add option -lm to the command gcc -lm file.c when I use math functions. Where can I configure gcc to add it to the default gcc, after what I don't need the option -lm , just gcc file.c thanks for help just do an alias that includes the -lm link to the math lib Larry -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1285782380.1853.26.ca...@belahome.b ela.home -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/380-220109329235334...@netptc.net
Re: how to configure gcc
On Wednesday 29 September 2010 15:18:46 abdelkader belahcene wrote: Thanks for answer yes but normally gcc should be configured, where is the config file, for example sshd_config is a config file for ssh, vsftpd.conf for ftp server and so on .., so where is the config file for gcc, just this I couldn't find it. It's in the same place as the config file for ls, cp, and rm. (There isn't one.) sshd runs continuously as a daemon, as does vsftp, which is part of why they have configuration files. You should use make or another build system to provide options to gcc, ld, and other tools used for building your source. -- Boyd Stephen Smith Jr. ,= ,-_-. =. b...@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/\_/ signature.asc Description: This is a digitally signed message part.
Re: how to configure gcc
On Thu, Sep 30, 2010 at 09:12, Boyd Stephen Smith Jr. b...@iguanasuicide.net wrote: On Wednesday 29 September 2010 15:18:46 abdelkader belahcene wrote: Thanks for answer yes but normally gcc should be configured, where is the config file, for example sshd_config is a config file for ssh, vsftpd.conf for ftp server and so on .., so where is the config file for gcc, just this I couldn't find it. It's in the same place as the config file for ls, cp, and rm. (There isn't one.) sshd runs continuously as a daemon, as does vsftp, which is part of why they have configuration files. You should use make or another build system to provide options to gcc, ld, and other tools used for building your source. -- Boyd Stephen Smith Jr. ,= ,-_-. =. b...@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/\_/ I think using an alias 'gcc -lm' is not a good idea. It may be looking easier for this particular C file, but '-lm' would be linked always for even in the case of hello_world.c which is really unnecessary. The best way to solve this problem is as I mentioned previously. use makefiles
Re: where can I find the English LC_MESSAGES/gcc-4.4.mo file
On Thu, 09 Sep 2010 04:55:16 +, T o n g wrote: The English LC_MESSAGES/gcc-4.4.mo file should normally be at /usr/share/locale/en_US/LC_MESSAGES/gcc-4.4.mo or /usr/share/locale/en/LC_MESSAGES/gcc-4.4.mo but I can't find it in Debian. where can I find it? There is a localization package for gcc-4.4 but contains only non- English languages: http://packages.debian.org/squeeze/gcc-4.4-locales In fact, my /usr/share/locale/en/ folder is almost empty (just one mo file) so, English packages do not need localization files? :-? Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/pan.2010.09.09.07.43...@gmail.com
where can I find the English LC_MESSAGES/gcc-4.4.mo file
Hi, The English LC_MESSAGES/gcc-4.4.mo file should normally be at /usr/share/locale/en_US/LC_MESSAGES/gcc-4.4.mo or /usr/share/locale/en/LC_MESSAGES/gcc-4.4.mo but I can't find it in Debian. where can I find it? Thanks -- Tong (remove underscore(s) to reply) http://xpt.sourceforge.net/techdocs/ http://xpt.sourceforge.net/tools/ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/i69pbk$ju...@dough.gmane.org
Hacer downgrade de gcc.
Hola a todos, Estoy intentando instalar vmware server en un Ubuntu. Llegados a un momento en la instalación me dice que no existe el módulo vmware, creo, para la versión de kernel que tengo instalada y que si deseo generarla. Le digo que me lo genere, pero llegados a la compilación me dice que el kernel se compiló con la versión de gcc 4.2.2 y que la que hay actualmente instalada es la 4.2.3 y puede dar problemas, que si deseo continuar o no. Evidentemente, como no podía ser de otra manera, la compilación casca... :-( ¿Cual sería la forma legal de hacer un downgrade del gcc, si es que la hay?. Por lo menos por comprobar si el problema es el gcc. Saludos y gracias, Ramses -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/fc2dd903-3611-4fcc-9881-cfa0b643c...@gmail.com
Re: Hacer downgrade de gcc.
2010/9/5 Ramses ramses.sevi...@gmail.com: Hola a todos, Estoy intentando instalar vmware server en un Ubuntu. Que tal preguntando en una lista de ubuntu? -- Diego Chacón Rojas diego.cha...@gmail.com San Jose Costa Rica .-. /v\ L I N U X // \\ /( )\ ^^-^^ This is Unix-Land. In quiet nights, you can hear the Windows machines reboot USER 350910 MACHINE 244435 No me envie correos en formatos propietarios http://www.gnu.org/philosophy/no-word-attachments.es.html http://www.debian.org/intro/about.es.html -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktinntsyfp7ph4wlpxckxw3pvldoproapyln...@mail.gmail.com
Re: Hacer downgrade de gcc.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 El 05/09/10 15:01, Ramses escribió: Hola a todos, Estoy intentando instalar vmware server en un Ubuntu. Llegados a un momento en la instalación me dice que no existe el módulo vmware, creo, para la versión de kernel que tengo instalada y que si deseo generarla. Le digo que me lo genere, pero llegados a la compilación me dice que el kernel se compiló con la versión de gcc 4.2.2 y que la que hay actualmente instalada es la 4.2.3 y puede dar problemas, que si deseo continuar o no. Evidentemente, como no podía ser de otra manera, la compilación casca... :-( ¿Cual sería la forma legal de hacer un downgrade del gcc, si es que la hay?. Por lo menos por comprobar si el problema es el gcc. Saludos y gracias, Ramses Pues, yo no haría downgrade, al contrario, trataría de poner todo (el kernel, el módulo y lo que se necesite) a la versión gcc 4.2.3, con eso yo _creo_ que no cascaría. Suerte! -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Darwin) iEYEARECAAYFAkyD+ZYACgkQTc4QiYN6hDdHxQCfaRs9Pz3Mf5WGGGvazxMtJAUG KS0AoJ1fn195ckfF13PucZdRbJDSoltS =QJUO -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4c83f99b.9070...@gmail.com