[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Ltib] Building xorg-server; missing dependencies?
From: |
Stuart Hughes |
Subject: |
RE: [Ltib] Building xorg-server; missing dependencies? |
Date: |
Thu, 26 Feb 2009 13:43:28 +0000 |
Hi Alex,
I just tried the same thing (copy config/platform/mpc5121ads -> Savannah
CVS copy). I then ran ltib to configure and build this. It builds
libjpeg without any problem.
Processing platform: Freescale MPC512x based boards
=====================================================
using config/platform/mpc5121ads/.config
[snip]
Executing(%build): /bin/sh
-e /home/seh/ltib_bsps/savannah_ltib/tmp/rpm-tmp.60945
+ umask 022
+ cd /home/seh/ltib_bsps/savannah_ltib/rpm/BUILD
+ cd jpeg-6b
+ export
PATH=/home/seh/ltib_bsps/savannah_ltib/bin:/opt/ltib/usr/bin:/opt/freescale/usr/local/gcc-4.1.78-eglibc-2.5.78-1/powerpc-e300c3-linux-gnu/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin
+
PATH=/home/seh/ltib_bsps/savannah_ltib/bin:/opt/ltib/usr/bin:/opt/freescale/usr/local/gcc-4.1.78-eglibc-2.5.78-1/powerpc-e300c3-linux-gnu/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin
+ ./configure --enable-static --enable-shared --target=powerpc-linux
--prefix=/usr
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking how to run the C preprocessor... gcc -E
checking for function prototypes... yes
checking for stddef.h... yes
...
The key difference between this and your output is:
checking whether the C compiler (gcc ) is a cross-compiler... no
You're says:
>> checking whether the C compiler (gcc ) is a cross-compiler... yes
It looks like you have some miss configuration as it should be finding
the build machines native C compiler.
Let me explain a bit. If you look at the spec file you'll see:
%Build
export PATH=$UNSPOOF_PATH
./configure --enable-static --enable-shared --target=$CFGHOST --prefix=
%{_prefix}
export PATH=$SPOOF_PATH
make
This is a bit unusual inasmuch that configure is done without spoofing
(e.g. gcc is not an alias for the cross compiler, or should not be).
>From my notes this is because:
Get libjpeg to cross compile by using UNSPOOF_PATH for ./configure and
SPOOF_PATH for make. All this is necessary because ./configure calls
ltconfig which inturn calls config.guess which trys to compile and run a
test .c program using the first gcc in its path.
To get to the bottom of this, can you run the following:
$ ./ltib -m shell
LTIB> export PATH=$UNSPOOF_PATH
LTIB> which gcc
...
LTIB> gcc -v
...
LTIB> exit
$
The output will show which compiler gcc is. It should be the native one
on your build machine. For example mine shows:
LTIB> which gcc
/usr/bin/gcc
LTIB> gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
--host=i386-redhat-linux
Thread model: posix
gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)
Regards, Stuart
On Wed, 2009-02-25 at 11:23 -0500, Alexandre Paradis wrote:
> Hi Stuart,
>
> Here is the LTIB output using Savannah CVS, and my config file.
>
> Thanks,
>
> --
> Alex
>
> -----Original Message-----
> From: Stuart Hughes [mailto:address@hidden
> Sent: February 25, 2009 9:50 AM
> To: Alexandre Paradis
> Cc: address@hidden
> Subject: RE: [Ltib] Building xorg-server; missing dependencies?
>
> Hi Alex,
>
> You're on the wrong track here I think. You should not need to do this.
>
> Anything under rpm/BUILD is not under CVS and so is generated. If this
> build is failing, removed rpm/BUILD/_failed_package_ and then re-try.
>
> If that doesn't work please post the LTIB output. I need to know the
> command you ran, which LTIB (Savannah?) and also which configuration
> you're using (cat .config and then send me
> config/platform/_target_/.config)
>
> Regards, Stuart
>
> On Wed, 2009-02-25 at 09:27 -0500, Alexandre Paradis wrote:
> > OK, I fixed it by replacing the config.sub and config.guess from
> > http://cvs.savannah.gnu.org/viewvc/~checkout~/config/config/
> >
> > I replaced them in the /home/alex/savannah/ltib/rpm/BUILD/jpeg-6b then
> > re-ran ./ltib
> >
> > Is this something that would need to be added to the GPP package?
> >
> > --
> > Alex
> >
> > -----Original Message-----
> > From: address@hidden [mailto:address@hidden On Behalf Of Alexandre Paradis
> > Sent: February 25, 2009 9:01 AM
> > To: Stuart Hughes
> > Cc: address@hidden
> > Subject: RE: [Ltib] Building xorg-server; missing dependencies?
> >
> > Hi Stuart,
> >
> > libjpeg failed to build:
> >
> > /// OUTPUT ///
> > checking host system type... ./config.guess: line 618: ./dummy: cannot
> > execute binary file
> > ./config.guess: line 848: ./dummy: cannot execute binary file
> > ltconfig: cannot guess host type; you must specify one Try `ltconfig
> > --help' for more information.
> > checking libjpeg version number... 62
> > creating ./config.status
> > creating Makefile
> > creating jconfig.h
> > + export
> > + PATH=/home/alex/savannah/ltib/bin:/opt/ltib/usr/spoof:/home/alex/savan
> > + nah/ltib/bin:/opt/ltib/usr/bin:/opt/freescale/usr/local/gcc-4.1.78-egl
> > + ibc-2.5.78-1/powerpc-e300c3-linux-gnu/bin:/usr/local/bin:/usr/bin:/bin
> > + :/usr/bin/X11:/usr/X11R6/bin
> > + PATH=/home/alex/savannah/ltib/bin:/opt/ltib/usr/spoof:/home/alex/savan
> > + nah/ltib/bin:/opt/ltib/usr/bin:/opt/freescale/usr/local/gcc-4.1.78-egl
> > + ibc-2.5.78-1/powerpc-e300c3-linux-gnu/bin:/usr/local/bin:/usr/bin:/bin
> > + :/usr/bin/X11:/usr/X11R6/bin
> > + make
> > ./libtool --mode=compile gcc -O2 -I. -c ./jcapimin.c
> > make: ./libtool: Command not found
> > make: *** [jcapimin.lo] Error 127
> > error: Bad exit status from /home/alex/savannah/ltib/tmp/rpm-tmp.15054
> > (%build)
> >
> >
> > RPM build errors:
> > Bad exit status from /home/alex/savannah/ltib/tmp/rpm-tmp.15054
> > (%build) Build time for libjpeg: 2 seconds /// END OUTPUT ///
> >
> >
> > I do have libtool installed on my system, but it seems it's trying to run
> > it from the local folder? (./libtool)
> >
> >
> > --
> > Alex
> >
> > -----Original Message-----
> > From: Stuart Hughes [mailto:address@hidden
> > Sent: February 25, 2009 4:00 AM
> > To: Alexandre Paradis
> > Cc: address@hidden
> > Subject: RE: [Ltib] Building xorg-server; missing dependencies?
> >
> > Hi Alex,
> >
> > cross-gdb/gdbserver should also build. If you want those later we can try
> > to debug what is wrong.
> >
> > Regards, Stuart
> >
> > On Tue, 2009-02-24 at 16:44 -0500, Alexandre Paradis wrote:
> > > I think I just selected the wrong gdb package in the list.
> > >
> > > I'm rebuilding with the native gdb package instead (without cross-gdb
> > > and gdbserver), and it didn't stop this time, so you can ignore my
> > > last question ;)
> > >
> > > --
> > > Alex
> > >
> > > -----Original Message-----
> > > From: address@hidden
> > > [mailto:address@hidden On Behalf Of
> > > Alexandre Paradis
> > > Sent: February 24, 2009 4:14 PM
> > > To: Stuart Hughes
> > > Cc: address@hidden
> > > Subject: RE: [Ltib] Building xorg-server; missing dependencies?
> > >
> > > Hi Stuart,
> > >
> > > Things are moving along.. ;)
> > >
> > > Going forth with option #2, I performed the following as per your
> > > advice
> > >
> > > 1. Checkout the current CVS
> > > 2. Copied the MPC5121 configs from the old BSP to the latest version
> > > 3. Configured my packages (the build process failed before I did the
> > > next step) 4. ** Copied the *mpc5121*.spec files for u-boot and the
> > > kernel from my old BSP to the latest dist/lfs/ folders
> > >
> > > I re-started the build process, and everything seemed to work, except
> > > when it got to the GDB package.
> > >
> > > It's complaining that it can't execute compiled binaries (obviously since
> > > we're cross-compiling), and says that I should add the "--host" flag:
> > >
> > > checking whether the C compiler works... configure: error: cannot run C
> > > compiled programs.
> > > If you meant to cross compile, use `--host'.
> > > See `config.log' for more details.
> > > error: Bad exit status from
> > > /home/alex/savannah/ltib/tmp/rpm-tmp.74257 (%build)
> > >
> > > While I don’t necessarily *need* GDB, it'd be nice to have it. Where
> > > would I add this flag?
> > >
> > > Thanks a lot for your help!
> > >
> > > --
> > > Alex
> > >
> > >
> > > -----Original Message-----
> > > From: Stuart Hughes [mailto:address@hidden
> > > Sent: February 23, 2009 10:22 AM
> > > To: Alexandre Paradis
> > > Cc: address@hidden
> > > Subject: RE: [Ltib] Building xorg-server; missing dependencies?
> > >
> > > Hi Alex,
> > >
> > > If you go for option 2:
> > >
> > > * checkout Savannah CVS
> > > * do a cp -a old_bsp/config/platform/mpc5121ads
> > > savannah/config/platform/
> > > * cd savannah
> > > * ./ltib
> > > * select mpc5121ads
> > > * let it build the default and check it works for you
> > > * ./ltib -m config
> > > * select the X11 stuff
> > > * ./ltib
> > > * let it build
> > >
> > > The Savannah copy has nothing pre-built, so in effect you are starting
> > > from clean.
> > >
> > > If you want your old BSP back to it's original pristine state you can do
> > > (in old_bsp):
> > > ./ltib --preconfig config/platform/mpc5121ads/defconfig
> > >
> > > Regards, Stuart
> > >
> > > On Mon, 2009-02-23 at 09:48 -0500, Alexandre Paradis wrote:
> > > > The BSP is dated 2008-12-08, which seems to be the latest version they
> > > > have.
> > > >
> > > > I'll go for option #2.
> > > >
> > > > Should I clean everything since I already added packages using the
> > > > wrong commands?
> > > >
> > > > --
> > > > Alex
> > > >
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Stuart Hughes [mailto:address@hidden
> > > > Sent: February 23, 2009 9:31 AM
> > > > To: Alexandre Paradis
> > > > Cc: address@hidden
> > > > Subject: RE: [Ltib] Building xorg-server; missing dependencies?
> > > >
> > > > Hi Alex,
> > > >
> > > > I guess you're using an older Freescale BSP?
> > > >
> > > > If so your best bet is to try this:
> > > >
> > > > 1/ Ask Freescale if they have a later BSP (the X11 stuff went in
> > > > around Nov/Dec last year IIRC).
> > > >
> > > > 2/ If not, use the Savannah LTIB CVS and copy the
> > > > config/platform/mpc5121 you have into that copy. I can't guarantee
> > > > this will work, but at least you'll see the X11 selections.
> > > >
> > > > Regards, Stuart
> > > >
> > > > On Mon, 2009-02-23 at 08:54 -0500, Alexandre Paradis wrote:
> > > > > Hi Stuart,
> > > > >
> > > > > I can't find X11 in the package list. Would I need to update ltib
> > > > > for them to show up?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > --
> > > > > Alex
> > > > >
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: Stuart Hughes [mailto:address@hidden
> > > > > Sent: February 23, 2009 3:52 AM
> > > > > To: Alexandre Paradis
> > > > > Cc: address@hidden
> > > > > Subject: Re: [Ltib] Building xorg-server; missing dependencies?
> > > > >
> > > > > Hi Alex,
> > > > >
> > > > > That's the wrong way to add packages. Run:
> > > > >
> > > > > $ ./ltib -m config
> > > > >
> > > > > Select:
> > > > >
> > > > > X11 --->
> > > > > Install X11 (X.Org 7.3) --->
> > > > >
> > > > > And all the packages needed will be turned on. You probably want
> > > > > to also select some kind of window manager (enlightenment maybe).
> > > > > Once done, save an exit then run:
> > > > >
> > > > > $ ./ltib
> > > > >
> > > > > NOTE: ./ltib -p <pkg> is normally only used if you're developing a
> > > > > single package. See the FAQ.
> > > > >
> > > > > Regards, Stuart
> > > > >
> > > > > On Fri, 2009-02-20 at 15:45 -0500, Alexandre Paradis wrote:
> > > > > > Hi,
> > > > > >
> > > > > > I need to build the xorg-server package, but I seem to be
> > > > > > missing some needed packages.
> > > > > >
> > > > > > I'm currently using LTIB from a Freescale BSP for the MPC5121:
> > > > > >
> > > > > > address@hidden
> > > > > > ~/ltib/ltib-mpc5121ads-20081208/config/userspace $ cat
> > > > > > ../../RELEASE_INFO
> > > > > > Release date = Fri Feb 20 20:20:58 2009 UTC
> > > > > > Release user = alex
> > > > > > Release host = dev-station
> > > > > > Release dir = /home/alex/ltib/ltib-mpc5121ads-20081208
> > > > > > CVS wtag = none
> > > > > > CVS tag = none
> > > > > > Release tag = none
> > > > > > App version = 8.1.2
> > > > > > CVS version = 1.421.4.1
> > > > > > git version = none
> > > > > >
> > > > > > I successfully added the some dependent packages using the
> > > > > > following
> > > > > > commands:
> > > > > >
> > > > > > ./ltib -p pixman.spec
> > > > > > ./ltib -p randrproto.spec
> > > > > > ./ltib -p renderproto.spec
> > > > > > ./ltib -p fixesproto.spec
> > > > > > ./ltib -p damageproto.spec
> > > > > > ./ltib -p xcmiscproto.spec
> > > > > > ./ltib -p extproto.spec
> > > > > > ./ltib -p xproto.spec
> > > > > > ./ltib -p xtrans.spec
> > > > > > ./ltib -p scrnsaverproto.spec
> > > > > > ./ltib -p bigreqsproto.spec
> > > > > > ./ltib -p resourceproto.spec
> > > > > > ./ltib -p fontsproto.spec
> > > > > > ./ltib -p inputproto.spec
> > > > > > ./ltib -p kbproto.spec
> > > > > > ./ltib -p videoproto.spec
> > > > > > ./ltib -p compositeproto.spec
> > > > > > ./ltib -p recordproto.spec
> > > > > > ./ltib -p resourceproto.spec
> > > > > >
> > > > > > However.. I'm still missing a couple of packages which I can't
> > > > > > seem to find on the GPP, mainly 'xkbfile', 'xfont', 'xau' and
> > > > > > 'fontenc'.
> > > > > >
> > > > > > Where can I find these? Do I need to get them from a source
> > > > > > tarball, and create my own package along with a .spec file?
> > > > > >
> > > > > > Any help is greatly appreciated.
> > > > > >
> > > > > > Thanks!
> > > > > >
> > > > > > --
> > > > > > Alexandre Paradis
> > > > > >
> > > > > > Alexandre Paradis, Technology Architect / Architecte
> > > > > > technologique
> > > > > >
> > > > > > bluberi gaming technologies inc.
> > > > > > Drummondville, Quebec Canada
> > > > > > 819.475.5155 (telephone) 819.475.5156 (fax) bluberi.com
> > > > > >
> > > > > > ----------------------------------------------------------------
> > > > > > --
> > > > > > -------- This e-mail and any attachments transmitted with it are
> > > > > > personal, privileged and confidential and solely for the use of the
> > > > > > individual to whom they are addressed and intended. If you have
> > > > > > received this e-mail in error, please notify the sender by return
> > > > > > e-mail. If you are not the intended recipient or if you believe
> > > > > > that you are not, you are hereby notified that the dissemination,
> > > > > > distribution, plagiarism or copying of this e-mail and attachments
> > > > > > transmitted with it is strictly prohibited. NOTICE: We have taken
> > > > > > reasonable precautions to prevent viruses from being present in
> > > > > > this e-mail. We do not accept responsibility for any loss or damage
> > > > > > arising from the use of this e-mail or attachments.
> > > > > >
> > > > > > Ce courriel et les pièces jointes s’y rattachant sont de nature
> > > > > > personnelle, privilégiée et confidentielle et pour l’usage exclusif
> > > > > > du destinataire à qui ils sont adressés et destinés. Si vous avez
> > > > > > reçu ce courriel par erreur, veuillez s’il vous plaît le renvoyer à
> > > > > > l’expéditeur. Si vous n’êtes pas le bon destinataire ou si vous
> > > > > > croyez ne pas l’être, nous vous informons immédiatement que la
> > > > > > publication, distribution, diffusion, copie ou plagiat de ce
> > > > > > courriel et de ses pièces jointes sont strictement interdits.
> > > > > > AVERTISSEMENT : Nous avons pris des mesures raisonnables afin de
> > > > > > prévenir toute propagation de virus par le biais de ce courriel.
> > > > > > Nous n’accepterons donc aucune responsabilité pour des dommages ou
> > > > > > pertes provenant de l’utilisation de ce courriel ou de ses pièces
> > > > > > jointes.
> > > > > > ----------------------------------------------------------------
> > > > > > --
> > > > > > --------
> > > > > >
> > > > > >
> > > > > >
> > > > > > _______________________________________________
> > > > > > LTIB home page: http://bitshrine.org
> > > > > >
> > > > > > Ltib mailing list
> > > > > > address@hidden
> > > > > > http://lists.nongnu.org/mailman/listinfo/ltib
> > > > > >
> > > > >
> > > >
> > >
> >
>
> _______________________________________________
> LTIB home page: http://bitshrine.org
>
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib
- RE: [Ltib] Building xorg-server; missing dependencies?, (continued)
- RE: [Ltib] Building xorg-server; missing dependencies?, Stuart Hughes, 2009/02/23
- RE: [Ltib] Building xorg-server; missing dependencies?, Alexandre Paradis, 2009/02/23
- RE: [Ltib] Building xorg-server; missing dependencies?, Stuart Hughes, 2009/02/23
- RE: [Ltib] Building xorg-server; missing dependencies?, Alexandre Paradis, 2009/02/24
- RE: [Ltib] Building xorg-server; missing dependencies?, Alexandre Paradis, 2009/02/24
- RE: [Ltib] Building xorg-server; missing dependencies?, Stuart Hughes, 2009/02/25
- RE: [Ltib] Building xorg-server; missing dependencies?, Alexandre Paradis, 2009/02/25
- RE: [Ltib] Building xorg-server; missing dependencies?, Alexandre Paradis, 2009/02/25
- RE: [Ltib] Building xorg-server; missing dependencies?, Stuart Hughes, 2009/02/25
- RE: [Ltib] Building xorg-server; missing dependencies?, Alexandre Paradis, 2009/02/25
- RE: [Ltib] Building xorg-server; missing dependencies?,
Stuart Hughes <=
- RE: [Ltib] Building xorg-server; missing dependencies?, Alexandre Paradis, 2009/02/26
- RE: [Ltib] Building xorg-server; missing dependencies?, Stuart Hughes, 2009/02/26
- RE: [Ltib] Building xorg-server; missing dependencies?, Alexandre Paradis, 2009/02/26
- RE: [Ltib] Building xorg-server; missing dependencies?, Estevam Fabio, 2009/02/26
- RE: [Ltib] Building xorg-server; missing dependencies?, Stuart Hughes, 2009/02/26
- RE: [Ltib] Building xorg-server; missing dependencies?, Alexandre Paradis, 2009/02/26
- RE: [Ltib] Building xorg-server; missing dependencies?, Stuart Hughes, 2009/02/27
- RE: [Ltib] Building xorg-server; missing dependencies?, Alexandre Paradis, 2009/02/27
- RE: [Ltib] Building xorg-server; missing dependencies?, Stuart Hughes, 2009/02/27
- RE: [Ltib] Building xorg-server; missing dependencies?, Alexandre Paradis, 2009/02/27