Skip to content

Cross-compilation issue for dependencies #18

@saruman9

Description

@saruman9

While implementing FreeBSD x86 support (frida/frida-gum#1056, frida/frida-core#1188), I encountered a build problem during cross-compilation from FreeBSD x86_64 host.

Problem Description

When cross-compiling for FreeBSD x86:

  1. Missing system dependencies (sqlite, quickjs) on host OS trigger meson to build them from source
  2. During configure phase, meson detects missing dependencies and plans to build them
  3. At build phase, these dependencies aren't properly picked up by pkg-config
  4. Build fails despite dependencies being available in source form

Suspected Causes

Potential issues in:

  • mkdevkit.py
  • devkit.py

Workaround

As my primary goal was LibAFL fuzzing setup, I used a temporary solution:

  1. Built all dependencies manually (or with meson's help)
  2. Collected them in a single directory
  3. Pointed meson to this directory during configure

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions