@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> i am trying to install multiple versions of gcc.. when i run a test file with #include <stdarg.h> it works fine - but when i'm compiling my application (which uses both gcc 4.0.2 and 3.4.3) it cant find stdarg.h no matter where i put it - any ideas?
<1> hey all
<1> i'm trying to get gcc set up to compile for my AVR microchip
<1> anyone have any idea on how to do that?
<0> get gcc-avr? :)
<0> er, avr-gcc
<1> yeah i tried apt-get that
<0> you will also need avr-binutils avr-libc avrdude
<1> i just tried apt-get all of those
<1> and they tell me its installed and newest version
<1> i cd to a directory with a main.c and a makefile
<1> and make says that its missing the header files
<1> which are in /usr/avr/include
<0> /usr/include/avr right?



<0> no, thats not right either
<1> stdio.h and all that are in /usr/avr/include
<1> then in include, theres a folder called avr with all io.h and a couple other header files in it
<0> on my system they're in /usr/lib/gcc-lib/avr/3.3.2/include
<1> in mine theres like
<1> 6 files
<0> or in /usr/local/avr-libc-1.4.4/include/avr/
<1> should i just copy the files from /usr/avr/include into those folders?
<0> anyway i seem to be having the same sort of problem as you (not avr related though) so i might not be much help :)
<1> haha
<1> yeah it ****s
<1> i love ubuntu
<1> but i really kinda need to work on this kinda stuff
<0> you need to make sure /usr/avr/include is in your include path
<1> and im not gonna be switching back and forth between OSes everytime i decide to work on a project
<1> how do I edit my include path?
<1> is that $PATH?
<0> no
<0> maybe its INCLUDE_PATH ?
<1> echo $INCLUDE_PATH says nothing
<0> the default include path includes /usr/include and /usr/local/include so i'd just put them in there
<0> and see if it works
<1> yeah i just read that on google
<1> no luck
<1> /usr/local/include contains all the header files
<1> yet make says it cant find avr/io.h
<0> and you have a directory avr/ with those files in it?
<0> like /usr/local/include/avr/io.h
<1> yep
<1> theres gotta be a setting that lets you define the header file location
<0> you can specify it on the comand line with -I
<0> but with some makefiles (like mine) it's hard to figure out :)
<1> so like
<1> make -l /usr/local/include
<0> no its a gcc parameter
<1> this is where i get confused
<0> gcc -I/usr/local/include/avr/
<0> you'd have to edit the makefile to have it p*** that argument to gcc
<0> there's usually a variable like INCLUDE or IFLAGS
<0> or CFLAGS
<1> yeah CFLAGS
<1> CFLAGS +=-l/usr/local/include/ i want?
<0> eh, sure
<1> yeah doesn't work
<1> neither does /include/avr/
<1> neither was i
<1> i've been trying to get this to work for the past two nights
<1> with both nights being pretty much this conversation
<1> but replacing one package with another, one config file with another
<1> and god damn does it piss me off
<0> perhaps we should make a sacrifice to saint gnucius
<1> i'll sacrifice whoever made this so damn hard to setup



<1> i really dont want to go back to windows, but i got some projects that need to be done :(
<0> it probably doesn't make you feel any better, but it worked fine for me (on ubuntu and fedora)
<1> haha no not at all
<1> i think part of it is just a messy machine
<1> because i've tried everything
<1> theres all these files just laying around
<1> and im new to linux, so i dont know where to go to delete them all
<0> try asking in ##microcontrollers
<1> alright
<1> thanks for your help tho
<2> hey
<2> i want to complie a driver for my wireless card on ubuntu
<2> but make is giving me error 2
<2> any ideas ?
<0> look at the first error it gives you
<2> it says
<2> make -C /lib/modules/2.6.15-25-386/build SUBDIRS=/home/noble/Desktop/rtl8180-0.21 MODVERDIR=/home/noble/Desktop/rtl8180-0.21 modules
<2> make[1]: Entering directory `/lib/modules/2.6.15-25-386/build'
<2> make[1]: *** No rule to make target `modules'. Stop.
<2> make[1]: Leaving directory `/lib/modules/2.6.15-25-386/build'
<2> make: *** [2.6] Error 2
<2> but in my case according to make file it is supposed to look for some .config files located in the /lib/modules/kernel-version/build/
<2> but it doesn't have any build folder in the kernel version folder ?
<2> ?
<2> any ideas ?
<0> this sounds familiar
<2> yah may be to you, but is frustrating for me :)
<2> plzz. help !
<0> i dont remember what the answer was though
<2> try litle hard
<0> uhm.. try going to the kernel source dir and do "make config"
<0> or make menuconfig whatever floats your boat
<0> sorry i cant help - gotta go to bed, good night
<3> How do i read file list from dir?
<4> using a function the libc of your operating system provided or issuing syscalls to the OS directly
<3> noshadow, could you please be more specific? For I need for linux
<4> I'd suggest to ask such questions in some linux channel or some posix channel. For it has nothing to do with the compiler but only with your libc. (And it's typically called readdir)
<3> noshadow, thanks!
<5> hi!
<6> I want to setup a makefile so that makedepend automatically gets the list of gcc include search paths
<6> Can gcc give me the list of the include search paths it uses ?
<7> Can someone talk to me about mudflap? I've discovered a "bug" in mudflapth that prevents it properly detecting problems in pthreads stack access. I've gone into the libmudflap code, and discovered (I think) that it's regarding the whole stack as a valid object, and so isn't complaining about accesses that violate boundaries of declared variables. Can someone help me fix this?
<8> tarzeau: did you have any luck?
<9> intero: nope :(
<8> tarzeau: arg
<8> still g++ only?
<9> intero: indeed :(
<9> can you try it too, with gcc-4.1.1 ?
<8> tarzeau: okay, but i am on sid. i guess it doesn't matter, right?
<9> i hope it doesn't
<9> can you make sure gcc is 3.3.5 ?
<9> /usr/bin/gcc
<8> i dont even have it, i have 3.3.6
<9> that's fine. go ahead
<9> if 3.4 works or 3.3.6 that's fine as well
<8> tarzeau: mmm i used 4.1 but it fails because it doesn't find suitable libc.so (i guess it needs a 32bit one). however yes, i see g++ only as well. weird! shall we check debian/rules and see what parameters they apply?
<9> intero: yes please
<9> intero: debian/* is very monster of gcc
<10> hello
<10> if I install and use the gnu ***embler to boostrap gcc (it says my configuration is not supported with my system as) will the built gcc depend on that specific ***embler or is it needed only during the build phase?
<10> (that is... is it just a build or a runtime dependency too...)
<11> heyo
<11> i know the odds of its being feasible are transfinitesimal but i thought it would not harm to ask; are there many places one would have to touch inside the compiler to make all stack pointer -related operations be translated from the current absolute stack address to a relative address? (i.e: all esp/ebp code be enhanced with a base_stack_offset + ebp relative address?)
<12> anyone knows a good test example to test the switch statement? maybe at dejagnu testsuite files?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #gcc
or
Go to some related logs:

#xorg
ubuntu xlib6g
#fluxbox
Ypops suse 10.0 config
#perl
#css
yui c-grade blacklist browsers
+CPAN::Shell +notest
consistent api pragmatic programmers
xorg unichrome apt-get debian



Home  |  disclaimer  |  contact  |  submit quotes