Convert active to passive
I in comments wrote to John Lawler:
What, you don’t like “The students will go downtown for lunch” becoming “Downtown will be gone to by the students for lunch” much, eh? :-) Because such abominations do crop up from not-native speakers from time to time, I suspect nobody ever let them in on the joke in the first place.
And then to the asker:
You can't ever do passive inversion on intransitive verbs, including both yours and mine. If what I wrote sounds right to you, somebody has trained you wrong because it’s completely ungrammatical in English. You must have a transitive verb with a direct object to use passive inversion on so that you can invert subject and object. Intransitive verbs lack an object to use for the subject.
Also, homework is a mass noun not a count noun, so you can never say *a homework.
You are correct,
The hall will be assembled by the students.
indicates that the students are building or constructing the hall in some way.
Your second suggestion,
The hall will be assembled in by the students.
is technically correct but sounds quite strange to me. I'm not sure what you need this for, but you might consider substituting a synonym for "assembled." It might sound more natural as something like
The hall will be filled by the students.
The hall will be the location of the student assembly.
According to Merriam-Webster's Dictionary: assemble transitive verb to bring together (as in a particular place or for a particular purpose) They assembled a team of experts to solve the problem. So, the passive sentence is: 'The students will be assembled in the hall.' As about the logical subject, it is omitted here.