WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: gcc on piCore  (Read 10626 times)

Offline str4ng3r

  • Newbie
  • *
  • Posts: 48
gcc on piCore
« 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...

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: gcc on piCore
« Reply #1 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.

Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: gcc on piCore
« Reply #2 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.
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: gcc on piCore
« Reply #3 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.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline str4ng3r

  • Newbie
  • *
  • Posts: 48
Re: gcc on piCore
« Reply #4 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.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: gcc on piCore
« Reply #5 on: January 23, 2013, 02:25:39 PM »
? As I wrote gcc is OK. I mean freetds.tcz
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11586
Re: gcc on piCore
« Reply #6 on: January 23, 2013, 02:51:41 PM »
Hi bmarkus
Maybe he installed  gcc  instead of  compile-essentials?

Offline str4ng3r

  • Newbie
  • *
  • Posts: 48
Re: gcc on piCore
« Reply #7 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?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: gcc on piCore
« Reply #8 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.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline str4ng3r

  • Newbie
  • *
  • Posts: 48
Re: gcc on piCore
« Reply #9 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?

Offline althalus

  • Sr. Member
  • ****
  • Posts: 351
Re: gcc on piCore
« Reply #10 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.

Offline str4ng3r

  • Newbie
  • *
  • Posts: 48
Re: gcc on piCore
« Reply #11 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.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: gcc on piCore
« Reply #12 on: January 25, 2013, 12:23:16 PM »
It is there yet.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline str4ng3r

  • Newbie
  • *
  • Posts: 48
Re: gcc on piCore
« Reply #13 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.  :-\
« Last Edit: January 25, 2013, 08:25:09 PM by str4ng3r »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: gcc on piCore
« Reply #14 on: January 26, 2013, 12:46:06 AM »
Added to repository. Just built, not tested against MS SQL.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."