compiling libsupc++

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Techel
Member
Member
Posts: 215
Joined: Fri Jan 30, 2015 4:57 pm
Location: Germany
Contact:

compiling libsupc++

Post by Techel »

Hey, I'd like to compile libsupc++, so I looked at the wiki and typed the following commands into my cygwin bash:

Code: Select all

dude@pc /cygdrive/c/bin/src/gcc-4.8.2
$ ./configure --target=i686-elf --prefix=/cygdrive/c/bin/i686-elf --enable-lang
uages=c,c++ --without-headers --disable-nls
This worked and a makfile was created.

Next I configured libstdc++:

Code: Select all

dude@pc /cygdrive/c/bin/src/gcc-4.8.2/libstdc++-v3
$ CPP=i686-elf-cpp ./configure --host=i686-elf --prefix=/cygdrive/c/bin/i686-el
f --disable-hosted-libstdcxx  --disable-nls
This gave me:

Code: Select all

checking for shl_load... configure: error: Link tests are not allowed after GCC_
NO_EXECUTABLES.
The i686-elf gcc is the one downloadable at the cross-compiler wiki entry. Any Ideas how this can be fixed?
heat
Member
Member
Posts: 103
Joined: Sat Mar 28, 2015 11:23 am
Libera.chat IRC: heat

Re: compiling libsupc++

Post by heat »

Techel wrote:Hey, I'd like to compile libsupc++, so I looked at the wiki and typed the following commands into my cygwin bash:

Code: Select all

dude@pc /cygdrive/c/bin/src/gcc-4.8.2
$ ./configure --target=i686-elf --prefix=/cygdrive/c/bin/i686-elf --enable-lang
uages=c,c++ --without-headers --disable-nls
This worked and a makfile was created.

Next I configured libstdc++:

Code: Select all

dude@pc /cygdrive/c/bin/src/gcc-4.8.2/libstdc++-v3
$ CPP=i686-elf-cpp ./configure --host=i686-elf --prefix=/cygdrive/c/bin/i686-el
f --disable-hosted-libstdcxx  --disable-nls
This gave me:

Code: Select all

checking for shl_load... configure: error: Link tests are not allowed after GCC_
NO_EXECUTABLES.
The i686-elf gcc is the one downloadable at the cross-compiler wiki entry. Any Ideas how this can be fixed?
I had that problem while trying to compile libsupc++. Basically the problem is that its looking for dlopen() but as it's a bare metal target, it doesn't find any. I was even compiling with a Hosted GCC Compiler, but it still didn't work. I tried to fiddle with the makefile.ac so it got past that point, but still got errors for stuff that's not implemented, so I just gave up.

A more detailed explanation here: https://gcc.gnu.org/ml/gcc/2008-03/msg00515.html (notice OP also had an i686-elf target and was using newlib)
If some of you people keep insisting on having backwards compatibitity with the stone age, we'll have stone tools forever.
My Hobby OS: https://github.com/heatd/Onyx
Techel
Member
Member
Posts: 215
Joined: Fri Jan 30, 2015 4:57 pm
Location: Germany
Contact:

Re: compiling libsupc++

Post by Techel »

Thanks for your reply, let's see...
Post Reply