public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] CFLAGS and binutils
@ 2006-09-28 16:29 Daniel Glaser
  2006-09-29 12:10 ` [gentoo-embedded] apache on gnap (problems with apr-util) Janusz Syrytczyk
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Glaser @ 2006-09-28 16:29 UTC (permalink / raw
  To: gentoo-embedded

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hi vapier,

in Bug http://bugs.gentoo.org/show_bug.cgi?id=149398 you said, that
I'm mistaken with CFLAGs in the role of cross-compilers.

OK, describing what I want:

I have two directories

ROOT=/usr/powerpc-softfloat-linux-uclibc (This is, where the toolchain
did go)
PORTAGE_CONFIGROOT=/var/ppceb

in /var/ppceb/etc/make.conf
CFLAGS="-Os -mcpu=405 -mtune=405 -fomit-frame-pointer -pipe"
CHOST="powerpc-softfloat-linux-uclibc"
CBUILD="i686-pc-linux-gnu"
CTARGET="powerpc-softfloat-linux-uclibc"

ACCEPT_KEYWORDS="-* ppc"

when I do a
ROOT="..so.." PORTAGE_CONFIGROOT="..so.." emerge binutils


It compiles some things with i686-pc-linux-gnu, where the problem
comes up, that it crashes, because gcc doesn't know -mcpu=405 and
- -mtune=405

You said before, that everything regarding libs should go there...
Tell me if I'm wrong, but when I put everything there and strip down
everything later or do a later emerge on the needed packages to
another ROOT, everything should be fine.

- -themole
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFFG/h+LA0LfkMzpGMRApjxAJ9bX9jzHIaSQ+CW25cmkvqqSmsM9QCfb3G+
RlC7hVOkCWPlxhFNr97n4K8=
=LNc2
-----END PGP SIGNATURE-----

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gentoo-embedded] apache on gnap (problems with apr-util)
  2006-09-28 16:29 [gentoo-embedded] CFLAGS and binutils Daniel Glaser
@ 2006-09-29 12:10 ` Janusz Syrytczyk
  2006-09-29 12:24   ` Daniel Glaser
  2006-09-29 14:55   ` Natanael Copa
  0 siblings, 2 replies; 5+ messages in thread
From: Janusz Syrytczyk @ 2006-09-29 12:10 UTC (permalink / raw
  To: gentoo-embedded

Hi,

I would like to have apache web server with php module on my GNAP system, but 
while compiling apr-util (dependency required by apache) I have error saying 
the apr-util package is masked, even though I tried unmasking it in 
myspecs/portage_confdir/ portage.keywords.

I have found that commenting out the line:

inherit eutils flag-o-matic libtool db-use

in apr-util-0.9.12.ebuild results in unmasking the package but later it fails 
because of: catalyst error : <unprintable instance object>" . And I 
understand that changing an ebuild may result in unprediceable errors so I 
kindly ask if there is any other stright way to have apache correctly 
compiled on gnap? I did modify portage tree by adding arbitrary packages of 
course.

Janusz
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] apache on gnap (problems with apr-util)
  2006-09-29 12:10 ` [gentoo-embedded] apache on gnap (problems with apr-util) Janusz Syrytczyk
@ 2006-09-29 12:24   ` Daniel Glaser
  2006-09-29 18:21     ` Janusz Syrytczyk
  2006-09-29 14:55   ` Natanael Copa
  1 sibling, 1 reply; 5+ messages in thread
From: Daniel Glaser @ 2006-09-29 12:24 UTC (permalink / raw
  To: gentoo-embedded

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hi Janusz,
>
> I would like to have apache web server with php module on my GNAP
> system, but while compiling apr-util (dependency required by
> apache) I have error saying the apr-util package is masked, even
> though I tried unmasking it in myspecs/portage_confdir/
> portage.keywords.
How it is exactly masked? There are many different ways to mask
something. When you try to emerge it, portage tells you something like

- - something/somepackage (masked by: missing keyword)

The round brackets at the end of this line tells you, why it can't be
merged. There are differnt kind of masks. One possibility is the
profile. If something is masked by profile, you only have the ability
to change the link in etc/make.profile to get out of this.
Perhaps in your case it can be done with
echo "something/somepackage" >> /etc/portage/package.unmask
>
> I have found that commenting out the line:
>
> inherit eutils flag-o-matic libtool db-use
This is bad!

Make everything as it was and post the output of emerge. Then it's
easier to help you. Perhaps also add emerge --info

- -themole
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFFHRBfLA0LfkMzpGMRAqKNAJ9dCXkao8U1TruwCJjuNdj5kgd/XwCfROWm
3QS/EVSXNMSIEoJ5H+UaAcg=
=eSwt
-----END PGP SIGNATURE-----

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] apache on gnap (problems with apr-util)
  2006-09-29 12:10 ` [gentoo-embedded] apache on gnap (problems with apr-util) Janusz Syrytczyk
  2006-09-29 12:24   ` Daniel Glaser
@ 2006-09-29 14:55   ` Natanael Copa
  1 sibling, 0 replies; 5+ messages in thread
From: Natanael Copa @ 2006-09-29 14:55 UTC (permalink / raw
  To: gentoo-embedded

On Fri, 2006-09-29 at 14:10 +0200, Janusz Syrytczyk wrote:
> Hi,
> 
> I would like to have apache web server with php module on my GNAP system, 

apache on embedded? You might have your reasons for that, but there are
many good alternatives:

mini_httpd
lighttpd
appWeb (https://bugs.gentoo.org/show_bug.cgi?id=145073)

> but
> while compiling apr-util (dependency required by apache) I have error saying
> the apr-util package is masked, even though I tried unmasking it in
> myspecs/portage_confdir/ portage.keywords.
> 
> I have found that commenting out the line:
> 
> inherit eutils flag-o-matic libtool db-use
> 
> in apr-util-0.9.12.ebuild results in unmasking the package but later it fails
> because of: catalyst error : <unprintable instance object>" . And I
> understand that changing an ebuild may result in unprediceable errors so I
> kindly ask if there is any other stright way to have apache correctly
> compiled on gnap? I did modify portage tree by adding arbitrary packages of
> course.

I run subersion (also requires apr- stuff) on uclibc hardened. No
problems.

I Don't use apache though.

> 
> Janusz
> --
> gentoo-embedded@gentoo.org mailing list
> 

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] apache on gnap (problems with apr-util)
  2006-09-29 12:24   ` Daniel Glaser
@ 2006-09-29 18:21     ` Janusz Syrytczyk
  0 siblings, 0 replies; 5+ messages in thread
From: Janusz Syrytczyk @ 2006-09-29 18:21 UTC (permalink / raw
  To: gentoo-embedded

Daniel Glaser wrote:
> How it is exactly masked? There are many different ways to mask
> something. When you try to emerge it, portage tells you something like
>
> - - something/somepackage (masked by: missing keyword)
>
> The round brackets at the end of this line tells you, why it can't be
> merged. There are differnt kind of masks. One possibility is the
> profile. If something is masked by profile, you only have the ability
> to change the link in etc/make.profile to get out of this.
> Perhaps in your case it can be done with
> echo "something/somepackage" >> /etc/portage/package.unmask
>   
Hi,
I've already put >=dev-libs/apr-util in package.unmask and also tested 
with ~x86 flag in package.keywords. I'm familiar with portage and is 
configuration, but gnap/Catalyst gives slightly another output and has 
slightly different rules.

>> I have found that commenting out the line:
>>
>> inherit eutils flag-o-matic libtool db-use
>>     
> This is bad!
>
>   
Well... I'm sure that could make very nasty things, and I surely won't 
go with this, that was just a test.   Anyway,  is this the line which 
delivers extra parameters which tells the gnap/catalyst that package is 
masked, isn't it?

Everything looks good for me, except that gnap/Catalyst perceives 
apr-util as masked although it should not. My gnap output is:

Gentoo Catalyst, version 2.0_rc40
Copyright 2003-2005 The Gentoo Foundation
Distributed under the GNU General Public License version 2

Using command line specified Catalyst configuration file, 
/etc/catalyst2/catalyst2.conf
Setting sharedir to config file value "/usr/lib/catalyst2"
Setting snapshot_cache to default value "/var/tmp/catalyst2/snapshot_cache"
Setting hash_function to config file value "crc32"
Setting storedir to config file value "/var/tmp/catalyst2"
Setting portdir to default value "/usr/portage"
Setting distdir to config file value "/usr/portage/distfiles"
Setting options to config file value "autoresume kerncache pkgcache 
seedcache snapcache"
Package cache support enabled.
Snapshot cache support enabled.
Seed cache support enabled.
Kernel cache support enabled.
Autoresuming support enabled.

        WARNING: No value set for key: grp/use
        deleting key: grp/use

Using target: grp
Building natively for x86
Source path set to 
/var/tmp/catalyst2/builds/gnap/stage3-x86-20060929.tar.bz2
Caching snapshot to /var/tmp/catalyst2/snapshot_cache/20060929/
The autoresume path is 
/var/tmp/catalyst2/tmp/gnap/.autoresume-grp-x86-20060929/
Resume point detected, skipping target path setup operation...
Location of the package cache is 
/var/tmp/catalyst2/packages/gnap/grp-x86-20060929/
Location of the kerncache is 
/var/tmp/catalyst2/kerncache/gnap/grp-x86-20060929/
Checking for processes running in chroot and killing them.
Running action sequence: unpack
Resume point detected, skipping unpack operation...
Running action sequence: unpack_snapshot
Valid snapshot cache, skipping unpack of portage tree ...
Running action sequence: config_profile_link
Resume point detected, skipping config_profile_link operation...
Running action sequence: setup_confdir
Running action sequence: bind
Running action sequence: chroot_setup
Resume point detected, skipping chroot_setup operation...
Running action sequence: setup_environment
Running action sequence: run_local
copying grp-chroot.sh to /var/tmp/catalyst2/tmp/gnap/grp-x86-20060929/tmp/
copying chroot-functions.sh to 
/var/tmp/catalyst2/tmp/gnap/grp-x86-20060929/tmp/
Running grp-chroot.sh in chroot 
/var/tmp/catalyst2/tmp/gnap/grp-x86-20060929/
Portage Autoresume point found not emerging portage
 >>> --newuse implies --update... adding --update to options.
Calculating dependencies
!!! All ebuilds that could satisfy "~dev-libs/apr-util-0.9.12" have been 
masked.
!!! One of the following masked packages is required to complete your 
request:


!!! Problem in net-www/apache dependencies.
!!!  exceptions

Traceback (most recent call last):
  File "modules/grp_target.py", line 58, in run_local
    +" "+pkgset+" "+mypackages,env=self.env)
  File "/usr/lib/catalyst2/modules/catalyst_support.py", line 485, in cmd
    raise CatalystError,myexc
CatalystError: <unprintable instance object>
None

!!! catalyst: GRP build aborting due to error.


Catalyst aborting....



While this occurs, I have:
packages.unmask: >=dev-libs/apr-util-0.9.12
packages.keywords:
dev-libs/apr-util ~x86
dev-libs/apr ~x86
net-www/apache ~x86

extensions.conf:
extensions: apache php
apache/packlist: apache
apache/cleanup: /usr/share
php/packlist: php
#php/cleanup:

Other files are gnap standard. I do not have anything special changed in 
relation to base system. And I make extensions using right 
portage.tar.bz2 and myspecs, I managed to do a few gnap based devices 
before ;-)

Janusz



last but not least - emerge --info
Portage 2.1.2_pre1-r4 (default-linux/x86/2006.0, gcc-3.4.6, 
glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.5
Last Sync: Fri, 29 Sep 2006 10:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.4.3-r4, 1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config 
/usr/kde/3.4/shutdown /usr/lib/fax /usr/share/X11/xkb /var/spool/fax/etc 
/var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild 
/etc/terminfo"
CXXFLAGS="-O3 -march=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox 
sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en pl hu"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times 
--compress --force --whole-file --delete --delete-after --stats 
--timeout=180 --exclude='/distfiles' --exclude='/local' 
--exclude='/packages'"
PORTAGE_TMPDIR="/opt/portage-tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts berkdb bitmap-fonts cli crypt cups dbus 
dlloader dri dvd dvdr eds elibc_glibc emboss encode esd foomaticdb 
fortran gif gnome gpm gstreamer gtk gtk2 hal imlib 
input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde 
kdeenablefinal kernel_linux ldap libg++ libwww linguas_en linguas_hu 
linguas_pl mad mikmod motif mp3 mpeg ncurses nls nptl nptlonly ogg 
opengl oss pam pcre perl png pppd python qt3 qt4 quicktime rdesktop 
readline reflection samba sasl sdl session spell spl ssl tcpd truetype 
truetype-fonts type1-fonts udev userland_GNU video_cards_ati 
video_cards_fglrx video_cards_radeon video_cards_vesa video_cards_vga 
vorbis win32codecs xml xmms xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, 
LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-09-29 18:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-28 16:29 [gentoo-embedded] CFLAGS and binutils Daniel Glaser
2006-09-29 12:10 ` [gentoo-embedded] apache on gnap (problems with apr-util) Janusz Syrytczyk
2006-09-29 12:24   ` Daniel Glaser
2006-09-29 18:21     ` Janusz Syrytczyk
2006-09-29 14:55   ` Natanael Copa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox