Author Topic: Check For File Existence In Oe  (Read 5625 times)

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Check For File Existence In Oe
« on: June 04, 2006, 01:43:47 pm »
I'm trying to compile scim-anthy in OpenEmbedded.

I've searched a lot in the OpenEmbedded wiki, but didn't really find a primer on creating Bitbake BB files for projects.

So what I did, I took the nano bb file and modified it for scim-anthy. Scim-anthy requires scim, so created also a file for scim.

Now, when I run "bitbake scim-anthy" it starts logically with downloading scim, then runs configure. So far so good, but configure bombs:
Code: [Select]
checking fo /usr/share/sgml/docbook/xsl-stylesheets/html/tldp-html.xsl... configure: error: cannot check for file existence when cross compiling
FATAL: oe_runconf failed
Is this something I should set in the bb file? Or how do I satisfy the check?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Check For File Existence In Oe
« Reply #1 on: June 05, 2006, 05:22:11 am »
I'm getting really desperate with this, I've fiddled with it all night, and nothing. I thought it'll be relatively easy, wrote a patch which removed the exit 1 command after the check for the files, so even if it said that it can't check when crosscompiling, it would go through...

But then for some reason I can't seem to get it to apply the patch, it bombs with the same error, though I did specify the patch in the bb file, but I see that the configure file that it runs is unpatched...

So I edited the configure file locally, made the bb point to a local file, but lo and behold when it ran the configure was again reversed. How the hell!!! Could it somehowe be configuring itself on the fly and fixing this? Ridicilous isn't it.

So I thought it was pulling the old configure somewhere from a cache, so deleted everything I could think of, but still no go...

I'm thinking, maybe if I could run the individual bitbake commands step by step, i.e. the file is already unzipped in the tmp/work directory... So... I could edit the configure by hand, and then if I could issue whatever bitbake issues to configure, then to build, then to package, I'd get it done...

Is this the way to go?

I think I'm going crazy over this. I'd give up, but it's not letting go, I mean I can't be this stupid not to get it done.

Can I do it in steps like this? If so, I didn't find anywhere what the commans for bitbake would be? Or should I tackle this in another way?

Man, I can't believe I lost a whole night of sleep and now would let this pass. Oh no!
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Check For File Existence In Oe
« Reply #2 on: June 05, 2006, 05:26:04 am »
Quote
I'm getting really desperate with this, I've fiddled with it all night, and nothing. I thought it'll be relatively easy, wrote a patch which removed the exit 1 command after the check for the files, so even if it said that it can't check when crosscompiling, it would go through...

But then for some reason I can't seem to get it to apply the patch, it bombs with the same error, though I did specify the patch in the bb file, but I see that the configure file that it runs is unpatched...

So I edited the configure file locally, made the bb point to a local file, but lo and behold when it ran the configure was again reversed. How the hell!!! Could it somehowe be configuring itself on the fly and fixing this? Ridicilous isn't it.

So I thought it was pulling the old configure somewhere from a cache, so deleted everything I could think of, but still no go...

I'm thinking, maybe if I could run the individual bitbake commands step by step, i.e. the file is already unzipped in the tmp/work directory... So... I could edit the configure by hand, and then if I could issue whatever bitbake issues to configure, then to build, then to package, I'd get it done...

Is this the way to go?

I think I'm going crazy over this. I'd give up, but it's not letting go, I mean I can't be this stupid not to get it done.

Can I do it in steps like this? If so, I didn't find anywhere what the commans for bitbake would be? Or should I tackle this in another way?

Man, I can't believe I lost a whole night of sleep and now would let this pass. Oh no!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129835\"][{POST_SNAPBACK}][/a][/div]


configure is runtime generate by autoreconf in autotools.bbclass, you want to patch configure.in or configure.ac
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Check For File Existence In Oe
« Reply #3 on: June 05, 2006, 05:49:58 am »
Quote
configure is runtime generate by autoreconf in autotools.bbclass, you want to patch configure.in or configure.ac
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129837\"][{POST_SNAPBACK}][/a][/div]
All right! Thanks my man! I thought I was having visions or something, as it kept coming back. Now at least I have another sleepless night to look forward to  
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Check For File Existence In Oe
« Reply #4 on: June 05, 2006, 06:53:35 am »
You'll also get answers faster by asking on #oe (irc)


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Check For File Existence In Oe
« Reply #5 on: June 05, 2006, 03:09:27 pm »
Quote
You'll also get answers faster by asking on #oe (irc)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129848\"][{POST_SNAPBACK}][/a][/div]
Almost there, should be online soon...
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Check For File Existence In Oe
« Reply #6 on: June 05, 2006, 03:15:45 pm »
Quote
configure is runtime generate by autoreconf in autotools.bbclass, you want to patch configure.in or configure.ac
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129837\"][{POST_SNAPBACK}][/a][/div]
It works! Removed the file check and got through...  

However now, I've got a more serious problem, which I don't know what to do about. Configure still fails later, with:
Code: [Select]
| configure: error:
| *** SCIM requires
| ***      sizeof (unsigned short int)  == 2
| ***      sizeof (char)                == 1
| *** You might want to consider using the GNU C compiler.
|
| FATAL: oe_runconf failed
I've found nothing on the web about this, and this is the GNU C compiler, aint't it? How can I satisfy this check?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Check For File Existence In Oe
« Reply #7 on: June 06, 2006, 06:44:45 am »
If configure's trying to create a binary to test this assumption, it won't work when using a cross-toolchain, therefore there are things called site files which are used to determine these values without trying to run the binary.

This may be your problem here (though I don't know much about it I'm afraid)


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva