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

Cross-compilation amd64→arm64 fails: Error: Undeclared name: MINSIGSTKSZ #4878

Open
yurivict opened this issue Feb 25, 2025 · 0 comments
Open

Comments

@yurivict
Copy link

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Operating System & Odin Version: FreeBSD 14.2 amd64, odin-2025-02
  • Please paste odin report output:
$ odin report
Where to find more information and get into contact when you encounter a bug:

        Website: https://odin-lang.org
        GitHub:  https://github.com/odin-lang/Odin/issues


Useful information to add to a bug report:

        Odin:    dev-2025-02
        OS:      FreeBSD 14.2-STABLE stable/14-n269951-705337455f06 GENERIC, revision 199506
        CPU:     Intel(R) Core(TM) i7 CPU         930  @ 2.80GHz
        RAM:     24525 MiB
        Backend: LLVM 19.1.7

Current Behavior

Simple program from the Odin webpage fails to be cross-compiled:

$ odin build test.odin -file -target:freebsd_arm64
/usr/local/lib/odin/core/sys/posix/limits.odin(199:35) Error: Undeclared name: MINSIGSTKSZ 
        PTHREAD_STACK_MIN             :: MINSIGSTKSZ 
                                         ^~~~~~~~~~^ 
 
/usr/local/lib/odin/core/sys/posix/signal.odin(574:14) Error: Undeclared name: MINSIGSTKSZ 
        SIGSTKSZ :: MINSIGSTKSZ + 32768 
                    ^~~~~~~~~~^ 
@yurivict yurivict changed the title Cross-compilation amf64->amd64 fails: Error: Undeclared name: MINSIGSTKSZ Cross-compilation amf64→amd64 fails: Error: Undeclared name: MINSIGSTKSZ Feb 25, 2025
@yurivict yurivict changed the title Cross-compilation amf64→amd64 fails: Error: Undeclared name: MINSIGSTKSZ Cross-compilation amd64→amd64 fails: Error: Undeclared name: MINSIGSTKSZ Feb 25, 2025
@yurivict yurivict changed the title Cross-compilation amd64→amd64 fails: Error: Undeclared name: MINSIGSTKSZ Cross-compilation amd64→arm64 fails: Error: Undeclared name: MINSIGSTKSZ Feb 25, 2025
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

1 participant