configure question

Have a question about our Software Developer Kit? Ask them here.
Post Reply
trgswe
Posts: 9
Joined: Thu Dec 31, 2020 1:28 pm

configure question

Post by trgswe »

I wonder about configure, which run-time library does it use? for instance in one program it goes through the configuration but when you do a make, the compiler (gcc 11.2) starts complaining about several functions already being defined in newlib? isn't newlib default for --mcrt
kas1e
Beta Tester
Beta Tester
Posts: 542
Joined: Sat Jun 18, 2011 7:56 am
Contact:

Re: configure question

Post by kas1e »

I wonder about configure, which run-time library does it use? for instance in one program it goes through the configuration but when you do a make, the compiler (gcc 11.2) starts complaining about several functions already being defined in newlib?
Can't say which run-time libs, as never needs to worry about, but when you run configure it just create for you .h files with all necessary defines, which, not 100% will works as it when you will build code (running make) with those defines taken from when you run configure. There can be all sorts of differences, like starting from the moment that you simple mistakenly forget to add to configure "--build=x86_64 --host=ppc-amigaos --target=ppc-amigaos" and ends up with all sort differences like the header is present, some function is checked and present by configure, and take it for granted that every function of "this kind" will be in, but in reality, it is not.

So, the usual rule you just check what functions fail, and check by simple test case if it works for real on os4. Then even if simple test compiles, you need to be sure it links fine as well and so on, that will mean that function is here and should work and then find out why it didn't in your code which can't be compiled (which then, will be the fault of the code itself).

isn't newlib default for --mcrt
Yep default mean --mcrt=newlib
Post Reply