Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined reference to 'osint__B83s' #47

Closed
aytey opened this issue Oct 16, 2024 · 3 comments
Closed

undefined reference to 'osint__B83s' #47

aytey opened this issue Oct 16, 2024 · 3 comments

Comments

@aytey
Copy link

aytey commented Oct 16, 2024

I am trying to build gnat-llvm as follows:

git clone https://github.com/AdaCore/gnat-llvm.git
cd gnat-llvm
git clone git://gcc.gnu.org/git/gcc.git llvm-interface/gcc
ln -s gcc/gcc/ada llvm-interface/gnat_src
cd llvm
make setup
cd llvm-project-16.0.6.src
for i in ../patches/*; do patch -p1 < $i; done  ## massage some paths here
cd ..
make llvm
cd ..
make

and here is the output at the end:

/home/avj/opt/alire/gnat-x86_64-linux-14.2.0-1/bin/../lib/gcc/x86_64-pc-linux-gnu/14.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /mnt/baranem/llvm-gnat/source
s/gnat-llvm/llvm-interface/obj/osint-c.o: in function `osint__c__set_output_object_file_name':
/mnt/baranem/llvm-gnat/sources/gnat-llvm/llvm-interface/gnat_src/osint-c.adb:474:(.text+0x27e5): undefined reference to `osint__B83s'

This is with using:

gcc (GCC) 14.2.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

and

GPRBUILD 24.0.0 (2024-08-01) (x86_64-pc-linux-gnu)
Copyright (C) 2004-2024, AdaCore
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

both from Alire.

Am I missing a step?

@aytey aytey changed the title undefined reference to osint__B83s'` undefined reference to 'osint__B83s' Oct 16, 2024
@ArnaudCharlet
Copy link
Member

This looks like a compiler (GCC) bug unfortunately.

@aytey
Copy link
Author

aytey commented Nov 5, 2024

Are you able to tell me what commits of https://github.com/AdaCore/gnat-llvm.git and git://gcc.gnu.org/git/gcc.git, as well as the version of Alire that are compatible?

@ArnaudCharlet
Copy link
Member

Please see issue #49 which gives all the details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants