<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: newlib and libmaple</title>
		<link>http://forums.leaflabs.com/topic.php?id=74363</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:04:43 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=74363" rel="self" type="application/rss+xml" />

		<item>
			<title>paulj on "newlib and libmaple"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74363#post-105482</link>
			<pubDate>Thu, 31 Jul 2014 12:25:47 +0000</pubDate>
			<dc:creator>paulj</dc:creator>
			<guid isPermaLink="false">105482@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I guess some of the options auto selected by crossdev are creating the libraries in a way which then leads to the problems I experienced. I am sure crossdev is a good tool, but I would rather understand the process detail so when I have a problem like this I can fix it. I will probably follow the non-crossdev route for other cross compilation environments I have in future. Thanks for the markup information. The output from make actually has backticks in it, so I guess that is difficult for the forum software to understand. I will use the xml style approach next time!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "newlib and libmaple"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74363#post-105481</link>
			<pubDate>Thu, 31 Jul 2014 10:49:51 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">105481@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;paulj - Thank you for updating the thread. That is a very helpful. Presumably the libraries were compiled incorrectly?&#60;/p&#62;
&#60;p&#62;I hope everything goes smoothly now.&#60;/p&#62;
&#60;p&#62;Yes, forum markup is a bit odd, and very hard to describe as it is so primitive, and gobble up the description.&#60;/p&#62;
&#60;p&#62;I never use the code tag. I use the single backquote, \`, aka backtick (The backslash \ needs to be there because the markup is so poor I haven't found a way to show a backquote alone.)&#60;/p&#62;
&#60;p&#62;Just put it around as many lines of code as you need to quote as code.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;block
of
code&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62; like that.&#60;br /&#62;
Then the other markup is very xml-ish &#38;lt;word&#38;gt;text to effect&#38;lt;/word&#38;gt;&#60;br /&#62;
and the opening '&#38;lt;' 'a' anchor contains href=URL then '&#38;gt;' your link text '&#38;lt;' '/' 'a' '&#38;gt;'
&#60;/p&#62;</description>
		</item>
		<item>
			<title>paulj on "newlib and libmaple"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74363#post-105480</link>
			<pubDate>Wed, 30 Jul 2014 16:02:46 +0000</pubDate>
			<dc:creator>paulj</dc:creator>
			<guid isPermaLink="false">105480@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Ok - got it sorted. Instead of using the crossdev tool supplied with Gentoo, I compiled the toolchain and libraries from source, and installed them in my local user bin directory. Compilation is working, I now need to confirm the programs are working correctly. I will document what I did (basically followed &#60;a href=&#34;http://kunen.org/uC/gnu_tool.html&#34; rel=&#34;nofollow&#34;&#62;http://kunen.org/uC/gnu_tool.html&#60;/a&#62;, but with updated versions of the tools), and post a link in case others have similar issues.&#60;/p&#62;
&#60;p&#62;Thanks for your help!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>paulj on "newlib and libmaple"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74363#post-105479</link>
			<pubDate>Wed, 30 Jul 2014 11:16:24 +0000</pubDate>
			<dc:creator>paulj</dc:creator>
			<guid isPermaLink="false">105479@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;PS - How do I get the markup to work in this forum? The instructions are quite terse! :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>paulj on "newlib and libmaple"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74363#post-105478</link>
			<pubDate>Wed, 30 Jul 2014 11:15:38 +0000</pubDate>
			<dc:creator>paulj</dc:creator>
			<guid isPermaLink="false">105478@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;gbulmer - thanks for the suggestion.&#60;/p&#62;
&#60;p&#62;With the blink program, the result is very similar:&#60;/p&#62;
&#60;p&#62;[code]&#60;br /&#62;
build/./libraries/Wire/Wire.o: In function `__static_initialization_and_destruction_0':&#60;br /&#62;
/home/paul/maple/libmaple/./libraries/Wire/Wire.cpp:182: undefined reference to `__dso_handle'&#60;br /&#62;
/usr/lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/lib/libc.a(lib_a-init.o): In function `__libc_init_array':&#60;br /&#62;
/var/tmp/portage/cross-arm-none-eabi/newlib-2.0.0/work/newlib-2.0.0/newlib/libc/misc/init.c:37: undefined reference to `_init'&#60;br /&#62;
/usr/libexec/gcc/arm-none-eabi/ld: build/maple.elf: hidden symbol `__dso_handle' isn't defined&#60;br /&#62;
/usr/libexec/gcc/arm-none-eabi/ld: final link failed: Bad value&#60;br /&#62;
collect2: error: ld returned 1 exit status&#60;br /&#62;
make: *** [build/maple.elf] Error 1&#60;br /&#62;
[/code]&#60;/p&#62;
&#60;p&#62;I am looking all over the place for solutions, but as yet not come across anything. If anyone has any other ideas - I am keen to try them!&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "newlib and libmaple"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74363#post-105477</link>
			<pubDate>Wed, 30 Jul 2014 09:16:24 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">105477@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;paulj - have you tried a slightly simpler program, e.g blink?&#60;br /&#62;
That might reduce the number and type of errors.&#60;/p&#62;
&#60;p&#62;(Full disclosure: I am not a member of Leaflabs staff.)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>paulj on "newlib and libmaple"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74363#post-105476</link>
			<pubDate>Tue, 29 Jul 2014 23:54:56 +0000</pubDate>
			<dc:creator>paulj</dc:creator>
			<guid isPermaLink="false">105476@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks for the quick response. It looks like even with that option, it is referencing newlib:&#60;/p&#62;
&#60;p&#62;build/./libraries/Wire/Wire.o: In function `__static_initialization_and_destruction_0':&#60;br /&#62;
/home/paul/maple/libmaple/./libraries/Wire/Wire.cpp:182: undefined reference to `__dso_handle'&#60;br /&#62;
/usr/lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/lib/libc.a(lib_a-init.o): In function `__libc_init_array':&#60;br /&#62;
/var/tmp/portage/cross-arm-none-eabi/newlib-2.0.0/work/newlib-2.0.0/newlib/libc/misc/init.c:37: undefined reference to `_init'&#60;br /&#62;
/usr/libexec/gcc/arm-none-eabi/ld: build/maple.elf: hidden symbol `__dso_handle' isn't defined&#60;br /&#62;
/usr/libexec/gcc/arm-none-eabi/ld: final link failed: Bad value&#60;br /&#62;
collect2: error: ld returned 1 exit status&#60;br /&#62;
make: *** [build/maple.elf] Error 1&#60;/p&#62;
&#60;p&#62;At the moment, I am working with the demo program and Makefile which comes with libmaple. I am not working in the maple environment, but on the command line. If I install the Sourcery toolchain bundle pointed at by Maple, everything works, but I wanted to be able to use the system wide tools I have installed already. I suppose I want to learn enough to get around these problems!&#60;/p&#62;
&#60;p&#62;Thanks again for your response.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ala42 on "newlib and libmaple"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74363#post-105475</link>
			<pubDate>Tue, 29 Jul 2014 17:37:54 +0000</pubDate>
			<dc:creator>ala42</dc:creator>
			<guid isPermaLink="false">105475@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Not sure how this is solved in the maple environment. If you use a makefile to build your maple stuff, add -nostartfiles to the linker options used to build the .elf file.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>paulj on "newlib and libmaple"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74363#post-105474</link>
			<pubDate>Tue, 29 Jul 2014 14:57:55 +0000</pubDate>
			<dc:creator>paulj</dc:creator>
			<guid isPermaLink="false">105474@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I am running Gentoo Linux, and I have the arm-none-eabi toolchain already installed. gcc is at version 4.7.2, and newlib at version 2.0.0. When compiling libmaple, I get the following error:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;build/./wirish/syscalls.o: In function

_exit&#38;#39;:
/home/paul/maple/libmaple/./wirish/syscalls.c:60: multiple definition of&#60;/code&#62;&#60;/pre&#62;
_sbrk'&#60;br /&#62;
/usr/lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/lib/libc.a(lib_a-syscalls.o):/var/tmp/portage/cross-arm-none-eabi/newlib-2.0.0/work/newlib-2.0.0/newlib/libc/sys/arm/syscalls.c:482: first defined here&#60;br /&#62;
/usr/lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/lib/libc.a(lib_a-syscalls.o): In function `_sbrk':&#60;br /&#62;
syscalls.c:(.text+0x6a8): undefined reference to `end'&#60;br /&#62;
collect2: error: ld returned 1 exit status&#60;br /&#62;
make: *** [build/maple.elf] Error 1&#60;br /&#62;
`&#60;/p&#62;
&#60;p&#62;This appears to be a clash between the newlib library and the libmaple library.&#60;/p&#62;
&#60;p&#62;So my question is this: what do I need to do to stop the compiler linking to the newlib code (assuming it is not necessary?). I compile following the instructions in the &#34;Command Line Tools&#34; section of the wiki.&#60;/p&#62;
&#60;p&#62;Alternatively, do I have to do something else, such as loading an earlier version of newlib, or compiling it with some options set when making the toolchain?&#60;/p&#62;
&#60;p&#62;Many thanks for your help!&#60;/p&#62;
&#60;p&#62;Rgds.,&#60;br /&#62;
Paul
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
