Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, June 2007
Bug in mkspecs/macx-icc/qplatformdefs.h


Message 1 in thread

I am trying to build Qt 4.3 with the Intel Vers 10 compiler on OS X. I 
am using the following configure line:

./configure -fast -no-qt3support -release -platform macx-icc -no-framework

The first problem that I ran into was:

/Users/Warehouse/qt-mac-opensource-src-4.3.0/src/corelib/io/qfsfileengine_unix.cpp(81): 
error: identifier "O_LARGEFILE" is undefined
      oflags |= QT_OPEN_LARGEFILE;

Looking at the mkspecs/macx-icc/qplatformdefs.h file the following line reads:

#define QT_OPEN_LARGEFILE       O_LARGEFILE

but if you look in the mkspecs/macx-g++/qplatformdefs.h file the same 
line reads:

#define QT_OPEN_LARGEFILE       0

I changed the icc file to be the same as the gcc file. So things seemed 
to progress from there and then at the end of 'configure' I get the 
following;

Finding project files. Please wait...
./configure: line 5580:   621 Segmentation fault      
"$outpath/bin/qmake" -prl -r "${relpath}/projects.pro"
./configure: line 5585:   624 Segmentation fault      QTDIR="$outpath" 
"$outpath/bin/qmake" -spec "$XQMAKESPEC" "${relpath}/projects.pro" -o 
"$mkfile"
  349 projects found.

Creating makefiles. Please wait...

Qt is now configured for building. Just run 'make'.
Once everything is built, you must run 'make install'.
Qt will be installed into /usr/local/Trolltech/Qt-4.3.0

To reconfigure, run 'make confclean' and 'configure'.


So I type 'make' and get the following:

519:[mjackson@Thor:qt-mac-opensource-src-4.3.0]$ make -j 3
/Users/Warehouse/qt-mac-opensource-src-4.3.0/bin/qmake -spec 
mkspecs/macx-icc -macx -o Makefile projects.pro
make: *** [Makefile] Segmentation fault


Could someone comment on all of this?


--
 [ signature omitted ] 

Message 2 in thread

On Thursday 07 June 2007 22:46:46 Mike Jackson wrote:
> I changed the icc file to be the same as the gcc file. So things seemed
> to progress from there and then at the end of 'configure' I get the
> following;

We noticed the same thing yesterday, and have changed it for 4.3.1 :)

> ./configure: line 5580:   621 Segmentation fault
> "$outpath/bin/qmake" -prl -r "${relpath}/projects.pro"
> ./configure: line 5585:   624 Segmentation fault      QTDIR="$outpath"
> "$outpath/bin/qmake" -spec "$XQMAKESPEC" "${relpath}/projects.pro" -o
> "$mkfile"

> 519:[mjackson@Thor:qt-mac-opensource-src-4.3.0]$ make -j 3
> /Users/Warehouse/qt-mac-opensource-src-4.3.0/bin/qmake -spec
> mkspecs/macx-icc -macx -o Makefile projects.pro
> make: *** [Makefile] Segmentation fault
>
> Could someone comment on all of this?

I get the exact same problem with icpc 10.0.023 on Linux x86_64. I'm still 
investigating the problem (seems to be at least one miscompilation in 
QStringMatcher::indexIn()), but don't have any concrete answers yet. FWIW, I 
have managed to do a debug only build on Linux x86_64 if I disable PCH. I've 
managed to get a 32-bit release build w/out pch as well, and it seems to 
work. 

Of course, all this works wonderfully with 9.1.049 (again, on Linux).

-- 
 [ signature omitted ]