Skip to contentSkip to conversation

org.oe.dev aspell: fix compilation for powerpc

oe-commits Graeme Gregory 3 participants 7 messages Jan 2, 2007 – Jan 7, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Review

Quoted 8 lines · koen commit

inherit autotools

(quoted diff) +2 -0
+export CXXFLAGS += "-lstdc++"
+
 do_compile_prepend() {
 	install ${WORKDIR}/mk-dirs_h.py ${S}/common/mk-dirs_h
 }

As this package seems to work for other platforms, isnt the bug elsewhere. I dont like this sort of unexplained "fix" for one particular platform. This type of "fix" to me just dirties the metadata.

Graeme (XorA)

#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Graeme Gregory schreef:

Quoted 11 lines · koen commit

Review

Quoted 8 lines

inherit autotools

(quoted diff) +2 -0
+export CXXFLAGS += "-lstdc++"
+
 do_compile_prepend() {
 	install ${WORKDIR}/mk-dirs_h.py ${S}/common/mk-dirs_h
 }

As this package seems to work for other platforms, isnt the bug elsewhere.

I suspect it's due to broken .la files in cross/. Could you apply your sed fix?

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFmjS5MkyGM64RGpERAjHKAKCZ1DUHJgk4eG9NSp/c2B4NtVmfDACcCEob 5PmZwAjBizHtxdzoaciX2UU=
=IaLn
-----END PGP SIGNATURE-----

#3 lore raw
In reply to Graeme Gregory
Quoted 12 lines · Graeme Gregory

Review

Quoted 8 lines · koen commit

inherit autotools

(quoted diff) +2 -0
+export CXXFLAGS += "-lstdc++"
+
 do_compile_prepend() {
 	install ${WORKDIR}/mk-dirs_h.py ${S}/common/mk-dirs_h
 }

As this package seems to work for other platforms, isnt the bug elsewhere. I dont like this sort of unexplained "fix" for one particular platform. This type of "fix" to me just dirties the metadata.

I'll second that. Lets try and fix bugs properly please...

Richard

#4 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Richard Purdie schreef:

Quoted 14 lines · Graeme Gregory
Quoted 12 lines · koen commit

Review

Quoted 8 lines

inherit autotools

(quoted diff) +2 -0
+export CXXFLAGS += "-lstdc++"
+
 do_compile_prepend() {
 	install ${WORKDIR}/mk-dirs_h.py ${S}/common/mk-dirs_h
 }

As this package seems to work for other platforms, isnt the bug elsewhere. I dont like this sort of unexplained "fix" for one particular platform. This type of "fix" to me just dirties the metadata.

Quoted 1 line

I'll second that. Lets try and fix bugs properly please...

Can we agree that .la files shouldn't contain references to tmp/work? Any volunteers for adding the necessary logic to the appropriate bbclass?

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFmph7MkyGM64RGpERAtFzAJ0SAeHm6UECh4o/3iQFni2I0zNjXwCfY/oK EakpuS2x8qfY9x1Y7W1NRTw=
=W5xB
-----END PGP SIGNATURE-----

#5 lore raw
Quoted 5 lines · Koen Kooi

Can we agree that .la files shouldn't contain references to tmp/work? Any volunteers for adding the necessary logic to the appropriate bbclass?

regards,

I think adding some sed along the lines of this in gcc staging should cure the problem. As I beleive the "wrongness" leaks out of gcc when libtool starts making other .la files (it seem to just concatentate lines from dependant .la files)

sed -e "s|dependency_libs\s*=\s*.*|dependency_libs = ' -L${CROSS_DIR}/${HOST_SYS}/lib -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s '|"

I have previously used this in my build personally to fix such problems, but would appreciate someone giving a second look over and someone familiar with the appropriate .bbclasses to put it in the right place.

Thanks

Graeme (XorA)

#6 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Graeme Gregory schreef:

Quoted 16 lines · Koen Kooi
Quoted 5 lines

Can we agree that .la files shouldn't contain references to tmp/work? Any volunteers for adding the necessary logic to the appropriate bbclass?

regards,

I think adding some sed along the lines of this in gcc staging should cure the problem. As I beleive the "wrongness" leaks out of gcc when libtool starts making other .la files (it seem to just concatentate lines from dependant .la files)

sed -e "s|dependency_libs\s*=\s*.*|dependency_libs = '

(quoted diff) +0 -2
-L${CROSS_DIR}/${HOST_SYS}/lib -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc
-lgcc_s '|"
Quoted 3 lines

I have previously used this in my build personally to fix such problems, but would appreciate someone giving a second look over and someone familiar with the appropriate .bbclasses to put it in the right place.

I think this can go into the do_stage_append() method of packages/gcc/gcc3-build-cross.inc for libgcc, libgcc_s, libstdc++ and libsupc++.

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFnl46MkyGM64RGpERApOiAKCVwR+zEIrDmo1tdrxSw/I0nHcpVgCdHi+a +XRVPWUAmgz5z6wo6E7CmXg=
=G0jt
-----END PGP SIGNATURE-----

#7 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Koen Kooi schreef:

Quoted 16 lines

Graeme Gregory schreef:

Quoted 14 lines · Koen Kooi
Quoted 5 lines

Can we agree that .la files shouldn't contain references to tmp/work? Any volunteers for adding the necessary logic to the appropriate bbclass?

regards,

I think adding some sed along the lines of this in gcc staging should cure the problem. As I beleive the "wrongness" leaks out of gcc when libtool starts making other .la files (it seem to just concatentate lines from dependant .la files)

sed -e "s|dependency_libs\s*=\s*.*|dependency_libs = '

(quoted diff) +0 -2
-L${CROSS_DIR}/${HOST_SYS}/lib -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc
-lgcc_s '|"
Quoted 6 lines
Quoted 3 lines

I have previously used this in my build personally to fix such problems, but would appreciate someone giving a second look over and someone familiar with the appropriate .bbclasses to put it in the right place.

I think this can go into the do_stage_append() method of packages/gcc/gcc3-build-cross.inc for libgcc, libgcc_s, libstdc++ and libsupc++.

Tested for libstc++ and libsupc++ and committed.

regards,

Koen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFoNtNMkyGM64RGpERAvSaAJ9U93Vk8WkySw/T5go7lOJBS2bypQCeIMhO jM27KV4se99PFDWJwEReyLc=
=lcIp
-----END PGP SIGNATURE-----