Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: str4ng3r on January 23, 2013, 12:49:10 PM

Title: gcc on piCore
Post by: str4ng3r on January 23, 2013, 12:49:10 PM
Hi.

I'm trying to compile (http://freetds.schemamania.org/userguide/config.htm) FreeTDS, but i always get an error. Actually i get 2.

One is because there no "-V" option and the other because there is no "-qversion" option either.

I brought up the help from gcc on piCore and in fact these options don't come up. However, surfing to gcc's manual page -V option do exists while -qversion seems not to.

My question is: Is piCore's gcc according to the standards?

I'm not trying to be offensive/disrespectfull, i'm just trying to sort this out, because everywhere i look it seems everyone was able to compile this package without a hitch but me. And i don't believe i'm being singled out although it may be the case for some wierd reason...
Title: Re: gcc on piCore
Post by: bmarkus on January 23, 2013, 01:11:00 PM
Do not know application you are trying to compile, can't give specific answer.

gcc in piCore is used to build all extensions in the repository plus not yet published, cca. 300 and haven't seen any issues. Dont't think it is a gcc problem.

You can try to build it on Raspbian. Resulted executable is expected to be binary compatible to piCore.

Title: Re: gcc on piCore
Post by: curaga on January 23, 2013, 01:17:49 PM
Those are standard ./configure checks that are supposed to fail for GCC. If you look on any desktop system, you will see the same.

Please post your actual output so we can see why it stops.
Title: Re: gcc on piCore
Post by: bmarkus on January 23, 2013, 01:43:11 PM
I compiled freetds-stable (0.91) without any issues with

Code: [Select]
./configure
make
make install

Probably you are missing something from the toolchain.

Will make a .tcz and add to the repo.
Title: Re: gcc on piCore
Post by: str4ng3r on January 23, 2013, 01:51:37 PM
I compiled freetds-stable (0.91) without any issues with

Code: [Select]
./configure
make
make install

Probably you are missing something from the toolchain.

Will make a .tcz and add to the repo.

Thank you Markus.

I now have to uninstall gcc and install it again? (after you update the repo of course).

Regards.
Title: Re: gcc on piCore
Post by: bmarkus on January 23, 2013, 02:25:39 PM
? As I wrote gcc is OK. I mean freetds.tcz
Title: Re: gcc on piCore
Post by: Rich on January 23, 2013, 02:51:41 PM
Hi bmarkus
Maybe he installed  gcc  instead of  compile-essentials?
Title: Re: gcc on piCore
Post by: str4ng3r on January 23, 2013, 03:09:48 PM
Hi bmarkus
Maybe he installed  gcc  instead of  compile-essentials?

It's possible... i used: tce-load -i -w gcc.tcz

Is that the problem?
Title: Re: gcc on piCore
Post by: tinypoodle on January 23, 2013, 03:25:05 PM
In this case you can try to just install compile-essentials in addition, without uninstalling gcc first.
Title: Re: gcc on piCore
Post by: str4ng3r on January 23, 2013, 03:37:48 PM
In this case you can try to just install compile-essentials in addition, without uninstalling gcc first.

did it after Rich's post, and just finished running everything with 0 errors.

Win.

Thanks a lot guys!

Btw, gcc's installation is only complete after installing compile-essentials, is that correct? Or I can just install compile-essentials?
Title: Re: gcc on piCore
Post by: althalus on January 23, 2013, 03:50:16 PM
Btw, gcc's installation is only complete after installing compile-essentials, is that correct? Or I can just install compile-essentials?

GCC works just fine on it's own. HOWEVER, 99% of applications you'll ever try and compile need far more than just GCC. Just install compile-essentials, and that will install GCC for you as well.
Title: Re: gcc on piCore
Post by: str4ng3r on January 25, 2013, 12:14:45 PM
? As I wrote gcc is OK. I mean freetds.tcz

Hi Markus.

We can find freetds.tcz on x86 repo, but not on armv6 one, which is the one accessed by piCore, i guess.
Title: Re: gcc on piCore
Post by: bmarkus on January 25, 2013, 12:23:16 PM
It is there yet.
Title: Re: gcc on piCore
Post by: str4ng3r on January 25, 2013, 12:30:49 PM
It is there yet.

Can't find it here: http://repo.tinycorelinux.net/4.x/armv6/tcz/

and if i issue "tce-load -i -w freetds.tcz" i get a 404 not found error.

Apparently, freeTDS needs sql.h file, which comes from the installation of unixODBC (http://www.unixodbc.org/). So probably one needs to make a unixODBC.tcz also, i guess.  :-\
Title: Re: gcc on piCore
Post by: bmarkus on January 26, 2013, 12:46:06 AM
Added to repository. Just built, not tested against MS SQL.
Title: Re: gcc on piCore
Post by: str4ng3r on January 26, 2013, 09:32:57 PM
Added to repository. Just built, not tested against MS SQL.

Thanks. I'll give it a go once i have some code ready. It will take some time, since i'm still building my piCore's system.