OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: ddjolley on June 23, 2005, 09:11:48 pm

Title: C Compiler
Post by: ddjolley on June 23, 2005, 09:11:48 pm
I installed the gcc package.  According to the info description this is the cc and gcc compilers.  However, I'm finding that it did not install any cc or gcc binaries and there appears to be nothing in the files list that even remotely resembles a compiler.   So, did I do the wrong thing?  Am I even headed in the right direction or do I need to re-group and start over?  Thanks for any input.

      ... doug
Title: C Compiler
Post by: kakos on June 25, 2005, 03:25:16 am
Quote
I installed the gcc package.  According to the info description this is the cc and gcc compilers.  However, I'm finding that it did not install any cc or gcc binaries and there appears to be nothing in the files list that even remotely resembles a compiler.   So, did I do the wrong thing?  Am I even headed in the right direction or do I need to re-group and start over?  Thanks for any input.

      ... doug
[div align=\"right\"][a href=\"index.php?act=findpost&pid=85545\"][{POST_SNAPBACK}][/a][/div]

Note that the gcc package installs a binary that looks like arm-linux-gcc or something similar.  Install gcc-symlinks to get the usual names.  If you don't have arm-linux-gcc or whatever, something might have gone wrong.  Try reinstalling?

Also, you have to install a bunch of other packages to get the gcc compiler to work.  Binutils and binutils-symlinks for one.  You also have to install a bunch of libraries to get them to compile.  I'm not sure exactly what the full list is.  I'm working on it at the moment, actually.  Can anyone help out?
Title: C Compiler
Post by: ddjolley on June 25, 2005, 02:46:58 pm
> Note that the gcc package installs a binary that looks like arm-linux-gcc or
> something similar.  Install  gcc-symlinks to get the usual names.  If you don't
> have arm-linux-gcc or whatever, something might have gone wrong.  Try reinstalling?

Hmmm.  I don't see a file resembling that name.  I don't think re-installing would do any good because it's not on the 'ipkg files' list of files TO BE installed.  I'm going to append the output of 'ipkg files gcc'.  Perhaps that might help zero in on the problem.

> Also, you have to install a bunch of other packages to get the gcc compiler to work.
> Binutils and  binutils-symlinks for one.  You also have to install a bunch of libraries
> to get them to compile.  I'm not sure exactly what the full list is.  I'm working on it at
> the moment, actually.  Can anyone help out?

I hope you're successful.  A list would be great.  Also, an indication as to how much space is needed would be helpful.  I've got a feeling that I might have to setup a development CF card.  Either that or I might have to start over with a bigger SD card.  Probably the later is the better way to go; but, the former might get the nod for an interim solution.

Anyway, I need to figure out exactly what needs to be done and whether I'm headed in the right direction.  Could you please have a look at the following list of files that I have for the gcc package and see what you think?  I sure don't see anything there that looks like a C compiler.  Thanks.

       ... doug

PS - I just noticed that this files list seems to indicate that it thinks the gcc package is installed on the CF card.  I don't know what that's all about.  I'm sure I installed it *FROM* the CF card to the SD card.  That is, the package file was on a CF card when I did the install; but, the destination was the SD card.  I'll have to look into that.  Thanks again.

Files List:

Package gcc (3.4.3-r11) is installed on cf and has the following files:
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/include/syslimits.h
/media/cf/packages/media/card/packages/usr/libexec/gcc/arm-linux/3.4.3/cc1
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/include/stddef.h
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/include/curses/curses.h
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/libgcc_s.so
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/specs
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/include/iso646.h
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/include/valgrind/vg_skin.h
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/crtbeginS.o
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/crtendS.o
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/include/g2c.h
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/include/unwind.h
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/include/limits.h
/media/cf/packages/media/card/packages/usr/bin/arm-linux-gcc
/media/cf/packages/media/card/packages/usr/libexec/gcc/arm-linux/3.4.3/collect2
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/crtbegin.o
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/include/stdarg.h
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/include/stdbool.h
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/include/README
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/include/mmintrin.h
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/crtend.o
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/libgcov.a
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/include/zutil.h
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/include/float.h
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/libgcc_eh.a
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/include/varargs.h
/media/cf/packages/media/card/packages/usr/lib/gcc/arm-linux/3.4.3/include/LTTTypes.h
                                                                               1,52          Top
Title: C Compiler
Post by: lardman on June 26, 2005, 05:48:02 am
Quote
PS - I just noticed that this files list seems to indicate that it thinks the gcc package is installed on the CF card. I don't know what that's all about. I'm sure I installed it *FROM* the CF card to the SD card. That is, the package file was on a CF card when I did the install; but, the destination was the SD card. I'll have to look into that. Thanks again.

Did you alter the dest settings in /etc/ipkg.conf yourself?

Although it says cf here:

Quote
Package gcc (3.4.3-r11) is installed on cf and has the following files:

It appears to be installed to the sd card:

Quote
/media/cf/packages/media/card/packages/

Regarding getting gcc to work:

https://www.oesf.org/forums/index.php?showtopic=9242&hl=gcc (https://www.oesf.org/forums/index.php?showtopic=9242&hl=gcc)
http://handhelds.org/moin/moin.cgi/DevelopOnFamiliar (http://handhelds.org/moin/moin.cgi/DevelopOnFamiliar)


Si
Title: C Compiler
Post by: ddjolley on June 26, 2005, 08:53:29 pm
Thanks a batch for the input.  After reading the referenced posts, I can see that my first problem is going to be getting enough space.  I think the best way to go is to reconfigure my Z with a much larger SD card.  Because of extenuating circumstances, I will probably have to defer even starting this for about a week.  I will get back to it though.  Thanks again for the input.
Title: C Compiler
Post by: Tugvarish on July 05, 2005, 07:18:09 pm
Where do we get the correct libc6-dev?
The one mentioned on the link uses soft FP and the onboard libraries uses hard FP (or vice-versa) so they are not compatible for linking.
I do not see a libc6-dev within our feeds and familiar feeds (ipk) uses a type of libraries (soft FP or vice-versa) that are not compatible for linking with ours.
So again where is our libc6-dev?
What is the point to have gcc and g++ if we cannot play with it because not dev libraries?
Title: C Compiler
Post by: lardman on July 06, 2005, 05:12:56 am
Quote
The one mentioned on the link uses soft FP and the onboard libraries uses hard FP

Assuming you've got the (gcc, etc.) files from the feed in the first place they will all be using the default fp implementation which is soft-float.

What did you want? libc-dev, what about this file (in the feed):

http://www.openzaurus.org/official/unstabl...726-r15_arm.ipk (http://www.openzaurus.org/official/unstable/3.5.3/feed/dev/libc6-dev_2.3.2+cvs20040726-r15_arm.ipk)


Si
Title: C Compiler
Post by: Tugvarish on July 06, 2005, 05:39:15 am
Thanks,
I have 3.5.2, so I checked the feed for my version and could not see 3.5.2 dev sub-folder.
I see now that 3.5.3 feed is different: it has a dev sub-folder (and more).
I am going to try the libc6-dev 3.5.3 version.
.....
later... that night
.....
EUREKA! It works!
The one from familiar give the error about FP Software vs Hardware, but this one doesn't.
Everything works like a charm.
Thanks a ton.