Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6557253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:03:01+00:00 2026-05-25T13:03:01+00:00

The error I get is like this: [DCC Fatal Error] myunit3.pas(244): E2411 Unit XBAT

  • 0

The error I get is like this:

[DCC Fatal Error] myunit3.pas(244): E2411 Unit XBAT in package B_Dsgn refers to unit QBEE which is not found in any package. Packaged units must refer only to packaged units

I need to know what this error I am encountering really means, and if possible how to troubleshoot and solve such problems, especially when the facts stated in the error message are not correct (the units are in fact referring to other units in other valid packages).

Such problems involve package dependencies. I am having an interesting problem with a series of three designtime and three runtime packages related like this:

enter image description here

What is most odd about it is that each time I clean and rebuild, I get a different unit name in the error. (Shown above as Unit XBAT refers to unit QBEE).

The other odd thing is that it’s referring to units that are in a top level dependency, and are part of a package that was already built.

Steps;

  1. Compile A, it works.
  2. Compile A_Dsgn, it works.
  3. Compile B, it Works.
  4. Compile B_Dsgn, it works.
  5. Compile C, and it fails with this E2411 error.

Since I doubt anybody can tell me how to fix this exactly, I am looking for the steps to troubleshoot a complex dependency problem in a package. The literal meaning of the above error suggests for example, that I should have a corresponding message about an implicit linked unit, which I do not have. I have added all implicitly used units to the base packages A, and B, so that no implicit unit warnings are made.

My next idea was to separate the DCU output folders for each package, to prevent the DCU outputs from one from confusing the compiler. Now I can not even build the packages.

Update I tried playing with the Explicit Rebuild and Rebuild as Needed options. I have found that this error is related to having ‘Rebuild as Needed’ turned on. When it is turned off, the packages fail with other errors which are more to the point. I find it odd that the compiler emits weird errors that can be disabled by turning off Rebuild as needed. Any ideas what is going on?

Update 2 The basic underlying problem is not solved by turning on or off explicit rebuild. Instead of getting this error, I get annoying runtime/designtime package problems, which result in a set of packages, that can not be loaded at the same time. (Can not load package foo because it contains unit bar which is also in package bat. Do you want to attempt to load this package the next time a project is loaded?).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:03:01+00:00Added an answer on May 25, 2026 at 1:03 pm

    I suspect it is an obscure compiler bug.

    The project I experienced it in had at least 4 levels of dependent runtime packages:

    PackageA <- PackageB <- PackageC <- PackageD

    E2411 Unit ‘%s’ in package PackageD refers to unit ‘%s’ which is not
    found in any package. Packaged units must refer only to packaged units.

    The only solution I found that worked was to make packages A, B and C never-build (i.e. Explicit Build) packages and use Project Dependencies to enforce build order instead. I had to make all three never-build or I would get

    E2220 Never-build package ‘%s’ requires always-build package ‘%s’

    I know its probably not the answer you were looking for but there it is.

    Btw, this happened to me in Delphi 2009.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get this error when compiling a C# application. Looks like a trivial error,
in my system when i am opening the database i get this error like
I get an error like this in logcat when i try to run my
sometimes i get an error like table is marked as corrupt and shld be
Like the title says, the error I get is the following: An invalid '/'
I have this query and I get error Operand should contain 1 column(s), whats
I use the following jquery statements but i get error in this function onGetDataSuccess(result)
when i run my application it is the error i get... This application has
I've just got an error. When I try to assign an object like this:
We sporadically get errors when we try to update a tool tip, like this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.