WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: gcc on piCore  (Read 9511 times)

Offline str4ng3r

  • Newbie
  • *
  • Posts: 48
gcc on piCore
« on: January 23, 2013, 09:49:10 AM »
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, 10:11:00 AM »
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: 10957
Re: gcc on piCore
« Reply #2 on: January 23, 2013, 10:17:49 AM »
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, 10:43:11 AM »
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, 10:51:37 AM »
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, 11:25:39 AM »
? 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: 11178
Re: gcc on piCore
« Reply #6 on: January 23, 2013, 11:51:41 AM »
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, 12: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, 12: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, 12: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, 12: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, 09:14:45 AM »
? 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, 09:23:16 AM »
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, 09:30:49 AM »
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, 05:25:09 PM by str4ng3r »

Offline bmarkus

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

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