maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Gentoo x86_64 SDK (https://talk.maemo.org/showthread.php?t=33073)

FettsVett 2009-10-18 22:30

Gentoo x86_64 SDK
 
Hi, I'm new here, I've been lurking around and recently decided that I'm going to get an n900 - so I want to learn how to develop for it. I'm currently running a gentoo x86_64 install on my computer, there isn't really that much literature that isn't ancient on the web about how to successfully install all of the packages required on gentoo.

I was wondering if anyone could point me to a guide that was less than a year old or that detailed all requirements for a fremantle SDK install on 64-bit Gentoo install? Or you could just tell me :)

Thanks in advance for your help!

-Court

allnameswereout 2009-10-18 22:48

Re: Gentoo x86_64 SDK
 
If you install apt-get, dpkg, and follow Maemo 5 Final SDK Manual Installation instructions you should get a working Scratchbox and SDK environment.

Feel free to update the documentation on wiki to include Gentoo specific workarounds, or perhaps better please update the Gentoo documentation and link to it from Maemo wiki.

ewan 2009-10-18 23:05

Re: Gentoo x86_64 SDK
 
The other option, and what I've gone for on top of a Fedora system, is to install Ubuntu in a VM and use the provided scripts to install onto that. If you then SSH into the VM you can have it forward the X traffic back to a copy of Xephyr running on the host.

Aside from giving the SDK an Ubuntu/Debian style environment it neatly contains it and avoids having to run the installer scripts as root on your actual system.

allnameswereout 2009-10-18 23:34

Re: Gentoo x86_64 SDK
 
Quote:

Originally Posted by ewan (Post 350712)
The other option, and what I've gone for on top of a Fedora system, is to install Ubuntu in a VM and use the provided scripts to install onto that. If you then SSH into the VM you can have it forward the X traffic back to a copy of Xephyr running on the host.

Aside from giving the SDK an Ubuntu/Debian style environment it neatly contains it and avoids having to run the installer scripts as root on your actual system.

Ah yes, good point. Then the user can also run a 32-bit environment as host OS instead of 64-bit with 32-bit libraries.

In your case (RPM-based distribution) there is also Alien and this concerts .deb to .rpm, and vice versa.

I vaguely remember there is a way to get a full Debian chroot in Gentoo using Portage, and FreeBSD Ports Collection.

After SDK is installed the user could just move /path/to/chroot/debian/scratchbox out of the chroot into host /scratchbox. Although some stuff then must be copied (and probably ported) over as well such as /etc/init.d/scratchbox-core

pinsh 2009-10-18 23:46

Re: Gentoo x86_64 SDK
 
UPDATE (Oct 19, 2009): DON'T use these instructions, they contain some errors and omissions, I'm currently working on updated instructions.

Hi,

I recently installed the maemo 5 SDK on Gentoo amd64, let me try to reconstruct what I did to get it done. Maybe we can add it to the wiki after some editing.

1. Re-emerge x11-base/xorg-server with the "kdrive" USE flag enabled, this will give you Xephyr.

2. Instead of using the scratchbox installer from maemo, install the following using portage (you may have to unmask some packages):
Code:

dev-embedded/scratchbox
dev-embedded/scratchbox-devkit-apt-https
dev-embedded/scratchbox-devkit-debian
dev-embedded/scratchbox-devkit-doctools
dev-embedded/scratchbox-devkit-git
dev-embedded/scratchbox-devkit-perl
dev-embedded/scratchbox-devkit-qemu
dev-embedded/scratchbox-devkit-svn
dev-embedded/scratchbox-toolchain-cs2007q3-glibc2_5

3. Read the instructions "4. Installing on 64bit Debian based distrubution" at http://maemo.org/development/sdks/ma...0_installation (the stuff about vdso and where to download the installer). Install the SDK as follows:

Code:

./maemo-scratchbox-install_5.0beta.sh –u USER -F -s /opt/scratchbox
4. Start scratchbox:
Code:

/etc/init.d/scratchbox start
5. Follow the instructions "2. Starting/shutting down the SDK UI", but use
Code:

/opt/scratchbox login
to login.

I hope this helps.

allnameswereout 2009-10-19 00:08

Re: Gentoo x86_64 SDK
 
Quote:

Originally Posted by pinsh (Post 350730)
3. Read the instructions "4. Installing on 64bit Debian based distrubution" at http://maemo.org/development/sdks/ma...0_installation (the stuff about vdso and where to download the installer).

Since you're using Scratchbox on x86-64 and are into compiling business so to say :) please try this patch which works around VDSO32 issue with Scratchbox by fixing it in Scratchbox instead of requiring workaround. If works stable, could add it as official patch in Gentoo.

Thanks for the howto btw. After feedback in this thread I'll merge it into Maemo wiki. Gentoo documentation folks could link then from Gentoo Scratchbox or Maemo forums threads or wiki to the Maemo wiki entry.

It is important to keep one central place of info and let others link to it, else we get out of sync, so if it is in the Maemo wiki please help keeping it up to date as most folks here, as well as Nokia internally, run SDK on Debian-based Linux, either native or by using VM.

FettsVett 2009-10-19 09:12

Re: Gentoo x86_64 SDK
 
Thanks for the responses everyone!

Quote:

Originally Posted by pinsh (Post 350730)
Hi,

I recently installed the maemo 5 SDK on Gentoo amd64, let me try to reconstruct what I did to get it done. Maybe we can add it to the wiki after some editing.

1. Re-emerge x11-base/xorg-server with the "kdrive" USE flag enabled, this will give you Xephyr.

2. Instead of using the scratchbox installer from maemo, install the following using portage (you may have to unmask some packages):
Code:

dev-embedded/scratchbox
dev-embedded/scratchbox-devkit-apt-https
dev-embedded/scratchbox-devkit-debian
dev-embedded/scratchbox-devkit-doctools
dev-embedded/scratchbox-devkit-git
dev-embedded/scratchbox-devkit-perl
dev-embedded/scratchbox-devkit-qemu
dev-embedded/scratchbox-devkit-svn
dev-embedded/scratchbox-toolchain-cs2007q3-glibc2_5

3. Read the instructions "4. Installing on 64bit Debian based distrubution" at http://maemo.org/development/sdks/ma...0_installation (the stuff about vdso and where to download the installer). Install the SDK as follows:

Code:

./maemo-scratchbox-install_5.0beta.sh –u USER -F -s /opt/scratchbox
4. Start scratchbox:
Code:

/etc/init.d/scratchbox start
5. Follow the instructions "2. Starting/shutting down the SDK UI", but use
Code:

/opt/scratchbox login
to login.

I hope this helps.

I think that I'll do this. It seems like the most elegant solution - no messing around with foriegn package managers or SSH xorg voodoo.

Thanks again everyone!

pinsh 2009-10-19 23:29

Re: Gentoo x86_64 SDK
 
FettsVett,

Hold on with installing it as described above, I think there may be some things missing. I will install the SDK on a second Gentoo amd64 system tonight and then update the instructions.

allnameswereout,

You are welcome, I will test if the patch works after I updated the instructions.

pinsh 2009-10-20 02:01

Re: Gentoo x86_64 SDK
 
Or it may take a bit longer, I ran into some weird problems..

allnameswereout 2009-10-20 02:26

Re: Gentoo x86_64 SDK
 
Quote:

Originally Posted by pinsh (Post 352140)
Or it may take a bit longer, I ran into some weird problems..

You're using beta sh scripts. The final SDK has been released. Please use this one as reference instead

http://wiki.maemo.org/Documentation/...K_Installation

pinsh 2009-10-20 12:59

Re: Gentoo x86_64 SDK
 
allnameswereout,

I just verified everything with the beta installer :-( maybe some else can test the following with the final version. Please look at the final instructions http://wiki.maemo.org/Documentation/...K_Installation and adjust the SDK installation part below.

Here are updated instructions, please use these not the instructions above:

1. Re-emerge x11-base/xorg-server with the "kdrive" USE flag enabled, this will give you Xephyr.

2. Install app-arch/dpkg (Debian package maintenance system), this is needed by the maemo 5 SDK installer.

3. Instead of using the scratchbox installer from maemo, install scratchbox using portage. Unfortunately, scratchbox-devkit-git
and scratchbox-devkit-svn are not yet in portage, so we roll our own ebuilds (assuming PORTDIR_OVERLAY="/usr/portage/local"):

Create /usr/portage/local/dev-embedded/scratchbox-devkit-git/scratchbox-devkit-git-1.0.1.ebuild and paste the following into it:
Code:

SBOX_GROUP="sbox"
RESTRICT="strip binchecks"

DESCRIPTION="A cross-compilation toolkit designed to make embedded Linux application development easier."
HOMEPAGE="http://www.scratchbox.org/"
SRC_URI="http://scratchbox.org/download/files/sbox-releases/stable/tarball/${P}-i386.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

RDEPEND="=dev-embedded/scratchbox-1.0*"
RDEPEND=""

TARGET_DIR="/opt/scratchbox"

S=${WORKDIR}/scratchbox

src_install() {
        dodir ${TARGET_DIR}
        cp -pRP * "${D}/${TARGET_DIR}"
}

Create /usr/portage/local/dev-embedded/scratchbox-devkit-git/scratchbox-devkit-svn-1.0.ebuild and paste the following into it:
Code:

SBOX_GROUP="sbox"
RESTRICT="strip binchecks"

DESCRIPTION="A cross-compilation toolkit designed to make embedded Linux application development easier."
HOMEPAGE="http://www.scratchbox.org/"
SRC_URI="http://scratchbox.org/download/files/sbox-releases/stable/tarball/${P}-i386.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

RDEPEND="=dev-embedded/scratchbox-1.0*"
RDEPEND=""

TARGET_DIR="/opt/scratchbox"

S=${WORKDIR}/scratchbox

src_install() {
        dodir ${TARGET_DIR}
        cp -pRP * "${D}/${TARGET_DIR}"
}

Do the following to add the ebuilds to portage:
Code:

ebuild /usr/portage/local/dev-embedded/scratchbox-devkit-git/scratchbox-devkit-git-1.0.1.ebuild digest
ebuild /usr/portage/local/dev-embedded/scratchbox-devkit-git/scratchbox-devkit-svn-1.0.ebuild digest

Unmask the necessary packages:

/etc/portage/package.keywords/maemo5 :
Code:

dev-embedded/scratchbox ~*
dev-embedded/scratchbox-devkit-apt-https ~*
dev-embedded/scratchbox-devkit-debian ~*
dev-embedded/scratchbox-devkit-doctools ~*
dev-embedded/scratchbox-devkit-perl ~*
dev-embedded/scratchbox-devkit-qemu ~*
dev-embedded/scratchbox-toolchain-cs2007q3-glibc2_5 ~*
dev-embedded/scratchbox-devkit-git ~*
dev-embedded/scratchbox-devkit-svn ~*

/etc/portage/package.unmask/maemo5 :
Code:

=dev-embedded/scratchbox-1.0.16
dev-embedded/scratchbox-devkit-apt-https
dev-embedded/scratchbox-devkit-debian
dev-embedded/scratchbox-devkit-doctools
dev-embedded/scratchbox-devkit-perl
dev-embedded/scratchbox-devkit-qemu
dev-embedded/scratchbox-toolchain-cs2007q3-glibc2_5


Install everything:
Code:

emerge -av scratchbox scratchbox-devkit-apt-https scratchbox-devkit-debian scratchbox-devkit-doctools scratchbox-devkit-perl scratchbox-devkit-qemu scratchbox-toolchain-cs2007q3-glibc2_5 scratchbox-toolchain-cs2007q3-glibc2_5 scratchbox-devkit-git scratchbox-devkit-svn
4. Start scratchbox:
Code:

/etc/init.d/scratchbox start
5. Read the instructions "4. Installing on 64bit Debian based distrubution" at http://maemo.org/development/sdks/ma...0_installation (the stuff about vdso
and where to download the installer). Install the SDK as follows:

Code:

./maemo-sdk-install_5.0beta2.sh -s /opt/scratchbox/
NOTE: This installs the beta SDK, please try the script for the final version instead (not yet tested by me):
http://wiki.maemo.org/Documentation/...K_Installation


6. Install the nokia-binaries (URL shown by the installer script, see instructions for more info)

7. Follow the instructions "2. Starting/shutting down the SDK UI", but use
Code:

/opt/scratchbox login
to login.

Note that the versions of the scratchbox packages installed are slightly different than those installed by the maemo scratchbox installer. So far I haven't done any serious development using the SDK setup as described here nor have I tried compiling and running packages for the ARM target (unfortunately I don't have a N900 to test it).

gwax 2009-11-11 22:20

Re: Gentoo x86_64 SDK
 
Quote:

Originally Posted by pinsh (Post 352531)
a whole bunch of instructions

Having just gone through the process of installing the Maemo 5 Final SDK on my x86_64 Gentoo system, I'll tell you what worked for me (taken and slightly modified from pinsh's instructions):

1. (as root) Re-emerge x11-base/xorg-server with the "kdrive" USE flag enabled, this will give you Xephyr.

2. (as root) Install app-arch/dpkg (Debian package maintenance system), this is needed by the maemo 5 SDK installer.

3. (as root) Instead of using the scratchbox installer from maemo, install scratchbox using portage. Unfortunately, scratchbox-devkit-git
and scratchbox-devkit-svn are not yet in portage, so we roll our own ebuilds (assuming make.conf specifies PORTDIR_OVERLAY="/usr/portage/local"):

Create /usr/portage/local/dev-embedded/scratchbox-devkit-git/scratchbox-devkit-git-1.0.1.ebuild and paste the following into it:
Code:

SBOX_GROUP="sbox"
RESTRICT="strip binchecks"

DESCRIPTION="A cross-compilation toolkit designed to make embedded Linux application development easier."
HOMEPAGE="http://www.scratchbox.org/"
SRC_URI="http://scratchbox.org/download/files/sbox-releases/stable/tarball/${P}-i386.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

RDEPEND="=dev-embedded/scratchbox-1.0*"
RDEPEND=""

TARGET_DIR="/opt/scratchbox"

S=${WORKDIR}/scratchbox

src_install() {
        dodir ${TARGET_DIR}
        cp -pRP * "${D}/${TARGET_DIR}"
}

Create /usr/portage/local/dev-embedded/scratchbox-devkit-git/scratchbox-devkit-svn-1.0.ebuild and paste the following into it:
Code:

SBOX_GROUP="sbox"
RESTRICT="strip binchecks"

DESCRIPTION="A cross-compilation toolkit designed to make embedded Linux application development easier."
HOMEPAGE="http://www.scratchbox.org/"
SRC_URI="http://scratchbox.org/download/files/sbox-releases/stable/tarball/${P}-i386.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

RDEPEND="=dev-embedded/scratchbox-1.0*"
RDEPEND=""

TARGET_DIR="/opt/scratchbox"

S=${WORKDIR}/scratchbox

src_install() {
        dodir ${TARGET_DIR}
        cp -pRP * "${D}/${TARGET_DIR}"
}

Do the following to add the ebuilds to portage:
Code:

ebuild /usr/portage/local/dev-embedded/scratchbox-devkit-git/scratchbox-devkit-git-1.0.1.ebuild digest
ebuild /usr/portage/local/dev-embedded/scratchbox-devkit-git/scratchbox-devkit-svn-1.0.ebuild digest

Unmask the necessary packages:

/etc/portage/package.keywords/maemo5 :
Code:

## maemo5
dev-embedded/scratchbox ~*
dev-embedded/scratchbox-devkit-apt-https ~*
dev-embedded/scratchbox-devkit-debian ~*
dev-embedded/scratchbox-devkit-doctools ~*
dev-embedded/scratchbox-devkit-perl ~*
dev-embedded/scratchbox-devkit-qemu ~*
dev-embedded/scratchbox-toolchain-cs2007q3-glibc2_5 ~*
dev-embedded/scratchbox-devkit-git ~*
dev-embedded/scratchbox-devkit-svn ~*

Install everything:
Code:

emerge -av scratchbox scratchbox-devkit-apt-https scratchbox-devkit-debian scratchbox-devkit-doctools scratchbox-devkit-perl scratchbox-devkit-qemu scratchbox-toolchain-cs2007q3-glibc2_5 scratchbox-toolchain-cs2007q3-glibc2_5 scratchbox-devkit-git scratchbox-devkit-svn
4. (as root) check if vdso/vsyscall is enabled:
Code:

sysctl abi.vsyscall32
sysctl vm.vdso_enabled
sysctl kernel.vdso

if any are non-zero repeat the query command and append =0 as:
Code:

sysctl abi.vsyscall32=0
ONLY if you test this and it works, you can update your /etc/sysctl.conf file by adding a line (minus the sysctl command):
Code:

abi.vsyscall32=0
make sure you test this first or it may make your system unbootable (alternatively, you can issue the sysctl command before using the SDK).

5. (as root) Start scratchbox:
Code:

/etc/init.d/scratchbox start
6. (as root) Add yourself to the scratchbox group:
Code:

gpassed sbox -a YOURUSERNAME
7. (as root) Add yourself as a scratchbox user:
Code:

/opt/scratchbox/sbin/sbox_adduser YOURUSERNAME
8. (as YOURUSERNAME) Install Maemo 5 SDK:
Code:

./maemo-sdk-install_5.0.sh -s /opt/scratchbox/
Follow the link at the end of the install to get access to the Nokia Binaries repository (STORE THIS LINE FOR LATER).

9. (as YOURUSERNAME) login to scratchbox:
Code:

/opt/scratchbox/login
10. (in scratchbox) add Nokia Binaries:
Code:

[sbox-FREMANTLE_X86: ~] > sb-conf select FREMANTLE_ARMEL
[sbox-FREMANTLE_ARMEL: ~] > nano /etc/apt/sources.list  # add deb line stored in step 8
[sbox-FREMANTLE_ARMEL: ~] > apt-get update
[sbox-FREMANTLE_ARMEL: ~] > fakeroot apt-get install nokia-binaries nokia-apps

Code:

[sbox-FREMANTLE_ARMEL: ~] > sb-conf select FREMANTLE_X86
[sbox-FREMANTLE_X86: ~] > nano /etc/apt/sources.list  # add deb line stored in step 8
[sbox-FREMANTLE_X86: ~] > apt-get update
[sbox-FREMANTLE_X86: ~] > fakeroot apt-get install nokia-binaries nokia-apps

Now you should be all set and ready to go

erdferkel 2009-12-04 08:26

Re: Gentoo x86_64 SDK
 
It appears that scratchbox-devkit-git and scratchbox-devkit-svn are now available in portage, so you can skip step 3. I am currently trying an install...

Ok, was able to get everything installed and working.

Oops, spoke too soon. The scratchbox environment seems to work, can start the maemo GUI. Successfully compiled the helloworld.c and gtk_helloworld-1.c for x86 target. But compile fails for the ARM target. It fails with:

Code:

[sbox-FREMANTLE_ARMEL: ~/MyDocs] > gcc -Wall helloworld.c -o helloworld
/scratchbox/compilers/cs2007q3-glibc2.5-arm7/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1/../../../../arm-none-linux-gnueabi/bin/ld: skipping incompatible /scratchbox/compilers/cs2007q3-glibc2.5-arm7/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1/libgcc.a when searching for -lgcc
/scratchbox/compilers/cs2007q3-glibc2.5-arm7/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status

It seems like a problem with the emerged scratchbox environment, if I install with the maemo-scratchbox-install_5.0.sh script, both targets compiled successfully...

Rob1n 2009-12-08 21:14

Re: Gentoo x86_64 SDK
 
Looks like the gentoo ebuild uses an older version of the arm toolchain (1.0.12-10 instead of 1.0.12+lt1-12). I'll try modifying the ebuild to use the newer version and see whether this fixes it.

erdferkel 2009-12-09 08:55

Re: Gentoo x86_64 SDK
 
Hi Rob1n, I just tried doing what you suggested by creating an overlay with the 1.0.12+lt1-12 package and it installed successfully. But it still fails on compile. I found a quick way to test it is to do this in /opt/scratchbox:

Code:

./compilers/cs2007q3-glibc2.5-arm7/bin/arm-none-linux-gnueabi-gcc packages/hello.c -o /tmp/helloArm

./compilers/cs2007q3-glibc2.5-i486/bin/i486-pc-linux-gnu-gcc packages/hello.c -o /tmp/helloX86

It seems like a bug in the gentoo install, i've filed a bug 296294 at bugs.gentoo.org.

Rob1n 2009-12-09 11:46

Re: Gentoo x86_64 SDK
 
I've found the issue - it would appear to be stripping the binaries/libraries during install, which presumably doesn't work properly for ARM files.

Adding:
Code:

RESTRICT="strip binchecks"
to the scratchbox-toolchain-cs2007q3-glibc2_5-1.0.12.ebuild file fixes the issue.

erdferkel 2009-12-09 18:01

Re: Gentoo x86_64 SDK
 
Cool, hopefully that fixes it then. Will try it out when I get a chance. Is this install process documented in a wiki page anywhere?

Ok, I modified the ebuild, did emerge, quick check works. Installed fremantle from nokia, now can compile and run under both targets!

pinsh 2009-12-10 14:30

Re: Gentoo x86_64 SDK
 
Quote:

Originally Posted by erdferkel (Post 419325)
Cool, hopefully that fixes it then. Will try it out when I get a chance. Is this install process documented in a wiki page anywhere?

Ok, I modified the ebuild, did emerge, quick check works. Installed fremantle from nokia, now can compile and run under both targets!

Great! Yes, we should put everything on a wiki page and try to keep it updated. It would also make sense to file a Gentoo bug report for adding the "strip binchecks" to the ebuild.

Rob1n 2009-12-10 14:32

Re: Gentoo x86_64 SDK
 
Quote:

Originally Posted by pinsh (Post 420935)
It would also make sense to file a Gentoo bug report for adding the "strip binchecks" to the ebuild.

I've already added this information to the bug report erdferkel opened (Gentoo bug #296294).

blubbi 2009-12-17 11:10

Re: Gentoo x86_64 SDK
 
Nice to see some Gentoo folks around here.

And thanks for documenting this. I'll try it and report back as soon as I ported my favorite editor "joe" to memo :-)


Cheers
Bjoern

blubbi 2009-12-17 15:39

Re: Gentoo x86_64 SDK
 
I get two errors when running the install:

Code:

wget tool in path... /usr/bin/wget
Checking for dpkg tool in path... which: no dpkg in (/home/blub/sybyl/trigo:/usr/lib64/python2.5/site-packages/MGLToolsPckgs/AutoDockTools/Utilities24://home/blub/.soft/bin:/home/blub/.soft/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4:/usr/qt/3/bin:/usr/games/bin:/usr/local/bin/NoiseNinja:/home/blub/.soft/usr/local/mybin:/home/blub/.soft/usr/local/bin/pdb-tools:/home/blub/gold/bin:/home/blub/.soft/usr/local/namd:/home/blub/.soft/usr/local/schrodinger:/home/blub/.soft/usr/local/mmtsb_toolset/bin:/home/blub/.soft/usr/local/mmtsb_toolset/perl)                                                                                     
not found.                                                                                                     
Running outside of scratchbox... yes


Code:

Scratchbox sb-conf tool works... yes                                                                           
Scratchbox version requirement met... ./maemo-sdk-install_5.0.sh: line 213: --compare-versions: command not found
./maemo-sdk-install_5.0.sh: line 217: --compare-versions: command not found                                     
./maemo-sdk-install_5.0.sh: line 221: --compare-versions: command not found                                     
yes                                                                                                             
Scratchbox CPU transparency method for ARMEL is present... yes


Do I have to worry about these two errors above?


Another thing I am concerned about:

Code:

root@repulsion $ sysctl abi.vsyscall32
abi.vsyscall32 = 2
16:33:21 [~]
root@repulsion $ sysctl vm.vdso_enabled
error: "vm.vdso_enabled" is an unknown key
16:33:21 [~]
root@repulsion $ sysctl kernel.vdso
error: "kernel.vdso" is an unknown key


How to resolve this (The last two actually).

Cheers
Bjoern

Rob1n 2009-12-17 15:48

Re: Gentoo x86_64 SDK
 
Quote:

Originally Posted by blubbi (Post 432012)
Do I have to worry about these two errors above?

Yes - both are caused by failing to install dpkg.

Quote:

Originally Posted by blubbi (Post 432012)
Another thing I am concerned about:

Code:

root@repulsion $ sysctl abi.vsyscall32
abi.vsyscall32 = 2
16:33:21 [~]
root@repulsion $ sysctl vm.vdso_enabled
error: "vm.vdso_enabled" is an unknown key
16:33:21 [~]
root@repulsion $ sysctl kernel.vdso
error: "kernel.vdso" is an unknown key


This is normal - different kernel versions use different keys to control this setting. Any missing keys can be ignored.

blubbi 2009-12-17 17:30

Re: Gentoo x86_64 SDK
 
Quote:

Originally Posted by Rob1n (Post 432029)
Yes - both are caused by failing to install dpkg.



This is normal - different kernel versions use different keys to control this setting. Any missing keys can be ignored.

So I guess I am supposed to install "app-arch/dpkg".

Is ist sufficient to install it now or do I have to reinstall the Maemo-sdk?

Thanks for the quick reply.

Kind regards
Bjoern

Rob1n 2009-12-17 18:26

Re: Gentoo x86_64 SDK
 
I don't think you actually need to install it at all. It's only used in the SDK install if you're installing to the default directory (without specifying the -s option), otherwise it downloads tar archives instead. Everything else is done inside the scratchbox, which has its own copy of dpkg.

blubbi 2009-12-17 22:13

Re: Gentoo x86_64 SDK
 
I'll try it. Lets see if I can come up with my first package this weekend :-)

-writing an ebuild is so much easier-

Thanks for the help
Cheers
Bjoern

ahez 2012-09-18 12:54

Re: Gentoo x86_64 SDK
 
1 Attachment(s)
I've tried to install sdk and it looks like that latest sdk requires
scratchbox-devkit-autotools-legacy, scratchbox-devkit-python-legacy, and newer scratchbox(>=1.0.26).
Simple ebuilds for legacy autotools and python are into attachement.


All times are GMT. The time now is 23:24.

vBulletin® Version 3.8.8