The Following 8 Users Say Thank You to toojays For This Useful Post: | ||
|
2014-05-18
, 19:05
|
Posts: 1 |
Thanked: 2 times |
Joined on May 2014
|
#2
|
The Following 2 Users Say Thank You to okias For This Useful Post: | ||
|
2015-04-01
, 19:20
|
Posts: 42 |
Thanked: 40 times |
Joined on Jan 2015
@ Italy
|
#3
|
/opt/diablo-gcc-4.9/lib/gcc/arm-none-linux-gnueabi/4.9.0/../../../../arm-none-linux-gnueabi/bin/ld: cannot find /lib/libgcc_s.so.1 collect2: error: ld returned 1 exit status
The Following User Says Thank You to u7knv9h For This Useful Post: | ||
|
2015-04-02
, 19:50
|
|
Posts: 3,141 |
Thanked: 8,161 times |
Joined on Feb 2013
@ From my Gabriola Island hermitage, near the Edge of the World
|
#4
|
The Following User Says Thank You to endsormeans For This Useful Post: | ||
|
2015-04-02
, 23:36
|
Posts: 14 |
Thanked: 36 times |
Joined on Dec 2009
@ Adelaide, Australia
|
#5
|
hello, i'm pretty new to maemo and cross-compiling for it, and i can't figure out how to use this toolchain
i added /opt/diablo-gcc-4.9/bin and /opt/diablo-gcc-4.9/arm-none-linux-gnueabi/bin to my $PATH, but when i try compiling i get
do i have to link by hand everything? am i missing something?Code:/opt/diablo-gcc-4.9/lib/gcc/arm-none-linux-gnueabi/4.9.0/../../../../arm-none-linux-gnueabi/bin/ld: cannot find /lib/libgcc_s.so.1 collect2: error: ld returned 1 exit status
diff -ur /tmp/diablo-gcc-4.9-orig/arm-none-linux-gnueabi/lib/libgcc_s.so.1 /opt/diablo-gcc-4.9/arm-none-linux-gnueabi/lib/libgcc_s.so.1 --- /tmp/diablo-gcc-4.9-orig/arm-none-linux-gnueabi/lib/libgcc_s.so.1 2014-04-30 07:43:47.000000000 +0930 +++ /opt/diablo-gcc-4.9/arm-none-linux-gnueabi/lib/libgcc_s.so.1 2015-04-03 10:00:17.227741457 +1030 @@ -3,4 +3,4 @@ * which would occur if we just statically linked against the new libgcc_s, and * saves us having to worry about depending on a new shared library. */ -INPUT( /lib/libgcc_s.so.1 -lgcc ) +INPUT( /opt/diablo-gcc-4.9/maemo-sdk-rootstrap_4.1.2_armel/lib/libgcc_s.so.1 -lgcc ) diff -ur /tmp/diablo-gcc-4.9-orig/arm-none-linux-gnueabi/lib/libstdc++.so /opt/diablo-gcc-4.9/arm-none-linux-gnueabi/lib/libstdc++.so --- /tmp/diablo-gcc-4.9-orig/arm-none-linux-gnueabi/lib/libstdc++.so 2014-04-30 07:43:47.000000000 +0930 +++ /opt/diablo-gcc-4.9/arm-none-linux-gnueabi/lib/libstdc++.so 2015-04-03 10:00:02.379767105 +1030 @@ -3,4 +3,4 @@ * which would occur if we just statically linked against the new libstdc++, and * saves us having to worry about depending on a new shared library. */ -INPUT( /usr/lib/libstdc++.so.6 libstdc++.a ) +INPUT( /opt/diablo-gcc-4.9/maemo-sdk-rootstrap_4.1.2_armel/usr/lib/libstdc++.so.6 libstdc++.a )
The Following 2 Users Say Thank You to toojays For This Useful Post: | ||
|
2015-04-03
, 00:48
|
Posts: 14 |
Thanked: 36 times |
Joined on Dec 2009
@ Adelaide, Australia
|
#6
|
would it be possible to create a debian 7 distro which has scratch already plumbed ready for n8x0's ..n900 even?
Is it reasonably feasible?....
is it far far too much work for it to be rationally doable? ..
is it impossible?
The Following User Says Thank You to toojays For This Useful Post: | ||
|
2015-04-03
, 01:29
|
|
Posts: 3,141 |
Thanked: 8,161 times |
Joined on Feb 2013
@ From my Gabriola Island hermitage, near the Edge of the World
|
#7
|
|
2015-04-03
, 02:27
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#8
|
The Following User Says Thank You to auouymous For This Useful Post: | ||
|
2015-04-03
, 02:54
|
Posts: 14 |
Thanked: 36 times |
Joined on Dec 2009
@ Adelaide, Australia
|
#9
|
and lastly ..."Hmm, I reckon you'd also want a way to create Diablo/Fremantle compatible debs, which would be another challenge."
yea ... hm..well for the time being at least..considering that fremantle has plenty of hands in the pot over all the n900debian, fptf, etc...I think there are enough brains pointed at those probs without adding to them immediately...not to mention..there aren't alot of current brains focusing on the n8x0 line...fact is...for a long time there hasn't been....the last couple months it's been pretty much just you and Kotczarny that have been doing the pioneering for the n8x0.
in the long haul it would be advantageous to have 1 cohesive method across platforms..but right now with all the n900 projects going on I think ..it better to wait on that idea. But for goodness sake don't you dare stop on the n8x0's!
The Following User Says Thank You to toojays For This Useful Post: | ||
|
2015-04-03
, 03:16
|
|
Posts: 3,141 |
Thanked: 8,161 times |
Joined on Feb 2013
@ From my Gabriola Island hermitage, near the Edge of the World
|
#10
|
So I've packaged up a GCC 4.9 (and modern binutils) cross compiler toolchain.
If anyone else is interested in this, you can grab the diablo-gcc-4.9 package from http://www.users.on.net/~toojays/mae...opment/wheezy/. It's compiled for Debian 7 / amd64, so should work on Ubuntu systems as well. The source package is there as well, so can be easily rebuilt for other Debian-based systems if needed.
More details (copied from the README.Debian which is installed by the package):
This package contains updated C and C++ cross-compilers for Maemo 4.1
(Diablo). These install under /opt/diablo-gcc-4.9. They are configured for
maximum compatibility with the original Diablo toolchain.
The intent is that binaries produced using this toolchain can be installed on a
Diablo system with no additional dependencies. This is largely achieved by
replacing libgcc_s.so and libstdc++.so with linker scripts which cause the
desired symbols to be looked for first in the original (i.e. GCC 3.4) versions
of those libraries. If the desired symbols are not found there, they are linked
statically.
The debug version of libstdc++.so does not use the same linker script trick,
since it seemed like that would be more confusing than useful. If you want to
link against this library, add "-L
/opt/diablo-gcc-4.9/arm-none-linux-gnueabi/lib/debug/" to your g++ link command
line, and ensure that library is accessible when running the compiled program.
There are some ABI compatibility corner cases (see
<http://gcc.gnu.org/wiki/Cxx11AbiCompatibility>) to be aware of if mixing
objects compiled for C++11 and C++98, but most things should just work. I was
able to build a simple gtkmm application using C++11, and run it against the
gtkmm libraries from diablo extras with no problem.