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

  • Home
  • SEARCH
  • 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 8759347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:46:47+00:00 2026-06-13T14:46:47+00:00

I am trying to compile Z3 version 4.1.2. AFter a successful configuration, when you

  • 0

I am trying to compile Z3 version 4.1.2. AFter a successful configuration, when you do “make”, I get the following error:

Makefile:151: lib.srcs: No such file or directory
Makefile:152: shell.srcs: No such file or directory
Makefile:153: test.srcs: No such file or directory
Making test.srcs...
/usr/local/bin/dos2unix takes only stdin and stdout
make: *** [test.srcs] Error 1
  • 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-06-13T14:46:48+00:00Added an answer on June 13, 2026 at 2:46 pm

    I think the problem is that all textual files in z3-src-4.1.2.zip use “carriage return” (cr) and “line feed” (lf) for encoding line termination. The zip was created on a Windows machine. Another problem is the “dos2unix” application. It is an application that converts windows/dos textual files into unix/linux/osx textual files. It is a very simple application. It just replaces cr/lf with a lf.
    On Linux, this application takes a single argument: the file name to be modified.

    I’m currently working on a new build system that avoids this issues. In the meantime, here a some workarounds.

    1) Use git to retrieve the source. git will take care of the cr/lf vs lf issue.
    Here is the command for retrieving Z3:

    git clone https://git01.codeplex.com/z3

    If you do that, you don’t need to use dos2unix.
    So, you can remove the lines @$(DOS2UNIX) in Makefile.in. Another option is to replace
    DOS2UNIX=@D2U@
    with
    DOS2UNIX=touch
    in the beginning of Makefile.in

    After these changes, you should be able to compile it on OSX. I successfully compiled it on OSX 10.7.

    2) Get the “unstable” branch.

    http://z3.codeplex.com/SourceControl/changeset/view/946a06cddbe4

    This is the current “working branch”. It contains the new build system. It is not ready, but it is good enough to generate the Z3 executable. Here are the instructions to build Z3 using this branch

    Download the code from the page above. Or use git to retrieve the “unstable” branch. Then, execute

       autoconf
       ./configure
       python scripts/mk_make.py
       cd build
       make
    

    I managed to compile it on OSX 10.7 last Friday.

    3) Keep the .zip, but convert all textual files. I’m using the following python script to convert all files in the new build system. If you execute this python script in the Z3 root directory, it will convert all files.

    import os
    import glob
    import re
    import getopt
    import sys
    import shutil
    
    def is_cr_lf(fname):
        # Check whether text files use cr/lf
        f = open(fname, 'r')
        line = f.readline()
        sz = len(line)
        return sz >= 2 and line[sz-2] == '\r' and line[sz-1] == '\n'
    
    # dos2unix in python
    #    cr/lf --> lf
    def dos2unix(fname):
        if is_cr_lf(fname):
            fin  = open(fname, 'r')
            fname_new = '%s.new' % fname
            fout = open(fname_new, 'w')
            for line in fin:
                line = line.rstrip('\r\n')
                fout.write(line)
                fout.write('\n')
            fin.close()
            fout.close()
            shutil.move(fname_new, fname)
            if is_verbose():
                print "dos2unix '%s'" % fname
    
    def dos2unix_tree_core(pattern, dir, files):
        for filename in files:
            if fnmatch(filename, pattern):
                fname = os.path.join(dir, filename)
                if not os.path.isdir(fname):
                    dos2unix(fname)
    
    def dos2unix_tree():
        os.path.walk('.', dos2unix_tree_core, '*')
    
    dos2unix_tree()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to compile a simple hello world kernel module but after the make
I'm trying to compile a version of convert (one of the ImageMagick tools) for
I am trying to compile Castle.Facilities.ActiveRecordIntegration with the trunk version of Castle.Core. ARIntegration uses
When I'm trying to compile this code with gcc version 4.6.3 on linux with
Trying to compile a iPhone/iPad application with SDK3.2 and am getting this error: Undefined
When trying to compile GNU software on HP-UX (binutils for example) I'm getting error
When trying to compile the following code, I am getting a warning that line
Trying to compile Ryzom after the merger, and it's yelling at me again. Any
I am trying to compile gcc version gcc4.3.2 using gcc version 4.1.2 20080704 (Red
I have been trying to get C++11 to work, after browsing different websites and

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.