Skip to contentSkip to conversation

svn commit: trunk/buildroot/package/qtopia4

Buildroot egtvedt at uclibc.org 3 participants 7 messages Dec 1, 2008

lore
Share & tools
lore
#0 lore raw

Author: egtvedt
Date: 2008-12-01 05:06:02 -0800 (Mon, 01 Dec 2008) New Revision: 24212

Log:
qtopia4: remove explisit include and library directories from configure call

This patch removes -I and -L from ./configure since it breaks cross-compiling. The inclusion of -I and -L will confuse the host compiler when compiling the host tools.

Modified:
trunk/buildroot/package/qtopia4/qtopia4.mk

Changeset:
Modified: trunk/buildroot/package/qtopia4/qtopia4.mk
===================================================================

buildroot/package/qtopia4/qtopia4.mk +0 -2
@@ -342,8 +342,6 @@
 		-no-rpath \
 		-nomake examples \
 		-nomake demos \
-		-I $(STAGING_DIR)/usr/include \
-		-L $(STAGING_DIR)/usr/lib \
 	)
 	touch $@
 
#1 lore raw

Le Mon, 1 Dec 2008 05:06:02 -0800 (PST),
egtvedt at uclibc.org a ?crit :

buildroot/package/qtopia4/qtopia4.mk line 346

Quoted 5 lines

UTC (rev 24212) @@ -342,8 +342,6 @@ -no-rpath \

buildroot/package/qtopia4/qtopia4.mk +0 -2
 		-nomake examples \
 		-nomake demos \
-		-I $(STAGING_DIR)/usr/include \
-		-L $(STAGING_DIR)/usr/lib \

These lines have been added by me in revision 24001. They are necessary to allow compilation with an external toolchain.

Sincerly,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
#2 lore raw
Quoted 12 lines · On Mon, 1 Dec 2008 14:08:54 +0100 Thomas Petazzoni…

Le Mon, 1 Dec 2008 05:06:02 -0800 (PST),
egtvedt at uclibc.org a ?crit :

buildroot/package/qtopia4/qtopia4.mk line 346

Quoted 5 lines

UTC (rev 24212) @@ -342,8 +342,6 @@ -no-rpath \

buildroot/package/qtopia4/qtopia4.mk +0 -2
 		-nomake examples \
 		-nomake demos \
-		-I $(STAGING_DIR)/usr/include \
-		-L $(STAGING_DIR)/usr/lib \

These lines have been added by me in revision 24001. They are necessary to allow compilation with an external toolchain.

Okay, then we'll enable them only if we have an external toolchain. I'll redo some more in mplayer.mk.

Signature · 2 lines
Best regards,
Hans-Christian Egtvedt
#3 lore raw

Le Mon, 1 Dec 2008 14:12:01 +0100,
Hans-Christian Egtvedt <[email protected]> a ?crit :

Quoted 1 line

Okay, then we'll enable them only if we have an external toolchain.

Yes, probably. But then, if you encountered some breakage with them and an internal toolchain, maybe the same breakage occurs with an external toolchain ?

(I tested my patch by building Qtopia with an external toolchain, and it worked. But maybe I didn't build exactly the same thing as you did).

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
#4 lore raw
Quoted 9 lines · On Mon, 1 Dec 2008 14:19:58 +0100 Thomas Petazzoni…

Le Mon, 1 Dec 2008 14:12:01 +0100,
Hans-Christian Egtvedt <[email protected]> a ?crit :

Quoted 1 line

Okay, then we'll enable them only if we have an external toolchain.

Yes, probably. But then, if you encountered some breakage with them and an internal toolchain, maybe the same breakage occurs with an external toolchain ?

They probably will if the external toolchain is for cross compiling. What architecture was your external toolchain for? Was it configured very similar to the host toolchain?

Quoted 4 lines

(I tested my patch by building Qtopia with an external toolchain, and it worked. But maybe I didn't build exactly the same thing as you did).

The problem I triggered was that stdio.h in uClibc is not equal to stdio.h in glibc on my build machine, so the host compiler got utterly confused.

I think I'll leave it until we have some proper data on who uses what kinds of toolchains. Could it be that your external toolchain just needs a massage?

Signature · 2 lines
Best regards,
Hans-Christian Egtvedt
#5 lore raw

Le Mon, 1 Dec 2008 14:25:58 +0100,
Hans-Christian Egtvedt <[email protected]> a ?crit :

Quoted 3 lines

They probably will if the external toolchain is for cross compiling. What architecture was your external toolchain for? Was it configured very similar to the host toolchain?

My host machine is x86, my external toolchain compiles binaries for arm (toolchain generated by crosstool-ng, it uses uClibc).

Quoted 3 lines

I think I'll leave it until we have some proper data on who uses what kinds of toolchains. Could it be that your external toolchain just needs a massage?

What do you mean ?

It just seems logical to me that when using an external toolchain, one needs to tell the toolchain where the headers and libraries are, when they are not in the sysroot directory of the toolchain as specified during the generation of the toolchain.

Sincerly,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
#6 lore raw
Quoted 10 lines · On Mon, 1 Dec 2008 14:39:57 +0100 Thomas Petazzoni…

Le Mon, 1 Dec 2008 14:25:58 +0100,
Hans-Christian Egtvedt <[email protected]> a ?crit :

Quoted 3 lines

They probably will if the external toolchain is for cross compiling. What architecture was your external toolchain for? Was it configured very similar to the host toolchain?

My host machine is x86, my external toolchain compiles binaries for arm (toolchain generated by crosstool-ng, it uses uClibc).

Then you were probably lucky getting it to compile the first time.

Quoted 11 lines
Quoted 3 lines

I think I'll leave it until we have some proper data on who uses what kinds of toolchains. Could it be that your external toolchain just needs a massage?

What do you mean ?

It just seems logical to me that when using an external toolchain, one needs to tell the toolchain where the headers and libraries are, when they are not in the sysroot directory of the toolchain as specified during the generation of the toolchain.

Adding -I and -L as a general rule to both cross compiling and host compiling is wrong. You must probably change the CFLAGS, CXXFLAGS, LDFLAGS, etc. in qmake.conf.

Signature · 2 lines
Best regards,
Hans-Christian Egtvedt