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

Porting to new Platform (FreeBSD PowerPC64) #1643

Open
lenoil98 opened this issue Dec 23, 2024 · 3 comments
Open

Porting to new Platform (FreeBSD PowerPC64) #1643

lenoil98 opened this issue Dec 23, 2024 · 3 comments

Comments

@lenoil98
Copy link

’m attempting to port to PowerPC64 on FreeBSD. I’m somewhat using the porting instructions and have made all necessary changes. I’ve been successful in almost getting things to work building from the host computer. Things seem to work building the hello-world or compiler, until it gets to linking the executable. Below is what is printed when it stops. Not sure what these “undefined Jam rules" means.

Optimizing library dylan-compiler
Generating code for library dylan-compiler
Linking object files for library dylan-compiler
Saving database for library dylan-compiler
Build of 'dylan-compiler' completed
Linking dylan-compiler
Invoking undefined Jam rule DylanLibrary
Invoking undefined Jam rule DylanLibraryFiles
Invoking undefined Jam rule DylanLibraryBaseAddress
Invoking undefined Jam rule DylanLibraryCHeaders
Invoking undefined Jam rule DylanLibraryRCFiles
Invoking undefined Jam rule DylanLibraryUses
Invoking undefined Jam rule DylanLibraryUses
Invoking undefined Jam rule DylanLibraryUses
Invoking undefined Jam rule DylanLibraryUses
Invoking undefined Jam rule DylanLibraryUses
Invoking undefined Jam rule DylanLibraryUses
Invoking undefined Jam rule DylanLibraryUses
Invoking undefined Jam rule DylanLibraryUses
Invoking undefined Jam rule DylanLibraryUses
Invoking undefined Jam rule DylanLibraryUses
Invoking undefined Jam rule DylanLibraryUses
Invoking undefined Jam rule DylanLibraryUses

Internal error: Link failed: don't know how to build exe
Exiting with return code -1

All compiled files and libraries are deleted. Only the converted "c" files and build log are left.

Any help will be greatly appreciated.

Thanks in advance!

@cgay
Copy link
Member

cgay commented Dec 23, 2024

Hi, this isn't my are of expertise but here are two pointers that may help until @housel gets a chance to chime in.

@housel
Copy link
Member

housel commented Dec 24, 2024

Yes, you need to have a Jam build script for your platform. Most of the per-platform build scripts are pretty similar; the important thing its the include at the end of posix-build.jam; this is the reason most of the listed rules were undefined.

@lenoil98
Copy link
Author

I solved my issue. A ‘space’ was missing before a semicolon on a line in my build script. Everything builds now.

Now I have to debug why hello-world segfaults.

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

3 participants